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

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

:root {
  --navy-deep: #0a0e27;
  --navy: #0f1535;
  --navy-light: #162050;
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #a07c2a;
  --cream: #f5f0e8;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, .6);
  --glass-bg: rgba(15, 21, 53, .65);
  --glass-border: rgba(201, 168, 76, .25);
  --radius: 20px;
  --shadow-gold: 0 10px 40px rgba(201, 168, 76, .15);
  --shimmer: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.2), transparent);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}

.script-font {
  font-family: 'Great Vibes', cursive;
}

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

a {
  color: var(--gold);
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ===== UTILITIES ===== */
.gold-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 18px auto;
}

.section-bg {
  position: relative;
  background-image: url('images/other_pages.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Desktop-only Background Rule (MANDATORY) */
@media (min-width: 992px) {
  .section-bg {
    background-image: url('images/other_pages_landscape.jpeg');
    background-size: cover;
    background-position: center;
  }
}

.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 39, .72);
  z-index: 0;
}

.section-bg>* {
  position: relative;
  z-index: 1;
}

/* ===== SCROLL & REVEAL ===== */
.section-bg,
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 768px) {
  .reveal {
    filter: none !important; /* Prevents lag/crashes on mobile scroll */
    transition-duration: 0.6s;
  }
}

/* ===== BOKEH BULBS CANVAS ===== */
#bokeh-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  /* Hardware acceleration for smooth scrolling */
  will-change: transform;
  transform: translateZ(0);
}

/* ===== GOLD SHIMMER ===== */
.shimmer-text {
  position: relative;
  overflow: hidden;
}

.shimmer-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: var(--shimmer);
  transform: skewX(-25deg);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* ===== PARTICLES ===== */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ===== SECTION 1 — HERO / OPENING ===== */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#hero .hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/hero%20image.jpeg') center/cover no-repeat;
  z-index: 0;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 2s ease-in-out, transform 4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

/* Desktop-only Hero Background Rule (MANDATORY) */
@media (min-width: 992px) {
  #hero .hero-bg {
    background-image: url('images/other_pages_landscape.jpeg') !important;
    background-size: cover;
    background-position: center;
  }
}

#hero.bg-visible .hero-bg {
  opacity: 1;
  transform: scale(1);
}

#hero .hero-content > *[class*="hero-entrance"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

#hero.content-visible .hero-entrance-1 { opacity: 1 !important; transform: translateY(0) !important; transition-delay: 0.2s; }
#hero.content-visible .hero-entrance-2 { opacity: 1 !important; transform: translateY(0) !important; transition-delay: 0.4s; }
#hero.content-visible .hero-entrance-3 { opacity: 1 !important; transform: translateY(0) !important; transition-delay: 1.2s; }
#hero.content-visible .hero-entrance-4 { opacity: 1 !important; transform: translateY(0) !important; transition-delay: 1.5s; }
#hero.content-visible .hero-entrance-5 { opacity: 1 !important; transform: translateX(-50%) translateY(0) !important; transition-delay: 2s !important; }

/* Scroll Down Indicator */
.scroll-down-positioner {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10;
  opacity: 0;
  transition: all 1s ease-out;
  pointer-events: none;
}

.scroll-down-positioner.hidden-indicator {
  opacity: 0 !important;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.scroll-down-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollJump 2s infinite ease-in-out;
}

@keyframes scrollJump {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

.scroll-text {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-light);
  font-weight: 500;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1px solid var(--gold-light);
  border-radius: 20px;
  position: relative;
}

.scroll-wheel {
  width: 2px;
  height: 6px;
  background: var(--gold-light);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scrollDancing 2s infinite;
}

.scroll-down-indicator.hidden-indicator {
  opacity: 0 !important;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}

@keyframes scrollDancing {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-25px); }
  60% { transform: translateX(-50%) translateY(-12px); }
}

.scroll-wheel {
  width: 2px;
  height: 6px;
  background: var(--gold-light);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scrollWheelMove 2s infinite;
}

