:root {
  /* Color Palette */
  --primary-color: #4a5d4e;
  /* Deep Sage Green */
  --secondary-color: #d4a373;
  /* Soft Gold/Earth */
  --accent-color: #bc6c25;
  /* Warm Terra Cotta */
  --bg-color: #f9f7f2;
  /* Warm Off-White */
  --surface-color: #ffffff;
  --text-main: #2f3e46;
  --text-light: #52796f;
  --text-muted: #84a98c;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --font-script: 'Great Vibes', cursive;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-slow: 0.8s ease;
}

/* Global Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all var(--transition-fast);
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(120deg, #4a5d4e, #7aa884) !important;
  color: #fff !important;
  padding: 0.6rem 1.75rem !important;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(74, 93, 78, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74, 93, 78, 0.35);
}

.btn-nav-cta span {
  color: inherit;
}

.btn-nav-cta::after {
  display: none;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
}

.nav-toggle .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  position: relative;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  left: 0;
}

.nav-toggle .bar::before {
  top: -8px;
}

.nav-toggle .bar::after {
  bottom: -8px;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 200vh;
  height: auto;
  padding: 8rem 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  z-index: -2;
  transform: none;
}

@keyframes zoomOut {
  from {
    transform: scale(1.05);
  }

  to {
    transform: scale(1.15);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  /* Darken image for text readability */
  z-index: -1;
}

.hero-text {
  max-width: 900px;
  padding: 2rem;
  z-index: 1;
  transform: translateY(-20px);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
    padding: 6rem 1.5rem 4rem;
  }

  .hero-image {
    background-size: cover;
    background-position: center;
  }

  .hero-text {
    max-width: 100%;
    padding: 1.5rem;
    transform: none;
  }
}

