/* =============================================
   WEDDING INVITATION — PREMIUM STYLESHEET
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --gold: #c9a84c;
  --gold-light: #e2c97e;
  --gold-dark: #a07830;
  --gold-pale: #f5edd8;
  --ivory: #fdf8f0;
  --ivory-dark: #f7f0e4;
  --cream: #faf5eb;
  --text-dark: #3a2c1e;
  --text-mid: #5a4633;
  --text-light: #8a7060;
  --white: #ffffff;
  --shadow: rgba(160, 120, 48, 0.15);
  --card-max: 620px;
  --radius: 4px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--ivory);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Loading Screen ---------- */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  text-align: center;
  position: relative;
}
.loader-floral {
  font-size: 3.5rem;
  animation: floralPulse 1.6s ease-in-out infinite;
  display: block;
  margin-bottom: 1rem;
}
.loader-ring {
  width: 72px;
  height: 72px;
  border: 2px solid var(--gold-pale);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.2rem;
}
.loader-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-mid);
  font-style: italic;
  letter-spacing: 0.08em;
}

@keyframes floralPulse {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  50% { transform: scale(1.15) rotate(5deg); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Petal Canvas ---------- */
#petal-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Music Button ---------- */
#music-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(160,120,48,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
#music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(160,120,48,0.5);
}
#music-btn.playing { animation: musicPulse 2s ease-in-out infinite; }
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(160,120,48,0.4); }
  50% { box-shadow: 0 4px 32px rgba(160,120,48,0.7); }
}

/* ---------- Main Wrapper ---------- */
#invitation-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 2rem 1rem 4rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ---------- Invitation Card ---------- */
#invitation-card {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: var(--card-max);
  border: 1.5px solid var(--gold);
  padding: 3rem 2.5rem;
  box-shadow:
    0 0 0 6px var(--ivory),
    0 0 0 7px var(--gold-light),
    0 30px 80px rgba(160, 120, 48, 0.18),
    0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* ---------- Floral Corners ---------- */
.floral-corner {
  position: absolute;
  width: 240px;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply;   /* white bg merges into card's white — only flowers show */
  opacity: 0.97;
  display: block;
}
.floral-tl {
  top: -8px;
  left: -8px;
  transform-origin: top left;
}
.floral-br {
  bottom: -8px;
  right: -8px;
  transform-origin: bottom right;
  transform: rotate(180deg);
}

/* ---------- Ornament Corners ---------- */
.ornament-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
}
.ornament-corner::before,
.ornament-corner::after {
  content: '';
  position: absolute;
  background: var(--gold);
}
.oc-tl { top: 10px; left: 10px; }
.oc-tr { top: 10px; right: 10px; }
.oc-bl { bottom: 10px; left: 10px; }
.oc-br { bottom: 10px; right: 10px; }

.oc-tl::before { width: 100%; height: 1px; top: 0; left: 0; }
.oc-tl::after  { width: 1px; height: 100%; top: 0; left: 0; }
.oc-tr::before { width: 100%; height: 1px; top: 0; right: 0; }
.oc-tr::after  { width: 1px; height: 100%; top: 0; right: 0; }
.oc-bl::before { width: 100%; height: 1px; bottom: 0; left: 0; }
.oc-bl::after  { width: 1px; height: 100%; bottom: 0; left: 0; }
.oc-br::before { width: 100%; height: 1px; bottom: 0; right: 0; }
.oc-br::after  { width: 1px; height: 100%; bottom: 0; right: 0; }

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Sections ---------- */
.inv-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.2rem 0;
}

/* ---------- Gold Divider ---------- */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  max-width: 140px;
}
.divider-heart,
.divider-diamond {
  color: var(--gold);
  font-size: 0.9rem;
}

/* ---------- Opening Text ---------- */
.together-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.invite-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--text-mid);
  margin: 0.25rem 0;
  font-style: italic;
}

/* ---------- Names ---------- */
#sec-names {
  padding: 0.5rem 0;
}
.bride-groom-name {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-shadow: none;
}
.groom-name {
  font-size: clamp(3.2rem, 10vw, 5rem);
  margin-bottom: 0.2rem;
}
.bride-name {
  font-size: clamp(3.2rem, 10vw, 5rem);
  margin-top: 0.2rem;
}
.weds-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.6rem 0;
}
.weds-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  max-width: 100px;
}
.weds-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Details Grid ---------- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--gold-pale);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--cream) 100%);
  overflow: hidden;
}
.detail-col {
  padding: 1.6rem 0.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.detail-sep {
  background: var(--gold-pale);
  width: 1px;
}
.detail-center-col {
  border-left: 1px solid var(--gold-pale);
  border-right: 1px solid var(--gold-pale);
}
.detail-icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
}
.detail-icon svg { width: 100%; height: 100%; }

