  :root {
    /* New romantic color palette */
    --color-primary: #F8E9E9;
    --color-secondary: #E8D0D0;
    --color-accent: #D4A5A5;
    --color-dark: #7D5A5A;
    --color-text: #5D4037;
    --color-light: #FFF5F5;
    --color-gold: #C9A96E;

    --max-width: 1200px;
    --header-height: 70px;
    --border-radius: 12px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
  }

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

  html,
  body {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
  }

  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-light);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
  }

  /* Header with glassmorphism effect */
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 245, 245, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    transition: transform 0.3s ease;
  }

  header.hidden {
    transform: translateY(-100%);
  }

  .nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 100%;
  }

  .brand {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-dark);
    letter-spacing: 1px;
  }

  .menu {
    display: flex;
    gap: 30px;
  }

  .menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
  }

  .menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
  }

  .menu a:hover {
    color: var(--color-accent);
  }

  .menu a:hover::after {
    width: 100%;
  }

  .hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-dark);
  }

  .hero {
  height: 100vh;
  height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Height is 120% to give room for movement without showing the bottom edge */
  height: 120%; 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; /* Prevents seeing 'two images' stacked */
  z-index: -1;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

  .parallax-layer {
  position: absolute;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  /* REMOVED: transition property */
  will-change: transform;
  backface-visibility: hidden; /* Fixes flickering */
}

  .layer-1, .layer-2 {
  transition: none !important;
}

  .hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px 80px 20px; /* Added 80px to the bottom padding */
    position: relative;
    z-index: 2;
  }

  /* NEW: Heart animations - Three decorative hearts */
  .heart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.1s forwards;
  }

  .heart {
    font-size: 2rem;
    animation: heartBeat 2s ease-in-out infinite;
  }

  .heart1 {
    animation-delay: 0s;
  }

  .heart2 {
    animation-delay: 0.3s;
  }

  .heart3 {
    animation-delay: 0.6s;
  }

  @keyframes heartBeat {

    0%,
    100% {
      transform: scale(1);
      opacity: 0.8;
    }

    50% {
      transform: scale(1.2);
      opacity: 1;
    }
  }

  /* NEW: Guest name heart loader */
  #guestName {
    display: inline-block;
    min-width: 4ch;
    transition: opacity 0.3s ease;
  }

  #guestName.loading .spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .heart-loader {
    display: inline-block;
    opacity: 0;
    animation: heartLoader 1.5s infinite;
  }

  .heart-small {
    font-size: 14px;
    animation-delay: 0s;
  }

  .heart-medium {
    font-size: 18px;
    animation-delay: 0.5s;
  }

  .heart-large {
    font-size: 22px;
    animation-delay: 1s;
  }

  @keyframes heartLoader {

    0%,
    100% {
      opacity: 0;
      transform: scale(0.8);
    }

    20% {
      opacity: 1;
      transform: scale(1);
    }

    40% {
      opacity: 0.7;
      transform: scale(0.9);
    }

    60% {
      opacity: 0.4;
      transform: scale(0.8);
    }

    80% {
      opacity: 0.2;
      transform: scale(0.7);
    }
  }

  #guestName.loaded {
    opacity: 1;
  }

  .hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.3s forwards;
  }

  .date-location {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.5s forwards;
  }

  .cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--color-gold);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease 0.7s forwards;
    position: relative;
    overflow: hidden;
  }

  .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
  }

  .cta-button:hover::before {
    left: 100%;
  }

  .cta-button:hover {
    background: #b8945a;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
  }

  /* Section Styling */
  .section {
    padding: 100px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    scroll-margin-top: var(--header-height);
  }

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-dark);
    position: relative;
  }

  .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-accent);
  }

  /* Countdown Timer */
  .countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
  }

  .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 100px;
    transition: var(--transition);
    transform: scale(0.9);
    opacity: 0;
  }

  .countdown-item.visible {
    transform: scale(1);
    opacity: 1;
  }

  .countdown-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-hover);
  }

  .countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
  }

  .countdown-label {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-top: 5px;
  }

  /* Story Section */
  .story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
  }

  .story-text {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  .story-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform: perspective(1000px) rotateY(15deg);
    opacity: 0;
  }

  .story-image.visible {
    transform: perspective(1000px) rotateY(0);
    opacity: 1;
  }

  .story-image:hover {
    transform: scale(1.03) perspective(1000px) rotateY(5deg);
    box-shadow: var(--shadow-hover);
  }

  .story-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
  }

  .story-image:hover img {
    transform: scale(1.1);
  }

  /* Timeline */
  .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
  }

  .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--color-secondary);
    transform: translateX(-50%);
  }

  .timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 50%;
  }

  .timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 50%;
  }

  .timeline-content {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 90%;
    position: relative;
    transition: var(--transition);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }

  .timeline-item.visible .timeline-content {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
  }

  .timeline-year {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gold);
  }

  .timeline-item:nth-child(odd) .timeline-year {
    right: 100px;
  }

  .timeline-item:nth-child(even) .timeline-year {
    left: 100px;
  }

  .timeline-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 0 4px white, 0 0 0 6px var(--color-accent);
    transition: var(--transition);
  }

  .timeline-item:hover .timeline-dot {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 0 4px white, 0 0 0 8px var(--color-accent);
  }

  .timeline-image {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    transform: translateY(10px);
    opacity: 0;
  }

  .timeline-item.visible .timeline-image {
    transform: translateY(0);
    opacity: 1;
  }

  .timeline-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }

  .timeline-image:hover img {
    transform: scale(1.1);
  }

  /* Schedule */
  .schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .event-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
  }

  .event-card.visible {
    transform: translateY(0);
    opacity: 1;
  }

  .event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
  }

  .event-date {
    font-size: 1rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 10px;
  }

  .event-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-dark);
  }

  .event-time {
    color: var(--color-text);
    font-size: 0.9rem;
  }



  /* Venue */
  .venue-info {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: translateX(-30px);
    opacity: 0;
    transition: all 0.8s ease;
  }

  .venue-info.visible {
    transform: translateX(0);
    opacity: 1;
  }

  .venue-notes {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
  }

  .venue-notes.visible {
    transform: translateX(0);
    opacity: 1;
  }

  .venue-notes ul {
    padding-left: 20px;
  }

  .venue-notes li {
    margin-bottom: 10px;
  }

  /* Gallery with Mask Reveal */
  .gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
  }

  .gallery-track {
    display: flex;
    transition: transform 0.5s ease;
  }

  .gallery-item {
    flex: 0 0 33.333%;
    padding: 10px;
    position: relative;
    overflow: hidden;
  }

  .gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
    transform: scale(1.1);
    opacity: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }

  .gallery-item.visible img {
    transform: scale(1);
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

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

  .gallery-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }

  .gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-secondary);
    cursor: pointer;
    transition: var(--transition);
  }

  .gallery-dot.active {
    background: var(--color-accent);
  }

  /* RSVP */
  .rsvp-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
  }

  .rsvp-form {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
  }

  .rsvp-form.visible {
    transform: translateY(0);
    opacity: 1;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
  }

  .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: var(--transition);
  }

  .form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.2);
  }

  .submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--color-gold);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }

  .submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
  }

  .submit-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
  }

  .submit-btn:hover {
    background: #b8945a;
  }

  .rsvp-notes {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
  }

  .rsvp-notes.visible {
    transform: translateY(0);
    opacity: 1;
  }

  /* Footer */
  footer {
    background: var(--color-dark);
    color: white;
    padding: 50px 20px;
    text-align: center;
  }

  .footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
  }

  /* Animations */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes float {

    0%,
    100% {
      transform: translateY(0);
    }

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

  @keyframes ripple {
    0% {
      transform: scale(0, 0);
      opacity: 0.5;
    }

    100% {
      transform: scale(20, 20);
      opacity: 0;
    }
  }

  .floating {
    animation: float 5s ease-in-out infinite;
  }

  /* Audio Toggle */
  .audio-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-accent);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 100;
    transition: var(--transition);
  }

  .audio-toggle:hover {
    transform: scale(1.1);
  }

  /* Lightbox */
  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .lightbox.active {
    opacity: 1;
    visibility: visible;
  }

  .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
  }

  .lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
  }

  .lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
  }

  /* Cursor Effects */
  .cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
  }

  .cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease-out;
  }

  /* Scroll Progress Bar */
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-accent);
    z-index: 1001;
    transition: width 0.1s ease;
  }

  /* Responsive Styles */
  @media (max-width: 992px) {

    .story-content,
    .rsvp-container {
      grid-template-columns: 1fr;
    }

    .timeline::before {
      left: 30px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
      justify-content: flex-start;
      padding: 0 0 0 80px;
    }

    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
      left: 0;
      right: auto;
    }

    .gallery-item {
      flex: 0 0 50%;
    }

    /* Hide custom cursor on tablets and smaller */
    .cursor-dot,
    .cursor-outline {
      display: none !important;
    }
  }

  @media (max-width: 768px) {
    .menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      flex-direction: column;
      padding: 20px;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
      display: flex;
    }

    .hamburger {
      display: block;
    }

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

    .countdown {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      justify-items: center;
    }

    .gallery-item {
      flex: 0 0 100%;
    }
  }

  /* Additional mobile gallery fix */
  @media (max-width: 576px) {
    .gallery-item {
      flex: 0 0 100% !important;
    }

    .gallery-item img {
      height: 250px;
    }
  }

  @media (max-width: 576px) {
  /* 1. Reduce padding at the bottom so the button moves up */
  .hero-content {
    padding-bottom: 100px !important; 
  }

  /* 2. Reduce the size of the title so it takes up less vertical space */
  .hero h1 {
    font-size: 2.2rem !important;
    margin-bottom: 10px !important;
  }

  /* 3. Reduce spacing around the date and welcome text */
  .date-location {
    font-size: 1rem !important;
    margin-bottom: 20px !important;
  }

  #guestWelcome {
    margin-bottom: 4px !important;
  }

  /* 4. Make the hero section height adjust to mobile viewports better */
  .hero {
    height: 100svh; /* svh = "small viewport height" which accounts for mobile bars */
  }
}

  /* Reduced motion preferences */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    .floating {
      animation: none;
    }

    .parallax-bg,
    .parallax-layer {
      transform: none !important;
      transition: none !important;
    }
  }

  /* Venue Section - Enhanced Design with Fixed Icons */
  #venue {
    background: linear-gradient(135deg, rgba(248, 233, 233, 0.1) 0%, rgba(232, 208, 208, 0.1) 100%);
    position: relative;
    overflow: hidden;
  }

  #venue::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 165, 165, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
  }

  #venue::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
  }

  .venue-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
  }

  @media (max-width: 992px) {
    .venue-content {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  }

  .select-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: none;
  }

  /* Venue Cards */
  .venue-card {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px;
    box-shadow:
      0 15px 35px rgba(125, 90, 90, 0.1),
      0 5px 15px rgba(0, 0, 0, 0.05),
      inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(212, 165, 165, 0.2);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
  }

  .venue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
    border-radius: 20px 20px 0 0;
  }

  .venue-card.visible {
    transform: translateY(0);
    opacity: 1;
  }

  .venue-card:hover {
    transform: translateY(-10px);
    box-shadow:
      0 25px 50px rgba(125, 90, 90, 0.15),
      0 10px 20px rgba(0, 0, 0, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  }

  /* Venue Header */
  .venue-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 165, 165, 0.2);
  }

  .venue-icon {
    font-size: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
    box-shadow: 0 4px 10px rgba(212, 165, 165, 0.3);
  }

  .venue-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--color-dark);
    margin: 0;
    flex: 1;
    text-align: center;
  }

  /* Venue Body */
  .venue-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    text-align: center;
  }

  .venue-body p {
    margin-bottom: 20px;
  }

  /* NEW: Special font for venue address */
  .venue-address {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
    color: var(--color-dark) !important;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px !important;
    padding: 15px;
    background: rgba(248, 233, 233, 0.3);
    border-radius: 15px;
    border-left: 4px solid var(--color-gold);
    border-right: 4px solid var(--color-gold);
  }

  /* Alternative font option - comment out the above and uncomment below for a different look */
  /*
.venue-address {
  font-family: 'Great Vibes', cursive;
  font-size: 1.5rem !important;
  line-height: 1.5 !important;
  color: var(--color-dark) !important;
  text-align: center;
  margin-bottom: 25px !important;
  padding: 15px;
}
*/

  /* Add this font link to your HTML head for Dancing Script */
  /* <link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&display=swap" rel="stylesheet"> */

  /* For Great Vibes font, use this link instead: */
  /* <link href="https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap" rel="stylesheet"> */

  /* Venue Events */
  .venue-events {
    margin: 25px 0;
    background: rgba(248, 233, 233, 0.3);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(212, 165, 165, 0.1);
  }

  .event-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(232, 208, 208, 0.5);
  }

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

  .event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  }

  .event-icon {
    font-size: 18px;
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(212, 165, 165, 0.3);
  }

  .event-details {
    flex: 1;
  }

  .event-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--color-dark);
    font-weight: 600;
    margin-bottom: 5px;
  }

  .event-details p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text);
    opacity: 0.9;
  }

  /* Map Button */
  .venue-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 25px;
    background: linear-gradient(135deg, var(--color-gold), #b8945a);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
      0 6px 20px rgba(201, 169, 110, 0.3),
      0 3px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
  }

  .venue-map-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s;
  }

  .venue-map-btn:hover::before {
    left: 100%;
  }

  .venue-map-btn:hover {
    transform: translateY(-3px);
    box-shadow:
      0 10px 30px rgba(201, 169, 110, 0.4),
      0 5px 15px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #b8945a, var(--color-gold));
  }

  .map-icon {
    font-size: 18px;
  }

  /* Venue Notes List */
  .venue-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .venue-notes li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid rgba(212, 165, 165, 0.1);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
  }

  .venue-notes li:last-child {
    border-bottom: none;
  }

  .venue-notes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
  }

  .venue-notes li:hover {
    padding-left: 35px;
    background: rgba(248, 233, 233, 0.3);
    border-radius: 8px;
    margin: 5px 0;
  }

  /* Animation for venue cards */
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .venue-info {
    animation: slideInLeft 0.8s ease forwards;
  }

  .venue-notes {
    animation: slideInRight 0.8s ease 0.2s forwards;
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .venue-card {
      padding: 25px;
    }

    .venue-header {
      gap: 10px;
      margin-bottom: 20px;
    }

    .venue-icon {
      font-size: 18px;
      width: 45px;
      height: 45px;
    }

    .venue-header h3 {
      font-size: 1.5rem;
    }

    .venue-address {
      font-size: 1.2rem !important;
      padding: 12px;
    }

    .venue-events {
      padding: 15px;
    }

    .event-item {
      padding: 12px;
    }
  }

  @media (max-width: 576px) {
    .venue-content {
      gap: 20px;
    }

    .venue-card {
      padding: 20px;
    }

    .venue-header {
      flex-direction: column;
      text-align: center;
      gap: 10px;
    }

    .venue-icon {
      align-self: center;
    }

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

    .event-item {
      flex-direction: column;
      text-align: center;
      align-items: center;
    }

    .event-icon {
      margin-bottom: 10px;
    }

    .venue-map-btn {
      width: 100%;
      justify-content: center;
    }
  }

  /* RSVP Section - Elegant Redesign */
  #rsvp {
    background: linear-gradient(135deg, rgba(255, 245, 245, 0.9) 0%, rgba(248, 233, 233, 0.9) 100%);
    position: relative;
    overflow: hidden;
  }

  #rsvp::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 165, 165, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
  }

  #rsvp::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
  }

  .rsvp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
  }

  @media (max-width: 992px) {
    .rsvp-content {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  }

  /* RSVP Cards */
  .rsvp-card {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
      0 20px 40px rgba(125, 90, 90, 0.1),
      0 8px 20px rgba(0, 0, 0, 0.05),
      inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(212, 165, 165, 0.15);
    transform: translateY(20px);
    opacity: 0;
  }

  .rsvp-card.visible {
    transform: translateY(0);
    opacity: 1;
  }

  .rsvp-card:hover {
    transform: translateY(-8px);
    box-shadow:
      0 30px 60px rgba(125, 90, 90, 0.15),
      0 15px 30px rgba(0, 0, 0, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  }

  /* RSVP Header */
  .rsvp-header {
    padding: 30px 35px 20px;
    background: linear-gradient(135deg, rgba(248, 233, 233, 0.8), rgba(232, 208, 208, 0.6));
    border-bottom: 2px solid rgba(212, 165, 165, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .rsvp-icon {
    font-size: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
    box-shadow: 0 6px 15px rgba(212, 165, 165, 0.4);
    flex-shrink: 0;
  }

  .rsvp-header-content {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .rsvp-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--color-dark);
    margin: 0 0 8px 0;
    text-align: center;
  }

  .rsvp-subtitle {
    font-size: 0.95rem;
    color: var(--color-text);
    opacity: 0.8;
    margin: 0;
    text-align: center;
  }

  #rsvpDescription {
    font-size: 1rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
  }

  /* RSVP Body */
  .rsvp-body {
    padding: 35px;
  }

  /* Form Styling */
  .rsvp-form {
    margin-top: 10px;
  }

  .form-group {
    margin-bottom: 30px;
    position: relative;
  }

  .form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .form-label i {
    color: var(--color-accent);
    font-size: 18px;
    width: 24px;
    text-align: center;
  }

  .form-label label {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1rem;
  }

  .form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(232, 208, 208, 0.5);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    color: var(--color-text);
  }

  .form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(212, 165, 165, 0.15);
    background: white;
  }

  .form-control::placeholder {
    color: rgba(93, 64, 55, 0.5);
  }

  .form-hint {
    font-size: 0.85rem;
    color: rgba(93, 64, 55, 0.7);
    margin-top: 8px;
    padding-left: 34px;
    /* Align with icon + label */
  }

  /* Select Wrapper */
  .select-wrapper {
    position: relative;
  }

  .select-wrapper::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .form-control[type="select"] {
    appearance: none;
    cursor: pointer;
  }

  .select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent);
    pointer-events: none;
    font-size: 14px;
  }



  /* Textarea Specific */
  textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
    padding-top: 12px;
  }

  /* Form Actions */
  .form-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(212, 165, 165, 0.1);
  }

  .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--color-gold), #b8945a);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow:
      0 8px 25px rgba(201, 169, 110, 0.4),
      0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    letter-spacing: 0.5px;
  }

  .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s;
  }

  .submit-btn:hover::before {
    left: 100%;
  }

  .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow:
      0 15px 35px rgba(201, 169, 110, 0.5),
      0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #b8945a, var(--color-gold));
  }

  .submit-btn:disabled {
    background: linear-gradient(135deg, #cccccc, #aaaaaa);
    cursor: not-allowed;
    transform: none;
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.1),
      0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .submit-btn:disabled:hover {
    transform: none;
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.1),
      0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .btn-icon {
    font-size: 20px;
  }

  .btn-text {
    flex: 1;
    text-align: center;
  }

  .form-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(248, 233, 233, 0.3);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.4;
    border: 1px solid rgba(212, 165, 165, 0.2);
  }

  .form-note i {
    color: var(--color-accent);
    font-size: 16px;
    margin-top: 2px;
  }

  /* RSVP Notes List */
  .rsvp-notes-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
  }

  .rsvp-notes-card li {
    padding: 15px 0;
    padding-left: 35px;
    position: relative;
    border-bottom: 1px solid rgba(212, 165, 165, 0.1);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
  }

  .rsvp-notes-card li:last-child {
    border-bottom: none;
  }

  .rsvp-notes-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 15px;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
  }

  .rsvp-notes-card li:hover {
    padding-left: 40px;
    background: rgba(248, 233, 233, 0.2);
    border-radius: 8px;
    margin: 5px 0;
  }

  /* RSVP Contact */
  .rsvp-contact {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(212, 165, 165, 0.1);
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(248, 233, 233, 0.3);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(232, 208, 208, 0.5);
  }

  .contact-item:last-child {
    margin-bottom: 0;
  }

  .contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    background: rgba(248, 233, 233, 0.4);
  }

  .contact-icon {
    font-size: 20px;
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-gold));
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(212, 165, 165, 0.3);
  }

  .contact-details {
    flex: 1;
  }

  .contact-label {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--color-dark);
    font-weight: 600;
    margin-bottom: 4px;
  }

  .contact-info {
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.9;
  }

  /* Animation for RSVP cards */
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .rsvp-form-card {
    animation: slideInUp 0.8s ease forwards;
  }

  .rsvp-notes-card {
    animation: slideInUp 0.8s ease 0.2s forwards;
  }

  /* Form Focus States */
  .form-control:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
  }

  .form-control:valid:not(:focus):not(:placeholder-shown) {
    border-color: #51cf66;
    background: rgba(81, 207, 102, 0.05);
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .rsvp-header {
      padding: 25px 25px 15px;
      gap: 15px;
    }

    .rsvp-icon {
      width: 50px;
      height: 50px;
      font-size: 20px;
    }

    .rsvp-header h3 {
      font-size: 1.5rem;
    }

    .rsvp-body {
      padding: 25px;
    }

    .submit-btn {
      padding: 16px 30px;
      font-size: 16px;
    }

    .contact-item {
      padding: 12px;
    }
  }

  @media (max-width: 576px) {
    .rsvp-content {
      gap: 20px;
    }

    .rsvp-card {
      padding: 0;
    }

    .rsvp-header {
      flex-direction: column;
      text-align: center;
      align-items: center;
      justify-content: center;
      gap: 15px;
    }

    .rsvp-icon {
      align-self: center;
    }

    .rsvp-header-content {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .rsvp-header h3 {
      text-align: center;
      width: 100%;
    }

    .rsvp-subtitle {
      text-align: center;
      width: 100%;
    }

    .form-label {
      flex-direction: column;
      align-items: flex-start;
      gap: 5px;
    }

    .form-hint {
      padding-left: 0;
    }

    /* Keep reaching date label in row on mobile for better visibility */
    #reachingDateGroup .form-label {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    #reachingDateGroup .form-hint {
      text-align: left;
      padding-left: 34px;
    }

    .submit-btn {
      flex-direction: column;
      gap: 8px;
      padding: 14px 20px;
    }

    .btn-icon {
      margin-bottom: 5px;
    }

    .contact-item {
      flex-direction: column;
      text-align: center;
      gap: 10px;
    }

    .contact-icon {
      align-self: center;
    }

    /* Basic copy / selection discourager */
    body {
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }
  }
  

  /* Make date field same size & style as attending dropdown */
  #reachingDate.form-control {
    height: 48px;
    padding: 12px 14px;
    line-height: normal;
  }

  /* iOS needs this */
  #reachingDate::-webkit-date-and-time-value {
    line-height: normal;
  }

  #reachingDate {
    appearance: none;
  }

  /* Calendar icon alignment (Safari/Chrome mobile) */
  #reachingDate::-webkit-calendar-picker-indicator {
    margin-right: 6px;
  }

  /* Force left-aligned text inside all form fields */
