/* ==========================================================================
   LACE LUXURY WEDDING INVITATION — DESIGN SYSTEM & STYLESHEET
   Mobile-First Luxury Container Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --bg: #F7F5F3;               /* Warm Ivory Background for Invitation */
  --desktop-bg: #EFEBE6;       /* Luxury Cream Backdrop on Desktop */
  --wine: #521F2C;             /* Deep Burgundy (Primary Text & Dark Sections) */
  --wine-2: #6F2A3B;           /* Burgundy (Countdown & Accents) */
  --blush: #F3E8E8;            /* Soft Blush (Cards & Panels) */
  --muted: #8A5A66;            /* Muted Burgundy (Subtitles & Secondary Text) */
  --line: #D9D2CB;             /* Delicate Warm Border Line */
  --ivory: #F7F5F3;            /* Pure Ivory Text on Dark Sections */
  --ivory-muted: rgba(247, 245, 243, 0.78);
  --gold-accent: #C8A97E;      /* Subtle Warm Gold Accent */

  /* Typography */
  --font-serif: 'Amiri', 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --font-script: 'Monsieur La Doulaise', cursive;
  --font-accent-script: 'Ballet', cursive;
  --font-body: 'Amiri', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Dimensions */
  --app-max-w: 430px;          /* Mobile Frame Width (Phone Screen) */
  --section-pad: 64px 20px;    /* Consistent 64px top/bottom padding */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   1. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background-color: var(--bg);
  color: var(--wine);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* Soft Bright Lace Background on Desktop (min-width: 600px) */
@media (min-width: 600px) {
  body::before {
    content: '';
    position: fixed;
    inset: -30px;
    background-image: url('../assets/images/cover.webp');
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(1.1) saturate(0.6);
    opacity: 0.35;
    z-index: -2;
    pointer-events: none;
  }

  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(253, 251, 247, 0.85);
    z-index: -1;
    pointer-events: none;
  }
}

html.scroll-locked,
body.scroll-locked {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
}

/* Centered Mobile App Container ("ع قد الجوال" - Phone Screen Column) */
.site-wrapper {
  width: 100%;
  max-width: var(--app-max-w); /* 430px */
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg);
  position: relative;
  box-shadow: 
    0 0 35px rgba(82, 31, 44, 0.08),
    0 15px 50px rgba(0, 0, 0, 0.07);
  border-left: 1px solid rgba(82, 31, 44, 0.08);
  border-right: 1px solid rgba(82, 31, 44, 0.08);
  overflow-x: clip;
  overflow-y: visible;
  display: flex;
  flex-direction: column;
  direction: rtl;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Inner Container */
.container {
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
}

.text-center {
  text-align: center;
}

/* Standard Section Layout */
.section {
  padding: var(--section-pad);
  position: relative;
}

/* Headings & Typography Hierarchy */
.section-tag {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-tag-ivory {
  color: var(--ivory-muted);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--wine);
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-title-ivory {
  color: var(--ivory);
}

/* Subtle Floral Divider */
.floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px auto 0;
  max-width: 220px;
  color: var(--muted);
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--line);
}

.divider-diamond {
  font-size: 0.75rem;
  opacity: 0.7;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   2. BUTTONS (PILL-SHAPED LUXURY OUTLINE)
   -------------------------------------------------------------------------- */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--wine);
  background: transparent;
  color: var(--wine);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 13px 32px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pill-btn:hover, .pill-btn:focus-visible {
  background-color: rgba(82, 31, 44, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(82, 31, 44, 0.08);
}

.pill-btn-ivory {
  border-color: var(--ivory);
  color: var(--ivory);
}

.pill-btn-ivory:hover, .pill-btn-ivory:focus-visible {
  background-color: rgba(247, 245, 243, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   3. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* --------------------------------------------------------------------------
   4. HERO / ENVELOPE OPENING (SECTION 1 — FULL HEIGHT & FULL COLUMN WIDTH)
   -------------------------------------------------------------------------- */
.hero-section {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  margin: 0;
  background-color: var(--bg);
}

.hero-bg-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  display: block;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  display: block;
  background-color: transparent;
  pointer-events: none;
}

.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
}

.intro-cover-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: var(--bg);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.intro-cover-wrap.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Interactive Wax Seal Trigger */
.seal-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 135px;
  height: 135px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  z-index: 6;
}

.seal-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.7);
  animation: seal-pulse 2.8s infinite ease-in-out;
  pointer-events: none;
}