/* Date column */
.detail-day {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}
.detail-month {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* Time column */
.detail-time {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}
.detail-ampm {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* Venue column */
.detail-venue-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-align: center;
}
.detail-venue-place {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.15rem;
  text-align: center;
  line-height: 1.5;
}

/* Legacy aliases kept for backward compat */
.detail-main { display: none; }
.detail-sub  { display: none; }
.venue-main  { display: none; }

/* ---------- Countdown ---------- */
.countdown-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-style: italic;
}
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--cream) 100%);
  border: 1px solid var(--gold-pale);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  min-width: 66px;
}
.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  display: block;
}
.countdown-unit-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.countdown-sep {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.2rem;
  align-self: flex-start;
  margin-top: 0.6rem;
}

/* ---------- Parents ---------- */
.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--cream) 100%);
  border: 1px solid var(--gold-pale);
  border-radius: 6px;
  overflow: hidden;
}
.parent-card {
  padding: 1.6rem 1.2rem;
  text-align: center;
}
.parent-divider-vert {
  background: var(--gold-pale);
  width: 1px;
}
.parent-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.parent-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 0.8rem;
}
.parent-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  color: var(--text-dark);
  line-height: 1.5;
  font-style: italic;
  letter-spacing: 0.04em;
}
.parent-address {
  margin-top: 0.8rem;
  border-top: 1px solid var(--gold-pale);
  padding-top: 0.7rem;
}
.parent-address p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.7;
  letter-spacing: 0.04em;
}

/* ---------- Action Buttons ---------- */
.action-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  background: transparent;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}
.action-btn:hover {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(160,120,48,0.3);
  transform: translateY(-2px);
}
.action-btn-whatsapp {
  background: transparent;
  border-color: #25D366;
  color: #1a9e4d;
}
.action-btn-whatsapp:hover {
  background: #25D366;
  color: white;
  box-shadow: 0 6px 24px rgba(37,211,102,0.3);
}
.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Embedded Map ---------- */
#sec-map { padding: 0.5rem 0 1rem; }
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--gold-pale);
  box-shadow: 0 4px 20px rgba(160,120,48,0.12);
  line-height: 0;
}
.map-wrap iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}
@media (max-width: 560px) {
  .map-wrap iframe { height: 200px; }
}

/* ---------- RSVP ---------- */
#sec-rsvp { padding: 1rem 0 0.5rem; }
.rsvp-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.4rem;
}
.rsvp-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.rsvp-btn {
  padding: 0.8rem 1.6rem;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}
.rsvp-yes {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(160,120,48,0.3);
}
.rsvp-yes:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(160,120,48,0.4); }
.rsvp-no { color: var(--text-mid); }
.rsvp-no:hover { background: var(--ivory-dark); }
.rsvp-form-wrap {
  margin-top: 1.4rem;
  text-align: left;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.form-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gold-pale);
  border-radius: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--ivory);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.rsvp-submit {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(160,120,48,0.3);
}
.rsvp-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(160,120,48,0.45); }

/* RSVP Messages */
.rsvp-msg { margin-top: 1.2rem; text-align: center; animation: fadeInUp 0.6s ease; }
.rsvp-check {
  display: inline-block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: white;
  font-size: 1.4rem;
  line-height: 52px;
  margin-bottom: 0.8rem;
}
.rsvp-msg-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.6;
}
.rsvp-sub-msg {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Footer ---------- */
#sec-footer { padding-bottom: 1.5rem; }
.footer-message {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.8;
  letter-spacing: 0.04em;
}
.blessing-wrap {
  margin: 1.6rem 0 1.2rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--gold-pale);
  border-bottom: 1px solid var(--gold-pale);
}
.blessing-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 600;
}
.footer-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.monogram-letter {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}
.monogram-heart {
  font-size: 1.1rem;
  color: var(--gold);
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 560px) {
  #invitation-card {
    padding: 2.5rem 1.4rem;
    border-width: 1px;
    box-shadow:
      0 0 0 4px var(--ivory),
      0 0 0 5px var(--gold-light),
      0 16px 50px rgba(160, 120, 48, 0.16);
  }

  .floral-corner { width: 160px; }

  .groom-name, .bride-name { font-size: clamp(2.8rem, 13vw, 4rem); }

  .details-grid {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }
  .detail-center-col {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--gold-pale);
    border-bottom: 1px solid var(--gold-pale);
  }
  .detail-col { padding: 1.1rem 1rem; }
  .detail-day  { font-size: 2rem; }
  .detail-time { font-size: 1.8rem; }
  .detail-venue-name { font-size: 0.95rem; }

  .parents-grid {
    grid-template-columns: 1fr;
  }
  .parent-divider-vert {
    width: 100%;
    height: 1px;
    background: var(--gold-pale);
  }
  .parent-card { padding: 1.2rem 1rem; }

  .countdown-unit { min-width: 54px; padding: 0.6rem 0.5rem; }
  .countdown-num { font-size: 1.6rem; }

  .action-btns { flex-direction: column; align-items: center; }
  .action-btn { width: 100%; max-width: 260px; justify-content: center; }

  .rsvp-buttons { flex-direction: column; align-items: center; }
  .rsvp-btn { width: 100%; max-width: 280px; }
}

