/* ─────────────────────────────────────────────────────────
   invite.css  —  Styles for invite.html (7-section page)
───────────────────────────────────────────────────────── */

/* ── Reset & Design Tokens ───────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #9c7c2b;
  --gold-lt: #c0a45b;
  --dark: #ffffff;
  --dark-2: #fdfcf7;
  --cream: #1a1208;
  --text: #1a1208;
  --text-lt: #5c4d37;
  --border: rgba(156, 124, 43, 0.35);
}

html {
  background: #f7f4ec;
  /* Ivory base */
  /* Extremely subtle, elegant luxury royal pinstripe background (zero eye strain) */
  background-image: repeating-linear-gradient(45deg,
      #f7f4ec,
      #f7f4ec 10px,
      #f5f0e4 10px,
      #f5f0e4 11px);
}

body {
  font-family: 'Lato', sans-serif;
  background: transparent;
  color: var(--text);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ── Centered mobile wrapper for desktop viewports ── */
.invitation-cover {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f4ec;
  background-image: repeating-linear-gradient(45deg,
      #f7f4ec,
      #f7f4ec 10px,
      #f5f0e4 10px,
      #f5f0e4 11px);
  cursor: pointer;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.invitation-cover.is-opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.invitation-cover-card {
  position: relative;
  width: min(100%, 500px);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
  transition: filter 0.8s ease, transform 0.8s ease;
}

.invitation-cover.is-opened .invitation-cover-card {
  filter: blur(10px);
  transform: scale(1.04);
}

.invitation-cover-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.invitation-cover-text {
  position: absolute;
  top: 74%;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: #5c2d0e;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  text-shadow:
    0 0 12px rgba(255, 230, 180, 0.9),
    0 1px 2px rgba(255, 255, 255, 0.6);
  animation: cover-text-in 1.2s ease both;
}

.invitation-cover-hint {
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 8px 18px;
  border: 1px solid rgba(92, 45, 14, 0.2);
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.78);
  color: #5c2d0e;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes cover-text-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.page-wrapper {
  width: 100%;
  max-width: 500px;
  /* locks the mobile layout on desktop */
  background: #ffffff;
  box-shadow: 0 10px 50px rgba(156, 124, 43, 0.12);
  /* elegant warm gold shadow */
  animation: page-in 2.5s ease-out both;
  overflow-x: hidden;
}




/* ── Royal page entrance ────────────────────────────── */
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Section 1 — Proportional Flow Container ─────────── */
#couple {
  padding: 0;
  margin: 0 auto;
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.section-hero-img,
.section-hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* Ensures no white space borders */
}



/* ── Mantra & Names Styling ── */
.hero-top-mantra {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  font-weight: 700;
  color: #46443e;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-top-mantra.video-active {
  opacity: 1;
}

.hero-couple-names {
  position: absolute;
  top: 69%;
  /* Positioned above the couple, inside the arch center */
  left: 71%;
  transform: translate(-50%, -50%);
  z-index: 12;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.4rem, 3.5vw, 2.8rem);
  /* Slightly larger for main hero view */
  font-weight: 700;

  /* Gold-Glitter Shine Animation Properties */
  background: linear-gradient(120deg, #384e56 30%, #080808 50%, #384e56 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-couple-names.video-active {
  opacity: 1;
  animation: text-glitter-shine 4s linear infinite, royal-typing 2.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-couple-names .ampersand {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(0.6rem, 7vw, 4.2rem);

  /* Glitter properties for ampersand */
  background: linear-gradient(120deg, #b90d47 30%, #fff 50%, #dc0e64 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  animation: text-glitter-shine 3.5s linear infinite;

  margin: 2px 0;
}

@keyframes text-glitter-shine {
  0% {
    background-position: 200% center;
  }

  100% {
    background-position: -200% center;
  }
}


@keyframes royal-typing {
  0% {
    clip-path: inset(0 100% 0 0);
    /* completely hidden from right */
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    clip-path: inset(0 0 0 0);
    /* fully revealed */
    opacity: 1;
  }
}




/* ── Sparkles Effect ── */
.sparkles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  color: #e8d5a3;
  font-size: 1.5rem;
  text-shadow: 0 0 10px #fff, 0 0 20px #e8d5a3;
  opacity: 0;
  animation: sparkle-anim 4s infinite ease-in-out;
}

/* Random positioning and animation delays */
.sp-1 {
  top: 25%;
  left: 20%;
  animation-delay: 0s;
  font-size: 1rem;
}

.sp-2 {
  top: 35%;
  left: 75%;
  animation-delay: 1.2s;
  font-size: 1.4rem;
}

.sp-3 {
  top: 60%;
  left: 15%;
  animation-delay: 2.5s;
  font-size: 1.2rem;
}

.sp-4 {
  top: 50%;
  left: 80%;
  animation-delay: 0.7s;
  font-size: 1rem;
}

.sp-5 {
  top: 75%;
  left: 45%;
  animation-delay: 1.8s;
  font-size: 1.6rem;
}

@keyframes sparkle-anim {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.1) rotate(90deg);
  }
}