.seal-prompt {
  position: absolute;
  bottom: -46px;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
  animation: prompt-fade 2.4s infinite ease-in-out;
  padding: 5px 14px;
  border-radius: 12px;
  background: rgba(82, 31, 44, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes seal-pulse {
  0% { transform: scale(0.92); opacity: 0.35; }
  50% { transform: scale(1.08); opacity: 0.9; }
  100% { transform: scale(0.92); opacity: 0.35; }
}

@keyframes prompt-fade {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* Hero Names & Details: EXACT SAME POSITION before & after Enter, NO movement, NO zoom */
.hero-names-in-card {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-names-in-card.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.enter-invitation-btn {
  margin-top: 14px;
  background: rgba(82, 31, 44, 0.88);
  color: var(--ivory);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 8px 24px;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(82, 31, 44, 0.25);
  animation: enter-btn-pulse 2.2s infinite ease-in-out;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.enter-invitation-btn:hover {
  background: var(--wine);
  transform: scale(1.05);
}

@keyframes enter-btn-pulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 16px rgba(82, 31, 44, 0.25); }
  50% { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(82, 31, 44, 0.4); }
}

/* Floating Audio Toggle (Bounded to 430px Column) */
.music-toggle-container {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--app-max-w));
  pointer-events: none;
  z-index: 900;
  display: flex;
  justify-content: flex-end;
  padding-right: 16px;
  padding-left: 16px;
  direction: ltr;
}

.music-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(82, 31, 44, 0.3);
  background: rgba(247, 245, 243, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--wine);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(82, 31, 44, 0.15);
  transition: var(--transition-smooth);
  pointer-events: auto;
}

.music-toggle:hover {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.92);
}

.music-waves {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.music-bar {
  width: 2px;
  height: 100%;
  background-color: var(--wine);
  border-radius: 2px;
  transform-origin: bottom;
  animation: wave-bar 1.2s ease-in-out infinite alternate;
}

.music-bar:nth-child(1) { animation-delay: 0.1s; height: 40%; }
.music-bar:nth-child(2) { animation-delay: 0.3s; height: 90%; }
.music-bar:nth-child(3) { animation-delay: 0.5s; height: 60%; }
.music-bar:nth-child(4) { animation-delay: 0.2s; height: 100%; }

.music-toggle.is-paused .music-bar {
  animation-play-state: paused;
  height: 25% !important;
  opacity: 0.5;
}

@keyframes wave-bar {
  0% { transform: scaleY(0.25); }
  100% { transform: scaleY(1); }
}

.hero-names-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 2px;
}

.hero-names {
  margin: 0 auto;
  line-height: 0.88;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  direction: ltr !important;
  unicode-bidi: embed;
}

.hero-name-first, .hero-name-second {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 11vw, 4.2rem);
  color: var(--wine);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.88;
}

.hero-amp {
  font-family: var(--font-accent-script);
  font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  color: var(--muted);
  margin: -4px 0;
  opacity: 0.85;
  line-height: 1;
}

.hero-date-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 10px;
}

.hero-line {
  width: 32px;
  height: 1px;
  background-color: var(--wine);
  opacity: 0.35;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--wine);
}

.hero-illustration {
  width: 105px;
  margin: 0 auto 8px;
  opacity: 0.95;
}

.hero-villa-svg {
  width: 100%;
  height: auto;
}

.hero-venue {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--wine);
  margin-bottom: 2px;
  line-height: 1.2;
}

.hero-location {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   6. INTRO TEXT SECTION (SECTION 2)
   -------------------------------------------------------------------------- */
.intro-text-section {
  background-color: var(--bg);
}

.intro-art-wrap {
  width: 140px;
  margin: 0 auto 24px;
}

.intro-swans-svg {
  width: 100%;
  height: auto;
}

.intro-paragraph {
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--wine);
  letter-spacing: 0.015em;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   7. COUNTDOWN SECTION (SECTION 3)
   -------------------------------------------------------------------------- */
.countdown-section {
  background-color: var(--wine-2);
  background-image: url('../assets/images/tulle-texture-burgundy.webp');
  background-repeat: repeat;
  background-size: 400px 400px;
  color: var(--ivory);
  padding: 110px 20px;
  position: relative;
  overflow: visible;
  text-align: center;
  z-index: 5;
}

/* Scalloped Lace Framing */
.lace-border-wrap {
  position: absolute;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 10;
  line-height: 0;
  pointer-events: none;
  overflow: hidden;
}

.lace-border-top {
  top: -45px;
}

.lace-border-bottom {
  bottom: -45px;
}

.lace-border-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Ribbon Bow Frame Around Content */
.countdown-inner-wrap {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  position: relative;
  z-index: 6;
}

.countdown-bow-frame {
  position: relative;
  padding: 48px 16px;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
}

.countdown-bow-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  opacity: 0.95;
}

.countdown-content {
  position: relative;
  z-index: 2;
}

.countdown-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 7.5vw, 2.9rem);
  font-weight: 400;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  direction: ltr;
  display: inline-block;
}

.countdown-label {
  font-family: var(--font-serif);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--ivory-muted);
  margin-top: 8px;
  text-transform: uppercase;
}

.countdown-colon {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--ivory-muted);
  opacity: 0.6;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   9. PEARL GARLAND SECTION (SECTION 5 — FITS IMAGE ONLY)
   -------------------------------------------------------------------------- */
.pearl-garland-section {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
  background-color: var(--bg);
  line-height: 0;
}

.pearl-garland-wrap {
  width: 150%;
  margin-left: -25%;
  position: relative;
  line-height: 0;
}