@media (max-width: 400px) {
  #invitation-card { padding: 2rem 1rem; }
  .countdown-grid { gap: 0.2rem; }
  .countdown-unit { min-width: 48px; }
  .countdown-num { font-size: 1.4rem; }
  .countdown-sep { font-size: 1.4rem; }
}

/* ---------- Background Body ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(201,168,76,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(201,168,76,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   RSVP MODAL — Full-screen overlay
   ============================================= */
.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* semi-transparent blurred backdrop */
  background: rgba(250, 245, 235, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  animation: modalFadeIn 0.45s ease forwards;
  padding: 1rem;
}
@keyframes modalFadeIn {
  to { opacity: 1; }
}

/* Petal canvas inside the modal (fills the overlay) */
#modal-petal-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Close × button */
.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  transition: color var(--transition), transform var(--transition);
}
.modal-close:hover { color: var(--gold-dark); transform: rotate(90deg); }

/* White card */
.modal-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  padding: 2.4rem 2rem 2rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow:
    0 0 0 5px rgba(245,237,216,0.8),
    0 0 0 6px rgba(226,201,126,0.35),
    0 28px 60px rgba(160,120,48,0.2),
    0 8px 24px rgba(0,0,0,0.08);
  animation: cardSlideUp 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
  transform: translateY(30px);
  opacity: 0;
}
@keyframes cardSlideUp {
  to { transform: translateY(0); opacity: 1; }
}

/* Floral emoji row */
.modal-floral-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.modal-floral-leaf  { font-size: 1.6rem; }
.modal-floral-bloom { font-size: 2.2rem; animation: floralPulse 2s ease-in-out infinite; }

/* Headings inside modal */
.modal-title {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.modal-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

/* Divider inside modal */
.modal-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem 0 1.2rem;
}
.modal-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.modal-divider-heart { color: var(--gold); font-size: 0.85rem; }

/* Name field */
.modal-field { text-align: left; margin-bottom: 1.2rem; }
.modal-label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gold-pale);
  border-radius: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--ivory);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-align: center;
}
.modal-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

/* "How many…" question */
.modal-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* Guest stepper */
.guest-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-bottom: 0.5rem;
}
.stepper-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-pale);
  background: var(--ivory);
  color: var(--text-dark);
  font-size: 1.4rem;
  font-family: 'Playfair Display', serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all var(--transition);
  user-select: none;
}
.stepper-btn:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(160,120,48,0.3);
}
.stepper-btn:active { transform: scale(0.96); }
.stepper-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 2rem;
  text-align: center;
  display: inline-block;
  transition: transform 0.15s ease;
}
.stepper-num.bump {
  animation: numBump 0.22s ease;
}
@keyframes numBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.stepper-hint {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--text-light);
  margin-bottom: 1.6rem;
}

/* Submit button */
.modal-submit-btn {
  width: 100%;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, #6a9c6b 0%, #4a7c4e 100%);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 6px 20px rgba(74,124,78,0.35);
}
.modal-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74,124,78,0.45);
}
.modal-submit-btn:active { transform: translateY(0); }

/* Thank-you ring */
.modal-thankyou-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 68px;
  margin: 0.5rem auto 0;
  box-shadow: 0 8px 24px rgba(160,120,48,0.35);
  animation: ringPop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes ringPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Close button inside step 2 */
.modal-close-btn {
  padding: 0.75rem 2rem;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  background: transparent;
  color: var(--gold-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition);
}
.modal-close-btn:hover {
  background: var(--gold);
  color: var(--white);
}

/* Prevent body scroll when modal open */
body.modal-open { overflow: hidden; }

/* Mobile adjustments */
@media (max-width: 440px) {
  .modal-card { padding: 2rem 1.3rem 1.8rem; }
  .modal-title { font-size: 2.4rem; }
  .stepper-num { font-size: 2rem; }
}

