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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure smooth scrolling on all browsers */
* {
    scroll-behavior: smooth;
}

/* Enhanced smooth scrolling for FAQ page */
.faq-section {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.faq-section * {
    scroll-behavior: smooth;
}

/* Smooth scrolling for FAQ accordion */
.faq-item {
    scroll-behavior: smooth;
    transition: all 0.3s ease;
}

.faq-answer {
    scroll-behavior: smooth;
    transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #6B705C; /* Dark Green */
    background-color: #F0E3D3; /* Light Cream */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F0E3D3; /* Light Cream */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.loading-logo {
    margin-bottom: 2rem;
    animation: logoFloat 3s ease-in-out infinite;
}

.loading-logo-image {
    height: 120px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.loading-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #6B705C; /* Dark Green */
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.loading-text p {
    font-size: 1.2rem;
    color: #C58C6E; /* Brown */
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.loading-spinner {
    display: flex;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #F0E3D3; /* Light Cream */
    border-top: 4px solid #6B705C; /* Dark Green */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #6B705C; /* Dark Green */
}

h2 {
    font-size: 2.5rem;
    color: #6B705C; /* Dark Green */
}

h3 {
    font-size: 1.8rem;
    color: #C58C6E; /* Brown */
}

p {
    margin-bottom: 1rem;
    color: #6B705C; /* Dark Green */
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
.section {
    padding: 2rem 0;
}

/* RSVP Section - Prevent navbar overlap */
.section.rsvp-section {
    padding-top: 85px !important; /* Minimal padding for fixed navbar (80px height + 5px buffer) */
    padding-bottom: 2rem;
    background: #F0E3D3;
    min-height: calc(100vh - 80px);
    overflow-y: auto;
}

/* Separate page sections - add extra padding for fixed navbar */
.travel-section,
.photos-section,
.registry-section,
.faq-section,
.schedule-section,
.story-section {
    padding-top: 20px !important; /* Minimal padding for mobile visibility */
}

/* Section spacing - Remove bottom margins/padding before footer */
.rsvp-section,
.schedule-section {
    padding-bottom: 0;
    margin-bottom: 0;
}

.rsvp-section *,
.schedule-section * {
    margin-bottom: 0;
}

/* Ensure no gap between main content and footer */
main {
    margin-bottom: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}


.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
    padding: 1rem 0; /* Add padding to ensure visibility */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #C58C6E; /* Brown */
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #4B553F;
    color: #F4F1DE !important;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border: 2px solid #4B553F;
    cursor: pointer;
}

.btn:hover {
    background: #5A6A44;
    border-color: #5A6A44;
    color: #F4F1DE !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 85, 63, 0.3);
}

.btn-primary {
    background: #6B705C; /* Dark Green */
    color: #F0E3D3 !important; /* Light Cream */
    border: 2px solid #6B705C;
}

.btn-primary:hover {
    background: #C58C6E; /* Brown */
    border-color: #C58C6E;
    color: #F0E3D3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 112, 92, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #6B705C !important; /* Dark Green */
    border: 2px solid #6B705C;
}

.btn-secondary:hover {
    background: #6B705C;
    color: #F0E3D3 !important; /* Light Cream */
    border-color: #6B705C;
}

.btn-outline {
    background: transparent;
    color: #4B553F !important;
    border: 2px solid #4B553F;
}

.btn-outline:hover {
    background: #4B553F;
    color: #F4F1DE !important;
    border-color: #4B553F;
}

.btn-peach {
    background: #DDBEA9; /* Light Brown */
    color: #6B705C !important; /* Dark Green */
    border: 2px solid #DDBEA9;
}

.btn-peach:hover {
    background: #C58C6E; /* Brown */
    border-color: #C58C6E;
    color: #F0E3D3 !important; /* Light Cream */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 190, 169, 0.3);
}

.btn-peach-outline {
    background: transparent;
    color: #DDBEA9 !important; /* Light Brown */
    border: 2px solid #DDBEA9;
}

.btn-peach-outline:hover {
    background: #DDBEA9;
    color: #6B705C !important; /* Dark Green */
    border-color: #DDBEA9;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: transparent;
}

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

.nav-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4B553F;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 70px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: none; /* Hide the logo */
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: none; /* Hide on desktop */
    gap: 2rem;
    align-items: center;
}

/* Show nav menu on mobile when hamburger is clicked */
.nav-menu.active {
    display: flex;
}

.nav-link {
    color: #6B705C; /* Dark Green */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-link:hover {
    color: #6B705C;
    background: rgba(221, 190, 169, 0.3); /* Light Brown hover */
    transform: translateY(-1px);
}

.nav-link.active {
    color: #6B705C;
    background: rgba(107, 112, 92, 0.1); /* Dark Green */
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #75808C;
    border-radius: 1px;
}

.nav-cta {
    background: #6B705C; /* Dark Green */
    color: #F0E3D3 !important; /* Light Cream */
    padding: 10px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid #6B705C;
}

.nav-cta:hover {
    background: #C58C6E; /* Brown */
    border-color: #C58C6E;
    color: #F0E3D3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 112, 92, 0.3);
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background: #6B705C; /* Dark Green */
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    margin-top: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.1) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -2;
    will-change: transform;
}


.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.1s ease-out;
    filter: brightness(0.7) contrast(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(75, 85, 63, 0.4), rgba(90, 106, 68, 0.6));
    z-index: -1;
    transition: opacity 0.3s ease;
}

.hero.scrolled .hero-overlay {
    opacity: 0.8;
}

.hero-content {
    text-align: center;
    color: #F0E3D3; /* Light Cream */
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(50px);
    animation: heroFadeIn 1.5s ease-out 0.5s forwards;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}


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

.hero-logo-top {
    position: absolute;
    top: 20px;
    left: 30px;
    z-index: 100;
    text-align: left;
}

.hero-logo-image {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.hero-logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.4));
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    color: #F0E3D3; /* Light Cream */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    font-weight: 300;
    letter-spacing: clamp(1px, 2vw, 3px);
    text-transform: uppercase;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 2rem;
    font-weight: 300;
    color: #F0E3D3; /* Light Cream */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    opacity: 0;
    animation: slideInUp 1s ease-out 1s forwards;
    letter-spacing: clamp(1px, 1.5vw, 2px);
    text-transform: uppercase;
    line-height: 1.4;
    word-wrap: break-word;
}

.hero-date {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 300;
    margin-bottom: 1rem;
    color: #F0E3D3; /* Light Cream */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    opacity: 0;
    animation: slideInUp 1s ease-out 1.2s forwards;
    letter-spacing: clamp(1px, 1.5vw, 2px);
    text-transform: uppercase;
    line-height: 1.3;
    word-wrap: break-word;
}

.hero-location {
    font-size: clamp(0.8rem, 2.2vw, 1rem);
    margin-bottom: 3rem;
    color: #F0E3D3; /* Light Cream */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    opacity: 0;
    animation: slideInUp 1s ease-out 1.4s forwards;
    font-weight: 300;
    letter-spacing: clamp(0.5px, 1vw, 1px);
    text-transform: uppercase;
    word-wrap: break-word;
    line-height: 1.4;
}

.location-link {
    color: #F0E3D3;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.location-link:hover {
    color: white;
    border-bottom: 1px solid rgba(240, 227, 211, 0.7);
    text-decoration: none;
}

.map-link {
    color: rgba(240, 227, 211, 0.8);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 400;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    display: inline-block;
    margin-top: 0.3rem;
}

.map-link:hover {
    color: white;
    border-bottom: 1px solid rgba(240, 227, 211, 0.7);
    text-decoration: none;
}

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

.hero-buttons {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideInUp 1s ease-out 1.6s forwards;
    max-width: 100%;
    padding: 0 1rem;
}

.hero-button {
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    background: transparent;
    color: #F0E3D3; /* Light Cream */
    text-decoration: none;
    border: 2px solid #F0E3D3; /* Light Cream */
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    display: inline-block;
    white-space: nowrap;
    min-width: fit-content;
    text-align: center;
    min-width: 140px;
    box-sizing: border-box;
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #F0E3D3; /* Light Cream */
    transition: width 0.3s ease;
    z-index: -1;
}

.hero-button:hover::before {
    width: 100%;
}

.hero-button:hover {
    color: #6B705C; /* Dark Green */
    transform: translateY(-2px);
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideInUp 1s ease-out 1.8s forwards;
}

