/* ==========================================================================
   Afsal & Fairoosa Wedding Invitation Stylesheet - Redesigned UI
   ========================================================================== */

:root {
  --ivory: #FDF9F3;
  --ivory-deep: #F5E9D6;
  --ivory-light: #F9F8F3;
  --emerald: #164E3D;
  --emerald-deep: #114D3C;
  --emerald-light: #2D6A4F;
  --gold: #D4AF37;
  --gold-light: #F3E2C4;
  --gold-deep: #8F6B1E;
  --rose-accent: #C23768;
  --ink: #1A2E26;
  --navy: #1F1F35;
  
  --ghibli-sky-top: #0F2027;
  --paper-shadow: 0 20px 45px -15px rgba(13, 59, 46, 0.35);
}

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

html, body {
  background: var(--ivory-light);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

/* ---------- Fullscreen Interactive Canvas ---------- */
#ghibliCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- High-Visibility Floating Wishes Overlay ---------- */
.floating-wishes-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
  overflow: hidden;
}

/* Floating Sky Lantern & Wish Badge Animation */
.floating-dua-lantern {
  position: absolute;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: floatUpWish 6.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

@keyframes floatUpWish {
  0% {
    transform: translateY(100vh) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(80vh) scale(1) rotate(-3deg);
  }
  50% {
    transform: translateY(40vh) scale(1.05) rotate(3deg);
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-120px) scale(0.8) rotate(-2deg);
    opacity: 0;
  }
}

.dua-lantern-body {
  width: 38px;
  height: 48px;
  background: linear-gradient(180deg, #FFE082 0%, #FFB300 60%, #FF8F00 100%);
  border-radius: 8px 8px 12px 12px;
  border: 1.5px solid #FFD54F;
  box-shadow:
    0 0 25px #FFCA28,
    0 0 45px rgba(255, 179, 0, 0.6),
    inset 0 0 10px #FFF59D;
  position: relative;
}

.dua-lantern-body::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #FF3D00;
  border-radius: 50%;
  box-shadow: 0 0 12px #FF9100;
  animation: flameFlicker 0.6s infinite alternate;
}

@keyframes flameFlicker {
  0% { transform: translateX(-50%) scale(0.9); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(1.2); opacity: 1; }
}

.dua-wish-badge {
  background: rgba(13, 59, 46, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  padding: 6px 16px;
  color: var(--gold-light);
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}



/* ---------- Top Navigation Bar ---------- */
.top-nav-bar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--ivory-light);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding: 16px 24px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--emerald-deep);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  font-size: 16px;
  color: var(--ink);
  opacity: 0.8;
  font-weight: 500;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
}

.nav-link.active, .nav-link:hover {
  opacity: 1;
  color: var(--emerald-deep);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.music-toggle-icon {
  background: transparent;
  border: none;
  color: var(--emerald-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp-btn {
  background: var(--emerald-deep);
  color: #FFF;
  border: 1px solid var(--gold);
  border-radius: 30px;
  padding: 8px 24px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s ease;
}
.rsvp-btn:hover {
  background: var(--emerald);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .top-nav-bar {
    padding: 12px 16px;
  }
}

/* ---------- Main Content ---------- */
.main-content {
  display: flex;
  flex-direction: column;
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.8;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(249,248,243,0.1) 0%, rgba(249,248,243,0.6) 70%, rgba(249,248,243,1) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.hero-card {
  background: rgba(253, 249, 243, 0.7);
  /* backdrop-filter: blur(5px); */
  /* -webkit-backdrop-filter: blur(12px); */
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.4);
}

.hero-invited {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--emerald-deep);
  margin-bottom: 16px;
}

.hero-names {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--emerald-deep);
  margin-bottom: 16px;
}

.hero-amp {
  display: block;
  font-size: 32px;
  font-family: 'Great Vibes', cursive;
  color: var(--gold-deep);
  margin: 4px 0;
  line-height: 1;
}

.hero-knot {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 24px;
}

.hero-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--emerald-deep);
  line-height: 1;
}

.cd-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  margin-top: 4px;
  text-transform: uppercase;
}

.cd-sep {
  font-size: 24px;
  color: var(--gold-light);
  line-height: 1;
  margin-top: -12px;
}

/* ---------- Invitation Details Section ---------- */
.invitation-details-section {
  background: var(--ivory-light);
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bismillah-text {
  font-family: 'Amiri', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--emerald-deep);
  margin-bottom: 24px;
}

.hosts-info {
  margin-bottom: 24px;
}

.hosts-name {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--emerald-deep);
}

.hosts-addr {
  font-size: 12px;
  color: var(--ink);
  opacity: 0.8;
  margin-top: 4px;
}

.invite-msg {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.9;
  max-width: 480px;
  margin-bottom: 32px;
}

.couple-names-block {
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid rgba(192, 152, 58, 0.2);
  border-bottom: 1px solid rgba(192, 152, 58, 0.2);
  width: 100%;
  max-width: 400px;
}

