@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Great+Vibes&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

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

#musicBtn {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(43,74,127,0.35);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(43,74,127,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#musicBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(43,74,127,0.28);
}

:root {
  --navy:        #2b4a7f;
  --navy-dark:   #1d3461;
  --navy-mid:    #3a6394;
  --navy-light:  #dce8f5;
  --navy-pale:   #f0f5fb;
  --white:       #ffffff;
  --cream:       #f8f9fc;
  --text:        #1d3461;
  --text-muted:  #7b90b5;
  --gold:        #b8976a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  max-width: 480px;
  margin: 0 auto;
}

/* ══════════════════════════
   HERO
══════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/cover_pic.png') center/cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 9s ease forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(20,40,80,0.75) 75%,
    rgba(20,40,80,0.92) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  padding: 2rem 2rem 3rem;
  color: #fff;
  text-align: left;
}

.hero-pre {
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.8rem;
  display: block;
}

.hero-names {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 12vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.hero-names .and {
  font-family: 'Great Vibes', cursive;
  font-size: 0.55em;
  font-weight: 400;
  display: block;
  opacity: 0.85;
  line-height: 1.2;
  margin-left: 0.1em;
}

.hero-scroll {
  position: absolute;
  bottom: 1.2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll svg { width: 16px; height: 16px; }

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

/* ══════════════════════════
   SAVE THE DATE
══════════════════════════ */
.save-section {
  background: var(--white);
  text-align: center;
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.save-section::before,
.save-section::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='%232b4a7f' stroke-width='0.5' opacity='0.15'/%3E%3Cellipse cx='100' cy='60' rx='20' ry='35' fill='none' stroke='%232b4a7f' stroke-width='0.5' opacity='0.15'/%3E%3Cellipse cx='60' cy='120' rx='15' ry='28' fill='none' stroke='%232b4a7f' stroke-width='0.5' opacity='0.15' transform='rotate(-30 60 120)'/%3E%3Cellipse cx='140' cy='120' rx='15' ry='28' fill='none' stroke='%232b4a7f' stroke-width='0.5' opacity='0.15' transform='rotate(30 140 120)'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

.save-section::before { top: -60px; left: -60px; }
.save-section::after  { bottom: -60px; right: -60px; transform: rotate(180deg); }

.save-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 1rem;
}

.save-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-bottom: 1.8rem;
}

.save-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--navy-mid);
  display: block;
  margin-bottom: 0.5rem;
}

.save-date-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  display: block;
}

.save-photo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 8px 40px rgba(29,52,97,0.18);
  margin: 0 auto;
  display: block;
}

/* ══════════════════════════
   CALENDAR
══════════════════════════ */
.calendar-section {
  background: var(--navy);
  padding: 3rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.calendar-section::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -40px;
  width: 200px; height: 200px;
  border: 60px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.cal-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
  display: block;
  margin-bottom: 1.2rem;
}

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

.cal-head {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  padding: 0.4rem 0;
  text-transform: uppercase;
}

.cal-day {
  text-align: center;
  padding: 0.55rem 0.2rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  border-radius: 50%;
  cursor: default;
  line-height: 1;
}

.cal-day.empty { opacity: 0; }

.cal-day.vu-quy {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
  position: relative;
}