@keyframes scrollWheelMove {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* Mobile specific fix for hero artwork — MANDATORY */
@media (max-width: 599px) {
  #hero {
    align-items: flex-start !important;
    text-align: left !important;
  }

  #hero .hero-bg {
    background-size: contain;
    background-position: left top;
    background-repeat: no-repeat;
    background-color: var(--navy-deep);
  }

  #hero .hero-content {
    padding: 210px 20px 80px 20px !important;
    /* Adjusted padding to avoid overlap at bottom */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    justify-content: flex-start;
  }

  #hero .couple-names {
    align-items: flex-start !important;
  }

  #hero .gold-divider {
    margin-left: 0 !important;
    background: linear-gradient(90deg, var(--gold), transparent) !important;
  }

  #hero .hero-top {
    font-size: 1.1rem !important;
    letter-spacing: 4px !important;
    margin-bottom: 10px;
  }

  #hero .sig-name {
    font-size: 16vw !important;
    line-height: 1.1 !important;
  }

  #hero .save-date {
    font-size: 1.25rem !important;
    letter-spacing: 4px !important;
    margin-top: 15px;
  }

  #hero .countdown {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin-top: 25px;
  }

  #hero .countdown-item {
    min-width: 70px !important;
    padding: 12px 5px !important;
  }

  #hero .countdown-item .num {
    font-size: 1.9rem !important;
  }

  #hero .countdown-item .label {
    font-size: 0.6rem !important;
    letter-spacing: 1.5px !important;
  }

  #hero .btn-gold {
    display: inline-flex !important;
    margin: 40px auto 0 !important;
    /* Robust centering for mobile */
    align-self: center !important;
    padding: 18px 45px !important;
    font-size: 1rem !important;
    width: fit-content;
  }

  /* Ensure scroll indicator is centered and visible on mobile (iPhone safe areas) */
  .scroll-down-positioner {
    left: 50% !important;
    transform: translateX(-50%) translateY(20px);
    bottom: 60px !important; /* Moved higher for guaranteed visibility */
    z-index: 999 !important;
  }

  #hero.content-visible .scroll-down-positioner {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    transition-delay: 2s !important;
  }
}

#hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 39, .35) 0%, rgba(10, 14, 39, .6) 100%);
  z-index: 1;
}

#hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
}

#hero .couple-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 20px;
}

.sig-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(4.5rem, 15vw, 8rem);
  color: var(--gold-light);
  line-height: 1.2;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.sig-name.write-on {
  animation: writeReveal var(--dur, 3s) cubic-bezier(0.45, 0.05, 0.55, 0.95) var(--delay, 0.5s) forwards;
}

@keyframes writeReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(-10% -10% -10% -10%);
  }
}

.sig-amp {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--gold);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
  margin: -0.5rem 0;
}

.sig-amp.show {
  opacity: 1;
  transform: translateY(0);
}

#hero .save-date {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
  font-weight: 500;
}

#hero .wedding-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 3.2vw, 1.6rem);
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 32px;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.countdown-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 14px 10px;
  min-width: 72px;
  text-align: center;
}

.countdown-item .num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.countdown-item .label {
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* CTA Button */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy-deep);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(201, 168, 76, .3);
  transition: transform .3s, box-shadow .3s;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, .45);
}

.btn-gold svg {
  width: 18px;
  height: 18px;
}

/* ===== SECTION 2 — FORMAL INVITATION ===== */
#invitation {
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.invitation-container {
  max-width: 800px;
  width: 100%;
}

.invitation-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(25px);
  padding: 60px 40px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.card-border-top, .card-border-bottom {
  position: absolute;
  left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.card-border-top { top: 20px; }
.card-border-bottom { bottom: 20px; }

.parents-names {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.together-with {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin: 20px 0;
  text-transform: uppercase;
  font-weight: 600;
}

.request-text, .marriage-text {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin: 30px 0;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.8;
}

.guest-highlight {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 10px 30px;
  margin: 10px auto;
  border-radius: 40px;
  display: inline-block;
  max-width: 95%;
}

.invitation-guest-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important;
  font-weight: 500;
  color: var(--white) !important;
  letter-spacing: 1px;
  line-height: 1.5;
  margin: 0;
}

.card-divider-stylish {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
  position: relative;
}
.card-divider-stylish::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--gold);
  border: 3px solid var(--navy-deep); /* Prevents the red emoji issue on iPhone */
  box-shadow: 0 0 0 1px var(--gold);
}