/* ── Shared divider ──────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 2rem;
  max-width: 320px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-icon {
  color: var(--gold);
  font-size: 1.1rem;
}

/* ── Section label ───────────────────────────────────── */
.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ── Shared section heading ──────────────────────────── */
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
}

.sec-title em {
  color: var(--gold);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════
}

.hero-names span { color: var(--gold); font-style: italic; }

.hero-amp {
  display: block;
  font-size: clamp(2rem, 8vw, 5rem);
  color: var(--gold);
  margin: 0.2em 0;
}

.hero-date {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.75rem, 2.5vw, 1rem);
  letter-spacing: 4px;
  color: var(--gold-lt);
  margin-top: 2rem;
  animation: fade-up 1s 0.6s both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── §2 Welcome Section ──────────────────────────────── */
#welcome {
  padding: 0;
  margin: -4px auto 0;
  /* slight negative margin to close visual gap completely */
  position: relative;
  width: 100%;
  max-width: 500px;
  /* limits size on desktop */
  aspect-ratio: 9 / 16;
  /* covers the full screen height on mobile */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Feathered top edge to blend seamlessly into Section 1 */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%);
}



#welcome .section-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.welcome-content {
  position: absolute;
  top: 36%;
  /* Shifts the entire block (ring + date) to the center empty area */
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 2;
  padding: 0;
  text-align: center;
  width: 90%;
  max-width: 420px;
  mix-blend-mode: multiply;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Ring live shimmer animation ── */
.ring-animation-wrapper {
  position: relative;
  width: 180px;
  height: 125px;
  /* Shorter height so it doesn't push date down */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: multiply;
  /* Ensures the white background of sibling elements blends correctly */
}

.ring-graphic {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(2.5); /* Scale the visual ring size without increasing layout container height */
  animation: ring-heartbeat-glow 4s ease-in-out infinite;
  mix-blend-mode: multiply;
  /* Make the white background transparent */
}

.engagement-date {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  letter-spacing: 4px;
  font-weight: 700;
  margin: -2.5rem 0 0;
  /* Normal margin below the scaled ring */
  text-align: center;
  display: block;

  /* Blackish-Gold Glitter Shine Text Effect */
  background: linear-gradient(120deg, #d82451 30%, #d8ad40 50%, #af2648 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  animation: text-glitter-shine 3.5s linear infinite;

  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}



@keyframes ring-heartbeat-glow {
  0% {
    transform: scale(1) rotate(0deg);
  }

  30% {
    transform: scale(1.08) rotate(3deg);
  }

  50% {
    transform: scale(0.96) rotate(-2deg);
  }

  70% {
    transform: scale(1.04) rotate(2deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}




/* ── §3 The Couple Details ────────────────────────────── */
#couple-details {
  padding: 0;
  margin: -4px auto 0;
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Load background image via CSS to enable child image blending */
  background-color: #ffffff;
  background-image: url('../haldi_bc.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}



.couple-content-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 4rem 2rem 2rem;
  text-align: center;
  isolation: auto;
  /* Forces child elements to blend with parent backgrounds */
}

.couple-names-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 420px;
  margin: 1.5rem auto 0;
}

.couple-side h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--gold);
  font-weight: 400;
}

