/* ==========================================================================
   TEMPLATE M31 - VELVET WINE RED / WEDINVITEONLINE 300809YHO
   Design System: Burgundy / Velvet Wine Red (#840B1E), Calla Lilies,
   Lora serif & Pinyon Script calligraphy, Live Countdown, Pulsing Calendar Heart.
   ========================================================================== */

:root {
  --color-primary: #840B1E;
  --color-primary-dark: #620715;
  --color-primary-trans: rgba(132, 11, 30, 0.85);
  --color-card-bg: rgba(90, 8, 20, 0.55);
  --color-accent: #F4D5D2;
  --color-accent-soft: rgba(244, 213, 210, 0.7);
  --color-white: #FFFFFF;
  --color-text-dim: rgba(255, 255, 255, 0.85);
  --border-glass: 1px solid rgba(255, 255, 255, 0.22);
  --font-script: 'Pinyon Script', cursive;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Palette constraint for backend validation */
[data-palette="template300809yho"] {
  --theme-bg: #840B1E;
  --theme-accent: #F4D5D2;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: #1a0206;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   GATEFOLD VELVET CURTAIN OVERLAY (MÀN NHUNG ĐỎ MỞ RA HAI CÁNH)
   ========================================================================== */
.curtain-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  margin: 0 auto;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
}

.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background-color: var(--color-primary);
  transition: transform 1.25s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.panel-left {
  left: 0;
  background: linear-gradient(90deg, #4d0611 0%, #840B1E 25%, #630715 50%, #840B1E 75%, #4d0611 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset -8px 0 25px rgba(0, 0, 0, 0.45);
}

.panel-right {
  right: 0;
  background: linear-gradient(270deg, #4d0611 0%, #840B1E 25%, #630715 50%, #840B1E 75%, #4d0611 100%);
  border-left: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: inset 8px 0 25px rgba(0, 0, 0, 0.45);
}

.curtain-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.curtain-content-lock {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: opacity 0.5s ease, transform 0.6s ease;
  padding: 0 20px;
}

.curtain-couple-tag {
  text-align: center;
}

.curtain-subtext {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--color-accent);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.curtain-names {
  font-family: var(--font-script);
  font-size: 34px;
  color: var(--color-white);
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
}

.wax-seal-box {
  position: relative;
  width: 110px;
  height: 110px;
  cursor: pointer;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

.wax-seal-box:hover {
  transform: scale(1.08);
}

.wax-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.seal-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(244, 213, 210, 0.5);
  animation: rotateSlow 20s linear infinite;
  pointer-events: none;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-open-curtain {
  background: var(--color-white);
  border: none;
  border-radius: 25px;
  padding: 12px 34px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.btn-open-curtain:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 213, 210, 0.4);
}

.btn-open-text {
  font-family: var(--font-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* Curtain Opened State */
.curtain-overlay.is-opened .panel-left {
  transform: translateX(-100%);
}

.curtain-overlay.is-opened .panel-right {
  transform: translateX(100%);
}

.curtain-overlay.is-opened .curtain-content-lock {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.curtain-overlay.is-opened .curtain-seam {
  opacity: 0;
}

.curtain-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* ==========================================================================
   CONTAINER / PAGE STAGE (MOBILE CONSTRAINED 440px)
   ========================================================================== */
.page-stage {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--color-primary);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow-x: hidden;
}

/* ==========================================================================
   AMBIENT FALLING PETALS
   ========================================================================== */
.ambient-petals-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
  overflow: hidden;
}

.falling-petal {
  position: absolute;
  top: -20px;
  background: radial-gradient(circle, #F4D5D2 0%, rgba(244, 213, 210, 0.2) 80%);
  border-radius: 50% 0 50% 50%;
  opacity: 0.75;
  filter: blur(0.5px);
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0% {
    transform: translateY(-20px) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* ==========================================================================
   FLOATING AUDIO CONTROLLER (VINYL SPIN)
   ========================================================================== */
.floating-audio-widget {
  position: fixed;
  top: 18px;
  right: calc(50% - 200px);
  z-index: 100;
}

@media (max-width: 440px) {
  .floating-audio-widget {
    right: 16px;
  }
}

.btn-audio-spin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(40, 3, 9, 0.75);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.btn-audio-spin:hover {
  transform: scale(1.08);
}

.btn-audio-spin.is-playing .disc-vinyl {
  display: block;
  animation: spinVinyl 5s linear infinite;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   SECTION 1: HERO COVER
   ========================================================================== */
.section-hero {
  position: relative;
  width: 100%;
  min-height: 580px;
  height: 90vh;
  max-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-primary);
}

.hero-photo-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(132, 11, 30, 0.15) 0%,
    rgba(132, 11, 30, 0.35) 45%,
    rgba(132, 11, 30, 0.85) 80%,
    var(--color-primary) 100%);
  z-index: 2;
}

.hero-decor.decor-top-left {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.9;
}

.decor-calla-img {
  width: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 20px 40px;
  width: 100%;
}

.hero-sublead {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-name-groom,
.hero-name-bride {
  font-family: var(--font-script);
  font-size: 46px;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  color: var(--color-accent);
}

.hero-date-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(5px);
}

.hero-date-text {
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: 500;
  color: var(--color-white);
}

.hero-scroll-hint {
  position: relative;
  z-index: 4;
  margin-bottom: 16px;
  animation: bounceDown 2s infinite ease-in-out;
}

.scroll-arrow {
  font-size: 18px;
  color: var(--color-accent);
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ==========================================================================
   SECTION 2: COUNTDOWN & PORTRAIT
   ========================================================================== */
.section-countdown {
  position: relative;
  padding: 40px 20px 30px;
  background-color: var(--color-primary);
  text-align: center;
}

.section-decor-calla-h {
  width: 90px;
  margin: 0 auto 16px;
  opacity: 0.95;
}

.calla-h-img {
  width: 100%;
  display: block;
}

.countdown-heading {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 24px;
  text-transform: uppercase;
  font-weight: 400;
}

.countdown-clock {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.cd-box {
  flex: 1;
  max-width: 74px;
  padding: 12px 6px;
  background: rgba(0, 0, 0, 0.25);
  border: var(--border-glass);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cd-num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.1;
}

.cd-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-top: 6px;
  text-transform: uppercase;
  font-weight: 500;
}

.portrait-card-wrap {
  padding: 0 6px;
}

.portrait-frame {
  border-radius: 20px;
  overflow: hidden;
  border: var(--border-glass);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  aspect-ratio: 3/4;
  max-height: 480px;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   SECTION 3: CALENDAR WITH PULSING HEART
   ========================================================================== */
.section-calendar {
  padding: 25px 20px;
  background-color: var(--color-primary);
}

.calendar-card {
  background: var(--color-card-bg);
  border: var(--border-glass);
  border-radius: 20px;
  padding: 28px 18px 22px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.cal-month-title {
  font-family: var(--font-script);
  font-size: 34px;
  color: var(--color-white);
  margin-bottom: 20px;
  font-weight: 400;
}

.cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px 0;
  margin-bottom: 20px;
}

.cal-day-cell {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-white);
  position: relative;
}

.cal-day-cell.is-blank {
  pointer-events: none;
}

.heart-pulse-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  animation: pulseHeart 1.6s infinite ease-in-out;
}

.svg-heart-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #FFFFFF;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.heart-day-num {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

@keyframes pulseHeart {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

.calendar-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--color-accent);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   SECTION 4: INVITATION LEAD & COUPLE DETAILS
   ========================================================================== */
.section-invitation {
  padding: 35px 20px;
  background-color: var(--color-primary);
  text-align: center;
}

.invitation-lead-box {
  margin-bottom: 22px;
}

.invitation-lead-line {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin: 4px 0;
  text-transform: uppercase;
  font-weight: 500;
}

.couple-names-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.display-groom,
.display-bride {
  font-family: var(--font-script);
  font-size: 42px;
  color: var(--color-white);
  margin: 0;
  font-weight: 400;
}

.display-amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--color-accent);
}

.couple-profiles-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-card {
  background: rgba(0, 0, 0, 0.22);
  border: var(--border-glass);
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
}

.profile-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: var(--border-glass);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-role {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-accent);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.profile-fullname {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--color-white);
  margin: 0 0 8px;
  font-weight: 600;
}

.profile-parents {
  font-size: 11px;
  color: var(--color-text-dim);
  line-height: 1.5;
}

.parent-line {
  margin: 2px 0;
}

/* ==========================================================================
   SECTION 5: CEREMONY & PARTY EVENT CARDS
   ========================================================================== */
.section-events {
  padding: 30px 20px;
  background-color: var(--color-primary);
  position: relative;
}

.events-side-decor {
  position: absolute;
  right: -5px;
  top: 10px;
  width: 65px;
  pointer-events: none;
  opacity: 0.8;
  z-index: 1;
}

.events-cards-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.event-velvet-card {
  background: var(--color-card-bg);
  border: var(--border-glass);
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.event-name {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--color-white);
  text-transform: uppercase;
  margin: 0 0 6px;
  font-weight: 600;
}

.event-time-clock {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.event-divider-line {
  width: 50px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin: 0 auto 16px;
}

.event-date-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 1px;
}

.event-lunar-text {
  font-size: 12px;
  color: var(--color-accent);
  margin: 4px 0 16px;
  font-style: italic;
}

.event-pin-wrap {
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--color-accent);
}

.event-place {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 6px;
}

.event-address {
  font-size: 13px;
  color: var(--color-text-dim);
  line-height: 1.5;
  margin: 0 0 20px;
}

.btn-event-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border: 1px solid #FFFFFF;
  border-radius: 25px;
  color: var(--color-primary);
  background: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.btn-event-map:hover {
  transform: translateY(-2px);
  background: var(--color-accent);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.pulse-btn {
  animation: mapGlow 2.5s infinite;
}

@keyframes mapGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

/* ==========================================================================
   SECTION 6: DRESS CODE
   ========================================================================== */
.section-dresscode {
  padding: 10px 20px 30px;
  background-color: var(--color-primary);
}

.dresscode-card {
  background: rgba(0, 0, 0, 0.2);
  border: var(--border-glass);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
}

.dresscode-title {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--color-white);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.dresscode-sub {
  font-size: 12px;
  color: var(--color-accent);
  line-height: 1.5;
  margin: 0 0 18px;
}

.dresscode-swatches {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.swatch-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.swatch-white { background: #FFFFFF; }
.swatch-pink { background: #F4D5D2; }
.swatch-black { background: #1A1A1A; }
.swatch-sage { background: #4E5B42; }

.swatch-name {
  font-size: 11px;
  color: var(--color-white);
  font-weight: 500;
}

/* ==========================================================================
   SECTION 7: WEDDING ALBUM (2-COLUMN GRID)
   ========================================================================== */
.section-album {
  padding: 35px 20px;
  background-color: var(--color-primary);
  text-align: center;
}

.album-script-title {
  font-family: var(--font-script);
  font-size: 40px;
  color: var(--color-white);
  margin: 0 0 6px;
  font-weight: 400;
}

.album-sublead {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.album-item {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  border: var(--border-glass);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.album-item:hover {
  transform: scale(1.02);
}

.album-img-wrap {
  width: 100%;
  height: 100%;
}

.album-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   SECTION 8: RSVP FORM
   ========================================================================== */
.section-rsvp {
  padding: 35px 20px;
  background-color: var(--color-primary);
  text-align: center;
}

.rsvp-script-title {
  font-family: var(--font-script);
  font-size: 40px;
  color: var(--color-white);
  margin: 0 0 8px;
  font-weight: 400;
}

.rsvp-intro {
  font-size: 13px;
  color: var(--color-accent);
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 0 10px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  width: 100%;
}

.pill-input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  border-radius: 23px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.22);
  color: #FFFFFF;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: all 0.25s ease;
}

.pill-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.pill-input:focus {
  border-color: #FFFFFF;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.pill-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 18px) center;
}

.pill-select option {
  background: var(--color-primary-dark);
  color: #FFFFFF;
}

.btn-rsvp-pill {
  height: 48px;
  border-radius: 24px;
  border: none;
  background: #FFFFFF;
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-rsvp-pill:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   SECTION 9: WEDDING GIFTS & BANKING
   ========================================================================== */
.section-gifts {
  padding: 35px 20px;
  background-color: var(--color-primary);
  text-align: center;
}

.gifts-script-title {
  font-family: var(--font-script);
  font-size: 40px;
  color: var(--color-white);
  margin: 0 0 6px;
  font-weight: 400;
}

.gifts-sublead {
  font-size: 13px;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.gifts-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gift-white-card {
  background: var(--color-card-bg);
  border: var(--border-glass);
  border-radius: 18px;
  padding: 24px 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-qr-box {
  width: 170px;
  height: 170px;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 18px;
}

.gift-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gift-details {
  width: 100%;
}

.gift-owner {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gift-bank {
  font-size: 13px;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.gift-account-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.acc-number {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 1px;
}

.btn-copy-acc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: #FFFFFF;
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 12px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-acc:hover {
  background: var(--color-accent);
}

.gift-caption {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 10: THANK YOU FULL-PHOTO CARD & BRAND FOOTER
   ========================================================================== */
.section-thanks {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  overflow: hidden;
}

.thanks-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.thanks-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thanks-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    var(--color-primary) 0%,
    rgba(132, 11, 30, 0.75) 50%,
    rgba(132, 11, 30, 0.4) 100%);
}

.thanks-content {
  position: relative;
  z-index: 2;
  background: rgba(90, 8, 20, 0.7);
  border: var(--border-glass);
  border-radius: 20px;
  padding: 32px 22px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  max-width: 360px;
}

.thanks-script-heading {
  font-family: var(--font-script);
  font-size: 42px;
  color: var(--color-white);
  margin: 0 0 14px;
  font-weight: 400;
}

.thanks-text {
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.thanks-sig {
  font-family: var(--font-script);
  font-size: 32px;
  color: var(--color-accent);
  margin: 0;
}

/* Standard Footer with Brand Link */
.section-footer {
  padding: 24px 20px;
  background-color: var(--color-primary-dark);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-names {
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--color-accent);
  margin: 0 0 6px;
}

.footer-powered {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.catalog-link {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: 600;
}

/* ==========================================================================
   FULLSCREEN IMAGE LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
}

.btn-lightbox-prev,
.btn-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.btn-lightbox-prev { left: -16px; }
.btn-lightbox-next { right: -16px; }

.btn-lightbox-prev:hover,
.btn-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-photo-wrap {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.lightbox-indexer {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notify {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(20, 20, 20, 0.95);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 12px;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-notify.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   ENTRANCE ANIMATIONS (TRIGGERED VIA INTERSECTION OBSERVER)
   ========================================================================== */
.anim-fade-up,
.anim-fade-down,
.anim-fade-in,
.anim-zoom-in,
.anim-slide-left,
.anim-slide-right {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.anim-fade-up { transform: translateY(30px); }
.anim-fade-down { transform: translateY(-30px); }
.anim-fade-in { transform: none; }
.anim-zoom-in { transform: scale(0.92); }
.anim-slide-left { transform: translateX(-35px); }
.anim-slide-right { transform: translateX(35px); }

.anim-active {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}