.pearl-garland-base {
  width: 100%;
  height: auto;
  display: block;
}

.pearl-strand {
  position: absolute;
  top: 9%;
  transform-origin: top center;
  animation: pearl-swing ease-in-out infinite alternate;
  pointer-events: none;
}

.pearl-strand-img {
  width: 100%;
  height: auto;
  display: block;
}

.strand-0 {
  left: 6.8%;
  width: 12.8%;
  animation-duration: 4.2s;
  animation-delay: 0s;
}

.strand-1 {
  left: 25.8%;
  width: 11.6%;
  animation-duration: 3.4s;
  animation-delay: 0.6s;
}

.strand-2 {
  left: 44.7%;
  width: 10.5%;
  animation-duration: 4.8s;
  animation-delay: 0.2s;
}

.strand-3 {
  left: 63.7%;
  width: 11.6%;
  animation-duration: 3.7s;
  animation-delay: 0.9s;
}

.strand-4 {
  left: 81.2%;
  width: 12.8%;
  animation-duration: 4.5s;
  animation-delay: 0.4s;
}

@keyframes pearl-swing {
  0% { transform: rotate(-2.5deg); }
  100% { transform: rotate(2.5deg); }
}

/* --------------------------------------------------------------------------
   11. COUPLE SECTION (العرسان الذين يمشون)
   -------------------------------------------------------------------------- */
.dress-code-section {
  background-color: transparent;
  padding: 0 20px 48px !important;
  margin-top: clamp(-150px, -32vw, -120px);
  position: relative;
  z-index: 3;
}

.dress-code-couple {
  width: 195px;
  max-width: 80%;
  margin: 0 auto;
}

.dress-code-couple-img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   15. RSVP SECTION (SECTION 11)
   -------------------------------------------------------------------------- */
.rsvp-section {
  background-color: var(--wine);
  color: var(--ivory);
}

.rsvp-art-wrap {
  width: 140px;
  margin: 0 auto 18px;
}

.rsvp-locket-svg {
  width: 100%;
  height: auto;
}

.rsvp-deadline-text {
  font-size: 0.98rem;
  color: #F5EDE8;
  opacity: 0.85;
  margin-bottom: 36px;
  line-height: 1.7;
}

.rsvp-card {
  background: rgba(247, 245, 243, 0.05);
  border: 1px solid rgba(247, 245, 243, 0.2);
  border-radius: 20px;
  padding: 32px 20px;
  text-align: left;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 400;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  text-align: right;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(247, 245, 243, 0.06);
  border: 1px solid rgba(247, 245, 243, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
  color: #FFFFFF;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  text-align: right;
  direction: rtl;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #FFFFFF;
  background: rgba(247, 245, 243, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-textarea {
  min-height: 95px;
  resize: vertical;
}

/* Custom Styled Radio Buttons */
.radio-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-card-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 11px 12px;
  border: 1px solid rgba(247, 245, 243, 0.25);
  border-radius: 10px;
  background: rgba(247, 245, 243, 0.04);
  color: var(--ivory-muted);
  cursor: pointer;
  font-size: 0.84rem;
  transition: var(--transition-smooth);
  user-select: none;
}

.radio-card-label input[type="radio"] {
  display: none;
}

.radio-card-label:hover {
  background: rgba(247, 245, 243, 0.1);
}

.radio-card-label.is-selected {
  border-color: #FFFFFF;
  background: rgba(247, 245, 243, 0.2);
  color: #FFFFFF;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.rsvp-submit-wrap {
  text-align: center;
  margin-top: 28px;
}

.rsvp-submit-btn {
  width: 100%;
}

/* Thank You State */
.rsvp-thankyou {
  text-align: center;
  padding: 26px 8px;
}

.rsvp-thankyou.hidden {
  display: none;
}

.rsvp-thankyou-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.rsvp-thankyou-msg {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ivory-muted);
}

/* --------------------------------------------------------------------------
   16. FOOTER SECTION (SECTION 12)
   -------------------------------------------------------------------------- */
.footer-section {
  background-color: var(--bg);
  padding: 64px 20px 96px;
  position: relative;
}

.footer-rings-art {
  width: 125px;
  margin: 0 auto 22px;
}

.footer-rings-svg {
  width: 100%;
  height: auto;
}

.footer-quote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-closing {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  letter-spacing: 0.15em;
  color: var(--wine);
  margin-bottom: 4px;
}

.footer-names {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 7.5vw, 3.2rem);
  color: var(--wine);
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.1;
  direction: ltr !important;
  unicode-bidi: embed;
}

.amp-script {
  font-family: var(--font-accent-script);
  font-size: 2.1rem;
  margin: 0 4px;
  color: var(--muted);
}

.footer-date {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS (MOBILE & DESKTOP ALIGNMENT)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --section-pad: 64px 16px;
  }

  body {
    background-color: var(--bg);
    background-image: none;
  }

  .site-wrapper {
    max-width: 100%;
    box-shadow: none;
  }

  .radio-options-grid {
    grid-template-columns: 1fr;
  }
}