.couple-parent {
  font-size: 0.8rem;
  color: var(--text-lt);
  margin-top: 6px;
  font-style: italic;
}

.couple-and {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: var(--text-lt);
}

.haldi-date {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  letter-spacing: 4px;
  font-weight: 700;
  margin: 3.5rem 0 0;
  text-align: center;
  display: block;

  /* Blackish-Gold Glitter Shine Text Effect */
  background: linear-gradient(120deg, #1c1a17 30%, #e8d5a3 50%, #1c1a17 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  animation: text-glitter-shine 3.5s linear infinite;

  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}



/* ── Haldi side decorations ── */
.haldi-decor-asset {
  position: absolute;
  bottom: 250px;
  /* Restored exact position */
  width: 50%;
  /* Larger size preserved */
  max-width: 220px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: darken;
  /* Restored */
  z-index: 1;
  opacity: 0;
  /* Hidden by default until scrolled into view */
}

.haldi-decor-left.animate-bounce {
  animation: bounce-in-left-asset 2.6s cubic-bezier(0.175, 0.885, 0.32, 1) both;
}

.haldi-decor-right.animate-bounce {
  animation: bounce-in-right-asset 2.6s cubic-bezier(0.175, 0.885, 0.32, 1) both;
}

.haldi-decor-left {
  left: -56px;
  /* Restored exact side position */
}

.haldi-decor-right {
  right: -56px;
  /* Restored exact side position */
}

/* Custom bounce keyframes sliding in from the left (preserving mirror scaleX) */
@keyframes bounce-in-left-asset {
  0% {
    transform: scaleX(-1) translateX(80px) scale(0.85);
    /* 80px offset left */
    opacity: 0;
  }

  60% {
    transform: scaleX(-1) translateX(-10px) scale(1.02);
    /* slight overshoot right */
    opacity: 0.9;
  }

  80% {
    transform: scaleX(-1) translateX(3px) scale(0.98);
    /* bounce correction */
    opacity: 0.95;
  }

  100% {
    transform: scaleX(-1) translateX(0) scale(1);
    /* settled exactly at left: -56px */
    opacity: 1;
  }
}

/* Custom bounce keyframes sliding in from the right */
@keyframes bounce-in-right-asset {
  0% {
    transform: translateX(80px) scale(0.85);
    /* 80px offset right */
    opacity: 0;
  }

  60% {
    transform: translateX(-10px) scale(1.02);
    /* slight overshoot left */
    opacity: 0.9;
  }

  80% {
    transform: translateX(3px) scale(0.98);
    /* bounce correction */
    opacity: 0.95;
  }

  100% {
    transform: translateX(0) scale(1);
    /* settled exactly at right: -56px */
    opacity: 1;
  }
}






@keyframes bounce-in-bottom {
  0% {
    transform: translate(-50%, 15%) scale(0.85);
    opacity: 0;
  }

  60% {
    transform: translate(-50%, -3%) scale(1.02);
    opacity: 0.9;
  }

  80% {
    transform: translate(-50%, 1%) scale(0.98);
    opacity: 0.95;
  }

  100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
}




@media (max-width: 600px) {
  .couple-names-wrapper {
    flex-direction: column;
    gap: 0.8rem;
  }
}


/* ── §4 Ceremonies Flow ────────────────────────────────── */
#ceremony {
  padding: 0;
  margin: -4px auto 0;
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mehndi-video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Video covers the whole area edge-to-edge */
  z-index: 1;
}

