/* ============================================================
   DISCOUNT SECTION — Light Theme
   ============================================================ */

.discount-section {
  padding: 100px 5%;
  background: linear-gradient(135deg, #FDF8F0 0%, #F5EAD0 50%, #FDF8F0 100%);
  position: relative;
  overflow: hidden;
}

.discount-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184,134,11,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(193,127,58,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.discount-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.discount-card {
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(184,134,11,0.3);
  border-radius: 24px;
  padding: 52px 44px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  backdrop-filter: blur(20px);
  box-shadow:
    0 8px 40px rgba(139,94,60,0.12),
    0 2px 8px rgba(184,134,11,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  animation: cardGlow 4s ease-in-out infinite;
}

@keyframes cardGlow {
  0%, 100% { box-shadow: 0 8px 40px rgba(139,94,60,0.1), inset 0 1px 0 rgba(255,255,255,0.9); }
  50%       { box-shadow: 0 12px 60px rgba(184,134,11,0.22), inset 0 1px 0 rgba(255,255,255,0.9); }
}

.discount-icon {
  font-size: 3.2rem;
  margin-bottom: 18px;
  display: block;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.discount-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: #B8860B;
  margin-bottom: 10px;
}

.discount-sub {
  color: #8B6B4A;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.code-input-wrap {
  display: flex;
  gap: 0;
  border: 1.5px solid rgba(184,134,11,0.4);
  border-radius: 50px;
  overflow: hidden;
  background: rgba(255,252,245,0.9);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.code-input-wrap:focus-within {
  border-color: #B8860B;
  box-shadow: 0 0 20px rgba(184,134,11,0.2);
}

.code-input-wrap input {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  outline: none;
  color: #2C1810;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.1em;
  direction: ltr;
}

.code-input-wrap input::placeholder {
  color: #B89A70;
  letter-spacing: 0.05em;
}

.code-btn {
  padding: 14px 26px;
  background: linear-gradient(135deg, #B8860B, #C17F3A);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.3s, transform 0.2s;
}

.code-btn:hover { background: linear-gradient(135deg, #D4A017, #D4943A); }
.code-btn:active { transform: scale(0.97); }

.code-feedback {
  margin-top: 16px;
  min-height: 28px;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 0 8px;
  transition: all 0.3s;
}

.code-feedback.error {
  color: #c0392b;
  background: rgba(192,57,43,0.08);
  padding: 8px 14px;
}

.code-feedback.success {
  color: #27ae60;
  background: rgba(39,174,96,0.1);
  padding: 8px 14px;
}

.discount-note {
  margin-top: 20px;
  color: #B89A70;
  font-size: 0.78rem;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-8px); }
  30%       { transform: translateX(8px); }
  45%       { transform: translateX(-6px); }
  60%       { transform: translateX(6px); }
  75%       { transform: translateX(-4px); }
  90%       { transform: translateX(4px); }
}

.shake { animation: shake 0.5s ease-in-out; }