/* ==========================================================================
   MẪU 19: OLIVE ROMANCE
   Phong cách tối giản, thanh lịch với sắc xanh olive quý phái & sang trọng
   ========================================================================== */

:root,
[data-palette="olive"] {
  --font-script: 'Alex Brush', cursive;
  --font-serif-display: 'Playfair Display', serif;
  --font-serif-editorial: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --color-olive-main: #4d5e43;
  --color-olive-dark: #374431;
  --color-olive-card: #546648;
  --color-olive-light: #6e8162;
  --color-olive-tint: #eaf0e6;
  
  --color-cream-bg: #fbf9f4;
  --color-cream-card: #ffffff;
  --color-cream-accent: #ebd39b;
  --color-gold: #c59b58;

  --color-text-main: #2b3527;
  --color-text-muted: #64735e;
  --color-text-light: #fdfdfc;
  --color-border-light: rgba(77, 94, 67, 0.15);
  --color-border-subtle: #eae6dd;

  --shadow-soft: 0 10px 30px rgba(43, 53, 39, 0.08);
  --shadow-card: 0 15px 35px rgba(55, 68, 49, 0.12);
  --shadow-modal: 0 25px 50px rgba(0, 0, 0, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: #ede9e1;
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select, textarea {
  font: inherit;
}

/* Mobile-first site container centered on desktop */
.site-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--color-cream-bg);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* ========================================================
   ENVELOPE SCROLL LOCK STATE
   ======================================================== */
html.envelope-locked,
body.envelope-locked {
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100vh !important;
  touch-action: none;
}

body.envelope-locked .site-container {
  opacity: 0;
  visibility: hidden;
  max-height: 100vh;
  overflow: hidden;
  pointer-events: none;
}

body.envelope-locked .music-player-fab {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================================
   BÌA THIỆP GẬP MỞ HAI CÁNH (GATEFOLD ENVELOPE WITH WAX SEAL)
   ========================================================================== */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  overflow: hidden;
  touch-action: none;
  cursor: pointer;
}

.envelope-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background-color: var(--color-olive-main);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0px, rgba(0, 0, 0, 0.06) 1px, transparent 1px, transparent 3px);
  background-size: 6px 6px;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35);
}

