/* ============================================================
   SONG HỶ XANH — THIỆP CƯỚI HUY CƯỜNG & MINH NGUYỆT
   Color System:
   - Cream page surface: #FFF7EB
   - Primary Forest Green: #1F3A25
   - Deep Hero Green: #0D2111 / #132B18
   - Soft Sage Cream: #E8F0E4
   - Gift Modal Sage: #DCEBDE
   - Muted Gray Text: #666666 / #464646
   ============================================================ */

:root {
  --bg-outer: #ffffff;
  --bg-cream: #fff7eb;
  --green-primary: #1f3a25;
  --green-dark: #102414;
  --green-accent: #7cb882;
  --sage-light: #e8f0e4;
  --sage-modal: #dcebde;
  --text-dark: #1f3a25;
  --text-muted: #666666;
  --text-soft: #464646;
  --border-subtle: rgba(31, 58, 37, 0.14);

  --font-display: "EB Garamond", "Playfair Display", Georgia, serif;
  --font-playfair: "Playfair Display", Georgia, serif;
  --font-cormorant: "Cormorant Garamond", "Times New Roman", serif;
  --font-lora: "Lora", "Times New Roman", serif;
  --font-serif: "Baskerville", "Lora", "Times New Roman", serif;
  --font-banner: "Times New Roman", "Playfair Display", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-outer);
  color: var(--text-dark);
  font-family: var(--font-serif);
  line-height: 1.5;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

/* ============================================================
   1. SPLASH SCREEN / ENVELOPE COVER
   ============================================================ */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  background: linear-gradient(to bottom right, #0a1f0e, #122418, #1f3a25);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.75s ease;
}

.splash-overlay.is-opening .envelope-card-wrap {
  animation: envelope-away 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-overlay.is-opening .wax-seal {
  animation: seal-break 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.splash-overlay.is-opening .seal-ring {
  animation: seal-ring 0.6s ease-out forwards;
}

.splash-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ambient-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-hy {
  position: absolute;
  bottom: -36px;
  user-select: none;
  font-family: serif;
  opacity: 0;
  animation: ambient-rise linear infinite;
}

.envelope-card-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  z-index: 10;
}

@media (min-width: 768px) {
  .envelope-card-wrap {
    max-width: 520px;
  }
}

@media (min-width: 1024px) {
  .envelope-card-wrap {
    max-width: 560px;
  }
}

.wax-seal {
  position: absolute;
  top: 50px;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  z-index: 30;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #e8f0e4, #cad2c6);
  box-shadow: 0 4px 20px rgba(232, 240, 228, 0.52),
    inset 0 2px 4px rgba(255, 255, 255, 0.35);
  animation: seal-pulse 2.2s ease-in-out infinite;
}

.seal-emblem {
  width: 34px;
  height: 34px;
}

.seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(232, 240, 228, 0.7);
  opacity: 0;
  pointer-events: none;
}

.envelope-card {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.48),
    0 8px 24px rgba(0, 0, 0, 0.24),
    0 0 40px rgba(232, 240, 228, 0.14);
}

.envelope-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1f3a25;
  border: 1px solid rgba(232, 240, 228, 0.16);
}

.watermark-hy {
  position: absolute;
  opacity: 0.14;
  pointer-events: none;
  width: 220px;
  height: 220px;
}

.watermark-tl {
  top: -58px;
  left: -96px;
  transform: rotate(30deg);
}

.watermark-br {
  bottom: -52px;
  right: -102px;
  transform: rotate(30deg);
}

@media (min-width: 768px) {
  .watermark-hy {
    width: 290px;
    height: 290px;
  }
  .watermark-tl {
    top: -86px;
    left: -115px;
  }
  .watermark-br {
    bottom: -86px;
    right: -120px;
  }
}

.envelope-content {
  position: relative;
  z-index: 20;
  text-align: center;
  padding: 96px 24px 48px;
}

@media (min-width: 768px) {
  .envelope-content {
    padding: 96px 40px 42px;
  }
}

.splash-couple-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-playfair);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.25;
  color: var(--sage-light);
  letter-spacing: 0.01em;
}