.event-content-overlay {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 420px;
  padding: 2rem;
  text-align: center;
  box-sizing: border-box;
}

.event-details-flow {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}


.event-item {
  position: relative;
  padding-bottom: 2rem;
}

.event-item::after {
  content: '✦';
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--border);
  font-size: 0.8rem;
}

.event-item:last-child::after {
  display: none;
}

.event-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 1rem;
}

.event-name {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--gold);
}

.event-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin: 0.5rem 0;
  color: var(--text);
}

.event-location {
  font-size: 0.9rem;
  color: var(--text-lt);
}

/* ── §5 The Sangeet Ceremony ─────────────────────────── */
#reception {
  padding: 0;
  margin: -4px auto 0;
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Load Sangeet background image via CSS */
  background-color: #ffffff;
  background-image: url('../sangeet_bc.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.sangeet-content-overlay {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 420px;
  padding: 4rem 2rem 2rem;
  text-align: center;
  box-sizing: border-box;
}



.wedding-flow {
  max-width: 600px;
  margin: 2rem auto 0;
}

.sangeet-time-text {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  font-weight: 500;
  color: #fcfafc;
  margin-bottom: 17rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.wedding-date-text {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.3rem, 5vw, 2rem);
  letter-spacing: 4px;
  font-weight: 600;
  margin-bottom: 7rem;
  text-align: center;
  display: block;
  opacity: 0;
  /* Starts hidden until scrolled into view */

  /* Blackish-Gold Glitter Shine Text Effect */
  background: linear-gradient(120deg, #1c1a17 30%, #e8d5a3 50%, #1c1a17 70%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;

  text-shadow: 0 1px 2px rgba(22, 20, 20, 0.4);
}

.wedding-date-text.animate-fade {
  /* Combines the glitter loops with a slow 1.8s fade-in triggered after a 0.3s delay */
  animation: text-glitter-shine 3.5s linear infinite, wedding-fade-in 1.8s ease-out 0.3s forwards;
}

@keyframes wedding-fade-in {
  0% {
    opacity: 0;
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}



.wedding-address {
  color: var(--text-lt);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.map-btn {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}

/* ── Google Maps Section ────────────────────────────── */
.map-section-wrapper {
  padding: 5rem 2rem;
  background: #fdfcf7;
  /* Matches section light bg */
  text-align: center;
  border-top: 1px solid var(--border);
}

.map-cursive-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  color: #800020;
  /* Royal Maroon */
  font-weight: 400;
  margin: 0.5rem 0 0;
}

.map-iframe-container {
  max-width: 460px;
  width: 95%;
  height: 250px;
  margin: 1.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.map-navigate-btn {
  display: inline-block;
  padding: 0.85rem 3rem;
  background: #b38f43;
  /* Soft Gold/Bronze Directions Button */
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 30px;
  /* Pill button styling */
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(179, 143, 67, 0.25);
  border: none;
}

.map-navigate-btn:hover {
  background: #800020;
  /* Royal Maroon hover state */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(128, 0, 32, 0.3);
}



/* ── §6 The Wedding Event ────────────────────────────── */
#gallery {
  padding: 0;
  margin: -4px auto 0;
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wedding-video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Video covers the whole area edge-to-edge */
  z-index: 1;
}

.gallery-content-overlay {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 420px;
  padding: 2rem;
  text-align: center;
  box-sizing: border-box;
}


/* ═══════════════════════════════════════════════════════
   §6  RSVP
═══════════════════════════════════════════════════════ */
#rsvp {
  padding: 6rem 2rem;
  background: var(--dark-2);
  text-align: center;
  position: relative;
}

.rsvp-subtext {
  color: var(--text-lt);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}

#rsvp::before,
#rsvp::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

#rsvp::before {
  top: 0;
}

#rsvp::after {
  bottom: 0;
}