.door-left {
  left: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.door-right {
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

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

.envelope-content-lock {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  z-index: 10;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.wax-seal-container {
  position: relative;
  width: 140px;
  height: 140px;
  cursor: pointer;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease;
}

.wax-seal-container:hover {
  transform: scale(1.05);
}

.wax-seal-graphic {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.seal-glow-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(235, 211, 155, 0.4);
  animation: rotateSlow 20s linear infinite;
  pointer-events: none;
}

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

.btn-open-pill {
  background: var(--color-cream-accent);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 44px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-open-pill:hover,
.btn-open-pill:focus-visible {
  background: #f3e2b8;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.open-label {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-olive-dark);
}

/* Envelope Opened State */
.envelope-overlay.opened .door-left {
  transform: translateX(-100%);
}

.envelope-overlay.opened .door-right {
  transform: translateX(100%);
}

.envelope-overlay.opened .envelope-content-lock,
.envelope-overlay.opened .envelope-center-seam {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.envelope-overlay.hidden-finished {
  display: none !important;
}

/* ==========================================================================
   FALLING LEAVES PARTICLES EFFECT
   ========================================================================== */
.leaves-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.falling-leaf {
  position: absolute;
  top: -40px;
  width: 16px;
  height: 25px;
  background-color: #7b8e6f;
  border-radius: 2px 20px 2px 20px;
  opacity: 0.55;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  animation: leafFall linear infinite;
}

@keyframes leafFall {
  0% {
    top: -40px;
    transform: translateX(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.55;
  }
  85% {
    opacity: 0.55;
  }
  100% {
    top: 105vh;
    transform: translateX(50px) rotate(360deg) scale(1);
    opacity: 0;
  }
}

/* ==========================================================================
   MUSIC FAB BUTTON
   ========================================================================== */
.music-player-fab {
  position: fixed;
  top: 20px;
  right: calc(50% - 230px);
  z-index: 1000;
}

@media (max-width: 520px) {
  .music-player-fab {
    right: 16px;
  }
}

.btn-music-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #44543b 0%, #283323 70%, #1a2217 100%);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(235, 211, 155, 0.55);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.15), inset 0 0 0 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ebd39b;
  font-size: 1.15rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-music-disc:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.btn-music-disc.playing {
  box-shadow: 0 0 16px rgba(235, 211, 155, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.2), inset 0 0 0 6px rgba(0, 0, 0, 0.3);
}

.btn-music-disc.playing .disc-icon {
  display: inline-block;
  animation: spinMusic 3.5s linear infinite;
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.section-hero {
  position: relative;
  width: 100%;
}

.hero-photo-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-main-photo {
  width: 100%;
  height: auto;
  display: block;
}

.hero-vignette-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0) 45%,
    rgba(25, 34, 22, 0.75) 80%,
    rgba(25, 34, 22, 0.96) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px 20px 130px;
}

.hero-typography {
  text-align: center;
  width: 100%;
}

.hero-couple-names {
  font-family: var(--font-script);
  font-size: 3.2rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}

.hero-couple-names .name-amp {
  font-family: var(--font-serif-editorial);
  font-style: italic;
  font-size: 2.2rem;
  margin: 0 10px;
  opacity: 0.9;
}

.hero-tagline {
  font-family: var(--font-serif-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}

/* ==========================================================================
   GUEST BANNER (nếu có ?to=)
   ========================================================================== */
.section-guest-banner {
  padding: 35px 24px 10px;
  text-align: center;
}

.guest-inner-box {
  background: var(--color-cream-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
}

.guest-badge {
  font-family: var(--font-serif-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-olive-main);
  display: inline-block;
  margin-bottom: 8px;
}

.guest-recipient-name {
  font-family: var(--font-serif-display);
  font-size: 1.6rem;
  color: var(--color-olive-dark);
  margin-bottom: 6px;
}

.guest-sub-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   ROMANTIC QUOTES & SECONDARY PHOTO & COUNTDOWN
   ========================================================================== */
.section-romantic-quotes {
  padding: 40px 24px 30px;
  text-align: center;
}

.romantic-message {
  font-family: var(--font-serif-editorial);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-olive-dark);
  line-height: 1.65;
}

.sub-italic {
  font-size: 1.18rem;
}

.quote-first-wrap {
  margin-bottom: 30px;
}

.deco-couple-photo-wrap {
  margin: 0 auto 30px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.deco-couple-photo {
  width: 100%;
  display: block;
}

.quote-second-wrap {
  margin-bottom: 35px;
}

/* 4 Olive Countdown Cubes */
.countdown-module {
  margin: 10px auto 20px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.countdown-cube {
  width: 72px;
  height: 72px;
  background: linear-gradient(145deg, #5a6d4e 0%, #46563b 100%);
  border: 1px solid rgba(235, 211, 155, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(55, 68, 49, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.count-num {
  font-family: var(--font-serif-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.1;
}

.count-unit {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.85;
  text-transform: lowercase;
}

/* ==========================================================================
   INVITATION BLOCK (OLIVE GREEN BANNER)
   ========================================================================== */
.section-olive-invitation {
  background-color: var(--color-olive-main);
  color: #ffffff;
  padding: 50px 24px 45px;
  text-align: center;
}

.invitation-main-heading {
  font-family: var(--font-serif-display);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 30px;
}

.invitation-duo-photos {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
}

.duo-photo-col {
  flex: 1;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

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

.the-wedding-of-block {
  margin-top: 10px;
}

.script-wedding-of {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
}

.script-couple-caps {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 2px;
}

/* ==========================================================================
   PARENTS SECTION (NHÀ TRAI & NHÀ GÁI)
   ========================================================================== */
.section-parents-info {
  padding: 45px 24px;
  background-color: var(--color-cream-bg);
}

.parents-two-columns {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.parents-col {
  flex: 1;
  text-align: center;
  padding: 0 10px;
}

.parents-divider-line {
  width: 1px;
  background-color: rgba(77, 94, 67, 0.25);
  margin: 10px 0;
}

.side-title {
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-olive-dark);
  margin-bottom: 14px;
}

.parent-line {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.parent-name {
  color: var(--color-text-main);
  font-weight: 500;
}

.side-address {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 10px;
  line-height: 1.45;
}

/* ==========================================================================
   EVENTS TIMELINE CARDS
   ========================================================================== */
.section-events-timeline {
  padding: 10px 24px 45px;
}

.events-cards-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.olive-event-card {
  background-color: var(--color-olive-card);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 38px 24px 34px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(35, 45, 32, 0.22);
  border: 1px solid rgba(235, 211, 155, 0.35);
  position: relative;
  overflow: hidden;
}

.olive-event-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(235, 211, 155, 0.22);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.event-headline {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.event-time-subtitle {
  font-family: var(--font-serif-display);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}

/* 3-Part Date Display (THÁNG 11 | 5 | NĂM 2027) */
.event-date-triptych {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 15px 0 20px;
}

.date-side-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rule-line {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.55);
  width: 100%;
}

.date-label {
  font-family: var(--font-serif-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #ffffff;
}

.date-big-day {
  min-width: 65px;
}

.big-day-number {
  font-family: var(--font-serif-editorial);
  font-size: 4.2rem;
  line-height: 0.9;
  font-weight: 400;
  color: #ffffff;
  display: block;
}

.event-lunar-note {
  font-family: var(--font-serif-editorial);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}

.event-location-box {
  margin-bottom: 24px;
}

.venue-title {
  font-family: var(--font-serif-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.venue-full-address {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.btn-event-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ebe5d8;
  color: var(--color-olive-dark);
  font-family: var(--font-serif-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn-event-directions:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-pin-icon {
  flex-shrink: 0;
  color: var(--color-olive-dark);
}

/* ==========================================================================
   CALENDAR MONTH VIEW
   ========================================================================== */
.section-wedding-calendar {
  margin: 10px 0 35px;
}

.calendar-dress-header {
  position: relative;
  width: 100%;
  padding-top: 60px;
  text-align: center;
}

.cal-script-month {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--color-olive-main);
  line-height: 1;
}

.calendar-card-body {
  padding: 10px 24px 20px;
  text-align: center;
}

.calendar-title-label {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--color-olive-dark);
  font-weight: 600;
}

.calendar-lunar-year {
  font-family: var(--font-serif-editorial);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

.calendar-table-wrap {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-subtle);
}

.cal-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: 8px;
}

.cal-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-cell {
  position: relative;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif-editorial);
  font-size: 1.1rem;
  color: var(--color-text-main);
}

.cal-cell.is-wedding-day {
  font-weight: 700;
  color: #ffffff;
}

.cal-cell.is-wedding-day .day-solar {
  position: relative;
  z-index: 2;
}

.wedding-heart-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.heart-pulse-svg {
  color: #e63946;
  filter: drop-shadow(0 2px 6px rgba(230, 57, 70, 0.45));
  animation: pulseHeart 1.6s ease-in-out infinite;
}

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

/* ==========================================================================
   LOVE STORY SECTION
   ========================================================================== */
.section-love-story {
  padding: 30px 24px 45px;
}

.love-story-header {
  text-align: center;
  margin-bottom: 30px;
}

.script-story-title {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--color-olive-main);
  line-height: 1;
}

.story-mosaic {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.story-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.story-photo-box {
  flex: 1;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

.story-text-box {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ==========================================================================
   ALBUM / PHOTO GALLERY
   ========================================================================== */
.section-album-gallery {
  padding: 20px 24px 45px;
}

.album-headline-wrap {
  text-align: center;
  position: relative;
  margin-bottom: 30px;
}

.album-outline-title {
  font-family: var(--font-serif-display);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-olive-dark);
  line-height: 1;
}

.album-script-oflove {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--color-gold);
  display: block;
  margin-top: -10px;
}

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

.album-photo-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3/4;
}

.album-photo-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/10;
}

.album-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.album-hover-veil {
  position: absolute;
  inset: 0;
  background: rgba(43, 53, 39, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.album-photo-item:hover .album-hover-veil {
  opacity: 1;
}

.album-photo-item:hover .album-img {
  transform: scale(1.05);
}

.zoom-icon {
  font-size: 1.5rem;
  color: #fff;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.album-photo-item:hover .zoom-icon {
  transform: scale(1);
}

/* ==========================================================================
   RSVP SECTION
   ========================================================================== */
.section-rsvp-form {
  padding: 20px 24px 50px;
  text-align: center;
}

.rsvp-intro-text {
  font-family: var(--font-serif-editorial);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-olive-dark);
  margin-bottom: 25px;
  line-height: 1.6;
}

.rsvp-card-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 35px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-subtle);
  text-align: left;
}

.rsvp-card-title {
  font-family: var(--font-serif-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-olive-dark);
  text-align: center;
  margin-bottom: 25px;
}

.rsvp-field-group {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.rsvp-field-group input[type="text"],
.rsvp-field-group textarea,
.rsvp-select-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d4c9;
  border-radius: var(--radius-sm);
  background-color: #faf9f6;
  color: var(--color-text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rsvp-field-group input[type="text"]:focus,
.rsvp-field-group textarea:focus,
.rsvp-select-control:focus {
  border-color: var(--color-olive-main);
  box-shadow: 0 0 0 3px rgba(77, 94, 67, 0.15);
  background-color: #ffffff;
}

.rsvp-radios-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.custom-radio-option input[type="radio"] {
  accent-color: var(--color-olive-main);
  width: 18px;
  height: 18px;
}

.btn-rsvp-olive {
  width: 100%;
  background-color: var(--color-olive-card);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  font-family: var(--font-serif-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(55, 68, 49, 0.25);
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-rsvp-olive:hover {
  background-color: var(--color-olive-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(55, 68, 49, 0.35);
}

.rsvp-feedback-alert {
  margin-top: 15px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

.rsvp-feedback-alert.success {
  background-color: #eaf5e6;
  color: #2e6b22;
  border: 1px solid #bce2ae;
}

.rsvp-feedback-alert.error {
  background-color: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

/* Button Mừng Cưới */
.gift-cta-wrap {
  margin-top: 25px;
}

.btn-gift-olive {
  width: 100%;
  background-color: var(--color-olive-card);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 15px 24px;
  font-family: var(--font-serif-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.btn-gift-olive:hover {
  background-color: var(--color-olive-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   THANK YOU FOOTER
   ========================================================================== */
.section-thankyou-footer {
  position: relative;
  width: 100%;
}

.thankyou-photo-container {
  position: relative;
  width: 100%;
  min-height: 540px;
  overflow: hidden;
  display: flex;
}

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

.thankyou-overlay-gradient {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 540px;
  background: linear-gradient(
    to bottom,
    rgba(25, 34, 22, 0.45) 0%,
    rgba(25, 34, 22, 0.82) 40%,
    rgba(25, 34, 22, 0.98) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 55px 24px calc(120px + env(safe-area-inset-bottom, 20px));
  text-align: center;
  color: #ffffff;
}

.script-thankyou-title {
  font-family: var(--font-script);
  font-size: 3.6rem;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 12px;
}

.thankyou-paragraphs {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 400px;
  margin-bottom: 15px;
}

.thankyou-couple-sign {
  font-family: var(--font-serif-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-cream-accent);
  margin-bottom: 25px;
}

.footer-shop-credit .credit-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-shop-credit .credit-link:hover {
  opacity: 1;
}

.credit-logo {
  max-width: 130px;
  height: auto;
}

.credit-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* ==========================================================================
   BOTTOM FLOATING ACTION BAR
   ========================================================================== */
.floating-action-bar {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 440px;
  z-index: 1000;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bar-pill-card {
  background: rgba(35, 45, 32, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.fab-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.15rem;
  transition: transform 0.2s, background 0.2s;
  position: relative;
}

.fab-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
}

.fab-tag {
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 4px;
  background: #ff4757;
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
}

.fab-wish-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.2s;
}

.fab-wish-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.fab-heart-btn {
  position: relative;
}

.heart-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  background: #ff4757;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
}

/* Flying heart animation */
.flying-heart {
  position: fixed;
  bottom: 80px;
  font-size: 24px;
  pointer-events: none;
  z-index: 9999;
  animation: floatHeartUp 1.4s ease-out forwards;
}

@keyframes floatHeartUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-80px) scale(1.3) rotate(-15deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-160px) scale(1.1) rotate(15deg);
  }
}

/* ==========================================================================
   FLOATING WISHES TOASTS
   ========================================================================== */
.wishes-float-stack {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 400px;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
  z-index: 900;
}

.wish-toast-bubble {
  background: rgba(43, 53, 39, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: slideToastUp 0.4s ease, fadeToastOut 0.5s ease 4.5s forwards;
  max-width: 100%;
}

.wish-sender-name {
  font-weight: 600;
  color: var(--color-cream-accent);
  margin-right: 6px;
}

@keyframes slideToastUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeToastOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* ==========================================================================
   MODALS (GIFT & WISH POPUP)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  position: relative;
  animation: popModal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popModal {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-card-title {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  color: var(--color-olive-dark);
}

.modal-btn-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #777;
  cursor: pointer;
}

.modal-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.bank-account-card {
  background: #faf8f5;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
  position: relative;
}

.acc-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-olive-main);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
}

.acc-qr-container {
  width: 170px;
  height: 170px;
  margin: 0 auto 14px;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.acc-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.acc-bank {
  font-size: 0.95rem;
  color: var(--color-olive-dark);
}

.acc-number {
  font-size: 0.95rem;
  margin: 2px 0;
}

.num-digits {
  color: var(--color-olive-dark);
}

.acc-name {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.btn-copy-acc {
  background: var(--color-olive-card);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.lightbox-modal.active {
  display: flex;
}

.lb-stage {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lb-display-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lb-control {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lb-control:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lb-close {
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
}

.lb-prev {
  left: 20px;
}

.lb-next {
  right: 20px;
}

/* Toast */
.toast-notice {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(35, 45, 32, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 1000000;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

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

/* Scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Copy STK button feedback */
.btn-copy-acc.copied {
  background-color: #27ae60 !important;
  color: #ffffff !important;
}

/* QR Zoomable */
.acc-qr-img.qr-zoomable {
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.acc-qr-img.qr-zoomable:hover {
  transform: scale(1.05);
}