@media (min-width: 640px) {
  .splash-couple-title {
    font-size: 38px;
  }
}

.splash-amp {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  opacity: 0.9;
  margin: 2px 0;
}

.splash-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px auto 14px;
}

.divider-line {
  width: 44px;
  height: 1px;
}

.divider-line.left {
  background: linear-gradient(to right, transparent, var(--sage-light));
}

.divider-line.right {
  background: linear-gradient(to left, transparent, var(--sage-light));
}

.divider-ornament {
  color: var(--sage-light);
  opacity: 0.72;
  font-size: 16px;
  line-height: 1;
}

.splash-date {
  font-family: var(--font-lora);
  font-size: 17px;
  color: rgba(232, 240, 228, 0.88);
  margin-bottom: 16px;
}

.splash-subtitle {
  font-family: var(--font-lora);
  font-size: 18px;
  color: rgba(232, 240, 228, 0.9);
  margin-bottom: 24px;
}

.open-invitation-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  padding: 12px 32px;
  border: none;
  border-radius: 9999px;
  background-color: var(--sage-light);
  color: var(--green-primary);
  font-family: var(--font-lora);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 240, 228, 0.36);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.open-invitation-btn:hover {
  transform: translateY(-1px) scale(1.02);
  background-color: #f4f9f1;
  box-shadow: 0 8px 24px rgba(232, 240, 228, 0.45);
}

.open-invitation-btn:active {
  transform: scale(0.98);
}

/* ============================================================
   2. MAIN PAGE LAYOUT WRAPPER
   ============================================================ */
.page-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--bg-outer);
  overflow-x: clip;
}

.invitation-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-cream);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .invitation-card {
    max-width: 900px;
    margin: 0 auto;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }
}

/* ============================================================
   3. HERO SECTION WITH SOLID DARK GREEN SEMICIRCLE & ARCH FRAME
   ============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-cream);
  overflow: hidden;
  padding-top: 32px;
  padding-bottom: 50px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: 52px;
    padding-bottom: 60px;
  }
}

.hero-dome-backdrop {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(671px, 130vw);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: #0e240f;
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero-dome-backdrop {
    width: min(872px, 100%);
    transform: translate(-50%, -50%);
  }
}

.hero-top-content {
  position: relative;
  z-index: 5;
  padding: 0 20px;
  color: var(--sage-light);
}

.hero-welcome {
  font-family: var(--font-cormorant);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sage-light);
  opacity: 0.94;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .hero-welcome {
    font-size: 14px;
    margin-bottom: 24px;
  }
}

.hero-couple-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 660px;
  margin: 0 auto;
}

.hero-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-role {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: rgba(232, 240, 228, 0.9);
  letter-spacing: 0.03em;
}

@media (min-width: 768px) {
  .hero-role {
    font-size: 15px;
  }
}

.hero-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--sage-light);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero-name {
    font-size: 25px;
  }
}

.hero-hy-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-hy-svg {
  width: 64px;
  height: 64px;
}

@media (min-width: 768px) {
  .hero-hy-svg {
    width: 83px;
    height: 83px;
  }
}

.hero-arch-wrapper {
  position: relative;
  z-index: 6;
  width: 78%;
  max-width: 286px;
  margin: 34px auto 0;
}

@media (min-width: 768px) {
  .hero-arch-wrapper {
    max-width: 372px;
    margin-top: 54px;
  }
}

.arch-curve-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(-20px);
  pointer-events: none;
  z-index: 8;
  overflow: visible;
}

@media (min-width: 768px) {
  .arch-curve-svg {
    transform: translateY(-20px);
  }
}

.arch-curved-text {
  font-family: var(--font-cormorant);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  fill: var(--sage-light);
}

.hero-arch-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 286 / 481;
  border-radius: 9999px 9999px 0 0;
  overflow: hidden;
  background-color: #d9d9d9;
}

.hero-arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   4. SHARED SECTIONS & BANNERS
   ============================================================ */
.cream-section {
  background-color: var(--bg-cream);
  width: 100%;
}

