@charset "utf-8";

/* ==========================================================================
   FONTS
   ========================================================================== */
@font-face {
  font-family: 'BL Kaelyna Script';
  src: url('/fonts/BL%20Kaelyna%20Script%20.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'UTM Times';
  src: url('/fonts/UTM-Times.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'UTM Times';
  src: url('/fonts/UTM-Times-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'UTM Times';
  src: url('/fonts/UTM-Times-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Times New Roman';
  src: local('Times New Roman'), url('/fonts/Times-New-Roman.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Times New Roman';
  src: local('Times New Roman Bold'), url('/fonts/Times-New-Roman-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Times New Roman';
  src: local('Times New Roman Italic'), url('/fonts/Times-New-Roman-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'DFVN Ogg';
  src: url('/fonts/DFVN-Ogg-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DFVN Ogg';
  src: url('/fonts/DFVN-Ogg-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DFVN Ogg';
  src: url('/fonts/DFVN-Ogg-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DFVN Ogg';
  src: url('/fonts/DFVN-Ogg-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'DFVN Ogg';
  src: url('/fonts/DFVN-Ogg-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'SVN Darleston';
  src: url('/fonts/SVN-Darleston.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   CSS VARIABLES & THEMING
   ========================================================================== */
:root {
  color-scheme: light;
  --paper: #f2efeb;
  --paper-deep: #eae6de;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --line: #d8d2c7;
  --line-soft: #e5dfd5;
  --wine: #5c0909;
  --wine-dark: #420606;
  --accent: #5c0909;
  --accent-ink: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
  --serif: "DFVN Ogg", "Times New Roman", Times, serif;
  --script: "BL Kaelyna Script", "SVN Darleston", cursive, serif;
  --sans: "Times New Roman", Times, serif;
  scroll-behavior: smooth;
}

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

html {
  scroll-padding-top: 15px;
  background-color: #e5dfd7;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--sans);
  color: var(--ink);
  background-color: #e5dfd7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
button, input { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
  font-size: 11px;
}
.skip-link:focus { top: 10px; }

/* ==========================================================================
   FLOATING MUSIC TOGGLE BUTTON
   ========================================================================== */
.music-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(92, 9, 9, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
  padding: 0;
}

.music-toggle:hover {
  transform: scale(1.08);
  background: rgba(92, 9, 9, 0.95);
}

.music-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.music-toggle.is-playing .music-disc {
  animation: music-spin 4s linear infinite;
}

.music-toggle.is-paused {
  opacity: 0.65;
  background: rgba(70, 70, 70, 0.75);
}

.music-icon {
  width: 20px;
  height: 20px;
}

@keyframes music-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   MOBILE SHELL WRAPPER
   ========================================================================== */
.wedding-mobile-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background-color: var(--paper);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  container-type: inline-size;
}

/* Top App Header */
.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(242, 239, 235, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-brand {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--wine);
}

.mobile-brand span {
  font-family: var(--script);
  font-size: 16px;
  color: var(--muted);
  padding: 0 2px;
}

.mobile-header-cta {
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
  color: var(--wine);
  border: 1px solid var(--wine);
  border-radius: 999px;
  padding: 5px 12px;
  transition: all 180ms ease;
}

.mobile-header-cta:hover, .mobile-header-cta:focus-visible {
  background: var(--wine);
  color: #ffffff;
}

/* Sections & Images */
.mobile-sec {
  position: relative;
  width: 100%;
  background-color: var(--paper);
}

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

/* Section 1: Hero Top Overlay Typography */
.hero-photo {
  position: relative;
  z-index: 1;
}

.hero-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 11.2cqw;
  pointer-events: none;
  z-index: 3;
}

/* Fade-Up Entrance Animation (top-to-bottom sequential, excluding top logo) */
.js-fade-ready .fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--fade-delay, 0ms);
}

.js-fade-ready .fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-fade-ready .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero-monogram {
  width: 18cqw;
  height: auto;
  display: block;
}

.hero-kicker {
  margin: 5.5cqw 0 0;
  font-family: 'UTM Times', 'Times New Roman', Times, serif;
  font-size: 4.35cqw;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #262626;
}

.hero-title {
  margin: 2.2cqw 0 0;
  font-family: 'BL Kaelyna Script', 'SVN Darleston', cursive, serif;
  font-size: 11.4cqw;
  font-weight: 400;
  line-height: 1.1;
  color: var(--wine);
}

/* Hero Bottom Couple Names Typography (DFVN Ogg) */
.hero-bottom-overlay {
  position: absolute;
  bottom: 4.2cqw;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}

.hero-names-wrap {
  position: relative;
  width: 82cqw;
  margin: 0 auto;
}

.hero-name-line {
  font-family: 'DFVN Ogg', 'Times New Roman', serif;
  font-size: 11.8cqw;
  font-weight: 500;
  line-height: 1.12;
  color: var(--wine);
  letter-spacing: -0.01em;
}

.hero-name-groom {
  text-align: left;
  padding-left: 1.5cqw;
  margin-bottom: 1cqw;
}

.hero-name-bride {
  text-align: right;
  padding-right: 1.5cqw;
  margin-top: 2.5cqw;
}

.hero-amp-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'DFVN Ogg', 'Times New Roman', serif;
  font-size: 13.2cqw;
  font-weight: 400;
  font-style: italic;
  color: rgba(92, 9, 9, 0.16);
  z-index: -1;
  pointer-events: none;
  line-height: 1;
}

/* Section 2: Burgundy Quote Banner */
.sec-quote {
  background-color: var(--paper);
  padding: 3.5cqw 0 4.5cqw;
}

.quote-banner {
  background-color: var(--wine);
  color: #ffffff;
  padding: 6.5cqw 5cqw 5.5cqw;
  text-align: center;
}

.quote-mark {
  display: block;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 700;
  font-size: 13.5cqw;
  line-height: 0.55;
  color: #f4efe8;
  user-select: none;
}

.quote-mark-open {
  margin: 2cqw 0 3.2cqw;
}

.quote-mark-close {
  margin: 5.5cqw 0 0;
}

.quote-text {
  margin: 0 auto;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 4.15cqw;
  line-height: 1.42;
  color: #ffffff;
  letter-spacing: 0.01em;
}

/* Section 3: Portraits & Two Families */
.sec-portraits {
  background-color: var(--paper);
  padding: 6.5cqw 0 7.5cqw;
}

.portraits-heading {
  margin: 0 0 4.5cqw;
  padding: 0 5cqw;
  text-align: center;
  font-family: 'SVN Darleston', 'BL Kaelyna Script', cursive, serif;
  font-size: 11.7cqw;
  font-weight: 400;
  line-height: 1.12;
  color: var(--wine);
}

.portraits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.95cqw;
  padding: 0 7.6cqw;
  align-items: start;
}

.portrait-col {
  min-width: 0;
}

.portrait-card {
  width: 100%;
  overflow: hidden;
  background-color: var(--paper-deep);
}

.portrait-img {
  width: 100%;
  height: auto;
  display: block;
  transform: scaleX(-1);
}

.family-block {
  margin-top: 3.4cqw;
}

.family-left {
  text-align: left;
}

.family-right {
  text-align: right;
}

.family-role {
  margin: 0 0 1.3cqw;
  font-family: 'Times New Roman', Times, serif;
  font-size: 4.65cqw;
  font-weight: 700;
  line-height: 1.15;
  color: var(--wine);
}

.family-parents {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 3.55cqw;
  font-weight: 400;
  line-height: 1.42;
  color: var(--ink);
  white-space: nowrap;
}

/* Section 4: Greeting + Polaroid Stamps Collage */
.sec-stamps {
  padding-top: 2cqw;
}

.sec2-greeting {
  margin: 0 auto 3.5cqw;
  padding: 0 6cqw;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  font-size: 4.55cqw;
  font-weight: 400;
  line-height: 1.24;
  color: #323232;
}

.stamps-collage {
  position: relative;
  width: 100%;
  height: 170cqw;
  margin-bottom: 2cqw;
  user-select: none;
}

.stamp-item {
  position: absolute;
  height: auto;
  display: block;
  pointer-events: none;
}

.stamp-1 {
  width: 67cqw;
  left: 35cqw;
  top: 0;
  z-index: 1;
}

.stamp-2 {
  width: 68cqw;
  left: -3.5cqw;
  top: 41.5cqw;
  z-index: 2;
}

.stamp-3 {
  width: 67cqw;
  left: 34.5cqw;
  top: 94cqw;
  z-index: 3;
}

.collage-script {
  position: absolute;
  margin: 0;
  font-family: 'BL Kaelyna Script', 'SVN Darleston', cursive, serif;
  font-size: 7.4cqw;
  font-weight: 400;
  line-height: 1.1;
  color: var(--wine);
  white-space: nowrap;
  z-index: 4;
  pointer-events: none;
}

.script-love {
  left: 7cqw;
  top: 24.5cqw;
}

.script-and {
  right: 22.5cqw;
  top: 85.5cqw;
}

.script-gratitude {
  left: 6cqw;
  top: 138.5cqw;
}

/* CTA Wrap under stamps */
.mobile-cta-wrap {
  background-color: var(--paper);
  padding: 1cqw 20px 42px;
  text-align: center;
}

.mobile-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(340px, 90%);
  height: 52px;
  background-color: var(--wine);
  color: #ffffff;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(92, 9, 9, 0.28);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.mobile-cta-btn:hover, .mobile-cta-btn:focus-visible {
  background-color: var(--wine-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(92, 9, 9, 0.35);
}

/* ==========================================================================
   05. CEREMONY, VENUE & DIRECTIONS SECTION
   ========================================================================== */
.sec-ceremony {
  background-color: var(--paper);
  padding: 4cqw 7.5cqw 10cqw;
  text-align: center;
}

.ceremony-heading {
  margin: 0 0 1cqw;
  font-family: 'BL Kaelyna Script', 'SVN Darleston', cursive, serif;
  font-size: 9.6cqw;
  font-weight: 400;
  line-height: 1.12;
  color: var(--wine);
}

.ceremony-subtitle {
  margin: 0 0 5.5cqw;
  font-family: 'Times New Roman', Times, serif;
  font-size: 4.1cqw;
  font-weight: 600;
  color: var(--ink);
}

.ceremony-datetime {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 76cqw;
  margin: 0 auto 6cqw;
}

.ceremony-dt-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2cqw;
}

.ceremony-dt-label {
  font-family: 'Times New Roman', Times, serif;
  font-size: 4.1cqw;
  font-weight: 700;
  color: var(--ink);
}

.ceremony-dt-value {
  font-family: 'DFVN Ogg', 'Times New Roman', serif;
  font-size: 6.4cqw;
  font-weight: 500;
  line-height: 1.1;
  color: var(--wine);
  letter-spacing: 0.03em;
}

.ceremony-dt-slash {
  display: block;
  width: 1px;
  height: 12cqw;
  background-color: var(--wine);
  transform: rotate(22deg);
  margin: 0 4.5cqw;
  opacity: 0.85;
}

.ceremony-venue {
  margin: 0 auto 5.8cqw;
}

.ceremony-venue-label {
  display: block;
  margin-bottom: 1.2cqw;
  font-family: 'Times New Roman', Times, serif;
  font-size: 4.1cqw;
  font-weight: 700;
  color: var(--ink);
}

.ceremony-venue-floor,
.ceremony-venue-name {
  margin: 0;
  font-family: 'DFVN Ogg', 'Times New Roman', serif;
  font-size: 7cqw;
  font-weight: 500;
  line-height: 1.24;
  color: var(--wine);
}

.ceremony-directions-wrap {
  margin-bottom: 4.5cqw;
}

.ceremony-directions-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.2px solid var(--wine);
  background-color: transparent;
  color: var(--ink);
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 14.5px;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ceremony-directions-btn:hover,
.ceremony-directions-btn:focus-visible {
  background-color: rgba(92, 9, 9, 0.06);
  color: var(--wine);
  transform: translateY(-1px);
}

.button {
  min-height: 48px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 180ms ease;
}

.button-wine {
  background: var(--wine);
  color: #ffffff;
  border: 1px solid var(--wine);
}
.button-wine:hover:not(:disabled), .button-wine:focus-visible:not(:disabled) {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
  transform: translateY(-1px);
}

.button-outline {
  background: transparent;
  color: var(--wine);
  border: 1px solid var(--wine);
}
.button-outline:hover:not(:disabled), .button-outline:focus-visible:not(:disabled) {
  background: var(--wine);
  color: #ffffff;
  transform: translateY(-1px);
}

.map-frame {
  width: 100%;
  height: 225px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px var(--shadow);
  margin-bottom: 6.5cqw;
}

.directions-map {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ceremony-rsvp-wrap {
  text-align: center;
}

/* ==========================================================================
   06. RINGS, TIMELINE & COUNTDOWN SECTION
   ========================================================================== */
.sec-timeline-countdown {
  background-color: var(--paper);
  padding: 1cqw 0 11cqw;
  text-align: center;
}

.rings-banner-wrap {
  width: 100%;
  margin-bottom: 0;
  overflow: hidden;
}

.rings-ribbon-img {
  width: 100%;
  height: auto;
  display: block;
}

.timeline-stamps-collage {
  position: relative;
  width: 100%;
  height: 77cqw;
  margin: 0 0 2.5cqw;
  overflow: hidden;
  user-select: none;
}

.timeline-stamp {
  position: absolute;
  height: auto;
  display: block;
  pointer-events: none;
}

.timeline-stamp-1 {
  width: 62cqw;
  left: -1cqw;
  top: 0;
  z-index: 1;
}

.timeline-stamp-2 {
  width: 61cqw;
  right: -1cqw;
  top: 7.2cqw;
  z-index: 2;
}

.timeline-block {
  padding: 0 7.5cqw;
  margin-bottom: 10.5cqw;
}

.timeline-heading {
  margin: 0 0 5.5cqw;
  font-family: 'BL Kaelyna Script', 'SVN Darleston', cursive, serif;
  font-size: 9.2cqw;
  font-weight: 400;
  line-height: 1.15;
  color: var(--wine);
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8cqw;
}

.timeline-time {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 4cqw;
  font-weight: 700;
  color: var(--wine);
  letter-spacing: 0.02em;
}

.timeline-event {
  margin: 0;
  font-family: 'DFVN Ogg', 'Times New Roman', serif;
  font-size: 6cqw;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.timeline-line {
  display: block;
  width: 1px;
  height: 8.5cqw;
  background-color: rgba(92, 9, 9, 0.45);
  margin: 3cqw auto;
}

.countdown-section-inner {
  padding: 0 7.5cqw;
}

.countdown-script-heading {
  margin: 0 0 1.4cqw;
  font-family: 'BL Kaelyna Script', 'SVN Darleston', cursive, serif;
  font-size: 8.6cqw;
  font-weight: 400;
  line-height: 1.18;
  color: var(--wine);
  white-space: nowrap;
}

.countdown-subtitle {
  margin: 0 0 5cqw;
  font-family: 'Times New Roman', Times, serif;
  font-size: 4.1cqw;
  font-weight: 400;
  color: var(--ink);
}

.countdown-card {
  background-color: var(--wine);
  border-radius: 14px;
  padding: 3.4cqw 3.2cqw;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4cqw;
  box-shadow: 0 10px 28px rgba(92, 9, 9, 0.24);
}

.countdown-col {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 3cqw 1cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-num {
  font-family: 'Times New Roman', Times, serif;
  font-size: 8.2cqw;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.countdown-txt {
  margin-top: 1.2cqw;
  font-family: 'Times New Roman', Times, serif;
  font-size: 3.6cqw;
  font-weight: 700;
  color: var(--wine);
}

/* ==========================================================================
   07. CLOSING ROMANTIC SECTION
   ========================================================================== */
.sec-closing {
  position: relative;
  width: 100%;
  aspect-ratio: 615 / 1024;
  overflow: hidden;
}

.closing-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.closing-overlay-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6.5cqw 3.5cqw 7.5cqw;
  text-align: center;
}

.closing-caption {
  margin: 0;
  font-family: 'DFVN Ogg', 'Times New Roman', serif;
  font-size: 7.4cqw;
  font-weight: 500;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.closing-polaroid-img {
  width: 88.8cqw;
  height: auto;
  display: block;
  pointer-events: none;
}

.sec-footer-banner {
  background-color: var(--paper-deep);
  padding: 0;
}

.footer-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   RSVP SECTION (HỒI ĐÁP)
   ========================================================================== */
.rsvp-section {
  padding: 42px 22px 50px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.rsvp-copy {
  text-align: center;
  margin-bottom: 28px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--wine);
  margin: 0 0 10px;
}

.rsvp-copy h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.15;
  color: var(--wine);
  font-weight: 700;
}

.rsvp-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.rsvp-copy strong {
  color: var(--ink);
}

.rsvp-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.rsvp-note span {
  color: var(--wine);
}

.rsvp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 20px;
  box-shadow: 0 12px 36px var(--shadow);
}

.attendance-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

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

.choice-grid {
  display: grid;
  gap: 8px;
}

.choice-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.choice-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.choice-option {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 180ms ease;
  user-select: none;
  text-align: center;
}

@media (max-width: 360px) {
  .choice-grid-3 .choice-option {
    font-size: 11.5px;
    padding: 10px 4px;
    gap: 4px;
  }
}

.choice-option:has(input:checked) {
  border-color: var(--wine);
  background: var(--surface);
  color: var(--wine);
  font-weight: 700;
}

.choice-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-mark {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--muted);
  border-radius: 50%;
  transition: border-color 180ms ease;
}

.choice-option input:checked + .choice-mark {
  border-color: var(--wine);
}

.choice-option input:checked + .choice-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wine);
}

.field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.text-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 180ms ease, background 180ms ease;
}

.text-input:focus {
  border-color: var(--wine);
  background: var(--surface);
}

.form-hint {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.submit-button {
  width: 100%;
  min-height: 52px;
  background-color: #5c0909;
  border: 1px solid #5c0909;
  color: #ffffff;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 1;
  box-shadow: 0 8px 24px rgba(92, 9, 9, 0.28);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background-color: #420606;
  border-color: #420606;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(92, 9, 9, 0.35);
}

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

.submit-button:disabled {
  opacity: 1;
  background-color: #5c0909;
  border-color: #5c0909;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  cursor: pointer;
}

.gift-button {
  width: 100%;
  min-height: 52px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background-color: #f7f4ee;
  color: var(--wine);
  border: 1.5px solid var(--wine);
  box-shadow: 0 6px 20px rgba(92, 9, 9, 0.14);
}

.gift-button:hover,
.gift-button:focus-visible {
  background-color: var(--wine);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(92, 9, 9, 0.28);
}

/* Standalone Gift Card (Khung riêng Gửi quà chúc mừng) */
.gift-standalone-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 22px 28px;
  box-shadow: 0 12px 36px var(--shadow);
  margin-top: 24px;
  text-align: center;
}

.gift-card-script {
  margin: 0 0 4px;
  font-family: 'BL Kaelyna Script', 'SVN Darleston', cursive, serif;
  font-size: 38px;
  line-height: 1.15;
  color: var(--wine);
}

.gift-card-title {
  margin: 0 0 22px;
  font-family: 'DFVN Ogg', 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: #4a4a4a;
  letter-spacing: -0.01em;
}

.gift-standalone-btn {
  width: 100%;
  min-height: 52px;
  background-color: #5c0909;
  border: none;
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(92, 9, 9, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.gift-standalone-btn:hover,
.gift-standalone-btn:focus-visible {
  background-color: #420606;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(92, 9, 9, 0.35);
}

.gift-modal-card {
  max-width: 390px;
}

.gift-modal-body {
  padding: 28px 22px 24px;
}

.gift-qr-wrap {
  width: 215px;
  max-width: 78%;
  margin: 14px auto 14px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.gift-qr-img {
  width: 100%;
  height: auto;
  display: block;
}

.gift-bank-wrap {
  max-width: 265px;
  margin: 0 auto 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e4eaf5;
  background: #f5f8ff;
}

.gift-bank-img {
  width: 100%;
  height: auto;
  display: block;
}

.gift-copy-btn {
  width: 100%;
  min-height: 44px;
  font-size: 13.5px;
  margin-bottom: 14px;
}

.gift-thankyou-note {
  margin: 0 0 16px;
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--wine);
}

.response-panel {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.thank-you-wrap {
  margin: 0 0 18px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(92, 9, 9, 0.15);
  background: var(--paper);
}

.thank-you-img {
  width: 100%;
  height: auto;
  display: block;
}

.rsvp-reset-wrap {
  margin-top: 18px;
}

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

.response-panel h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--wine);
}

.gift-details {
  margin-top: 18px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
}

.gift-details p {
  margin: 4px 0;
  font-size: 12px;
}

.copy-bank-btn {
  margin-top: 10px;
  width: 100%;
}

/* ==========================================================================
   THANK YOU POP-UP MODAL (GIAO DIỆN XUNG QUANH TỐI ĐI)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  transform: scale(0.92) translateY(12px);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.08);
}

.modal-image-wrap {
  width: 100%;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  overflow: hidden;
  background: var(--paper);
}

.modal-thankyou-img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-body {
  padding: 22px 20px 24px;
  text-align: center;
}

.modal-heading {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--wine);
}

.modal-message {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.modal-gift {
  margin-bottom: 18px;
}

.modal-ok-btn {
  width: 100%;
  min-height: 48px;
  font-size: 14px;
  font-weight: 700;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  padding: 36px 20px 42px;
  text-align: center;
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}

.footer-logo {
  display: block;
  width: 72px;
  height: auto;
  margin: 0 auto 12px;
}

.site-footer p {
  margin: 4px 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

.site-footer a {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  color: var(--wine);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   00. ENVELOPE OPENING COVER (Mở thiệp cưới & Kích hoạt âm thanh)
   ========================================================================== */
body.has-envelope {
  overflow: hidden !important;
  touch-action: none !important;
}

.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #f2eee9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
}

.envelope-scene {
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.envelope-card-outer {
  position: relative;
  width: 100%;
  height: 500px;
  max-height: 75vh;
  background: #f7f4ee;
  border-radius: 14px;
  border: 1px solid rgba(163, 137, 88, 0.35);
  box-shadow: 0 24px 60px rgba(60, 20, 20, 0.14), 0 4px 16px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s ease;
}

/* Flap (Đầu gập nắp phong bì) */
.envelope-flap-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 46%;
  transform-origin: top center;
  z-index: 5;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

.envelope-flap-top .flap-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Envelope body & lower info */
.envelope-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 24px 16px 36px 16px;
  box-sizing: border-box;
  text-align: center;
  z-index: 2;
  background: linear-gradient(180deg, rgba(251, 248, 243, 0) 25%, #faf6f0 60%, #f2eee9 100%);
}

.envelope-info-lower {
  width: 100%;
  margin-top: auto;
  margin-bottom: 8px;
}

.envelope-names-img {
  display: block;
  width: 230px;
  max-width: 78%;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Wax Seal button (Con dấu sáp nến P&N) */
.wax-seal-anchor {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wax-seal-btn {
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  border-radius: 50%;
  animation: wax-seal-breathe 2.8s ease-in-out infinite;
  transition: transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.wax-seal-btn:hover {
  transform: scale(1.08) !important;
}

.wax-seal-btn:active {
  transform: scale(0.94) !important;
}

.wax-seal-img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(110, 19, 19, 0.38));
  user-select: none;
  -webkit-user-drag: none;
}

.wax-seal-ripple {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(179, 38, 30, 0.4);
  animation: wax-seal-ripple 2.2s ease-out infinite;
  pointer-events: none;
}

.wax-seal-guide {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wax-seal-guide .guide-text {
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 13.5px;
  color: #6e1313;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  text-align: center;
  white-space: nowrap;
}

.wax-seal-guide .guide-finger {
  font-size: 16px;
  animation: guide-bounce 1.6s ease-in-out infinite;
}

@keyframes wax-seal-breathe {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 18px rgba(110, 19, 19, 0.38));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 24px rgba(179, 38, 30, 0.55));
  }
}

@keyframes wax-seal-ripple {
  0% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.48);
    opacity: 0;
  }
}

@keyframes guide-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Opening animation */
.envelope-overlay.is-opening {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s 0.35s ease;
}

.envelope-overlay.is-opening .wax-seal-btn {
  transform: scale(0.9) translateY(-12px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.envelope-overlay.is-opening .wax-seal-guide {
  opacity: 0;
}

.envelope-overlay.is-opening .envelope-flap-top {
  transform: rotateX(180deg);
  filter: none;
}

.envelope-overlay.is-opening .envelope-card-outer {
  transform: translateY(35px) scale(0.96);
  opacity: 0;
  transition: transform 0.8s 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s 0.25s ease;
}

.envelope-overlay.is-opened {
  display: none !important;
}

/* ==========================================================================
   ACCESSIBILITY & MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