.couple-names-card {
  margin: 40px 0;
}
.couple-names-card .script-font {
  font-size: 4rem;
  color: var(--gold-light);
  display: inline-block;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.amp-card {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold);
  margin: 0 15px;
  display: inline-block;
}

.card-divider {
  width: 60%;
  height: 1px;
  background: var(--gold);
  margin: 40px auto;
  opacity: 0.3;
}

.event-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.event-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 10px;
}
.event-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  line-height: 1.4;
}
.event-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
}

@media (max-width: 768px) {
  .invitation-card { padding: 50px 20px; }
  .couple-names-card .script-font { font-size: 3rem; }
  .event-details-grid { grid-template-columns: 1fr; gap: 35px; }
  .parents-names { font-size: 0.95rem; }
}

/* ===== SECTION 3 — CEREMONY DETAILS ===== */
#ceremony {
  padding: 80px 20px;
  text-align: center;
}

.section-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 5.5vw, 3rem);
  color: var(--gold-light);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: .8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 36px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.detail-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform .3s, box-shadow .3s;
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.detail-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.detail-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.detail-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Venue / Location Part */
.venue-address {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 1px;
  margin-top: 5px;
  margin-bottom: 25px;
}

.map-preview {
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  height: 300px;
}

.map-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  filter: grayscale(0.2) contrast(1.1);
}

.map-preview a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.map-preview:hover img {
  transform: scale(1.05);
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  border-radius: 50px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

.btn-gold-outline svg {
  width: 18px;
  height: 18px;
}

/* ===== SCHEDULE TIMELINE ===== */
#schedule {
  padding: 80px 20px;
  text-align: center;
}

.timeline {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

.timeline-item {
  position: relative;
  text-align: left;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(201, 168, 76, .4);
}

.timeline-item .time {
  font-size: .78rem;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.timeline-item .event {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--cream);
  margin-top: 2px;
}

.timeline-item .event-desc {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== RSVP & LOCATION ===== */
#rsvp,
#location {
  padding: 80px 20px;
  text-align: center;
}

#location {
  padding-bottom: 10px;
}

#rsvp {
  padding-top: 10px;
}

/* Desktop Alignment Rule (MANDATORY) */
@media (min-width: 992px) {
  #location,
  #rsvp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px !important; /* Balanced padding for vertical centering */
  }

  .rsvp-form {
    max-width: 650px !important; /* Expanded for a more professional look */
    padding: 60px 60px !important;
  }

  .location-part {
    max-width: 700px !important;
  }

  .map-preview {
    height: 380px !important; /* Larger map on desktop */
  }

  .venue-address {
    font-size: 1.1rem !important;
  }

  .attendance-toggle {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .rsvp-form label {
    font-size: 0.9rem;
  }

  .main-text {
    font-size: 1.3rem !important;
  }

  .sub-text {
    font-size: 0.75rem !important;
  }

  .radio-circle {
    width: 24px !important;
    height: 24px !important;
  }

  .toggle-btn.active .radio-circle::after {
    width: 14px !important;
    height: 14px !important;
  }

  .btn-submit {
    font-size: 1rem !important;
    padding: 20px !important;
  }
}

#rsvp .section-subtitle,
#location .section-subtitle {
  color: var(--white) !important;
  opacity: 0.9;
}

.rsvp-form {
  max-width: 460px;
  margin: 0 auto;
  background: rgba(15, 21, 53, 0.5);
  border: 1px solid rgba(201, 168, 76, .3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.rsvp-form .form-group {
  margin-bottom: 32px;
  text-align: left;
}

.rsvp-form label {
  display: block;
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.rsvp-form input,
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--white);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus,
.rsvp-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .12);
}

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

.rsvp-form select option {
  background: var(--navy);
  color: var(--white);
}