.section-banner {
  width: 100%;
  background-color: var(--green-primary);
  padding: 13px 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .section-banner {
    padding: 16px 24px;
  }
}

.section-banner h2 {
  font-family: var(--font-banner);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-light);
}

@media (min-width: 768px) {
  .section-banner h2 {
    font-size: 24px;
  }
}

.section-inner {
  padding: 34px 20px 44px;
  text-align: center;
}

@media (min-width: 768px) {
  .section-inner {
    padding: 44px 40px 54px;
  }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* ============================================================
   5. PARENTS, COUPLE NAMES & CEREMONIES
   ============================================================ */
.parents-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 620px;
  margin: 0 auto 38px;
}

.parent-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.parent-title {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.parent-names {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-primary);
  line-height: 1.45;
}

@media (min-width: 768px) {
  .parent-title {
    font-size: 17px;
  }
  .parent-names {
    font-size: 18px;
  }
}

.parent-address {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 220px;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .parent-address {
    font-size: 14px;
    max-width: 260px;
  }
}

.parents-divider {
  width: 1px;
  height: 68px;
  background-color: var(--green-primary);
  opacity: 0.7;
}

.announcement-block {
  margin-bottom: 40px;
}

.announcement-lead,
.announcement-sub {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--green-primary);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .announcement-lead,
  .announcement-sub {
    font-size: 17px;
  }
}

.couple-display {
  margin-top: 22px;
}

.couple-name-large {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--green-primary);
  line-height: 1.28;
}

@media (min-width: 768px) {
  .couple-name-large {
    font-size: 46px;
  }
}

.couple-role-label {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 4px;
}

.couple-amp {
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  color: var(--text-muted);
  margin: 14px 0;
  line-height: 1;
}

.ceremonies-list {
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: 520px;
  margin: 0 auto;
}

.ceremony-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ceremony-heading {
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--green-primary);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .ceremony-heading {
    font-size: 17px;
  }
}

.ceremony-time {
  font-size: 14px;
  color: var(--text-muted);
  margin: 8px 0 18px;
  letter-spacing: 0.04em;
}

.date-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}

.date-side {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  min-width: 82px;
}

.date-sep {
  width: 1px;
  height: 28px;
  background-color: rgba(31, 58, 37, 0.35);
}

.date-day {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--green-primary);
  line-height: 1;
  min-width: 44px;
}

@media (min-width: 768px) {
  .date-day {
    font-size: 42px;
  }
}

.date-year {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.date-lunar {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ============================================================
   6. ALBUM ẢNH (5-PHOTO ASYMMETRIC COLLAGE)
   ============================================================ */
.album-inner {
  padding-top: 26px;
  padding-bottom: 34px;
}

.album-collage {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr 0.85fr;
  gap: 8px;
}

.album-tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-color: #d9d9d9;
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.album-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.album-tile:hover img {
  transform: scale(1.045);
}

.album-tile.tile-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.album-tile.tile-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.album-tile.tile-3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.album-bottom-row {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 8px;
}

.album-more-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.25s ease;
}

.album-tile:hover .album-more-overlay {
  background-color: rgba(0, 0, 0, 0.42);
}

/* ============================================================
   7. RECEPTION, COUNTDOWN, CALENDAR & RSVP BUTTON
   ============================================================ */
.reception-lead {
  font-size: 16px;
  color: var(--green-primary);
  margin-bottom: 10px;
}

.reception-time {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 20px;
}

.countdown-block {
  margin: 26px 0 22px;
}

.countdown-heading {
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.countdown-timer {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-soft);
}

@media (min-width: 768px) {
  .countdown-timer {
    font-size: 22px;
  }
}

.calendar-card {
  width: 100%;
  max-width: 390px;
  margin: 0 auto 24px;
  border: 1px solid rgba(31, 58, 37, 0.22);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  font-family: var(--font-sans);
}

.calendar-header {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--green-primary);
  border-bottom: 1px solid rgba(31, 58, 37, 0.16);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px 10px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--green-primary);
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 8px;
  padding: 14px 10px 16px;
  font-size: 13px;
  color: var(--text-soft);
}

