/* ==========================================================================
   Rishikesh Yoga Ashram - Festive Season Offer Modal & Floating Trigger
   Specifically designed for Sound Healing Teacher Training Course
   Fully responsive, high-contrast, Indian spiritual festive theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Philosopher:ital,wght@0,700;1,400;1,700&display=swap');

/* Keyframe Animations */
@keyframes festiveBackdropFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes festiveModalScale {
  0% {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes candlePulse {

  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.85)) drop-shadow(0 0 14px rgba(255, 152, 0, 0.6));
    opacity: 0.95;
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 1)) drop-shadow(0 0 22px rgba(255, 111, 0, 0.8));
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes petalDriftLeft {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: translateY(12px) rotate(15deg) translateX(-4px);
    opacity: 1;
  }

  100% {
    transform: translateY(24px) rotate(30deg);
    opacity: 0.3;
  }
}

@keyframes petalDriftRight {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: translateY(14px) rotate(-15deg) translateX(4px);
    opacity: 1;
  }

  100% {
    transform: translateY(26px) rotate(-30deg);
    opacity: 0.3;
  }
}

@keyframes badgeShine {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes floatGiftBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* Modal Wrapper */
.rya-festive-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99995;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
}

/* Translucent Backdrop Overlay */
.rya-festive-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 12, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: festiveBackdropFade 0.3s ease-out;
}

/* Modal Dialog Card */
.rya-festive-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92vw;
  max-width: 440px;
  max-height: 94vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #FFFDF8 0%, #FBF6EC 48%, #F5ECDB 100%);
  border-radius: 22px;
  border: 2px solid #E5BA6A;
  box-shadow:
    0 24px 60px -10px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 0 0 4px #FFFDF8,
    inset 0 0 0 5.5px rgba(182, 72, 61, 0.3);
  animation: festiveModalScale 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-sizing: border-box;
  text-align: center;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2D241E;
}

/* Card inner custom scrollbar */
.rya-festive-dialog::-webkit-scrollbar {
  width: 5px;
}

.rya-festive-dialog::-webkit-scrollbar-track {
  background: transparent;
}

.rya-festive-dialog::-webkit-scrollbar-thumb {
  background: #D4A359;
  border-radius: 4px;
}

/* Close Button */
.rya-festive-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  width: 32px;
  height: 32px;
  background: #B6483D;
  color: #FFFFFF;
  border: 2px solid #FFFDF8;
  border-radius: 50%;
  font-size: 20px;
  line-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(182, 72, 61, 0.35);
  transition: all 0.22s ease;
  padding: 0;
}

.rya-festive-close:hover,
.rya-festive-close:focus-visible {
  background: #87261C;
  color: #FFFFFF;
  transform: rotate(90deg) scale(1.08);
  outline: none;
}

/* Corner Festive Decorations (Marigolds & Lanterns) */
.rya-festive-decor {
  position: absolute;
  top: 0;
  z-index: 5;
  pointer-events: none;
  width: 105px;
  height: 125px;
}

.rya-festive-decor.decor-left {
  left: 0;
}

.rya-festive-decor.decor-right {
  right: 0;
  transform: scaleX(-1);
}

.rya-festive-lantern-glow {
  transform-origin: center;
  animation: candlePulse 2.8s ease-in-out infinite;
}

.rya-festive-petal-left {
  animation: petalDriftLeft 3.5s ease-in-out infinite alternate;
}

.rya-festive-petal-right {
  animation: petalDriftRight 4s ease-in-out infinite alternate;
}

/* Card Body Content */
.rya-festive-content {
  position: relative;
  z-index: 10;
  padding: 16px 20px 18px 20px;
}