.cal-day.vu-quy::after {
  content: 'LVQ';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.45rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.cal-day.tiec-cuoi {
  background: transparent;
  color: var(--navy-dark);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.cal-day.tiec-cuoi::before {
  content: '♥';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  font-size: 2.6rem;
  color: #fff;
  line-height: 1;
  z-index: -1;
  pointer-events: none;
}

.cal-day.tiec-cuoi::after {
  content: 'TC';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.45rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

.cal-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.8rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cal-legend .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.cal-legend .dot.d1 { background: rgba(255,255,255,0.25); }
.cal-legend .dot.d2 { background: #fff; }

/* ══════════════════════════
   COUPLE
══════════════════════════ */
.couple-section {
  background: var(--cream);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.couple-section::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Ccircle cx='80' cy='80' r='70' fill='none' stroke='%232b4a7f' stroke-width='0.5' opacity='0.12'/%3E%3Cellipse cx='80' cy='40' rx='16' ry='28' fill='none' stroke='%232b4a7f' stroke-width='0.5' opacity='0.12'/%3E%3Cellipse cx='40' cy='100' rx='12' ry='22' fill='none' stroke='%232b4a7f' stroke-width='0.5' opacity='0.12' transform='rotate(-30 40 100)'/%3E%3Cellipse cx='120' cy='100' rx='12' ry='22' fill='none' stroke='%232b4a7f' stroke-width='0.5' opacity='0.12' transform='rotate(30 120 100)'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}

.couple-invite {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.couple-names {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 10vw, 3.5rem);
  color: var(--navy-dark);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.couple-names .script-and {
  font-family: 'Great Vibes', cursive;
  font-size: 0.6em;
  font-weight: 400;
  display: block;
  color: var(--navy-mid);
  line-height: 1.3;
}

.polaroids {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
  height: 280px;
}

.polaroid {
  background: #fff;
  padding: 10px 10px 36px;
  box-shadow: 0 6px 28px rgba(29,52,97,0.18);
  width: 145px;
  position: absolute;
  left: 50%;
  margin-left: -72px;
}

.polaroid:first-child {
  transform: rotate(-6deg) translateX(-82px);
  z-index: 1;
}

.polaroid:last-child {
  transform: rotate(5deg) translateX(82px);
  z-index: 2;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.polaroid .pol-label {
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 1.1rem;
  color: var(--navy);
  margin-top: 0.3rem;
}

/* ══════════════════════════
   EVENT DETAILS
══════════════════════════ */
.events-section {
  background: var(--white);
  padding: 3.5rem 2rem;
  text-align: center;
}

.event-block {
  margin-bottom: 2.5rem;
}

.event-block:last-child { margin-bottom: 0; }

.event-time-label {
  font-size: 0.68rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.event-time-val {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.event-day-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.event-day-row .pill {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.25rem 1rem;
  border-radius: 30px;
}

.event-day-row .month { font-size: 0.8rem; letter-spacing: 0.2em; color: var(--text-muted); }

.event-date-big {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1;
  border: 2px solid var(--navy-light);
  border-radius: 4px;
  padding: 0.1rem 0.8rem;
  display: inline-block;
  margin: 0 0.5rem;
}

.event-year { font-size: 0.9rem; letter-spacing: 0.2em; color: var(--text-muted); }

.event-lunar {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0.6rem 0 1rem;
}

.event-icon {
  font-size: 2rem;
  margin: 1rem 0;
  display: block;
  opacity: 0.7;
}

.event-place-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.event-address {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.6rem;
  border: 1.5px solid var(--navy);
  border-radius: 30px;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn-map svg { width: 14px; height: 14px; }
.btn-map:hover { background: var(--navy); color: #fff; }

.event-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--navy-light), transparent);
  margin: 1.5rem auto;
}

/* ══════════════════════════
   TIMELINE
══════════════════════════ */
.timeline-section {
  background: var(--white);
}

.timeline-bg-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.timeline-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(29,52,97,0.15) 0%,
    rgba(29,52,97,0.7) 100%
  );
}

.timeline-script {
  position: absolute;
  bottom: 1.5rem;
  left: 1.8rem;
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.timeline-list {
  padding: 2.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px 56px 1fr;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--navy-light);
  position: relative;
}

.timeline-item:last-child { border-bottom: none; }

.tl-icon {
  font-size: 1.6rem;
  text-align: center;
  line-height: 1.4;
  filter: saturate(0.6) brightness(0.8) sepia(0.4);
  opacity: 0.75;
}

.tl-time {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  padding-top: 0.15rem;
  white-space: nowrap;
}

.tl-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--navy-dark);
  margin-bottom: 0.3rem;
}

.tl-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* ══════════════════════════
   GALLERY / OUR MEMORIES
══════════════════════════ */
.gallery-section {
  background: var(--white);
  padding: 3.5rem 1.5rem;
}

.gallery-header {
  margin-bottom: 1.8rem;
}

.gallery-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--navy);
  display: block;
  margin-bottom: 0.3rem;
}

.gallery-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gallery-grid .gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 3/4;
}

.gallery-item {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.5s ease;
  display: block;
}

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

/* ══════════════════════════
   RSVP
══════════════════════════ */
.rsvp-section {
  background: var(--navy);
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.rsvp-section::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  border: 60px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.rsvp-section .section-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.6rem;
  display: block;
}

.rsvp-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}

.rsvp-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.rsvp-desc strong { color: rgba(255,255,255,0.85); font-style: normal; }