.countdown-item {
    text-align: center;
    padding: 1.5rem 1rem;
    min-width: 100px;
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: #F0E3D3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #F0E3D3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* Interactive floating elements - Scherer inspired */
.hero-floating {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero-floating-1 {
    top: 15%;
    left: 8%;
    width: 4px;
    height: 4px;
    background: #6B705C; /* Dark Green */
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    opacity: 0.6;
}

.hero-floating-2 {
    top: 25%;
    right: 12%;
    width: 3px;
    height: 3px;
    background: #DDBEA9; /* Light Brown */
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    opacity: 0.7;
}

.hero-floating-3 {
    bottom: 35%;
    left: 15%;
    width: 2px;
    height: 2px;
    background: #C58C6E; /* Brown */
    border-radius: 50%;
    animation: float 12s ease-in-out infinite;
    opacity: 0.5;
}

.hero-floating-4 {
    top: 45%;
    right: 8%;
    width: 3px;
    height: 3px;
    background: #DDBEA9; /* Light Brown */
    border-radius: 50%;
    animation: float 9s ease-in-out infinite reverse;
    opacity: 0.6;
}

.hero-floating-5 {
    bottom: 20%;
    right: 25%;
    width: 2px;
    height: 2px;
    background: #6B705C; /* Dark Green */
    border-radius: 50%;
    animation: float 11s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Showering Hearts Animation */
.hearts-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    transform: rotate(45deg);
    animation: heartFall 3s linear forwards;
    opacity: 0.8;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    border-radius: 50%;
}

.heart::before {
    top: -10px;
    left: 0;
}

.heart::after {
    top: 0;
    left: -10px;
}

@keyframes heartFall {
    0% {
        transform: translateY(-100px) rotate(45deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(45deg) scale(0.3);
        opacity: 0;
    }
}

/* Our Story Section */
.story-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem; /* Add horizontal padding for mobile */
}

/* Removed story-main card styling - now using story-text instead */

.story-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Removed old story-tidbits card styling - now using updated styles below */

.tidbit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tidbit-card {
    background-color: transparent;
    width: 100%;
    height: 180px;
    perspective: 1000px;
}

.tidbit-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.tidbit-card:hover .tidbit-card-inner {
    transform: rotateY(180deg);
}

.tidbit-card-front, .tidbit-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #F0E3D3; /* Light Cream */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(107, 112, 92, 0.08); /* Dark Green */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: geometricPrecision;
}

.tidbit-card-back {
    transform: rotateY(180deg);
    background: #DDBEA9; /* Light Brown */
}

.tidbit-card-front h4 {
    color: #6B705C; /* Dark Green */
    font-size: 1.3rem;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: geometricPrecision;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tidbit-card-back p {
    color: #6B705C; /* Dark Green */
    line-height: 1.6;
    margin: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: geometricPrecision;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Schedule Section - Consolidated */
.schedule-section {
    background: #F0E3D3; /* Light Cream - same as Our Story page */
    padding: 2rem 0 0 0; /* Remove bottom padding */
    margin-top: 0;
    margin-bottom: 0; /* Remove bottom margin */
    padding-top: 85px; /* Minimal padding to account for fixed navbar */
    position: relative;
    overflow: visible; /* Allow proper content flow */
}

.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    padding: 1rem 0; /* Add padding to ensure visibility */
}

.tab-btn {
    padding: 10px 25px;
    border: 2px solid #6B705C; /* Dark Green */
    background: transparent;
    color: #6B705C !important; /* Dark Green */
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    background: #6B705C; /* Dark Green */
    color: #F0E3D3 !important; /* Light Cream */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 112, 92, 0.3);
}

.tab-btn.active {
    background: #6B705C; /* Dark Green */
    color: #F0E3D3 !important; /* Light Cream */
    box-shadow: 0 4px 12px rgba(107, 112, 92, 0.3);
}

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

.event-card {
    background: #F0E3D3; /* Light Cream */
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(107, 112, 92, 0.08); /* Dark Green */
    border-left: 4px solid #6B705C; /* Dark Green */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107, 112, 92, 0.15); /* Dark Green */
}

.event-date {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.event-date .day {
    background: #4B553F;
    color: #F4F1DE !important;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.event-date .date {
    color: #75808C;
    font-weight: 500;
}

.event-details h3 {
    color: #6B705C; /* Dark Green */
    margin-bottom: 0.5rem;
}

.event-time {
    color: #6B705C; /* Dark Green */
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-venue {
    font-weight: 600;
    color: #6B705C; /* Dark Green */
    margin-bottom: 0.5rem;
}

.event-address a {
    color: #C58C6E; /* Brown */
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-address a:hover {
    color: #6B705C; /* Dark Green */
}

.event-description {
    color: #6B705C; /* Dark Green */
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.dress-code {
    display: block;
    color: #6B705C; /* Dark Green */
    padding: 15px 20px;
    border: none; /* Remove border */
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 1rem 0;
    line-height: 1.4;
    background: #DDBEA9; /* Light Brown */
}

.dress-code-link {
    text-decoration: none; /* Remove default underline */
    color: #6B705C; /* Dark Green */
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent; /* Invisible border for smooth transition */
}

.dress-code-link:hover {
    color: #4B553F; /* Darker green on hover */
    background: #C58C6E; /* Slightly darker background on hover */
    transform: translateY(-1px); /* Subtle lift effect */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Add shadow on hover */
    border-color: #4B553F; /* Default border color */
}

/* Haldi event - yellow/mustard theme */
.haldi-event .dress-code-link:hover {
    border-color: #B8860B; /* Dark goldenrod */
}

/* Sangeet event - dark green theme */
.sangeet-event .dress-code-link:hover {
    border-color: #2F4F2F; /* Dark forest green */
}

/* South Indian Wedding - warm beige theme */
.south-indian-event .dress-code-link:hover {
    border-color: #8B7355; /* Dark beige */
}

/* Gujarati Wedding - coral theme */
.gujarati-event .dress-code-link:hover {
    border-color: #CD5C5C; /* Indian red */
}

/* Add a small icon or indicator */
.dress-code-link::after {
    content: " 🔗"; /* Link icon */
    opacity: 0.7;
    font-size: 0.8em;
    margin-left: 5px;
    transition: opacity 0.3s ease;
}

.dress-code-link:hover::after {
    opacity: 1; /* Make icon more visible on hover */
}

.click-hint {
    font-size: 0.8em;
    font-style: italic;
    opacity: 0.8;
    color: #4B553F; /* Slightly darker green */
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.dress-code-link:hover .click-hint {
    opacity: 1; /* Make hint more visible on hover */
}

.event-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.event-actions .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Travel Section */
.travel-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.getting-there,
.things-to-do,
.weather-info {
    background: #F0E3D3; /* Light Cream */
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(107, 112, 92, 0.08); /* Dark Green */
    text-align: center;
}

.getting-there h3,
.things-to-do h3,
.weather-info h3 {
    color: #6B705C; /* Dark Green */
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.getting-there p,
.things-to-do p,
.weather-info p {
    color: #6B705C; /* Dark Green */
    line-height: 1.6;
    margin-bottom: 1rem;
}

.getting-there strong {
    color: #C58C6E; /* Brown */
    font-weight: 600;
}

.things-to-do .btn {
    margin-top: 1rem;
}

/* Wedding Party Section */
.party-section {
    background: #f8f9fa;
}

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

.party-member {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.party-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid #6b8e6b;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.party-member h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-caption {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Photos Section */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.photo-item {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(50px) rotateX(10deg);
}

.photo-item.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.photo-item:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9) contrast(1.1);
}

.photo-item:hover img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2);
}

/* Parallax effect for story images */
/* Removed old story-image card styling */

/* Blur effect on scroll */
.photo-item.blur {
    filter: blur(2px);
    opacity: 0.7;
}

.photo-item.focus {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

/* Registry Section */
.registry-section {
    background: transparent; /* Use page background */
    padding: 4rem 0;
    flex: 1; /* Take up remaining space */
    display: flex;
    align-items: center;
    justify-content: center;
}

.registry-content {
    padding: 0 1rem; /* Add horizontal padding for mobile */
}

.registry-intro {
    text-align: justify;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem; /* Add horizontal padding for mobile */
}

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

.registry-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.registry-item:hover {
    transform: translateY(-5px);
}

.registry-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.honeymoon-fund {
    background: linear-gradient(135deg, #9caf88, #d2b48c);
    color: #2c3e50;
}

.honeymoon-fund h3 {
    color: #2c3e50;
}

.qr-code {
    margin: 1rem 0;
}

.qr-code img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    background: white;
    padding: 10px;
}

.qr-instructions {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.faq-section {
    background: transparent; /* Use page background */
    padding: 1rem 0 2rem; /* Reduced padding for mobile visibility */
}

.faq-section .container {
    padding: 0 3rem; /* Extra padding for better readability */
}

/* RSVP Section */
.rsvp-section {
    background: transparent;
    padding: 85px 0 4rem 0; /* Minimal top padding for navbar clearance */
}

.rsvp-subtitle {
    text-align: center;
    color: #6B705C;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Progress Bar */
.progress-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E8E0D0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C58C6E, #6B705C);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: #6B705C;
    font-size: 0.9rem;
    font-weight: 500;
}

/* RSVP Form Container */
.rsvp-form-container {
    max-width: 500px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
}

/* Desktop - Increased widths for better desktop experience */
@media (min-width: 769px) {
    .rsvp-form-container {
        max-width: 800px !important;
    }
    
    .country-select {
        padding: 18px 16px !important;
        font-size: 1.1rem !important;
        min-width: 120px !important;
        max-width: 140px !important;
        padding-right: 50px !important;
        background-position: right 16px center !important;
    }
    
    .phone-input-container input {
        padding: 18px 24px !important;
        font-size: 1.1rem !important;
    }
    
    .arrow-btn {
        padding: 14px 28px !important;
        min-width: 100px !important;
        max-width: none !important;
        font-size: 1.1rem !important;
    }
}

.rsvp-form {
    position: relative;
}

/* Form Steps */
.form-step {
    display: none;
    min-height: auto;
    padding: 0;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.step-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; /* Reduced for better mobile fit */
    color: #6B705C;
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

/* Form Groups - Minimum font sizes and touch-friendly */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid #E8E0D0;
    border-radius: 12px;
    font-size: 1rem; /* Minimum 16px for mobile */
    font-family: 'Inter', sans-serif;
    background: white;
    color: #6B705C;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 48px; /* Touch-friendly minimum */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C58C6E;
    box-shadow: 0 0 0 3px rgba(197, 140, 110, 0.1);
}

/* Choice Cards - Touch-friendly and aligned */
.choice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    overflow-x: hidden;
}

.choice-card {
    background: white;
    border: 2px solid #E8E0D0;
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.choice-card:hover {
    border-color: #C58C6E;
    transform: none;
    box-shadow: none;
}

.choice-card.active {
    border-color: #6B705C;
    background: transparent;
    transform: none;
    box-shadow: none;
}

.choice-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.choice-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6B705C;
    margin-bottom: 0.5rem;
}

.choice-text {
    font-size: 0.9rem;
    color: #6B705C;
    font-weight: 500;
}

/* Other Input */
.other-input {
    margin-top: 1rem;
    animation: slideDown 0.3s ease-out;
}

.other-input input {
    padding: 15px 20px;
    border: 2px solid #E8E0D0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: white;
    color: #6B705C;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.other-input input:focus {
    outline: none;
    border-color: #C58C6E;
    box-shadow: 0 0 0 3px rgba(197, 140, 110, 0.1);
}

.other-input input::placeholder {
    color: #6B705C;
    opacity: 0.7;
}

.other-input input[type="date"] {
    padding: 15px 20px;
    border: 2px solid #E8E0D0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: white;
    color: #6B705C;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.other-input input[type="date"]:focus {
    outline: none;
    border-color: #C58C6E;
    box-shadow: 0 0 0 3px rgba(197, 140, 110, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Phone Input */
.phone-input-container {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #E8E0D0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input-container:focus-within {
    border-color: #C58C6E;
    box-shadow: 0 0 0 3px rgba(197, 140, 110, 0.1);
}

.country-select {
    padding: 15px 6px;
    font-size: 0.9rem;
    background: #F0E3D3;
    border: none;
    border-right: 2px solid #E8E0D0;
    color: #6B705C;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    min-width: 60px;
    max-width: 75px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B705C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 35px;
}

.country-select:focus {
    outline: none;
}

.phone-input-container input {
    border: none;
    border-radius: 0;
    padding: 15px 15px;
    flex: 1;
    font-size: 0.95rem;
    color: #6B705C;
    font-family: 'Inter', sans-serif;
}

.phone-input-container input:focus {
    box-shadow: none;
    outline: none;
}

/* Family Members */
.family-members-container {
    margin-bottom: 1rem;
}

.family-member {
    display: grid;
    grid-template-columns: 1fr 100px auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid #E8E0D0;
    border-radius: 0;
}

.family-member input {
    border: 1px solid #E8E0D0;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.add-member-btn {
    background: #C58C6E;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.add-member-btn:hover {
    background: #B07A5A;
    transform: translateY(-1px);
}

/* Ensure add member button matches input field width */
.step-content .add-member-btn {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

/* More specific targeting for the button */
#step5 .add-member-btn,
.form-step#step5 .add-member-btn,
.step-content .add-member-btn[type="button"] {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.remove-member {
    background: #E07A5F;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-member:hover {
    background: #D65A2B;
    transform: scale(1.1);
}

/* Checkbox - Inline styling without card border */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 1rem;
    color: #6B705C;
    font-weight: 500;
    padding: 0;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    gap: 12px;
    min-height: auto;
    /* Ensure proper baseline alignment */
    line-height: 1.4;
}

.checkbox-label:hover {
    color: #C58C6E;
}

.checkbox-label:hover .checkbox-custom {
    border-color: #C58C6E;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #E8E0D0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Ensure proper vertical alignment with text */
    vertical-align: middle;
    margin-top: -1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #C58C6E;
    background: #C58C6E;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

/* Additional styling for better visibility */
.checkbox-label:focus-within {
    color: #C58C6E;
}

.checkbox-label:focus-within .checkbox-custom {
    border-color: #C58C6E;
    box-shadow: 0 0 0 2px rgba(197, 140, 110, 0.2);
}

.checkbox-custom:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(197, 140, 110, 0.3);
}

/* Time Input Styling */
.form-group input[type="time"] {
    padding: 16px 50px 16px 20px;
    border: 2px solid #E8E0D0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: white;
    color: #6B705C;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    /* Allow native time picker to work */
    -webkit-appearance: none;
    appearance: none;
}

.form-group input[type="time"]:focus {
    outline: none;
    border-color: #C58C6E;
    box-shadow: 0 0 0 3px rgba(197, 140, 110, 0.1);
    background: white;
}

.form-group input[type="time"]:disabled {
    background: #E8E0D0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

/* Ensure disabled time input cannot be clicked */
.form-group input[type="time"][disabled] {
    background: #E8E0D0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
}

/* Show time picker icon and make it clickable */
.form-group input[type="time"]::-webkit-calendar-picker-indicator {
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B705C'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3e%3c/svg%3e") no-repeat center;
    background-size: 20px;
    cursor: pointer;
    height: 24px;
    width: 24px;
    margin-left: 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
    /* Ensure it's clickable */
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.form-group input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Ensure time input is clickable and accessible */
.form-group input[type="time"]:not(:disabled) {
    cursor: pointer;
    pointer-events: auto;
}

.form-group input[type="time"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group input[type="time"]::-webkit-inner-spin-button,
.form-group input[type="time"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Custom Time Picker Dropdown Styling - Removed conflicting styles */

/* Style the time picker dropdown when it opens */
.form-group input[type="time"]::-webkit-datetime-edit {
    color: #6B705C;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    background: transparent;
}

.form-group input[type="time"]::-webkit-datetime-edit-text {
    color: #6B705C;
    padding: 0 2px;
}

.form-group input[type="time"]::-webkit-datetime-edit-hour-field,
.form-group input[type="time"]::-webkit-datetime-edit-minute-field {
    color: #6B705C;
    background: transparent;
}

/* Mobile time picker dropdown styling */
@media (max-width: 768px) {
    .form-group input[type="time"] {
        background: white;
        border-color: #E8E0D0;
        color: #6B705C;
        font-size: 1rem;
        padding: 16px 50px 16px 20px;
        /* Ensure native picker works on mobile */
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
    }
    
    .form-group input[type="time"]:focus {
        background: white;
        border-color: #C58C6E;
        box-shadow: 0 0 0 2px rgba(197, 140, 110, 0.2);
    }
    
    .form-group input[type="time"]:disabled {
        background: #E8E0D0 !important;
        color: #999 !important;
        border-color: #D1D5DB !important;
        cursor: not-allowed !important;
        opacity: 0.7 !important;
        pointer-events: none !important;
    }
    
    /* Ensure time picker icon is visible on mobile */
    .form-group input[type="time"]::-webkit-calendar-picker-indicator {
        background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B705C'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3e%3c/svg%3e") no-repeat center;
        background-size: 20px;
        opacity: 1;
        cursor: pointer;
        width: 24px;
        height: 24px;
        pointer-events: auto;
        z-index: 10;
    }
    
    /* Mobile checkbox styling - Inline without card border */
    .checkbox-label {
        margin-top: 0.8rem;
        padding: 0;
        font-size: 1rem;
        background: transparent;
        border: none;
        display: flex;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        min-height: auto;
        /* Ensure proper baseline alignment */
        line-height: 1.4;
    }
    
    .checkbox-label:hover {
        color: #C58C6E;
    }
    
    .checkbox-label:hover .checkbox-custom {
        border-color: #C58C6E;
    }
    
    .checkbox-custom {
        width: 20px;
        height: 20px;
        margin-right: 0;
        /* Ensure proper vertical alignment with text on mobile */
        vertical-align: middle;
        margin-top: -1px;
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
        font-size: 12px;
    }
}

/* File Upload */
.file-upload-container {
    margin-bottom: 1.5rem;
}

.file-upload-area {
    border: 2px dashed #6B705C;
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: #C58C6E;
    background: transparent;
}

.file-upload-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.file-upload-text {
    margin-bottom: 0.5rem;
}

.file-upload-text strong {
    display: block;
    color: #6B705C;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.file-upload-text span {
    color: #6B705C;
    font-size: 0.9rem;
}

.file-upload-info {
    color: #6B705C;
    font-size: 0.8rem;
    opacity: 0.7;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 2px solid #C58C6E;
    border-radius: 0;
    padding: 1rem;
    margin-top: 1rem;
}

.file-info {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    color: #6B705C;
    margin-bottom: 0.25rem;
}

.file-size {
    font-size: 0.8rem;
    color: #6B705C;
    opacity: 0.7;
}

.remove-file {
    background: #E07A5F;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: #D65A2B;
    transform: scale(1.1);
}

/* Thank You Screens */
.thank-you-content,
.success-content {
    text-align: center;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 50vh;
    padding-top: 2rem;
}

.thank-you-icon,
.success-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.thank-you-title,
.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #6B705C;
    margin-bottom: 1rem;
    font-weight: 600;
}

.thank-you-message,
.success-message {
    color: #6B705C;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 400px;
}

/* Arrow Button Base Styling */
.arrow-btn {
    background: #C58C6E;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    padding: 10px 16px;
    min-width: 60px;
    max-width: 80px;
    min-height: 44px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.arrow-btn:hover {
    background: #B07A5A;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.arrow-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* RSVP Navigation Base Styling */
.rsvp-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 1.5rem 0 1rem 0;
    padding: 1rem;
    gap: 1rem;
    flex-shrink: 0;
    position: relative;
    background: transparent;
    border-top: 1px solid #E8E0D0;
    border-radius: 8px;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E8E0D0;
}

/* Desktop form navigation - align with form content */
@media (min-width: 769px) {
    .form-navigation {
        justify-content: flex-end;
        padding-left: 0;
        margin-left: 0;
    }
    
    .form-navigation .btn {
        margin-left: 0;
    }
    
    .rsvp-form-container {
        padding: 0 2rem;
    }
    
    .form-step {
        padding: 0 2rem;
    }
}

.form-navigation .btn {
    background: #C58C6E;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    padding: 12px 20px;
    min-width: 80px;
    min-height: 44px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-navigation .btn:hover {
    background: #B07A5A;
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-navigation .btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* When only Next button is visible (first step) */
.form-navigation:has(#prevBtn[style*="display: none"]) {
    justify-content: flex-end;
}

/* Fallback for browsers that don't support :has() */
.form-navigation .btn:only-child {
    margin-left: auto;
}

/* Specific styling for Next button when Previous is hidden */
#nextBtn:only-of-type {
    margin-left: auto;
}

/* Ensure Next button is right-aligned when Previous is not visible */
.form-navigation:not(:has(#prevBtn:not([style*="display: none"]))) {
    justify-content: flex-end;
}

/* When only Next button is visible (using class) */
.form-navigation.next-only,
.rsvp-navigation.next-only {
    justify-content: flex-end;
}

.rsvp-navigation.next-only #nextBtn {
    margin-left: auto;
}

/* Error Messages */
.error-message {
    color: #E07A5F;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

/* Admin Panel */
.admin-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.admin-btn {
    background: #6B705C;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(107, 112, 92, 0.3);
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: #5A6A44;
    transform: scale(1.1);
}

.admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #6B705C;
    border-radius: 12px;
    padding: 2rem;
    z-index: 1001;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(107, 112, 92, 0.3);
}

.admin-content h3 {
    color: #6B705C;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    text-align: center;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #F0E3D3;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: #6B705C;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #6B705C;
    opacity: 0.8;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.admin-actions .btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.btn-danger {
    background: #E07A5F;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #D65A2B;
    transform: translateY(-1px);
}

.faq-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-intro p {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.faq-item {
    margin-bottom: 1rem;
    background: #F0E3D3;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: none !important;
    outline: none !important;
}

.faq-question {
    width: 100%;
    padding: 0.8rem;
    background: #F0E3D3;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #6B705C; /* Dark Green */
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: geometricPrecision;
}

.faq-question:hover {
    background: #DDBEA9;
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6B705C;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    scroll-behavior: smooth;
}

.faq-item.active .faq-answer {
    padding: 1rem;
    max-height: 300px;
    scroll-behavior: smooth;
}


.faq-answer p {
    color: #6B705C; /* Dark Green */
    line-height: 1.6;
    font-size: 1.1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: geometricPrecision;
}

/* RSVP Form Container - Desktop */
.rsvp-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    background: transparent;
    overflow-x: hidden;
}

.rsvp-form {
    position: relative;
    background: transparent;
    overflow-x: hidden;
}

/* RSVP Progress Bar */
.rsvp-progress {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #D1D5DB;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: #F4B6A6; /* Peach */
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1D5DB;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #8fbc8f; /* Sage Green */
    transform: scale(1.2);
}

.progress-dot.completed {
    background: #F4B6A6; /* Peach */
}

/* RSVP Form Container */
.rsvp-form-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.rsvp-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

/* Question Steps */
.question {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.question.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

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

.question-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #4B553F; /* Dark Text */
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Form Groups */
.form-group {
    margin-bottom: 2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4B553F; /* Dark Text */
    font-family: 'Inter', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #D1D5DB;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #4B553F;
    min-height: 44px;
    box-sizing: border-box;
}

/* Time Input Specific Styling - Removed conflicting background image */
.form-group input[type="time"] {
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    padding-right: 20px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F4B6A6; /* Peach */
    box-shadow: 0 0 0 3px rgba(244, 182, 166, 0.2);
    transform: translateY(-1px);
}

.form-note {
    display: block;
    margin-top: 0.5rem;
    color: #6B705C;
    font-size: 0.9rem;
    font-style: italic;
}

/* Phone Input */
.phone-input {
    display: flex;
    gap: 0.5rem;
}

.phone-input select {
    flex: 0 0 120px;
    border-radius: 12px 0 0 12px;
}

.phone-input input {
    flex: 1;
    border-radius: 0 12px 12px 0;
    border-left: none;
}

/* Radio Cards */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.radio-card {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 2px solid #D1D5DB;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 100px;
    justify-content: center;
}

.radio-card:hover .radio-content {
    border-color: #F4B6A6; /* Peach */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 182, 166, 0.2);
}

.radio-card input[type="radio"]:checked + .radio-content {
    border-color: #8fbc8f; /* Sage Green */
    background: rgba(143, 188, 143, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 188, 143, 0.3);
}

.radio-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.radio-text {
    font-weight: 500;
    color: #4B553F;
    font-family: 'Inter', sans-serif;
}

/* Family Members */
.family-members {
    margin-bottom: 2rem;
}

.family-member-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.family-name {
    flex: 0 0 70%;
}

.family-age {
    flex: 0 0 30%;
}

/* Family Members Buttons */
.family-members + .btn-outline {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.family-members + .btn-outline + .btn-primary {
    margin-top: 0;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    justify-content: flex-start;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.3);
    accent-color: #8fbc8f; /* Sage Green */
}

.checkbox-text {
    color: #4B553F;
    font-weight: 500;
}

/* File Upload */
.file-upload-area {
    position: relative;
    border: 2px dashed #8fbc8f; /* Sage Green */
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: rgba(143, 188, 143, 0.05);
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: #F4B6A6; /* Peach */
    background: rgba(244, 182, 166, 0.05);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    pointer-events: none;
}

.file-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.file-upload-content p {
    margin: 0.5rem 0;
    color: #4B553F;
    font-weight: 500;
}

.file-upload-content small {
    color: #6B705C;
    font-size: 0.9rem;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Form Button Styling */
.question .btn {
    margin: 0.5rem;
    min-width: 140px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
}

.question .btn-primary {
    background: #8fbc8f; /* Sage Green */
    color: #fff !important;
    border: 2px solid #8fbc8f;
}

.question .btn-primary:hover {
    background: #7ba87b;
    border-color: #7ba87b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 188, 143, 0.3);
}

.question .btn-secondary {
    background: transparent;
    color: #8fbc8f !important;
    border: 2px solid #8fbc8f;
}

.question .btn-secondary:hover {
    background: #8fbc8f;
    color: #fff !important;
    border-color: #8fbc8f;
}

.question .btn-outline {
    background: transparent;
    color: #4B553F !important;
    border: 2px solid #4B553F;
}

.question .btn-outline:hover {
    background: #4B553F;
    color: #fff !important;
    border-color: #4B553F;
}

/* Button Groups */
.question .btn + .btn {
    margin-left: 1rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.button-group .btn {
    margin: 0;
    flex: 0 0 auto;
}

/* RSVP Message */
.rsvp-message {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.rsvp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rsvp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Panel */
.admin-panel {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    border: 2px solid #F4B6A6;
}

.admin-panel h3 {
    color: #4B553F;
    margin-bottom: 1rem;
    text-align: center;
}

.admin-stats {
    text-align: center;
    margin-bottom: 1.5rem;
}

.admin-stats p {
    font-size: 1.1rem;
    color: #4B553F;
    margin: 0;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.admin-toggle-container {
    text-align: center;
    margin-top: 2rem;
}

/* Thank You Screen */
.thank-you-screen {
    text-align: center;
    padding: 3rem;
}

.thank-you-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.thank-you-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #4B553F;
    margin-bottom: 1rem;
}

.thank-you-message {
    color: #6B705C;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* STANDARDIZED MOBILE FONT SIZES - Apply to ALL pages */
    
    /* Section titles - consistent across all pages */
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 1.5rem;
        text-align: center;
        font-weight: 600;
        line-height: 1.3;
    }
    
    /* H3 headings - consistent across all pages */
    h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem;
        font-weight: 600;
        line-height: 1.3;
    }
    
    /* Content text - consistent across all pages */
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Override specific page inconsistencies */
    .travel-section h3,
    .things-to-do h3,
    .weather-info h3 {
        font-size: 1.5rem !important;
    }
    
    .story-tidbits h3 {
        font-size: 1.5rem !important;
    }
    
    .event-section h3 {
        font-size: 1.5rem !important;
    }
    
    .rsvp-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .question-content h3 {
        font-size: 1.5rem;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .radio-content {
        padding: 1rem;
        min-height: 80px;
    }
    
    .family-member-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .family-name,
    .family-age {
        flex: 1;
        width: 100%;
    }
    
    .phone-input {
        flex-direction: column;
    }
    
    .phone-input select,
    .phone-input input {
        border-radius: 12px;
    }
    
    .phone-input input {
        border-left: 2px solid #D1D5DB;
    }
    
    .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .button-group .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .question .btn {
        margin: 0.25rem;
        min-width: 120px;
        padding: 10px 20px;
    }
    
    .admin-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* Mobile RSVP - Clean and Simple */
    .rsvp-section {
        padding: 2rem 0 !important;
        margin: 0 !important;
        min-height: calc(100vh - 60px);
        overflow-x: hidden;
        overflow-y: auto;
        background: #F0E3D3;
    }
    
    .rsvp-section .container {
        padding: 0 1rem !important;
        margin: 0 !important;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* RSVP specific mobile overrides - compact header */
    .rsvp-section .section-title {
        font-size: 1.6rem !important;
        margin: 1rem 0 2rem 0;
        text-align: center;
        font-weight: 600;
        line-height: 1.3;
        color: #6B705C;
    }
    
    .rsvp-section .rsvp-subtitle {
        font-size: 0.9rem;
        margin: 1.2rem 0 1.5rem 0;
        text-align: center;
        color: #6B705C;
        line-height: 1.4;
        font-weight: 400;
    }
    
    .progress-container {
        margin: 0 0 0.8rem 0;
        text-align: center;
    }
    
    .progress-text {
        font-size: 0.9rem;
        color: #6B705C;
        line-height: 1.5;
        font-weight: 500;
        margin-top: 0.3rem;
    }
    
    /* Form Container */
    .rsvp-form-container {
        max-width: 90%;
        padding: 0;
        margin: 0 auto;
        overflow-x: hidden;
    }
    
    .rsvp-form {
        padding: 0;
        margin: 0;
        background: transparent;
        overflow-x: hidden;
    }
    
    /* Form Steps */
    .form-step {
        flex: 1;
        display: none;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }
    
    .form-step.active {
        display: flex;
    }
    
    .step-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0.5rem 0;
        overflow-x: hidden;
    }
    
    /* Question - Compact spacing for better layout */
    .step-title {
        font-size: 1.5rem !important;
        margin: 0.3rem 0 0.8rem 0;
        text-align: center;
        line-height: 1.3;
        font-weight: 600;
        color: #6B705C;
    }
    
    /* Choice Cards - Compact layout with two columns */
    .choice-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        margin: 0 0 1rem 0;
        padding: 0 0.5rem;
    }
    
    .choice-card {
        padding: 0.8rem 0.5rem;
        border: 2px solid #E8E0D0;
        border-radius: 10px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        background: white;
        min-height: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
    }
    
    .choice-card:hover {
        border-color: #C58C6E;
        background: #F9F7F4;
    }
    
    .choice-card.selected {
        border-color: #C58C6E;
        background: #F0E3D3;
    }
    
    .choice-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .choice-date {
        font-size: 1.1rem;
        font-weight: 600;
        color: #6B705C;
        margin-bottom: 0.2rem;
    }
    
    .choice-text {
        font-size: 0.9rem;
        font-weight: 500;
        color: #6B705C;
    }
    
    /* Form Groups */
    .form-group {
        margin: 0 0 1rem 0;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 1rem;
        border: 2px solid #E8E0D0;
        border-radius: 12px;
        font-size: 1rem;
        background: white;
        min-height: 50px;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #C58C6E;
    }
    
    /* Navigation - Fixed positioning for visibility */
    .rsvp-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 1.5rem 0 1rem 0;
        padding: 1rem;
        gap: 1rem;
        flex-shrink: 0;
        position: relative;
        background: transparent;
        border-top: 1px solid #E8E0D0;
        border-radius: 8px;
    }
    
    /* When only Next button is visible on mobile */
    .rsvp-navigation.next-only {
        justify-content: flex-end !important;
    }
    
    .rsvp-navigation.next-only #nextBtn {
        margin-left: auto !important;
    }
    
    .arrow-btn {
        background: #C58C6E;
        border: none;
        border-radius: 15px;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        color: white;
        padding: 12px 18px;
        min-width: 70px;
        max-width: 90px;
        min-height: 48px; /* Touch-friendly minimum */
        font-weight: 600;
    }
    
    /* Submit button styling for last step */
    #submitBtn {
        background: #6B705C; /* Darker green for prominence */
        font-size: 1.1rem;
        font-weight: 700;
        padding: 18px 32px;
        min-width: 150px;
        box-shadow: 0 4px 12px rgba(107, 112, 92, 0.3);
    }
    
    #submitBtn:hover {
        background: #5A5F4A;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(107, 112, 92, 0.4);
    }
    
    .arrow-btn:hover {
        background: #B07A5A;
        transform: none;
    }
    
    .arrow-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
    
    /* Thank you page - compact and centered */
    .thank-you-content,
    .success-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 1rem 0 0.05rem 0;
        min-height: 45vh;
    }
    
    .thank-you-title,
    .success-title {
        font-size: 1.2rem;
        margin: 0.5rem 0;
        line-height: 1.3;
        font-weight: 600;
    }
    
    .thank-you-message,
    .success-message {
        font-size: 1rem;
        margin: 0.5rem 0 1rem 0;
        line-height: 1.5;
        max-width: 280px;
    }
    
    .thank-you-icon,
    .success-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .thank-you-content .form-group,
    .success-content .form-group {
        width: 100%;
        max-width: 280px;
        margin: 0.2rem 0;
    }
    
    .thank-you-content .form-group textarea,
    .success-content .form-group textarea {
        min-height: 50px;
        font-size: 0.7rem;
        line-height: 1.3;
        padding: 0.4rem;
        width: 100%;
    }
    
    .thank-you-content .rsvp-navigation,
    .success-content .rsvp-navigation {
        justify-content: center;
        margin-top: 0.2rem;
        padding: 0;
    }
    
    .thank-you-content .arrow-btn,
    .success-content .arrow-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
        min-width: 100px;
        background: #C58C6E;
        color: white;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .thank-you-content .arrow-btn:hover,
    .success-content .arrow-btn:hover {
        background: #B07A5A;
        transform: translateY(-1px);
    }
    
    .add-member-btn {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    
    /* Error Messages */
    .error-message {
        color: #e74c3c;
        font-size: 0.8rem;
        margin-top: 0.3rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rsvp-section {
        padding: 0.8rem 0 !important;
    }
    
    .rsvp-section .container {
        padding: 0 0.8rem !important;
    }
    
    .rsvp-form-container {
        padding: 0;
        max-height: none;
        overflow-y: auto;
    }
    
    .step-title {
        font-size: 1.3rem !important;
        margin-bottom: 1rem;
        line-height: 1.3;
        font-weight: 600;
    }
    
    .choice-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0 0.3rem;
    }
    
    .choice-card {
        padding: 0.7rem 0.4rem;
        min-height: 45px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.1rem;
    }
    
    .choice-date {
        font-size: 1rem;
        font-weight: 600;
        color: #6B705C;
        margin-bottom: 0.1rem;
    }
    
    .choice-text {
        font-size: 0.9rem;
        font-weight: 500;
        color: #6B705C;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
        min-height: 45px;
    }
    
    .file-upload-area {
        padding: 0.6rem;
        min-height: 45px;
    }
    
    .file-upload-text {
        font-size: 0.8rem;
    }
    
    .form-navigation {
        margin-top: 0.8rem;
    }
    
    .form-navigation .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    /* Keep navbar and hamburger visible */
    
    /* Mobile Hero Section - No top spacing */
    .hero {
        height: 100vh;
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Adjust hero image position for extra small mobile - shift right to show Mithil */
    .hero-image {
        object-position: 30% 30%; /* Small shift right for extra small screens */
    }
    
    .rsvp-section {
        padding: 0.5rem 0 !important;
    }
    
    .rsvp-section .container {
        padding: 0 0.5rem !important;
    }
    
    .rsvp-form-container {
        padding: 0;
        max-height: none;
        overflow-y: auto;
    }
    
    .step-title {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem;
        line-height: 1.3;
        font-weight: 600;
    }
    
    .choice-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
        margin-bottom: 0.8rem;
        padding: 0 0.2rem;
    }
    
    .choice-card {
        padding: 0.6rem 0.3rem;
        min-height: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.1rem;
    }
    
    .choice-date {
        font-size: 0.9rem;
        font-weight: 600;
        color: #6B705C;
        margin-bottom: 0.1rem;
    }
    
    .choice-text {
        font-size: 0.8rem;
        font-weight: 500;
        color: #6B705C;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
    
    .file-upload-area {
        padding: 0.5rem;
        min-height: 40px;
    }
    
    .file-upload-text {
        font-size: 0.75rem;
    }
    
    .form-navigation {
        margin-top: 0.6rem;
    }
    
    .form-navigation .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* Ultra-compact styles for very small devices */
    .thank-you-content .thank-you-title,
    .success-content .success-title {
        font-size: 0.9rem;
        margin: 0.1rem 0;
    }
    
    .thank-you-content .thank-you-message,
    .success-content .success-message {
        font-size: 0.9rem;
        margin: 0.1rem 0 0.3rem 0;
        max-width: 250px;
    }
    
    .thank-you-content .thank-you-icon,
    .success-content .success-icon {
        font-size: 1.2rem;
        margin-bottom: 0.1rem;
    }
    
    .thank-you-content .form-group textarea,
    .success-content .form-group textarea {
        min-height: 40px;
        font-size: 0.6rem;
        padding: 0.3rem;
    }
    
    .thank-you-content .form-group,
    .success-content .form-group {
        margin: 0.2rem 0;
        max-width: 250px;
    }
    
    .thank-you-content .arrow-btn,
    .success-content .arrow-btn {
        font-size: 0.7rem;
        padding: 5px 10px;
        min-width: 80px;
    }
}

/* Footer */
.footer {
    background: #6B705C; /* Dark Green */
    color: #F0E3D3; /* Light Cream */
    padding: 1rem 0 0.5rem;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-text p {
    color: rgba(240, 227, 211, 0.8); /* Light Cream with transparency */
    margin-bottom: 0.25rem;
}

.footer-text a {
    color: #DDBEA9; /* Light Brown */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #F0E3D3; /* Light Cream */
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: rgba(240, 227, 211, 0.7); /* Light Cream with transparency */
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #DDBEA9; /* Light Brown */
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close {
    top: -60px;
    right: 0;
}

.lightbox-prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    /* Keep navbar and hamburger visible - just reduce spacing */
    
    /* Mobile Hero Section - No top spacing */
    .hero {
        height: 100vh;
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Adjust hero image position for mobile - shift right to show Mithil */
    .hero-image {
        object-position: 40% 30%; /* Small shift right to show more of left side (Mithil) */
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(244, 241, 222, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(75, 85, 63, 0.1);
        padding: 2rem 0;
        gap: 0.5rem;
        z-index: 999;
        height: 100vh;
        overflow-y: hidden;
        display: none; /* Hidden by default */
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
        display: flex; /* Show when active */
    }

    .nav-link {
        padding: 12px 20px;
        margin: 0 1rem;
        border-radius: 25px;
        background: transparent;
        color: #6B705C;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .nav-cta {
        margin: 0 1rem;
        background: transparent;
        color: #6B705C !important;
        padding: 12px 20px;
        border-radius: 25px;
        font-size: 1.1rem;
        font-weight: 600;
        border: none;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-logo-top {
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

    .hero-logo-image {
        height: 110px;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .hero-date {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .hero-location {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-button {
        width: 200px;
        padding: 12px 20px;
    }

    .countdown {
        gap: 0.8rem;
    }

    .countdown-item {
        padding: 0.8rem 0.3rem;
        min-width: 70px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .story-block {
        flex-direction: column;
        gap: 2rem;
    }

    .story-block.reverse {
        flex-direction: column;
    }

    .story-text {
        padding: 1rem;
    }

    .travel-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .party-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

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

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .rsvp-form {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .lightbox-prev,
    .lightbox-next {
        display: none;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }

    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    /* STANDARDIZED SMALL MOBILE FONT SIZES - Apply to ALL pages */
    
    /* Section titles - consistent across all pages */
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
        text-align: center;
        font-weight: 600;
        line-height: 1.3;
    }
    
    /* H3 headings - consistent across all pages */
    h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.8rem;
        font-weight: 600;
        line-height: 1.3;
    }
    
    /* Content text - consistent across all pages */
    p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Override specific page inconsistencies */
    .travel-section h3,
    .things-to-do h3,
    .weather-info h3 {
        font-size: 1.3rem !important;
    }
    
    .story-tidbits h3 {
        font-size: 1.3rem !important;
    }
    
    .event-section h3 {
        font-size: 1.3rem !important;
    }

    .container {
        padding: 0 1rem;
    }
    
    .faq-section .container {
        padding: 0 2rem; /* Maintain good spacing on tablet */
    }

    .section {
        padding: 3rem 0;
    }
    
    .travel-section,
    .photos-section,
    .registry-section,
    .faq-section,
    .schedule-section,
    .story-section {
        padding: 0.1rem 1rem !important; /* Add horizontal padding for mobile */
    }
    
    .rsvp-section {
        padding: 0.1rem 0 !important; /* No navbar on mobile */
    }
    
    /* RSVP specific small mobile overrides */
    .rsvp-section .section-title {
        font-size: 1.6rem !important;
        margin: 0.8rem 0 1.5rem 0;
        line-height: 1.3;
    }
    
    .rsvp-section .rsvp-subtitle {
        font-size: 0.8rem;
        margin: 1rem 0 1.2rem 0;
        line-height: 1.4;
    }
    
    .progress-container {
        margin: 0 0 0.2rem 0;
    }
    
    .progress-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .hero-logo-top {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

    .hero-logo-image {
        height: 95px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .rsvp-form-container {
        padding: 0;
        margin: 0 1rem;
    }

    .step-title {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .choice-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .choice-card {
        padding: 1rem 0.8rem;
    }

    .choice-icon {
        font-size: 1.5rem;
    }

    .choice-date {
        font-size: 1rem;
    }

    .choice-text {
        font-size: 0.8rem;
    }

    .family-member {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        text-align: center;
    }

    .family-member input {
        width: 100%;
    }

    .file-upload-area {
        padding: 1.5rem 1rem;
    }

    .file-upload-text strong {
        font-size: 1rem;
    }

    .file-upload-text span {
        font-size: 0.8rem;
    }

    .file-upload-info {
        font-size: 0.7rem;
    }

    .form-navigation {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }

    .form-navigation .btn {
        min-width: 120px;
    }

    .admin-panel {
        margin: 1rem;
        min-width: auto;
        width: calc(100% - 2rem);
    }

    .admin-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .admin-actions {
        flex-direction: column;
    }

    .countdown {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: 50px;
        padding: 0.5rem 0.2rem;
        flex: 1;
        max-width: 60px;
    }

    .countdown-number {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
    }

    .countdown-label {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    .event-card {
        padding: 1.5rem;
    }

    .rsvp-form {
        padding: 1.5rem;
    }

    .countdown {
        gap: 0.3rem;
    }

    .countdown-item {
        min-width: 45px;
        padding: 0.4rem 0.1rem;
    }

    .countdown-number {
        font-size: 1.2rem;
    }

    .countdown-label {
        font-size: 0.55rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Couple Message Popup */
.couple-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.popup-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.5s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #2c3e50;
}

.popup-content h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.popup-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.popup-content strong {
    color: #2c3e50;
    font-weight: 600;
}

#popup-continue {
    display: block;
    margin: 2rem auto 0 auto;
    text-align: center;
}

#popup-rsvp {
    display: block;
    margin: 2rem auto 0;
    padding: 12px 30px;
}

/* Focus States for Accessibility */
.btn:focus,
.tab-btn:focus,
.nav-link:focus,
.radio-label:focus-within,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #DDBEA9; /* Light Brown */
    outline-offset: 2px;
}

.faq-question:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.faq-question:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.faq-question:hover {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.faq-item:focus {
    outline: none !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.faq-item:active {
    outline: none !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}


/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }
    
    .nav-link.active::after {
        height: 3px;
    }
}

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #6B705C; /* Dark Green */
    color: #F0E3D3; /* Light Cream */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(107, 112, 92, 0.3); /* Dark Green */
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #C58C6E; /* Brown */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 112, 92, 0.4); /* Dark Green */
}

.scroll-to-top:focus {
    outline: 2px solid #DDBEA9; /* Light Brown */
    outline-offset: 2px;
}

/* Timeline Styles */
.timeline-section {
    background: #F0E3D3; /* Light Cream */
    padding: 5rem 0;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #C58C6E; /* Brown */
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 200px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6B705C; /* Dark Green */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: #DDBEA9; /* Light Brown */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(107, 112, 92, 0.1);
    margin: 0 2rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: #DDBEA9; /* Light Brown */
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: #DDBEA9; /* Light Brown */
}

.timeline-content h3 {
    color: #6B705C; /* Dark Green */
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.timeline-content p {
    color: #6B705C; /* Dark Green */
    line-height: 1.6;
    margin: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #6B705C; /* Dark Green */
    border: 4px solid #F0E3D3; /* Light Cream */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* Story Hero Styles */
.story-hero {
    height: 40vh;
    min-height: 250px;
}

/* Schedule Header - No Image */
.schedule-header {
    background: #F0E3D3; /* Light Cream */
    padding: 4rem 0;
    text-align: center;
}

.schedule-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #6B705C; /* Dark Green */
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: clamp(1px, 2vw, 3px);
    text-transform: uppercase;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

.schedule-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #6B705C; /* Dark Green */
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: clamp(1px, 1.5vw, 2px);
    text-transform: uppercase;
    line-height: 1.4;
    word-wrap: break-word;
}

.schedule-date {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #6B705C; /* Dark Green */
    margin-bottom: 0;
    font-weight: 300;
    letter-spacing: clamp(0.5px, 1vw, 1px);
    text-transform: uppercase;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Schedule Section Background - Consolidated above */

/* Event Sections - No Cards, Background Colors */
.event-section {
    margin-bottom: 0;
    padding: 0;
    position: relative;
}

/* Haldi Two-Box Layout - Full Width */
.haldi-layout {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 500px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    margin-top: 2rem; /* Add space from header */
    max-width: 100vw; /* Ensure it doesn't exceed viewport */
    box-sizing: border-box;
}

.haldi-details-box {
    flex: 1 1 50%;
    background: #D2A96A; /* Yellow/golden background for details */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.haldi-image-box {
    flex: 1 1 50%;
    background: #F0E3D3; /* Light background for image */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.haldi-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.haldi-event {
    background: transparent;
}

/* Sangeet Two-Box Layout - Full Width (Image Left, Details Right) */
.sangeet-layout {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 500px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    margin-top: 0; /* No extra margin for subsequent events */
    max-width: 100vw; /* Ensure it doesn't exceed viewport */
    box-sizing: border-box;
}

.sangeet-image-box {
    flex: 1 1 50%;
    background: #F0E3D3; /* Light background for image */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.sangeet-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sangeet-details-box {
    flex: 1 1 50%;
    background: #5C6F6D; /* Sangeet background color for details */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.sangeet-event {
    background: transparent;
}

/* South Indian Wedding Two-Box Layout - Full Width (Details Left, Image Right) */
.south-indian-layout {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 500px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    margin-top: 0; /* No extra margin for subsequent events */
    max-width: 100vw; /* Ensure it doesn't exceed viewport */
    box-sizing: border-box;
}

.south-indian-details-box {
    flex: 1 1 50%;
    background: #e6cbae; /* South Indian background color for details */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.south-indian-image-box {
    flex: 1 1 50%;
    background: #F0E3D3; /* Light background for image */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.south-indian-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.south-indian-event {
    background: transparent;
}

/* Gujarati Wedding Two-Box Layout - Full Width (Image Left, Details Right) */
.gujarati-layout {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 600px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    margin-top: 0; /* No extra margin for subsequent events */
    margin-bottom: 0; /* Remove bottom margin to attach to footer */
    max-width: 100vw; /* Ensure it doesn't exceed viewport */
    box-sizing: border-box;
}

.gujarati-image-box {
    flex: 1 1 50%;
    background: #F0E3D3; /* Light background for image */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.gujarati-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gujarati-details-box {
    flex: 1 1 50%;
    background: #D49D88; /* Gujarati background color for details */
    padding: 2rem 2rem 0 2rem; /* Remove bottom padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 0; /* Remove bottom margin */
}

/* Gujarati section specific text styling for better visibility */
.gujarati-details-box h3 {
    color: #2E2E2E !important; /* Dark text for better contrast */
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: none;
    font-weight: 700;
}

.gujarati-details-box .event-time {
    color: #2E2E2E !important; /* Dark text for better contrast */
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.gujarati-details-box .event-description {
    color: #2E2E2E !important; /* Dark text for better contrast */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: normal;
    font-weight: 500;
}

.gujarati-details-box .dress-code {
    color: #2E2E2E !important; /* Dark text for better contrast */
    font-weight: 500;
}

/* Ensure all text in Gujarati section is dark and visible */
.gujarati-details-box * {
    color: #2E2E2E !important;
}

.gujarati-details-box h3 {
    color: #2E2E2E !important;
    font-weight: 700;
}

.gujarati-details-box .event-time {
    color: #2E2E2E !important;
    font-weight: 600;
}

.gujarati-details-box .event-description {
    color: #2E2E2E !important;
    font-weight: 500;
}

.gujarati-details-box .dress-code {
    color: #2E2E2E !important;
    font-weight: 500;
}

.gujarati-event {
    background: transparent;
}

/* Event Section Content */
.event-section .event-date {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.event-section .day {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.event-section .date {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.event-section h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.event-section .event-time {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.event-section .event-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.event-section .event-venue a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.event-section .event-venue a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.event-section .event-address {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.event-section .dress-code {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
}

.event-section .event-actions {
    margin-top: 1.5rem;
}

.event-section .btn {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.event-section .btn:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.story-hero .hero-content {
    padding-top: 1rem;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.story-hero .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    hyphens: auto;
}

.story-hero .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 0.5rem;
}

.story-hero .hero-date {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-bottom: 0;
}

/* Story Layout - Side by Side */
.story-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 3rem 0;
}

.story-text {
    flex: 1;
    padding-right: 1rem;
}

.story-text p {
    color: #6B705C; /* Dark Green */
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify; /* Justify the text */
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.story-image img {
    width: 100%;
    height: 500px;
    max-width: 450px;
    object-fit: cover;
    border-radius: 0;
    transform: none !important;
    position: relative;
}

/* Reduce image size for small devices */
@media (max-width: 768px) {
    .story-image img {
        width: 100%;
        height: 350px;
        max-width: 350px;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .story-image {
        justify-content: center;
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .story-image img {
        width: 100%;
        height: 300px;
        max-width: 280px;
        object-fit: cover;
    }
}

@media (max-width: 320px) {
    .story-image {
        justify-content: center;
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .story-image img {
        width: 100%;
        height: 250px;
        max-width: 250px;
        object-fit: cover;
    }
}

/* Remove outer card styling from tidbits */
.story-tidbits {
    background: transparent;
    padding: 2rem 1rem; /* Add horizontal padding */
    margin: 3rem 0 0 0;
    box-shadow: none;
    min-height: 300px;
}

.story-tidbits h3 {
    color: #6B705C; /* Dark Green */
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        padding-left: 60px;
    }
    
    .timeline-item::after {
        left: 30px;
    }
    
    .timeline-date {
        flex: none;
        text-align: left;
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .timeline-content::before {
        display: none;
    }
}

/* Story Layout Responsive */
@media (max-width: 768px) {
    .story-layout {
        flex-direction: column;
        gap: 2rem;
        margin: 2rem 0;
    }
    
    .story-text {
        padding: 0 1rem; /* Add horizontal padding for mobile */
        order: 1;
    }
    
    .story-image {
        order: 2;
        justify-content: center;
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .story-image img {
        width: 100%;
        height: 350px;
        max-width: 350px;
        object-fit: cover;
    }
    
    /* Fix tidbits visibility on mobile */
    .tidbit-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
        padding: 0 1rem;
    }
    
    .tidbit-card {
        margin-bottom: 0.8rem;
        height: 160px;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 480px) {
    /* Keep navbar and hamburger visible */
    
    /* Mobile Hero Section - Optimized height to fit content */
    .hero {
        height: calc(100vh - 60px);
        margin-top: 0;
        padding-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 0;
    }
    
    /* Adjust hero image position for smaller mobile - shift right to show Mithil */
    .hero-image {
        object-position: 35% 30%; /* Small shift right for smaller screens */
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .hero-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .story-hero .hero-content {
        padding: 0 1rem;
    }
    
    .story-layout {
        gap: 1rem;
        margin: 1.5rem 0;
        padding: 0 1rem; /* Add horizontal padding for mobile */
    }
    
    .story-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .story-image img {
        width: 100%;
        height: 300px;
        max-width: 280px;
        object-fit: cover;
    }
    
    /* Fix tidbits for small mobile */
    .tidbit-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .tidbit-card {
        width: 100%;
        margin-bottom: 0.6rem;
        height: 140px;
    }
    
    .tidbit-card-front,
    .tidbit-card-back {
        padding: 1rem;
        min-height: 80px;
    }
    
    .tidbit-card-front h4,
    .tidbit-card-back p {
        font-size: 1rem;
        line-height: 1.4;
        font-weight: 500;
        -webkit-font-smoothing: subpixel-antialiased;
        -moz-osx-font-smoothing: auto;
        text-rendering: geometricPrecision;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::after {
        left: 20px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    /* Schedule section mobile */
    .schedule-section {
        padding: 1.5rem 0;
        padding-top: 6rem !important; /* Account for fixed navbar on mobile */
    }
    
    /* Event sections mobile */
    .event-section {
        padding: 0;
        margin-bottom: 0;
    }
    
    /* Haldi layout mobile */
    .haldi-layout {
        flex-direction: column;
        min-height: auto;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .haldi-details-box {
        flex: none;
        padding: 1.5rem;
        align-items: center;
        text-align: center;
    }
    
    .haldi-image-box {
        display: none;
    }
    
    /* Sangeet layout mobile */
    .sangeet-layout {
        flex-direction: column;
        min-height: auto;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .sangeet-image-box {
        display: none;
    }
    
    .sangeet-details-box {
        flex: none;
        padding: 1.5rem;
        align-items: center;
        text-align: center;
    }
    
    /* South Indian layout mobile */
    .south-indian-layout {
        flex-direction: column;
        min-height: auto;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .south-indian-details-box {
        flex: none;
        padding: 1.5rem;
        align-items: center;
        text-align: center;
    }
    
    .south-indian-image-box {
        display: none;
    }
    
    /* Gujarati layout mobile */
    .gujarati-layout {
        flex-direction: column;
        min-height: auto;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .gujarati-image-box {
        display: none;
    }
    
    .gujarati-details-box {
        flex: none;
        padding: 1.5rem;
        align-items: center;
        text-align: center;
    }
    
    .gujarati-details-box h3,
    .gujarati-details-box .event-section h3 {
        color: #2E2E2E !important;
        font-size: 1.5rem;
        font-weight: 700;
    }
    
    .gujarati-details-box .event-time,
    .gujarati-details-box .event-section .event-time {
        color: #2E2E2E !important;
        font-weight: 600;
    }
    
    .gujarati-details-box .event-description,
    .gujarati-details-box .event-section .event-description {
        color: #2E2E2E !important;
        font-weight: 500;
    }
    
    .gujarati-details-box .dress-code,
    .gujarati-details-box .event-section .dress-code {
        color: #2E2E2E !important;
        font-weight: 500;
    }
    
    .event-section h3 {
        font-size: 1.5rem;
    }
    
    .event-section .event-time {
        font-size: 1rem;
    }
    
    .event-section .event-description {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    /* STANDARDIZED EXTRA SMALL MOBILE FONT SIZES - Apply to ALL pages */
    
    /* Section titles - consistent across all pages */
    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.8rem;
        text-align: center;
        font-weight: 600;
        line-height: 1.3;
    }
    
    /* H3 headings - consistent across all pages */
    h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.6rem;
        font-weight: 600;
        line-height: 1.3;
    }
    
    /* Content text - consistent across all pages */
    p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Override specific page inconsistencies */
    .travel-section h3,
    .things-to-do h3,
    .weather-info h3 {
        font-size: 1.2rem !important;
    }
    
    .story-tidbits h3 {
        font-size: 1.2rem !important;
    }
    
    .event-section h3 {
        font-size: 1.2rem !important;
    }
    
    /* RSVP specific extra small mobile overrides */
    .rsvp-section .section-title {
        font-size: 1.4rem !important;
        margin: 0.6rem 0 1.2rem 0;
        line-height: 1.3;
    }
    
    .rsvp-section .rsvp-subtitle {
        font-size: 0.75rem;
        margin: 0.8rem 0 1rem 0;
        line-height: 1.4;
    }
    
    .progress-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .hero-logo-top {
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

    .hero-logo-image {
        height: 85px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .hero-date {
        font-size: 1rem;
    }
    
    .hero-location {
        font-size: 0.7rem;
    }
    
    .hero-button {
        font-size: 0.7rem;
        padding: 0.6rem 1.2rem;
    }
    
    .story-image img {
        width: 100%;
        height: 250px;
        max-width: 250px;
        object-fit: cover;
    }
    
    /* Extra small tidbits */
    .tidbit-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0;
    }
    
    .tidbit-card-front,
    .tidbit-card-back {
        padding: 0.8rem;
        min-height: 70px;
    }
    
    .tidbit-card-front h4,
    .tidbit-card-back p {
        font-size: 0.95rem;
        line-height: 1.3;
        font-weight: 500;
        -webkit-font-smoothing: subpixel-antialiased;
        -moz-osx-font-smoothing: auto;
        text-rendering: geometricPrecision;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    /* Schedule section extra small */
    .schedule-section {
        padding: 1rem 0;
        padding-top: 1rem !important; /* Minimal padding for extra small */
    }

    /* Story section extra small */
    .story-section {
        padding: 1rem 0;
        padding-top: 1rem !important; /* Minimal padding for extra small */
    }
    
    /* Other sections extra small */
    .travel-section,
    .photos-section,
    .registry-section,
    .faq-section {
        padding: 1rem 0;
        padding-top: 1rem !important; /* Minimal padding for extra small */
    }
    
    .faq-section .container {
        padding: 0 1.5rem; /* Good spacing on small mobile */
    }
    
    .rsvp-section {
        padding: 1rem 0;
        padding-top: 0 !important; /* No navbar on mobile */
    }
    
    /* Event sections extra small */
    .event-section {
        padding: 0;
        margin-bottom: 0;
    }
    
    /* Haldi layout extra small */
    .haldi-layout {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .haldi-details-box {
        padding: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .haldi-image-box {
        display: none;
    }
    
    /* Sangeet layout extra small */
    .sangeet-layout {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .sangeet-details-box {
        padding: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .sangeet-image-box {
        display: none;
    }
    
    /* South Indian layout extra small */
    .south-indian-layout {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .south-indian-details-box {
        padding: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .south-indian-image-box {
        display: none;
    }
    
    /* Gujarati layout extra small */
    .gujarati-layout {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .gujarati-image-box {
        display: none;
    }
    
    .gujarati-details-box {
        padding: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .gujarati-details-box h3,
    .gujarati-details-box .event-section h3 {
        color: #2E2E2E !important;
        font-size: 1.3rem;
        font-weight: 700;
    }
    
    .gujarati-details-box .event-time,
    .gujarati-details-box .event-section .event-time {
        color: #2E2E2E !important;
        font-weight: 600;
    }
    
    .gujarati-details-box .event-description,
    .gujarati-details-box .event-section .event-description {
        color: #2E2E2E !important;
        font-weight: 500;
    }
    
    .gujarati-details-box .dress-code,
    .gujarati-details-box .event-section .dress-code {
        color: #2E2E2E !important;
        font-weight: 500;
    }
    
    .event-section h3 {
        font-size: 1.3rem;
    }
    
    .event-section .event-time {
        font-size: 0.9rem;
    }
    
    .event-section .event-description {
        font-size: 0.8rem;
    }
    
    .event-section .dress-code {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* Registry page specific styling */
body.registry-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.registry-page main {
    flex: 1;
}

/* Hero RSVP Button Styles */
.hero-cta {
    margin-top: 2rem;
    opacity: 0;
    animation: slideInUp 1s ease-out 1.6s forwards;
}

.hero-rsvp-link {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
}

.hero-rsvp-link:hover {
    color: #C58C6E;
    transform: translateY(-2px);
    text-decoration: underline;
}

/* Mobile responsiveness for RSVP link */
@media (max-width: 768px) {
    .hero-rsvp-link {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-rsvp-link {
        font-size: 1.1rem;
    }
}

/* Final mobile breakpoint - Fix horizontal scroll and ensure proper layout */
@media (max-width: 600px) {
    html, body { 
        overflow-x: hidden !important; 
        max-width: 100vw !important; 
        font-size: 15px !important;
    }
    
    main, .container, .section, .rsvp-form-container {
        padding-left: 0 !important; 
        padding-right: 0 !important; 
        margin-left: 0 !important; 
        margin-right: 0 !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Override global mobile styles for FAQ section */
    .faq-section .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    /* No navbar on mobile - remove all top padding */
    main, .section {
        padding-top: 0 !important;
    }
    
    .rsvp-section {
        padding-top: 0 !important;
    }
    
    /* Minimum font sizes for readability */
    h1 {
        font-size: 2.2rem !important;
    }
    
    h2, .section-title {
        font-size: 1.7rem !important;
    }
    
    h3, .step-title {
        font-size: 1.3rem !important;
        min-height: auto;
    }
    
    /* Ensure buttons are touch-friendly */
    .btn, .arrow-btn {
        min-height: 44px !important;
        font-size: 1rem !important;
        padding: 12px 20px !important;
    }
    
    /* Fix form elements */
    input, select, textarea, .form-group input, .form-group select, .form-group textarea {
        font-size: 1rem !important;
        min-height: 44px !important;
    }
    
    /* Fix choice cards and grids */
    .choice-cards, .timeline, .story-layout, .event-section {
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Fix photo gallery */
    .photo-grid, .gallery-grid {
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Ensure error messages are readable */
    .error-message {
        font-size: 14px !important;
    }
    
    /* Focus states for accessibility */
    input:focus, select:focus, textarea:focus, button:focus, .nav-link:focus, .choice-card:focus {
        outline: 2px solid #C58C6E !important;
        outline-offset: 2px !important;
    }
    
    /* Ensure proper z-index for overlays */
    .modal, .lightbox, .couple-popup, .loading-screen {
        z-index: 9999 !important;
    }
    
    /* Reduce excessive padding on mobile */
    .section {
        padding: 2.5rem 0 !important;
    }
    
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .schedule-section, .story-section {
        padding-top: 2.5rem !important;
    }
    
    .rsvp-section {
        padding: 100px 0 1rem 0 !important;
        background: #F0E3D3 !important;
    }
    
    .event-section, .faq-section, .registry-section {
        padding: 2rem 0 !important;
    }
    
    /* Reduce margins between form elements */
    .form-group {
        margin-bottom: 1rem !important;
    }
    
    .choice-cards {
        margin-bottom: 1rem !important;
    }
    
    .family-members-container {
        margin-bottom: 1rem !important;
    }
    
    .add-member-btn {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }
    
    /* RSVP specific fixes - Final cleanup */
    .rsvp-section {
        padding-top: 0 !important;
        padding-bottom: 2rem !important;
    }
    
    .rsvp-form-container {
        padding: 0 1rem !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .rsvp-navigation {
        margin: 1.5rem 0 1rem 0 !important;
        padding: 1rem !important;
        position: relative !important;
        background: transparent !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* When only Next button is visible on small mobile */
    .rsvp-navigation.next-only {
        justify-content: flex-end !important;
    }
    
    .rsvp-navigation.next-only #nextBtn {
        margin-left: auto !important;
    }
    
    .step-content {
        padding: 0.5rem 0 !important;
        overflow-x: hidden !important;
    }
    
    .choice-cards {
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 0 1.5rem 0 !important;
    }
}

/* ========================================
   PHOTOS PAGE STYLES
======================================== */

.photos-header {
    background: linear-gradient(135deg, #2c1810 0%, #3d2418 50%, #2c1810 100%);
    color: #f5f5f5;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.photos-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.photos-header .section-title {
    color: #F0E3D3;
}

.photos-gallery {
    padding: 4rem 0;
    background: #F0E3D3;
}

.gallery-grid {
    columns: 4;
    column-gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-image {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive masonry layout */
@media (max-width: 1200px) {
    .gallery-grid {
        columns: 3;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        columns: 2;
        padding: 0 1rem;
    }
}


@media (max-width: 480px) {
    .gallery-grid {
        columns: 1;
        padding: 0 1rem;
    }
}


/* ========================================
   FOOTER STYLES
======================================== */

.footer {
    background: linear-gradient(135deg, #2c1810 0%, #3d2418 50%, #2c1810 100%);
    color: #f5f5f5;
    padding: 1rem 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Homepage specific footer positioning */
#home .footer,
.hero ~ .footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

/* Prevent homepage from being scrollable */
#home {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#home main {
    height: 100vh;
    overflow: hidden;
}

/* Allow RSVP page to be scrollable when content expands */
body.rsvp-page {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.rsvp-page main {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C58C6E, transparent);
}

.footer-bottom {
    padding-top: 1rem;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
    color: #b8b8b8;
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.instagram-link {
    color: #C58C6E;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: 0.5rem;
}

.instagram-link:hover {
    color: #E4405F;
    transform: scale(1.1);
    text-decoration: none;
}

.footer-love {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #C58C6E;
    margin: 0;
    font-style: italic;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
        margin-top: 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0 1.5rem;
    }
    
    .footer-social {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .instagram-link {
        font-size: 1.1rem;
        margin-left: 0.4rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 0.8rem 0;
        margin-top: 0;
    }
    
    .footer-bottom-content {
        padding: 0 1rem;
    }
    
    .footer-copyright,
    .footer-love {
        font-size: 0.85rem;
    }
}

/* === HERO FIX (put at very end of styles.css) === */
.hero { position: relative; min-height: 100vh; overflow: hidden; }
.hero-background { position: absolute; inset: 0; z-index: 0; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hearts-container { z-index: 3; }
/* optional: if the radial layer is darkening too much, kill it */
.hero::before { content: none; }