.name-groom, .name-bride {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--emerald-deep);
}

.name-with {
  font-family: 'Great Vibes', cursive;
  font-size: 20px;
  color: var(--gold);
  margin: 4px 0;
}

.bride-parents-info {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 32px;
}

.inshaallah-divider {
  font-family: 'Marcellus', serif;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gold-bar {
  width: 3px;
  height: 10px;
  background: var(--gold);
}

/* ---------- Event Details Section ---------- */
.event-details-section {
  background: #F4F5F1;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-heading {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--emerald-deep);
  margin-bottom: 48px;
  text-align: center;
}
.section-heading.light {
  color: #FFF;
}

.event-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  width: 100%;
}

@media (min-width: 768px) {
  .event-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.event-card {
  border-radius: 12px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.light-card {
  background: var(--ivory-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.dark-card {
  background: var(--emerald-deep);
  color: #FFF;
}

.card-icon {
  margin-bottom: 20px;
}

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--emerald-deep);
  margin-bottom: 16px;
}
.dark-card .card-title {
  color: #FFF;
}

.card-date {
  font-size: 16px;
  font-weight: 600;
  color: var(--emerald-deep);
  margin-bottom: 4px;
}
.dark-card .card-date {
  color: #FFF;
}

.card-hijri {
  font-size: 13px;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 16px;
}

.card-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--emerald-deep);
  margin-bottom: 24px;
}

.card-venue {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  padding: 20px 0;
  border-top: 1px solid rgba(192, 152, 58, 0.2);
  border-bottom: 1px solid rgba(192, 152, 58, 0.2);
  width: 100%;
  margin-bottom: 24px;
}
.card-venue strong {
  color: var(--emerald-deep);
  font-size: 15px;
}

.card-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}
.card-actions a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}
.card-actions a:hover {
  opacity: 0.9;
}
.btn-dark-green {
  background: var(--emerald-deep);
  color: #FFF;
}
.btn-outline-green {
  background: transparent;
  border: 1px solid var(--emerald-deep);
  color: var(--emerald-deep);
}

/* Contact Card specifics */
.contact-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 8px;
  padding: 24px 20px;
  width: 100%;
}

.contact-name {
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
}

.contact-role {
  color: var(--emerald-light);
  font-size: 12px;
  margin-bottom: 16px;
  margin-top: 4px;
}
.dark-card .contact-role {
  color: rgba(255,255,255,0.7);
}

.contact-numbers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-numbers a {
  color: #FFF;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.contact-numbers a:hover {
  color: var(--gold);
}

.physical-card-action {
  margin-top: 32px;
}
.physical-btn {
  background: transparent;
  border: 1.5px solid var(--emerald-deep);
  color: var(--emerald-deep);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
}
.physical-btn:hover {
  background: var(--emerald-deep);
  color: #FFF;
}

/* ---------- Blessings Section ---------- */
.blessings-section {
  background: var(--navy);
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.blessings-icon {
  margin-bottom: 16px;
}

.blessings-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  max-width: 400px;
  margin-bottom: 40px;
}

.blessing-buttons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 600px;
  width: 100%;
  margin-bottom: 32px;
}
@media (min-width: 600px) {
  .blessing-buttons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.blessing-btn.dark-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 30px;
  padding: 14px 20px;
  color: #FFF;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Jost', sans-serif;
}
.blessing-btn.dark-pill:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--gold);
}
.blessing-btn.dark-pill:active {
  transform: scale(0.98);
}

.lantern-count-badge.dark-badge {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lantern-count-badge.dark-badge span {
  color: #FFF;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--emerald-deep);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-links a {
  color: #FFF;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
}
.footer-links a:hover {
  color: var(--gold);
}

.footer-copyright {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Wedding Card Fullscreen Modal ---------- */
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  height: 100vh;
  height: 100dvh;
  background: rgba(13, 59, 46, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
}

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

.card-modal-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 16px));
  right: 18px;
  z-index: 1001;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.4px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-modal-inner {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
  padding: 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.card-modal-inner::-webkit-scrollbar {
  display: none;
}

/* Digital Reproduction of Invitation Card */
.invitation-card-graphic {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px 16px;
  color: var(--emerald-deep);
  text-align: center;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  font-family: 'Cormorant Garamond', serif;
}

.card-border {
  border: 2px solid var(--emerald);
  padding: 16px 12px;
  border-radius: 8px;
}

.card-bismillah {
  font-family: 'Amiri', serif;
  font-size: 24px;
  color: var(--emerald);
  margin-bottom: 10px;
}

.card-hosts {
  font-size: 13.5px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--ink);
}

.card-body-text {
  font-size: 12.5px;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--ink);
}

.card-couple {
  margin: 10px 0;
}

.card-groom, .card-bride {
  font-family: 'Alex Brush', cursive;
  font-size: 38px;
  color: var(--emerald);
  line-height: 1.1;
}