.cal-cell {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cal-heart-badge {
  position: relative;
  width: 32px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: heart-beat 2.2s ease-in-out infinite;
}

.cal-heart-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--green-primary);
}

.cal-heart-badge span {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  margin-top: -2px;
}

.reception-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.calendar-link {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.calendar-link:hover {
  color: var(--green-primary);
}

.primary-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background-color: var(--green-primary);
  color: #ffffff;
  padding: 12px 28px;
  font-family: var(--font-banner);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 58, 37, 0.22);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.primary-pill-btn:hover {
  background-color: #162b1a;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 58, 37, 0.28);
}

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

/* ============================================================
   8. VENUE & GOOGLE MAPS
   ============================================================ */
.venue-inner {
  padding-top: 28px;
  padding-bottom: 34px;
}

.venue-address {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 22px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .venue-address {
    font-size: 17px;
  }
}

.map-frame-wrap {
  width: 96%;
  max-width: 660px;
  margin: 0 auto 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(31, 58, 37, 0.16);
  background-color: #e9efe9;
  box-shadow: 0 8px 24px rgba(31, 58, 37, 0.08);
}

.map-frame-wrap iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

@media (min-width: 768px) {
  .map-frame-wrap iframe {
    height: 420px;
  }
}

.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

.directions-link:hover {
  background-color: rgba(31, 58, 37, 0.08);
}

/* ============================================================
   9. GUESTBOOK (SỔ LƯU BÚT)
   ============================================================ */
.guestbook-inner {
  padding-top: 32px;
  padding-bottom: 28px;
}

.guestbook-card {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  font-family: var(--font-sans);
}

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

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  color: #1f2937;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(31, 58, 37, 0.12);
}

.guestbook-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.magic-wish-btn {
  width: 42px;
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #f3f4f6;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.magic-wish-btn:hover {
  background-color: #e5e7eb;
  transform: scale(1.06);
}

.wish-submit-btn {
  border-radius: 9999px;
  padding: 12px 30px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wishes-list {
  width: 100%;
  max-width: 580px;
  margin: 26px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.wishes-empty {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #9ca3af;
  padding: 8px 0;
}

.wish-item {
  background-color: #ffffff;
  border: 1px solid rgba(31, 58, 37, 0.12);
  border-left: 3px solid var(--green-primary);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  box-shadow: 0 4px 12px rgba(31, 58, 37, 0.04);
}

.wish-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.wish-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-primary);
}

.wish-time {
  font-size: 11px;
  color: #9ca3af;
}

.wish-body {
  font-size: 14px;
  color: #374151;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============================================================
   10. GIFT BOX SECTION & FOOTER
   ============================================================ */
.gift-section {
  padding: 28px 20px 30px;
  text-align: center;
}

.gift-section-title {
  font-family: var(--font-banner);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--green-primary);
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .gift-section-title {
    font-size: 23px;
  }
}