/* Brand Header */
.rya-festive-brand {
  margin-top: 4px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rya-festive-logo {
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.rya-festive-brand-name {
  font-family: 'Philosopher', 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #7A4B3A;
  text-transform: uppercase;
  margin-top: 4px;
}

.rya-festive-tagline {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #9C785C;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Main Heading Wrap */
.rya-festive-heading-wrap {
  margin-top: 6px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.rya-festive-title {
  font-family: 'Philosopher', 'Cinzel', 'Playfair Display', 'Georgia', serif;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  color: #B6483D;
  margin: 0;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(182, 72, 61, 0.15);
  text-align: center;
  width: 100%;
}

/* Disable global h2::after divider image from leaking into festive modal */
.rya-festive-title::after {
  content: none !important;
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  background: none !important;
  margin: 0 !important;
}

.rya-festive-subtitle {
  font-family: 'Cinzel', 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #7D6250;
  text-transform: uppercase;
  margin: 6px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.rya-festive-subtitle span {
  color: #5C4535;
}

.rya-festive-dot {
  color: #D4A359;
  font-weight: 900;
  margin: 0 6px;
  font-size: 11px;
}

/* Festive Months Ribbon Wrap (Exact Match to Bali Poster Layout) */
.rya-festive-ribbon-wrap {
  margin: 8px 0 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

/* Radiant Gold Months Pill */
.rya-festive-months-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F8DE98 0%, #E0B259 50%, #CA9740 100%);
  padding: 5px 28px;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(202, 151, 64, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.rya-festive-months-pill span {
  font-family: 'Cinzel', 'Nunito', sans-serif;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 2.2px;
  color: #382000;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Delicate Special Offer Line with Accents */
.rya-festive-special-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 240px;
  margin-top: 2px;
}

.rya-festive-special-offer .offer-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #D4A359, transparent);
}

.rya-festive-special-offer .offer-text {
  font-family: 'Cinzel', 'Nunito', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #9C7026;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Centerpiece Offer Badge (Refined, Compact Ashram Terracotta & Gold Theme) */
.rya-festive-badge {
  position: relative;
  background: linear-gradient(145deg, #B6483D 0%, #83271D 100%);
  border: 1.5px solid #E5BA6A;
  border-radius: 14px;
  padding: 8px 16px 7px 16px;
  margin: 8px auto 8px auto;
  max-width: 285px;
  width: 90%;
  box-shadow:
    0 8px 20px -3px rgba(182, 72, 61, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
}

.rya-festive-badge::before {
  content: "";
  position: absolute;
  inset: 2.5px;
  border: 1px dashed rgba(229, 186, 106, 0.5);
  border-radius: 11px;
  pointer-events: none;
}

.badge-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  line-height: 1;
}

.badge-cur {
  font-size: 20px;
  font-weight: 800;
  color: #FFE699;
  font-family: 'Philosopher', 'Cinzel', serif;
}

.badge-num {
  font-size: 32px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  font-family: 'Philosopher', 'Cinzel', 'Playfair Display', serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.badge-off {
  font-size: 18px;
  font-weight: 900;
  color: #FFE699;
  letter-spacing: 1.2px;
  margin-left: 4px;
}

.badge-course {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #FFEAA6;
  text-transform: uppercase;
  margin-top: 3px;
  line-height: 1.2;
}

.badge-lotus {
  margin-top: 3px;
  color: #E5BA6A;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hook Subtitle */
.rya-festive-hook {
  font-size: 13.5px;
  line-height: 1.4;
  color: #4A3E36;
  font-style: italic;
  font-weight: 600;
  margin: 10px 14px 14px 14px;
}

/* CTA Claim Button */
.rya-festive-cta-wrap {
  margin-top: 6px;
  margin-bottom: 12px;
}

.rya-festive-claim-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #B6483D 0%, #87261C 100%);
  color: #FFFFFF !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  padding: 13px 22px;
  border-radius: 50px;
  border: 1.5px solid #E5BA6A;
  box-shadow: 0 8px 22px rgba(182, 72, 61, 0.4);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  cursor: pointer;
}

.rya-festive-claim-btn i.fa-whatsapp {
  font-size: 21px;
  color: #25D366;
  transition: transform 0.25s ease;
}

.rya-festive-claim-btn .btn-arrow {
  font-size: 17px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.rya-festive-claim-btn:hover,
.rya-festive-claim-btn:focus-visible {
  background: linear-gradient(135deg, #CF5A4E 0%, #9C2E23 100%);
  border-color: #ECC880;
  color: #FFFFFF !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(182, 72, 61, 0.5);
  outline: none;
}

.rya-festive-claim-btn:hover i.fa-whatsapp {
  color: #25D366;
  transform: scale(1.15) rotate(10deg);
}

.rya-festive-claim-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Secondary Enquiry Button inside CTA Wrap */
.rya-festive-enquiry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  background: #FFFFFF;
  color: #B6483D;
  border: 1.5px solid #B6483D;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(182, 72, 61, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  font-family: inherit;
}

.rya-festive-enquiry-btn:hover,
.rya-festive-enquiry-btn:focus-visible {
  background: #B6483D;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(182, 72, 61, 0.3);
  outline: none;
}

.rya-festive-enquiry-btn i {
  font-size: 14px;
}

/* Secondary Link - Respecting the Enquiry Form */
.rya-festive-enquiry-note {
  font-size: 12px;
  color: #6D5A4C;
  margin: 6px 4px 4px 4px;
}

.rya-festive-enquiry-note button {
  background: none;
  border: none;
  padding: 0;
  color: #B6483D;
  font-weight: 800;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}

.rya-festive-enquiry-note button:hover,
.rya-festive-enquiry-note button:focus-visible {
  color: #8C2E24;
  outline: none;
}

/* Lower Visual Background (Serene Sound Bowl Session Fade) */
.rya-festive-bg-visual {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background-size: cover;
  background-position: center bottom;
  opacity: 0.16;
  pointer-events: none;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Floating Festive Badge Trigger (Pinned to Left Edge, zero collision with WhatsApp or Enquire buttons) */
.rya-festive-float-btn {
  position: fixed;
  left: 0;
  top: 75%;
  transform: translateY(-50%);
  z-index: 9990;
  background: linear-gradient(135deg, #FFFDF8 0%, #FAF2E3 100%);
  border: 1.5px solid #D4A359;
  border-left: none;
  border-radius: 0 50px 50px 0;
  padding: 9px 16px 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 2px 6px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: #B6483D;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
}

.rya-festive-float-btn strong {
  color: #B6483D;
  font-weight: 800;
}

.rya-festive-float-btn .festive-float-gift {
  font-size: 17px;
  line-height: 1;
  animation: floatGiftBounce 2.4s ease-in-out infinite;
}

.rya-festive-float-btn:hover {
  transform: translateY(-50%) translateX(4px);
  border-color: #B6483D;
  box-shadow: 4px 8px 24px rgba(182, 72, 61, 0.25);
  background: #FFFDF8;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .rya-festive-dialog {
    width: 94vw;
    max-height: 92vh;
    border-radius: 18px;
  }

  .rya-festive-content {
    padding: 14px 14px 14px 14px;
  }

  .rya-festive-decor {
    width: 80px;
    height: 95px;
  }

  .rya-festive-title {
    font-size: 28px;
  }

  .rya-festive-badge {
    max-width: 260px;
    padding: 7px 14px 6px 14px;
  }

  .badge-num {
    font-size: 28px;
  }

  .badge-cur {
    font-size: 18px;
  }

  .badge-off {
    font-size: 16px;
  }

  .badge-course {
    font-size: 10.5px;
    letter-spacing: 1.2px;
  }

  .festive-feat-item {
    font-size: 10px;
    padding: 4px 8px;
  }

  .rya-festive-claim-btn {
    font-size: 14.5px;
    padding: 11px 18px;
  }

  .rya-festive-enquiry-btn {
    font-size: 13px;
    padding: 9px 14px;
    margin-top: 6px;
  }

  .rya-festive-float-btn {
    top: 55%;
    left: 0;
    bottom: auto;
    transform: translateY(-50%);
    border-radius: 0 40px 40px 0;
    padding: 7px 13px 7px 9px;
    font-size: 11px;
  }

  .rya-festive-float-btn:hover {
    transform: translateY(-50%) translateX(2px);
  }
}