.rsvp-form {
  max-width: 420px;
  width: 90%;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
}

.form-row {
  width: 100%;
  box-sizing: border-box;
}

.rsvp-form input,
.rsvp-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.2rem;
  background: #fdfbf7;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Custom dropdown trigger size parity */
.custom-select-trigger {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.2rem;
  background: #fdfbf7;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.rsvp-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239c7c2b' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 12px 8px;
  padding-right: 2.5rem;
}

.rsvp-form input::placeholder {
  color: rgba(26, 18, 8, 0.45);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.custom-select-trigger:hover {
  border-color: #800020;
  box-shadow: 0 0 8px rgba(128, 0, 32, 0.25);
  background: #ffffff;
}

.rsvp-form select option {
  background: #fdfbf7;
  color: var(--text);
  font-family: 'Lato', sans-serif;
}

/* ── Custom Theme Dropdown Styling ── */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}


.custom-arrow {
  font-size: 0.65rem;
  color: var(--gold);
  transition: transform 0.3s;
}

.custom-options {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: #fdfcf7;
  /* matches section light bg */
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 8px 20px rgba(156, 124, 43, 0.1);
  z-index: 99;
  display: none;
  overflow: hidden;
}

.custom-options.show {
  display: block;
}

.custom-option {
  padding: 0.9rem 1.2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.custom-option:hover {
  background: #800020;
  /* Royal Maroon accent hover */
  color: #ffffff;
}

.rsvp-btn {
  padding: 1rem;
  background: #800020;
  /* Royal Maroon primary color button */
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(128, 0, 32, 0.15);
}

.rsvp-btn:hover {
  background: #5c0017;
  /* Darker royal maroon hover state */
  transform: translateY(-2px);
}

.rsvp-btn:active {
  transform: translateY(0);
}

/* ── Changeable Venue Text Block Styling ── */
.changeable-venue-details {
  margin: 1.5rem auto;
  max-width: 400px;
  text-align: center;
}

.venue-title-text {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #800020;
  /* Royal Maroon accent */
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.venue-address-text {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text-lt);
  line-height: 1.5;
}


.form-success {
  display: none;
  margin-top: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold);
  font-style: italic;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── §7 RSVP & Footer combined ────────────────────────── */
.footer-blessings {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.footer-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.footer-quote strong {
  color: var(--gold);
  font-style: normal;
}

.footer-bottom {
  margin-top: 2rem;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(26, 18, 8, 0.45);
}

.back-btn {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.3s;
}

.back-btn:hover {
  opacity: 0.6;
}

/* ── Sangeet Live Effect ── */
.sangeet-live-effect .sparkle {
  color: #ffb7d2;
  text-shadow: 0 0 10px #fff, 0 0 20px #ff69b4, 0 0 30px #da70d6;
  animation: sangeet-sparkle-anim 6s infinite ease-in-out;
}

@keyframes sangeet-sparkle-anim {

  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(0.7);
    opacity: 0;
  }

  50% {
    transform: translateY(-40px) rotate(180deg) scale(1.2);
    opacity: 0.95;
  }
}

.engagement-cursive-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  color: #be4060;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 0.5rem;
}

.sangeet-cursive-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.8rem, 9vw, 4.5rem);
  color: #fcedf5;
  margin-bottom: -0.5rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  text-align: center;
}

.sangeet-cursive-desc {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  color: #f0a9de;
  margin-bottom: 5.5rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  text-align: center;
}

/* ── Scroll Reveal Entrance Animation ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Continuous Live Text Effect ── */
.live-text-effect {
  display: inline-block;
  /* Ensure transforms work properly on inline/text elements */
  animation: live-text-pulse 4s ease-in-out infinite;
}

@keyframes live-text-pulse {

  0%,
  100% {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
  }

  50% {
    text-shadow: 0 4px 12px rgba(231, 151, 211, 0.4), 0 1px 2px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }
}