.gift-box-stage {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.gift-box-btn {
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 16px 34px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-gift-svg {
  width: 210px;
  height: 210px;
  animation: gift-bob 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.gift-box-btn:hover .main-gift-svg {
  transform: scale(1.06) rotate(-1.5deg);
}

.gift-hint {
  margin-top: 2px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  animation: hint-pulse 2s ease-in-out infinite;
}

/* Floating ornaments around gift box */
.confetti {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.85;
  pointer-events: none;
  animation: confetti-float 3.2s ease-in-out infinite;
}

.confetti.c1 {
  top: 12px;
  left: 42%;
  background: #f472b6;
  transform: rotate(22deg);
}

.confetti.c2 {
  top: 22px;
  left: 52%;
  background: #34d399;
  width: 10px;
  height: 6px;
  animation-delay: 0.5s;
}

.confetti.c3 {
  top: 16px;
  left: 60%;
  background: #60a5fa;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  animation-delay: 1s;
}

.confetti.c4 {
  top: 38px;
  left: 34%;
  background: #fbbf24;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation-delay: 1.4s;
}

.confetti.c5 {
  top: 44px;
  right: 32%;
  background: #a78bfa;
  transform: rotate(-28deg);
  animation-delay: 0.8s;
}

.sparkle {
  position: absolute;
  color: #52a467;
  font-size: 16px;
  pointer-events: none;
  animation: sparkle-twinkle 2.4s ease-in-out infinite;
}

.sparkle.s1 {
  top: 32px;
  left: 24%;
}

.sparkle.s2 {
  top: 58px;
  right: 16%;
  font-size: 13px;
  animation-delay: 0.9s;
}

.sparkle.s3 {
  bottom: 58px;
  left: 16%;
  font-size: 12px;
  animation-delay: 1.6s;
}

.mini-gift {
  position: absolute;
  font-size: 24px;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.14));
  animation: gift-bob 3.6s ease-in-out infinite;
}

.mini-gift.mg-1 {
  top: 24px;
  left: 10%;
  transform: rotate(-16deg);
  animation-delay: 0.3s;
}

.mini-gift.mg-2 {
  top: 20px;
  right: 10%;
  transform: rotate(15deg);
  animation-delay: 1.1s;
}

.mini-gift.mg-3 {
  bottom: 48px;
  right: 14%;
  font-size: 20px;
  transform: rotate(-10deg);
  animation-delay: 0.7s;
}

.closing-note {
  max-width: 520px;
  margin: 14px auto 34px;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .closing-note {
    font-size: 20px;
  }
}

.invitation-footer {
  padding-top: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #9ca3af;
}

/* ============================================================
   11. FLOATING MUSIC TOGGLE (VINYL DISC)
   ============================================================ */
.music-toggle-btn {
  position: fixed;
  right: 16px;
  bottom: 44px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(232, 240, 228, 0.3);
  background: radial-gradient(circle at 32% 32%, #2d5436, #142818);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 32, 18, 0.38);
  transition: transform 0.2s ease;
}

.music-toggle-btn:hover {
  transform: scale(1.06);
}

.music-toggle-btn .music-equalizer {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 16px;
}

.music-toggle-btn .music-note-icon {
  display: block;
}

.music-toggle-btn.is-playing {
  animation: spin-cd 7s linear infinite;
}

.music-toggle-btn.is-playing .music-equalizer {
  display: flex;
}

.music-toggle-btn.is-playing .music-note-icon {
  display: none;
}

.eq-bar {
  width: 3px;
  border-radius: 2px;
  background-color: #ffffff;
}

.eq-bar.b1 {
  height: 10px;
  animation: eq-dance 0.65s ease-in-out infinite alternate;
}

.eq-bar.b2 {
  height: 16px;
  animation: eq-dance 0.5s ease-in-out infinite alternate-reverse;
}

.eq-bar.b3 {
  height: 8px;
  animation: eq-dance 0.72s ease-in-out infinite alternate;
}

.eq-bar.b4 {
  height: 14px;
  animation: eq-dance 0.58s ease-in-out infinite alternate-reverse;
}

/* ============================================================
   12. MODALS (RSVP & GIFT QR)
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fade-in 0.22s ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: scale-up 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* RSVP Modal */
.rsvp-panel {
  max-width: 480px;
  background-color: #ffffff;
  padding: 28px 24px 24px;
  font-family: var(--font-sans);
  text-align: left;
}

.modal-close-circle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background-color: #f3f4f6;
  color: #4b5563;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close-circle:hover {
  background-color: #e5e7eb;
}

.rsvp-title {
  font-size: 21px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  padding-right: 36px;
}

.rsvp-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.55;
  margin-bottom: 20px;
}

.rsvp-field {
  margin-bottom: 16px;
}

.rsvp-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.mb-0 {
  margin-bottom: 0;
}

.rsvp-input,
.rsvp-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: #111827;
  outline: none;
}

.rsvp-input:focus,
.rsvp-textarea:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(31, 58, 37, 0.12);
}

.rsvp-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rsvp-radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.rsvp-radio-card input {
  display: none;
}

.radio-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background-color: #e5e7eb;
  color: #6b7280;
  flex-shrink: 0;
}