.card-with {
  font-size: 12px;
  font-style: italic;
  color: var(--gold-deep);
  margin: 2px 0;
}

.card-bride-parents {
  font-size: 12.5px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.card-inshaallah {
  font-family: 'Marcellus', serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--emerald);
  margin: 10px 0 14px;
  font-weight: bold;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 6px;
  border-top: 1px solid var(--emerald);
  border-bottom: 1px solid var(--emerald);
  padding: 10px 0;
  margin-bottom: 14px;
}

.card-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-col:not(:last-child) {
  border-right: 1px solid rgba(22, 78, 61, 0.25);
}

.card-col-icon svg {
  width: 18px;
  height: 18px;
}

.card-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card-col-main-date {
  font-size: 20px;
  font-weight: 700;
  color: var(--emerald);
  line-height: 1.1;
}

.card-col-venue-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  margin: 2px 0;
}

.card-col-sub {
  font-size: 10px;
  color: var(--ink);
}

.card-col-hijri {
  font-size: 9px;
  color: var(--gold-deep);
  margin-top: 2px;
}

.card-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
}

.qr-svg {
  width: 80px;
  height: 80px;
  border: 1px solid var(--emerald);
  border-radius: 4px;
  padding: 4px;
}

.qr-label {
  font-size: 9.5px;
  color: var(--gold-deep);
  margin-top: 3px;
}

.card-footer-compliments {
  font-size: 11.5px;
  color: var(--ink);
  margin-top: 10px;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 380px) {
  .groom-name, .bride-name {
    font-size: 34px;
  }
  .cd-box {
    width: 48px;
    height: 48px;
  }
  .cd-number {
    font-size: 17px;
  }
  .ghibli-couple-frame {
    width: 180px;
    height: 220px;
  }
}

@media (min-width: 768px) {
  .card {
    max-width: 500px;
    margin: 0 auto;
    border-left: 1px solid rgba(192, 152, 58, 0.2);
    border-right: 1px solid rgba(192, 152, 58, 0.2);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  }
}


/* ---------- Entrance Cover ---------- */
.entrance-cover {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--ghibli-sky-top);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.entrance-cover.fade-out {
  opacity: 0;
  visibility: hidden;
}

.entrance-content {
  text-align: center;
  color: var(--gold-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.entrance-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--gold);
}

.entrance-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  letter-spacing: 1px;
}

.get-in-btn {
  margin-top: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--emerald-deep);
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(13, 59, 46, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.get-in-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.5);
}

.get-in-btn:active {
  transform: scale(0.96);
}


/* ---------- RSVP Modal ---------- */
.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
}

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

.rsvp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 25, 0.85);
  backdrop-filter: blur(4px);
}

.rsvp-modal-container {
  background: var(--ivory-light);
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 2001;
  padding: 32px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.rsvp-modal-container::-webkit-scrollbar {
  display: none;
}

.rsvp-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--ink);
  opacity: 0.6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.rsvp-modal-close:hover {
  opacity: 1;
}

.rsvp-header {
  text-align: center;
  margin-bottom: 24px;
}

.rsvp-subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rsvp-title {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--emerald-deep);
  margin-bottom: 8px;
}

.rsvp-date {
  font-size: 11px;
  color: var(--ink);
  opacity: 0.8;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 10px;
  font-weight: 700;
  color: var(--emerald-deep);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group label .required {
  color: var(--emerald-deep);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: var(--gold);
}

.textarea-icon-container {
  align-items: flex-start;
}
.textarea-icon-container .input-icon {
  top: 12px;
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon textarea {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  background: #FFF;
  padding: 12px 12px 12px 36px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.input-with-icon input:focus,
.input-with-icon select:focus,
.input-with-icon textarea:focus {
  border-color: var(--emerald);
}

.input-with-icon select {
  appearance: none;
  cursor: pointer;
}

.attendance-toggle {
  display: flex;
  gap: 8px;
}

.toggle-option {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.toggle-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: #FFF;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
}

.toggle-option input:checked + .toggle-btn {
  background: var(--emerald-deep);
  border-color: var(--emerald-deep);
  color: #FFF;
}

.check-icon {
  display: none;
}
.toggle-option input:checked + .toggle-btn .check-icon {
  display: block;
  color: var(--gold);
}

.submit-rsvp-btn {
  margin-top: 8px;
  background: var(--emerald-deep);
  color: #FFF;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-rsvp-btn svg {
  color: var(--gold);
}

.submit-rsvp-btn:hover {
  background: var(--emerald);
}

/* ---------- Info Modals (Privacy, Contact, Registry) ---------- */
.info-modal-container {
  max-width: 460px;
  padding: 40px 32px;
}

.info-modal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--emerald-deep);
  justify-content: center;
  margin-bottom: 8px;
}

.title-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
}

.info-modal-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
}

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

.info-modal-details {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}

.info-modal-details strong {
  color: var(--emerald-deep);
}

.info-modal-btn {
  margin-top: 16px;
}