.form-control,
select.form-control,
input[type="date"].form-control {
  text-align: left;
}

/* iOS fix to ensure text stays left */
select.form-control,
input[type="date"].form-control {
  text-align-last: left;
}

/* iOS WebKit text alignment fix */
#reachingDate::-webkit-datetime-edit {
  text-align: left;
  padding-left: 2px;
}

/* Keep calendar icon + label left aligned on all devices */
#reachingDateGroup .form-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}

/* Keep helper text left aligned under label */
#reachingDateGroup .form-hint {
  text-align: left;
  padding-left: 34px;
}

/* Make date text always left-aligned (Safari Fix) */
#reachingDate {
  text-align: left !important;
}

#reachingDate::-webkit-datetime-edit,
#reachingDate::-webkit-datetime-edit-fields-wrapper,
#reachingDate::-webkit-date-and-time-value {
  text-align: left !important;
}

/* Make date label behave like other form labels */
#reachingDateGroup .form-label {
  display: flex;
  flex-direction: column;     /* icon on top, text below */
  align-items: flex-start;    /* left alignment */
  gap: 6px;                   /* space between icon & label */
}

/* helper text should start from left as well */
#reachingDateGroup .form-hint {
  text-align: left;
  padding-left: 0;            /* remove previous shift */
}
