/* ==========================================================
   DIWALI FESTIVE SPECIAL STYLING & ANIMATIONS
   Celebration Theme for ER Brothers
========================================================== */

/* Diwali Popup Modal Overlay */
.diwali-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(4, 14, 28, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.diwali-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Diwali Modal Dialog Box */
.diwali-modal-box {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.25) 0%, transparent 65%),
              linear-gradient(145deg, #091c33 0%, #0d2645 100%);
  border: 2px solid rgba(245, 158, 11, 0.55);
  border-radius: 24px;
  width: 100%;
  max-width: 540px;
  padding: 42px 32px 32px;
  position: relative;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 158, 11, 0.25);
  margin: auto;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.diwali-modal-overlay.active .diwali-modal-box {
  transform: scale(1) translateY(0);
}

/* Highly-Visible Prominent Close Button */
.diwali-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #f59e0b;
  color: #081d36;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.diwali-modal-close svg {
  display: block;
}

.diwali-modal-close:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
}

/* Glowing Diya Artwork */
.diwali-modal-diya {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.7));
  animation: diyaPulse 2.5s ease-in-out infinite;
}

@keyframes diyaPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.6));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 28px rgba(251, 191, 36, 0.9));
  }
}

.diwali-pill-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.diwali-modal-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #ffffff;
}

.diwali-modal-desc {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Coupon Box with Click to Copy */
.diwali-coupon-box {
  background: rgba(4, 15, 30, 0.75);
  border: 2px dashed rgba(245, 158, 11, 0.55);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.diwali-code-label {
  text-align: left;
}

.diwali-code-label span {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.diwali-code-label strong {
  font-size: 1.3rem;
  color: #fbbf24;
  font-family: monospace;
  letter-spacing: 1px;
}

.btn-copy-code {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-code:hover {
  background: var(--diwali-gradient);
  color: #ffffff;
}

/* Countdown Timer */
.diwali-countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.countdown-unit {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 60px;
}

.countdown-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.countdown-lbl {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Modal Form */
.diwali-quick-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.diwali-quick-form input {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.95rem;
}

.diwali-quick-form input:focus {
  outline: none;
  border-color: #fbbf24;
  background: rgba(255, 255, 255, 0.15);
}

.diwali-quick-form input::placeholder {
  color: #94a3b8;
}

.diwali-disclaimer {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Celebratory Congratulations WOW Banner */
.diwali-wow-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(245, 158, 11, 0.28) 100%);
  border: 2px solid #34d399;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  animation: wowPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

@keyframes wowPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.wow-badge {
  font-size: 1.15rem;
  font-weight: 900;
  color: #34d399;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}

.wow-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.wow-sub {
  font-size: 0.88rem;
  color: #fef08a;
  margin-top: 4px;
}

/* Coupon status inside proposal forms */
.coupon-success-wow {
  background: #ecfdf5;
  color: #065f46;
  border: 2px solid #10b981;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: wowPop 0.4s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.18);
}

.coupon-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
}

/* Confetti particles */
.confetti-piece {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  border-radius: 3px;
  animation: confettiFall 3.2s linear forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(-20px) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(105vh) rotate(720deg) scale(0.4);
  }
}