.radio-text {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.rsvp-radio-card.selected-yes {
  border-color: #10b981;
  background-color: #ecfdf5;
}

.rsvp-radio-card.selected-yes .yes-badge {
  background-color: #10b981;
  color: #ffffff;
}

.rsvp-radio-card.selected-yes .radio-text {
  color: #047857;
}

.rsvp-radio-card.selected-no {
  border-color: #6b7280;
  background-color: #f9fafb;
}

.rsvp-radio-card.selected-no .no-badge {
  background-color: #4b5563;
  color: #ffffff;
}

.rsvp-conditional {
  margin-bottom: 16px;
}

.rsvp-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.stepper-controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: #374151;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn:hover {
  background-color: #f3f4f6;
}

.stepper-value {
  font-size: 16px;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
}

.rsvp-submit-btn {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 10px;
  background-color: var(--green-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.rsvp-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rsvp-submit-btn:not(:disabled):hover {
  background-color: #162b1a;
}

/* Gift Modal */
.gift-panel {
  max-width: 520px;
  background-color: var(--sage-modal);
  overflow: hidden;
  text-align: center;
}

.gift-modal-header {
  position: relative;
  background-color: var(--green-primary);
  padding: 20px 44px;
  text-align: center;
}

.gift-modal-header h3 {
  font-family: var(--font-banner);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.gift-modal-close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

.gift-modal-close:hover {
  color: #ffffff;
}

.gift-modal-body {
  padding: 26px 24px 32px;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gift-card-label {
  font-size: 16px;
  font-weight: 500;
  color: #2f4232;
  margin-bottom: 18px;
}

.gift-qr-frame {
  width: 196px;
  height: 196px;
  background-color: #ffffff;
  border-radius: 14px;
  padding: 10px;
  border: 2px solid rgba(31, 58, 37, 0.14);
  box-shadow: 0 12px 28px rgba(31, 58, 37, 0.14);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gift-bank-info {
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.55;
}

.gift-bank-name {
  font-size: 14px;
  font-weight: 500;
}

.gift-account-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.gift-account-holder {
  font-size: 15px;
  font-weight: 700;
  color: #27382a;
}

.gift-modal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gift-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-primary);
  background-color: rgba(31, 58, 37, 0.1);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.gift-pill-btn:hover {
  background-color: rgba(31, 58, 37, 0.18);
  transform: translateY(-1px);
}

/* ============================================================
   13. PHOTO LIGHTBOX (1 / 16 + THUMBNAILS)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background-color: rgba(8, 12, 9, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  animation: fade-in 0.2s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-family: var(--font-sans);
  z-index: 2;
}

.lightbox-counter {
  font-size: 14px;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 9999px;
}

.lightbox-close-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 44px;
}

.lightbox-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.lightbox-nav:hover {
  background-color: rgba(255, 255, 255, 0.28);
}

.lightbox-nav.prev {
  left: 6px;
}

.lightbox-nav.next {
  right: 6px;
}

.lightbox-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px 4px;
  max-width: 100%;
  margin: 0 auto;
  scrollbar-width: thin;
}

.lightbox-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: transparent;
  opacity: 0.55;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--green-accent);
  transform: scale(1.05);
}

/* ============================================================
   14. TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 150;
  background-color: var(--green-primary);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 9999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
  animation: fade-in 0.2s ease;
}

/* ============================================================
   15. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes ambient-rise {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.35;
  }
  85% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(-108vh) translateX(var(--sway, 18px)) rotate(14deg);
    opacity: 0;
  }
}

@keyframes seal-pulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(232, 240, 228, 0.45),
      inset 0 2px 4px rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow: 0 4px 30px rgba(232, 240, 228, 0.8),
      inset 0 2px 4px rgba(255, 255, 255, 0.45);
  }
}

@keyframes seal-break {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  45% {
    transform: translate(-50%, -50%) scale(1.22);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
  }
}

@keyframes seal-ring {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes envelope-away {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.06) translateY(-28px);
    opacity: 0;
  }
}

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

@keyframes eq-dance {
  0% {
    height: 4px;
  }
  100% {
    height: 16px;
  }
}

@keyframes heart-beat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes gift-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes hint-pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes confetti-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(18deg);
  }
}

@keyframes sparkle-twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scale-up {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