/* Attendance toggle */
.attendance-toggle {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 6px;
}

.attendance-toggle .toggle-btn {
  flex: 1;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
  transition: all .3s;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.toggle-btn.active .radio-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

.btn-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
}

.sub-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0.8;
}

.attendance-toggle .toggle-btn.active {
  background: rgba(201, 168, 76, 0.15);
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(201, 168, 76, .3);
  transform: translateY(-2px);
}

.attendance-toggle .toggle-btn .emoji {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 4px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy-deep);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(201, 168, 76, .3);
  transition: transform .3s, box-shadow .3s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, .45);
}

.btn-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* Thank-you overlay */
.thank-you-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 39, .88);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.thank-you-overlay.show {
  display: flex;
}

.thank-you-box {
  background: var(--navy);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  animation: popIn .5s cubic-bezier(.22, 1, .36, 1);
}

.thank-you-box .check {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.thank-you-box h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.thank-you-box p {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.6;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--glass-border);
}

footer p {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: var(--gold);
}

footer .footer-date {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-top: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width:599px) {
  #hero .couple-names {
    font-size: 5rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  /* RSVP Mobile Fix */
  #rsvp {
    padding: 80px 10px 140px;
  }

  .rsvp-form {
    padding: 80px 25px;
    width: 95%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .attendance-toggle {
    flex-direction: column;
    gap: 15px;
  }

  .attendance-toggle .toggle-btn {
    padding: 18px 10px;
    font-size: 0.95rem;
  }
}

@media (min-width:600px) {
  .details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .countdown {
    gap: 24px;
  }

  .countdown-item {
    min-width: 88px;
    padding: 18px 14px;
  }

  .countdown-item .num {
    font-size: 2.4rem;
  }
}

@media (min-width:900px) {
  #hero .couple-names {
    font-size: 5rem;
  }

  .card-frame {
    max-width: 540px;
  }

  .rsvp-form {
    padding: 48px 40px;
  }

  .details-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ===== ADMIN PAGE ===== */
.admin-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
}

.admin-container h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 8px;
}

.admin-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
  margin-bottom: 36px;
}

.admin-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-bottom: 28px;
}

.admin-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.admin-card .input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-card input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--white);
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color .3s;
}

.admin-card input[type="text"]:focus {
  border-color: var(--gold);
}

.btn-gen {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy-deep);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  transition: transform .3s;
  white-space: nowrap;
}

.btn-gen:hover {
  transform: translateY(-2px);
}

.link-output {
  display: none;
  margin-top: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 16px;
  word-break: break-all;
  font-size: .82rem;
  color: var(--cream);
}

.link-output .link-url {
  margin-bottom: 10px;
}

.btn-copy {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: inherit;
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all .3s;
}

.btn-copy:hover {
  background: var(--gold);
  color: var(--navy-deep);
}
/* ===== SIDE NAVIGATION ===== */
.side-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
}

.nav-dot:hover {
  background: rgba(201, 168, 76, 0.4);
  transform: scale(1.2);
}

.nav-dot.active {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.6);
  transform: scale(1.3);
}

@media (max-width: 600px) {
  .side-nav {
    right: 12px;
    gap: 12px;
  }
  .nav-dot {
    width: 6px;
    height: 6px;
  }
}
.btn-copy.copied {
  background: var(--gold);
  color: var(--navy-deep);
}

/* Bulk */
.bulk-area {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--white);
  font-family: inherit;
  font-size: .85rem;
  outline: none;
  resize: vertical;
  margin-bottom: 16px;
}

.bulk-area:focus {
  border-color: var(--gold);
}

.bulk-results {
  margin-top: 16px;
}

.bulk-results .bulk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.bulk-item .guest-label {
  font-size: .82rem;
  color: var(--gold-light);
  min-width: 100px;
}

.bulk-item .guest-link {
  flex: 1;
  font-size: .75rem;
  color: var(--text-muted);
  word-break: break-all;
  min-width: 200px;
}

.bulk-item .btn-copy {
  padding: 6px 14px;
  font-size: .72rem;
}