.rsvp-contact {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

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

.contact-item .name {
  font-family: 'Great Vibes', cursive;
  font-size: 1.7rem;
  color: #fff;
}

.contact-item .role {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0.2rem 0;
}

.contact-item .phone {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

/* RSVP Form */
.rsvp-form { max-width: 420px; margin: 0 auto; }

.rsvp-fields { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.5rem; }

.rsvp-field { display: flex; flex-direction: column; gap: 0.35rem; text-align: left; }

.rsvp-field label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.rsvp-field input,
.rsvp-field textarea,
.rsvp-field select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #fff;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.rsvp-field select {
  resize: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  color: rgba(255,255,255,0.45);
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' stroke='rgba(255,255,255,0.45)' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}

.rsvp-field select.selected { color: #fff; }

.rsvp-field select option {
  background: #1d3461;
  color: #fff;
}

.rsvp-field input:focus,
.rsvp-field textarea:focus,
.rsvp-field select:focus { border-color: rgba(255,255,255,0.5); }
.rsvp-field input::placeholder,
.rsvp-field textarea::placeholder { color: rgba(255,255,255,0.3); font-style: italic; }

.btn-send-rsvp {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  border: 1.5px solid rgba(255,255,255,0.45);
  background: transparent;
  color: #fff;
  margin-top: 0.3rem;
}

.btn-send-rsvp:hover:not(:disabled) {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.75);
}

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

.rsvp-feedback {
  margin-top: 1.2rem;
  font-size: 1rem;
  font-style: italic;
  min-height: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.8);
}

.rsvp-feedback.error { color: #f4a0a0; }

/* ── RSVP SUCCESS POPUP ── */
.rsvp-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 58, 0.6);
  z-index: 8000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.rsvp-popup.open { display: flex; }

.rsvp-popup-box {
  background: #fafaf8;
  border-radius: 6px;
  max-width: 310px;
  width: 100%;
  padding: 1.4rem 1.6rem 2rem;
  position: relative;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.32);
  animation: popupIn 0.28s ease;
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.93) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.rsvp-popup-box::before {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 170px; height: 170px;
  background: radial-gradient(circle, rgba(43,74,127,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.rsvp-popup-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 26px; height: 26px;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  cursor: pointer;
  color: #9aabcc;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}

.rsvp-popup-close:hover { color: var(--navy); }

.rsvp-popup-header {
  display: flex;
  justify-content: flex-end;
  padding-right: 1.6rem;
  margin-bottom: 0.4rem;
}

.rsvp-popup-corner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  line-height: 1.6;
  color: var(--navy);
  font-weight: 600;
  text-transform: uppercase;
}

.rsvp-popup-divider {
  width: 30px;
  height: 1px;
  background: var(--navy);
  margin: 0 auto 0.9rem;
  opacity: 0.45;
}

.rsvp-popup-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2.6rem;
  color: var(--navy);
  display: block;
  margin-bottom: 1rem;
}

.rsvp-popup-photo {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  aspect-ratio: 3 / 2;
}

.rsvp-popup-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.rsvp-popup-msg {
  font-size: 0.88rem;
  color: #4a5a78;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 0.85rem;
  padding: 0 0.3rem;
}

.rsvp-popup-date {
  display: block;
  font-size: 0.82rem;
  color: #8a9ab8;
  letter-spacing: 0.14em;
}

/* ══════════════════════════
   COUNTDOWN + FOOTER
══════════════════════════ */
.countdown-section {
  background: var(--cream);
  text-align: center;
  padding: 3rem 1.5rem;
}

.countdown-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2.2rem;
  color: var(--navy);
  display: block;
  margin-bottom: 1.2rem;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
}

.countdown .sep {
  font-size: 0.6em;
  opacity: 0.4;
  margin: 0 0.2rem;
  align-self: flex-start;
  margin-top: 0.3rem;
}

.countdown-labels {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 0.3rem;
}

.countdown-labels span {
  width: calc((100% - 3 * 1rem) / 4);
  max-width: 80px;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.thankyou-section {
  position: relative;
  overflow: hidden;
}

.thankyou-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.thankyou-overlay {
  background: var(--navy-dark);
  padding: 2.5rem 2rem;
  text-align: center;
}

.thankyou-overlay p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  line-height: 1.9;
  max-width: 340px;
  margin: 0 auto 1.5rem;
}

.thankyou-script {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.85);
  display: block;
  margin-bottom: 1.5rem;
}

footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}