.hero-preheading {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subheading {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 3rem;
}

/* Countdown */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

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

.countdown-item span:first-child {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.countdown-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Intro Section */
.intro-section {
  padding: 6rem 2rem;
  text-align: center;
  background-color: #fff;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.script-title {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-top: 8rem;
  margin-bottom: 1.5rem;
}

.intro-text {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem 2rem;
  text-align: center;
}

.footer-logo {
  height: 50px;
  margin: 0 auto 1.5rem;
  /* Make logo white */
}

.footer-names {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-date {
  font-size: 0.9rem;
  letter-spacing: 2px;
  opacity: 0.7;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-heading {
    font-size: 3rem;
  }

  .hero-text {
    transform: none;
  }

  .countdown-container {
    gap: 1rem;
  }

  .countdown-item span:first-child {
    font-size: 1.5rem;
  }

  .mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 1100;
    transition: right 0.3s ease;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-drawer.open {
    right: 0;
  }

  .mobile-drawer a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
  }

  .mobile-drawer a[href="rsvp.html"] {
    display: none;
  }

  .drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

}

  /* Location & Map */
  .location-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #fff;
  }

  .location-address {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
  }

  .map-container {
    width: 100%;
    max-width: 1000px;
    height: 450px;
    margin: 0 auto 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  #map {
    width: 100%;
    height: 100%;
  }

  /* Calendar Buttons */
  .calendar-buttons h3 {
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
  }

  .btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-fast);
  }

  .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
  }

  .mobile-drawer a.active {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
  }

  .drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1090;
  }

  .drawer-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .nav-links li a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #415e42;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: background-color 0.2s ease;
  }

  .nav-links li a:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
  }

  /* Active nav state */
  .nav-links li a.active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
  }

  /* Hero section */
  .hero-section {
    position: relative;
    height: 120vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: 120px;
  }

  /* Ensure in-page anchors do not hide under fixed navbar */
  section[id] {
    scroll-margin-top: 100px;
  }

  .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
  }

  .hero-text {
    position: relative;
    z-index: 2;
    padding-bottom: 0;
    color: #ffffff;
  }

  .hero-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    font-size: 4.25rem;
    letter-spacing: 0.08em;
  }

  .hero-subheading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-top: 1rem;
    letter-spacing: 0.05em;
  }

  @media (max-width: 900px) {
    .hero-section {
      padding-top: 96px;
    }

    .hero-heading {
      font-size: 3.2rem;
    }

    .hero-subheading {
      font-size: 1.1rem;
    }
  }

  @media (max-width: 600px) {
    .hero-section {
      padding-top: 88px;
    }

    .hero-heading {
      font-size: 2.4rem;
    }

    .hero-subheading {
      font-size: 1rem;
    }
  }

  /* Collage section */
  .collage-section {
    position: relative;
    padding: 12rem 0;
  }

  .collage-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    /* subtle backdrop so photos remain prominent */
    pointer-events: none;
  }

  .collage-section.has-bg {
    background: transparent;
  }

  .collage-section.has-bg .collage-grid {
    position: relative;
    z-index: 1;
  }

  .collage-grid {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .collage-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    aspect-ratio: 4 / 5;
  }

  .collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    image-rendering: auto;
  }

  /* Wedding section */
  .wedding-page {
    background: #fff5f8;
    padding: 2rem 2rem 4rem;
    text-align: center;
    color: #415e42;
  }

  .wedding-section {
    background: #fff5f8;
    padding: 16rem 2rem 4rem;
    text-align: center;
    color: #415e42;
  }

  .script-title {
    margin-bottom: 1.5rem;
    margin-top: 3.5rem;
    display: inline-block;
  }

  .script-title .script-word {
    font-family: 'Great Vibes', cursive;
    font-size: 3.2rem;
    color: #415e42;
    margin-right: 0.25rem;
  }

  .script-title .serif-word {
    font-family: 'Playfair Display', serif;
    font-size: 3.22rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #415e42;
  }

  .wedding-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
  }

  .wedding-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  }

  .wedding-photo {
    width: 80%;
    max-width: 460px;
   
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    padding: 0.35rem;
    box-shadow: 0 12px 26px rgba(64, 76, 72, 0.18);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wedding-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    background: #f7f4f2;
  }

  .wedding-icon.placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f3f3f3;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ea4a8;
    margin: 0 auto 1rem;
  }

  /* Details section */
  .details-section {
    background: #ffffff;
    padding: 4rem 0;
  }

  .details-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: center;
  }

  .details-image {
    flex: 1 1 50%;
    border-radius: 12px;
    aspect-ratio: 3 / 4;
    min-height: 640px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
  }

  .details-content {
    flex: 1 1 25%;
    color: #415e42;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Extra details column on the right */
  .details-right {
    flex: 1 1 25%;
    color: #415e42;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Icon styling for section headings within details columns */
  .details-col h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
  }

  .details-col h3 i {
    color: #415e42;
  }

  .details-content h2 {
    margin-bottom: 1rem;
  }

  .details-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 600;
  }

  .details-content p {
    font-size: 1rem;
    margin-top: 0.5rem;
    line-height: 1.4;
  }

  /* Info sections (Accommodations & Travel) */
  .info-section {
    background: #fff5f8;
    padding: 4rem 0;
    text-align: center;
    color: #415e42;
  }

  .info-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
  }

  .info-section p {
    max-width: 800px;
    margin: 0 auto 1rem;
    font-size: 1rem;
  }

  .bullet-list {
    list-style: none;
    padding-left: 0;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
  }

  .bullet-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .bullet-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #415e42;
  }

  /* Registry section */
  .registry-section {
    background: #ffffff;
    padding: 4rem 0;
    color: #415e42;
  }

  .registry-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
  }

  .registry-left {
    flex: 1 1 30%;
    text-align: center;
  }

  .registry-script {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
    color: #415e42;
  }

  .registry-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
  }

  .registry-art {
    height: 200px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .registry-right {
    flex: 1 1 70%;
  }

  .embed-wrapper {
    background: #f3f3f3;
    border: 1px dashed #ccc;
    border-radius: 12px;
    padding: 0;
    min-height: 480px;
    width: 100%;
  }

  /* FAQ section */
  .faq-section {
    background: #fff5f8;
    padding: 4rem 0;
    color: #415e42;
    text-align: center;
  }

  .faq-section .faq-list {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
  }

  .faq-item+.faq-item {
    margin-top: 1.5rem;
  }

  .faq-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }

  .faq-item p {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* RSVP section */
  .rsvp-section {
    padding: 7rem 1.5rem 5rem;
    background: linear-gradient(180deg, var(--bg-color) 0%, #ffffff 100%);
    color: var(--text-main);
  }

  .rsvp-shell {
    max-width: 1200px;
    margin: 0 auto;
  }

  .rsvp-card {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    border-radius: 32px;
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid rgba(47, 62, 70, 0.08);
    box-shadow: 0 40px 80px rgba(47, 62, 70, 0.12);
  }

  .rsvp-card-sidebar {
    position: relative;
    padding: 3rem 2.5rem;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 60%),
      linear-gradient(160deg, #4a5d4e, #2f3e46);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .rsvp-card-sidebar::after {
    content: '';
    position: absolute;
    inset: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    opacity: 0.5;
    pointer-events: none;
  }

  .rsvp-card-sidebar > * {
    position: relative;
    z-index: 1;
  }

  .sidebar-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
  }

  .rsvp-card-sidebar .script-title {
    margin: 0;
    text-align: center;
    width: 100%;
    line-height: 1.2;
  }

  .rsvp-card-sidebar .script-title .script-word {
    display: inline-block;
    color: #fff;
    font-size: 3rem;
  }

  .rsvp-card-sidebar .script-title br {
    line-height: 0.9;
  }

  .sidebar-names {
    font-size: 0.9rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
  }

  .sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .sidebar-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
  }

  .sidebar-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
  }

  .sidebar-contact {
    margin-top: auto;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
  }

  .sidebar-contact a {
    color: #fff;
    font-weight: 600;
  }

  .rsvp-card-body {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: var(--surface-color);
  }

  .rsvp-card-heading .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
  }

  .rsvp-card-heading h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .rsvp-card-heading .lede {
    color: var(--text-light);
    max-width: 580px;
  }

  .rsvp-form {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    text-align: left;
  }

  .rsvp-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .rsvp-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .rsvp-form label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-main);
  }

  .rsvp-form input,
  .rsvp-form select,
  .rsvp-form textarea {
    border: 1px solid rgba(47, 62, 70, 0.16);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    background: #fdfcf8;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  }

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

  .rsvp-form input:focus,
  .rsvp-form select:focus,
  .rsvp-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 93, 78, 0.18);
    background: #fff;
  }

  .rsvp-form .form-helper {
    font-size: 0.85rem;
    color: var(--text-light);
  }

  .rsvp-form .form-helper a {
    color: var(--primary-color);
    font-weight: 600;
  }

  .autocomplete-group {
    position: relative;
  }

  .autocomplete-list {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(47, 62, 70, 0.12);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(47, 62, 70, 0.15);
    overflow: hidden;
    display: none;
    z-index: 40;
  }

  .autocomplete-list.visible {
    display: block;
  }

  .autocomplete-item {
    padding: 0.9rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
  }

  .autocomplete-item strong {
    font-weight: 600;
    color: var(--primary-color);
  }

  .autocomplete-item span {
    font-size: 0.85rem;
    color: var(--text-light);
  }

  .autocomplete-item:hover,
  .autocomplete-item:focus,
  .autocomplete-item.active {
    background: rgba(74, 93, 78, 0.08);
    outline: none;
  }

  .autocomplete-empty {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
    color: var(--text-light);
  }

  .household-section {
    margin-top: 1.75rem;
    padding: 1.75rem;
    border-radius: 22px;
    border: 1px solid rgba(47, 62, 70, 0.12);
    background: #fbfbf7;
    display: none;
    gap: 1.25rem;
  }

  .household-section.visible {
    display: flex;
    flex-direction: column;
  }

  .household-section.hidden {
    display: none !important;
  }

  .household-title {
    font-weight: 600;
    color: var(--primary-color);
  }

  .guest-collection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  .guest-card {
    border: 1px solid rgba(47, 62, 70, 0.08);
    border-radius: 22px;
    padding: 1.25rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: 0 12px 30px rgba(47, 62, 70, 0.08);
  }

  .guest-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .guest-card-name {
    font-weight: 600;
    color: var(--primary-color);
  }

  .guest-card-tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    background: rgba(74, 93, 78, 0.15);
    color: var(--primary-color);
  }

  .guest-card .form-group {
    margin: 0;
    gap: 0.25rem;
  }

  .rsvp-section .form-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1rem;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(120deg, #4a5d4e, #7aa884);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  }

  .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(74, 93, 78, 0.35);
  }

  .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
  }

  .form-status {
    font-size: 0.95rem;
    color: var(--text-light);
    min-height: 1.2rem;
  }

  @media (max-width: 1024px) {
    .rsvp-card {
      grid-template-columns: 1fr;
    }

    .rsvp-card-sidebar {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }
  }

  @media (max-width: 640px) {
    .rsvp-section {
      padding: 6rem 1rem 4rem;
    }

    .rsvp-card-body {
      padding: 2rem 1.5rem 2.5rem;
    }

    .rsvp-form .form-row {
      grid-template-columns: 1fr;
    }
  }


  /* Footer */
  .footer {
    background: #fff5f8;
    color: #415e42;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.85rem;
  }

  /* Footer logo */
  .footer .footer-logo {
    --footer-logo-size: 120px;
    width: var(--footer-logo-size);
    height: var(--footer-logo-size);
    display: block;
    margin: 0 auto 0.5rem;
    object-fit: contain;
    opacity: 0.95;
  }

  /* Responsive nav: hide desktop tabs, show hamburger */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
    }

    .nav-toggle {
      display: inline-flex;
    }
  }

  /* Responsive adjustments for smaller screens */
  @media (max-width: 768px) {

    .details-container,
    .registry-container {
      flex-direction: column;
    }

    .nav-links {
      display: none;
    }
  }

  /* Location & Map */
  .location-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #fff;
  }

  .location-address {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
  }

  .map-container {
    width: 100%;
    max-width: 1000px;
    height: 450px;
    margin: 0 auto 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  #map {
    width: 100%;
    height: 100%;
  }

  .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* Calendar Buttons */
  .calendar-buttons h3 {
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
  }

  .btn-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-fast);
  }

  .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
  }