* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --bg_color_lighttan: #f5f3ee;
    --bg_color_medtan: #ebded4;
    --bg-color: #eae3d8;
}

body {
    font-family: 'Avenir';
    color: #1a1a1a;
    line-height: 1.6;
    background: var(--bg-color);
    padding-top: 0; /* Navbar will be fixed, so no padding needed */
    --rainbow-gradient: linear-gradient(
        135deg,
        rgba(219, 188, 246, 1) 0%,
        rgba(237, 215, 252, 0.91) 24%,
        rgba(238, 223, 225, 0.8) 51%,
        rgba(238, 226, 214, 0.84) 62%,
        rgba(211, 226, 241, 0.87) 69%,
        rgba(211, 226, 241, 1) 100%
      );
}

/* Utility */
.hidden {
    display: none !important;
}

/* Flower Girl Surprise 🌸 */
.flowergirl-input {
    border-color: #ff69b4 !important;
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.3) !important;
    /* No background/size change so input stays aligned with row */
}

.flowergirl-confetti-container {
    position: fixed;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: visible;
    /* left/top/transform set in JS from input getBoundingClientRect() */
}

.confetti-piece {
    position: absolute;
    font-size: 1.2rem;
    pointer-events: none;
    animation: confetti-burst var(--duration, 2s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    filter: drop-shadow(0 0 4px rgba(255, 182, 193, 0.8));
}

.confetti-piece.confetti-sparkle {
    width: 6px;
    height: 6px;
    font-size: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, #ffc0cb 40%, #ff69b4);
    box-shadow: 0 0 6px #ffb6c1, 0 0 12px rgba(255, 105, 180, 0.5);
    animation: confetti-burst var(--duration, 2s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, confetti-twinkle 0.6s ease-in-out infinite;
}

@keyframes confetti-burst {
    0% {
        opacity: 1;
        transform: translate(var(--start-x, 0), var(--start-y, 0)) rotate(0deg) scale(1);
    }
    10% {
        opacity: 1;
        transform: translate(calc(var(--start-x, 0) * 1.5), calc(var(--start-y, 0) * 1.5)) rotate(calc(var(--rotation, 180deg) * 0.2)) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(var(--end-x, 0), var(--end-y, -100px)) rotate(var(--rotation, 180deg)) scale(0.5);
    }
}

@keyframes confetti-twinkle {
    0%, 100% { box-shadow: 0 0 6px #ffb6c1, 0 0 12px rgba(255, 105, 180, 0.5); }
    50% { box-shadow: 0 0 10px #fff, 0 0 18px rgba(255, 182, 193, 0.8); }
}

.flowergirl-badge-list {
    font-size: 0.65rem;
    color: #ff69b4;
    font-weight: 600;
    margin-left: 0.5rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    background: #fff5f8;
    border: 1px solid #ffc0cb;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

#guest-table td {
    position: relative;
}

/* add additional fonts from assets/fonts/ */
@font-face {
    font-family: 'MiddleEarth';
    src: url('assets/fonts/MiddleEarth.ttf') format('truetype');
}
@font-face {
    font-family: 'Isadoracaps';
    src: url('assets/fonts/Isadoracaps.ttf') format('truetype');
}
@font-face {
    font-family: 'Cancella';
    src: url('assets/fonts/Cancella.ttf') format('truetype');
}
@font-face {
    font-family: 'SantosDumont';
    src: url('assets/fonts/SantosDumont.ttf') format('truetype');
}
/* import the avenir family from assets/fonts/avenir */
@font-face {
    font-family: 'Avenir';
    src: url('assets/fonts/avenir/AvenirLTStd-Roman.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir';
    src: url('assets/fonts/avenir/AvenirLTStd-Black.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

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

/* Override for getting there page to use full container width */
.getting-there-section .container {
    max-width: 800px;
}

/* Getting There Page - Formal, Professional Design */
.getting-there-section {
    padding: 2rem 0;
}

.getting-there-section .container {
    max-width: 1000px;
}

.getting-there-section h2 {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 2.25rem;
    font-weight: normal;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.quick-info {
    padding: 1rem 0;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
    color: #333;
}

.quick-info p {
    margin: 0;
}

.getting-there-options {
    margin-bottom: 3rem;
}

.getting-there-options h3 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: normal;
    letter-spacing: 0.3px;
    color: #1a1a1a;
}

.options-list {
    margin-bottom: 1.25rem;
}

.option-item {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    font-size: 1rem;
    padding-left: 0;
    color: #2a2a2a;
}

.option-item.highlight {
    padding-left: 1rem;
    border-left: 3px solid #9a2720;
}

.option-item a {
    color: #9a2720;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.option-item a:hover {
    border-bottom-color: #9a2720;
}

.parking-warning {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 152, 0, 0.05);
    border-left: 3px solid #ff9800;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2a2a2a;
}

/* Location Sections - Formal Layout */
.location-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.location-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.location-section h3 {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: normal;
    letter-spacing: 0.3px;
    color: #1a1a1a;
}

.location-section p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    font-size: 1rem;
    text-align: left;
    color: #2a2a2a;
}

.location-section p:last-of-type {
    margin-bottom: 1.5rem;
}

/* Content with Image - Side by Side Layout */
.content-with-image {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}

/* Non-responsive version - stays side-by-side on mobile */
.content-with-image-fixed {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.content-image {
    flex: 0 0 280px;
    min-width: 0;
}

.content-image-large {
    flex: 0 0 400px;
}

.section-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-text {
    flex: 1;
    min-width: 0;
}

/* Ensure images in content-with-image are properly styled */
.content-image img,
.content-image .hero-map {
    width: 100%;
    height: auto;
}

.content-image .hero-map.wrapper {
    margin: 0;
    padding-top: 0;
}

/* Photo Gallery - Minimal Thumbnails */
.photo-gallery {
    margin: 1rem 0 1.5rem 0;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gallery-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-thumbnail:hover {
    opacity: 0.8;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
}

.gallery-lightbox.hidden {
    display: none;
}

.gallery-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.gallery-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.gallery-lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.gallery-lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.75rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

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

.gallery-close {
    top: 15px;
    right: 15px;
    font-size: 2rem;
    line-height: 1;
}

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

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

/* Maps */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2rem 0;
}

.maps-grid .simple-svg-container {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Section Links - Formal */
.section-links {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-link {
    color: #9a2720;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    padding-bottom: 1px;
}

.section-link:hover {
    border-bottom-color: #9a2720;
}

/* Responsive */
@media (max-width: 768px) {
    .getting-there-section h2 {
        font-size: 1.75rem;
    }
    
    .getting-there-options h3,
    .location-section h3 {
        font-size: 1.5rem;
    }
    
    .content-with-image {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Fixed version stays side-by-side but with smaller images */
    .content-with-image-fixed {
        gap: 1.5rem;
    }
    
    .content-with-image-fixed .content-image {
        flex: 0 0 140px;
    }
    
    .content-with-image-fixed .content-image-large {
        flex: 0 0 200px;
    }
    
    .content-image {
        flex: 1 1 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .content-image-large {
        flex: 1 1 auto;
        max-width: 100%;
    }
    
    .maps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .content-with-image-fixed {
        gap: 1rem;
    }
    
    .content-with-image-fixed .content-image {
        flex: 0 0 120px;
    }
    
    .content-with-image-fixed .content-image-large {
        flex: 0 0 160px;
    }
}

/* Page System */
.page {
    display: none !important;
    padding-top: 80px; /* Account for fixed navbar */
}

.page.active {
    display: block !important;
}

/* Give RSVP page a bit more top space so the first fields
   are not tucked under the fixed navbar */
.page#rsvp {
    padding-top: 96px;
}

/* RSVP / Guest List – FAB: click RSVP to show form; Cancel back to guest list */
.rsvp-cta-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.rsvp-float-btn {
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.rsvp-float-btn:hover {
    background: #333;
}

.rsvp-cta-wrapper.expanded .rsvp-float-btn {
    display: none;
}

.rsvp-email-reveal {
    width: 100%;
    max-width: 420px;
}

.rsvp-email-reveal.hidden {
    display: none !important;
}

.rsvp-email-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.rsvp-email-input {
    flex: 1;
    min-width: 160px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
}

.rsvp-email-submit {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.rsvp-email-hint {
    margin: 0.4rem 0 0 0;
    font-size: 0.8rem;
    color: #666;
}

.rsvp-email-cancel {
    margin-top: 0.25rem;
    padding: 0;
    font-size: 0.85rem;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.rsvp-email-cancel:hover {
    color: #333;
}

#rsvp .guest-list-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#rsvp .guest-count-line {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    color: #1a1a1a;
}

#rsvp .guest-list-count {
    font-weight: 400;
    color: #666;
}

#rsvp .guest-list-subheading {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    color: #1a1a1a;
}

#rsvp .guest-list-declined-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#rsvp .guest-list-declined-toggle {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
}

#rsvp .guest-list-declined-toggle:hover {
    color: #333;
}

#rsvp .guest-list-declined {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

#rsvp .guest-list-declined.collapsed {
    display: block;
}

#rsvp .guest-list-declined-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

#rsvp .guest-list-declined-item {
    padding: 0.2rem 0;
    font-size: 0.9rem;
    color: #555;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 100;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.navbar.scrolled {
    /* transform: translateY(2px) scale(1.005); */
    /* box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1),
                0 0 35px rgba(219, 188, 246, 0.35),
                0 0 50px rgba(237, 215, 252, 0.25),
                0 0 65px rgba(238, 223, 225, 0.18),
                0 0 80px rgba(211, 226, 241, 0.12); */
    /* background: var(--rainbow-gradient); */
    /* border-bottom: none; */
    /* backdrop-filter: blur(8px); */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    font-family: 'SantosDumont';
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-logo {
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a {
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    padding: 2rem 20px 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    margin-bottom: -3rem;
    font-family: 'Isadoracaps';
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero .date {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.hero .location {
    font-size: 1rem;
    color: #666;
}

.hero-image {
    display: flex;
    margin-top: 2rem;
    justify-content: center;
}

.hero-image img {
    width: 150px;
    height: auto;
    object-fit: cover;
}
.hero .hero-map.wrapper {
    margin: 2rem auto 0;
    max-width: 700px;
}
.hero .svg-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.svg-title {
    font-size: 2rem;
    text-align: center;
}

/* Details Section */
.details {
    padding: 4rem 20px;
}

.details h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.details-list {
    text-align: left;
}

.details-list p {
    margin-bottom: 0.5rem;
    color: #333;
}

/* Story Section */
.story {
    padding: 4rem 20px;
}

.story h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.story p {
    max-width: 600px;
    margin: 0 auto;
    color: #333;
    line-height: 1.8;
}

/* RSVP Section */
.rsvp {
    padding: 1rem 1rem;
}

.rsvp-header {
    margin-bottom: 0.75rem;
}

.rsvp-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.rsvp-step {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.rsvp-step.hidden {
    display: none;
}

.confirm-message {
    text-align: center;
    margin-bottom: 1.5rem;
}

.confirm-message p {
    margin-bottom: 1rem;
    color: #333;
}

.found-rsvp-preview {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.preview-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.preview-item strong {
    color: #1a1a1a;
    margin-right: 0.5rem;
}

.confirm-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
}

.cancel-btn {
    width: 100%;
    padding: 0.75rem;
    background: #f0f0f0;
    color: #1a1a1a;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.cancel-btn:active {
    background: #e0e0e0;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.form-group {
    margin-bottom: 0.4rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1a1a1a;
}

.form-hint {
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.form-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.35rem 0.45rem;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 0.85rem;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form-group textarea {
    resize: vertical;
    min-height: 40px;
}

/* Edit Modal */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.edit-modal.hidden {
    display: none;
}

.edit-modal-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
}

.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e0e0e0;
}

.edit-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.lookup-btn {
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    margin-top: 0.5rem;
    width: 100%;
}

.lookup-btn:active {
    background: #333;
}

.lookup-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.rsvp-edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rsvp-edit-actions .cancel-btn,
.rsvp-edit-actions .secondary-btn {
    width: auto;
}

.secondary-btn {
    padding: 0.65rem;
    background: #f5f5f5;
    color: #1a1a1a;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.secondary-btn:hover {
    background: #e9e9e9;
}

.edit-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

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

.attending-options {
    flex-direction: row;
    gap: 0.75rem;
}

.attending-options .radio-label {
    flex: 1;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.45rem;
    border: 1px solid #ccc;
    background: #fff;
}

.radio-label:hover {
    border-color: #1a1a1a;
}

.radio-label input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.6rem;
    border: 1px solid #ccc;
    background: #fff;
}

.checkbox-label:hover {
    border-color: #1a1a1a;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.submit-btn {
    width: 100%;
    padding: 0.65rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    margin-top: 0.5rem;
}

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

.submit-btn:active {
    background: #000;
}

/* VIP surprise – message at top, gold input, *VIP badge, shiny submit button */
.rsvp-vip-message {
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    font-weight: normal;
    color: #b8860b;
    text-align: left;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 6px;
    border-left: 3px solid #d4af37;
    line-height: 1.45;
}

.rsvp-vip-message strong {
    font-weight: 600;
}

#rsvp .your-party-section {
    position: relative;
}

#rsvp .your-party-section .your-party-label {
    display: inline;
    margin-right: 0.5rem;
}

#rsvp .your-party-section.vip-section-glow .party-table-wrapper {
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3), 0 0 16px rgba(184, 134, 11, 0.25);
    animation: vip-section-glow 2s ease-in-out infinite;
}

@keyframes vip-section-glow {
    0%, 100% { box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3), 0 0 16px rgba(184, 134, 11, 0.25); }
    50% { box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.45), 0 0 22px rgba(212, 175, 55, 0.4); }
}

/* Family/Group above party with helper */
#rsvp .group-name-label {
    display: inline;
    margin-right: 0.25rem;
}
#rsvp .group-name-helper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: help;
    vertical-align: middle;
}
#rsvp .group-name-helper:hover {
    background: #ccc;
    color: #333;
}
#rsvp .group-name-hint {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #666;
}
#rsvp .rsvp-details-toggle-wrap {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}
#rsvp .rsvp-details-toggle {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}
#rsvp .rsvp-details-toggle:hover {
    color: #1a1a1a;
}
#rsvp .rsvp-form-content {
    margin-top: 0.5rem;
}
#rsvp .rsvp-form-content.collapsed {
    display: none;
}

#rsvp .party-table-wrapper {
    margin-top: 0.5rem;
}

#rsvp .party-table {
    table-layout: fixed;
    width: 100%;
}

#rsvp .party-table th:nth-child(1),
#rsvp .party-table td:nth-child(1) { width: 28%; }  /* First */
#rsvp .party-table th:nth-child(2),
#rsvp .party-table td:nth-child(2) { width: 28%; }  /* Last */
#rsvp .party-table th:nth-child(3),
#rsvp .party-table td:nth-child(3) { width: 14%; min-width: 0; }  /* Type */
#rsvp .party-table th:nth-child(4),
#rsvp .party-table td:nth-child(4) { width: 14%; min-width: 0; }  /* Coming? */
#rsvp .party-table th:nth-child(5),
#rsvp .party-table td:nth-child(5) { width: 2.5rem; }  /* Remove */

#rsvp .party-table th,
#rsvp .party-table td {
    padding: 0.25rem 0.3rem;
    vertical-align: middle;
}

#rsvp .party-table input[type="text"],
#rsvp .party-table select {
    width: 100%;
    padding: 0.25rem 0.35rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
    min-width: 0;
    box-sizing: border-box;
}

#rsvp .party-table select {
    min-width: 0;
}

.rsvp-vip-badge {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b8860b;
    letter-spacing: 0.05em;
}

#rsvp .submit-btn.vip-submit {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 40%, #daa520 70%, #b8860b 100%);
    background-size: 200% 100%;
    color: #1a1a1a;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(184, 134, 11, 0.5);
    animation: vip-btn-shine 2.5s ease-in-out infinite;
}

#rsvp .submit-btn.vip-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: vip-btn-shimmer 2s ease-in-out infinite;
}

#rsvp .submit-btn.vip-submit:hover {
    background-position: 100% 0;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.6);
}

@keyframes vip-btn-shine {
    0%, 100% { box-shadow: 0 2px 12px rgba(184, 134, 11, 0.5); filter: brightness(1); }
    50% { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.7); filter: brightness(1.08); }
}

@keyframes vip-btn-shimmer {
    0% { left: -100%; }
    60% { left: 150%; }
    100% { left: 150%; }
}

/* Success Message */
.rsvp-success {
    max-width: 500px;
    margin: 1.5rem auto 0;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.rsvp-success.hidden {
    display: none;
}

.rsvp-success h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.rsvp-success p {
    color: #666;
}

/* Guest Entry Form */
#additional-guests-container {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.guests-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1a1a1a;
}

.guests-table-wrapper {
    margin-bottom: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.guests-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.guests-table thead {
    background: #f5f5f5;
}

.guests-table th {
    padding: 0.4rem 0.5rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #ddd;
}

.guests-table th:first-child {
    width: 60%;
}

.guests-table th:nth-child(2) {
    width: 30%;
}

.guests-table th:last-child {
    width: 10%;
    text-align: center;
}

.guest-entry {
    border-bottom: 1px solid #f0f0f0;
}

.guest-entry:last-child {
    border-bottom: none;
}

.guest-entry td {
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
}

.guest-entry td:last-child {
    text-align: center;
}

.guest-entry input,
.guest-entry select {
    width: 100%;
    padding: 0.35rem 0.45rem;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 0.85rem;
    background: #fff;
    box-sizing: border-box;
    border-radius: 3px;
}

.guest-entry input::placeholder {
    color: #999;
}

.guest-entry input:focus,
.guest-entry select:focus {
    outline: none;
    border-color: #1a1a1a;
}

.remove-guest-btn {
    padding: 0.25rem 0.4rem;
    min-width: 1.75rem;
    height: 1.75rem;
    background: #f0f0f0;
    color: #1a1a1a;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    margin: 0 auto;
}

.remove-guest-btn:hover {
    background: #e0e0e0;
}

.add-guest-btn {
    padding: 0.4rem 0.75rem;
    background: #f0f0f0;
    color: #1a1a1a;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 0.85rem;
    font-size: 0.85rem;
    font-family: inherit;
    width: 100%;
    margin-top: 0.4rem;
    border-radius: 6px;
}

.add-guest-btn:hover {
    background: #e0e0e0;
}

/* Guest List Display - Simplified & Less Bulky */
.guest-list-section {
    padding: 1rem 1rem 2rem;
}

.guest-list-section h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.guest-list-unified {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guest-group-row {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.guest-group-row:not(:last-child) {
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.group-label {
    position: absolute;
    left: 0;
    top: 0.4rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.6rem;
    color: #bbb;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    height: calc(100% - 0.4rem);
    display: flex;
    align-items: flex-start;
    padding-top: 0.2rem;
    max-width: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

/* Remove hover styles for mobile-first - use click/tap instead */
@media (hover: hover) and (pointer: fine) {
    .group-label:hover {
        color: #666;
    }
}

.guest-item-unified {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.35rem 0;
    gap: 0.25rem;
    padding-left: 0;
}

.guest-item-unified > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
}

.guest-public-comment {
    font-size: 0.75rem;
    color: #666;
    font-style: italic;
    padding-left: 1.5rem;
    margin-top: 0.2rem;
}

.guest-checkmark {
    color: #4caf50;
    font-size: 0.95rem;
    font-weight: bold;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.guest-name {
    font-weight: 400;
    color: #1a1a1a;
    flex: 1;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.guest-child-indicator {
    font-size: 0.5rem;
    margin-left: 0.4rem;
    opacity: 0.4;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    color: #999;
    font-weight: normal;
}

.guest-list-empty {
    color: #666;
    padding: 1.5rem 0;
    text-align: center;
}

.loading {
    color: #666;
    padding: 2rem;
}

/* Photos Section - Mobile First */
.photos-section {
    padding: 1rem 0;
    max-width: 100%;
}

.photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 60px;
    background: #fff;
    z-index: 10;
}

.photos-header h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.upload-btn {
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    min-height: 36px;
}

.upload-btn:active {
    background: #333;
}

/* Upload Modal */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.upload-modal.hidden {
    display: none;
}

.upload-modal-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
}

.upload-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e0e0e0;
}

.upload-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:active {
    color: #1a1a1a;
}

.photo-upload-form {
    padding: 1.25rem;
}

.upload-area {
    position: relative;
    width: 100%;
    min-height: 200px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}

.upload-area.drag-over {
    border-color: #1a1a1a;
    background: #f0f0f0;
}

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

.upload-prompt {
    text-align: center;
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    z-index: 1;
}

/* Hide prompt when preview is visible */
.upload-area .upload-preview:not(.hidden) ~ .upload-prompt,
.upload-area:has(.upload-preview:not(.hidden)) .upload-prompt {
    display: none;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.upload-prompt p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.upload-hint {
    font-size: 0.8rem !important;
    color: #999 !important;
}

.upload-preview {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    position: relative;
    z-index: 2;
    background: #fff;
}

.upload-preview.hidden {
    display: none;
}

/* Ensure upload area maintains proper layout */
.upload-area:has(.upload-preview:not(.hidden)) {
    padding: 0.5rem;
    min-height: auto;
}

.photo-upload-form .form-group {
    margin-bottom: 1rem;
}

.photo-upload-form textarea,
.photo-upload-form input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

.photo-upload-form textarea:focus,
.photo-upload-form input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.photo-upload-form .submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    margin-top: 0.5rem;
}

.photo-upload-form .submit-btn:active {
    background: #333;
}

/* Photos Feed - Instagram Style */
.photos-gallery {
    padding: 0;
}

.photos-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.photo-post {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.photo-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.photo-content {
    padding: 0.875rem 1rem;
}

.photo-caption {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    line-height: 1.5;
    font-size: 0.95rem;
}

.photo-meta {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

.photo-author {
    font-weight: 500;
    color: #1a1a1a;
}

.photo-comments {
    border-top: 1px solid #f0f0f0;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.comments-list {
    margin-bottom: 0.75rem;
    max-height: 150px;
    overflow-y: auto;
}

.comment {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.comment strong {
    color: #1a1a1a;
    margin-right: 0.5rem;
    font-weight: 500;
}

.comment span {
    color: #333;
}

.no-comments {
    color: #999;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.comment-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.comment-form input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fafafa;
}

.comment-form input:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
}

.comment-form button {
    padding: 0.6rem 1rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    min-width: 60px;
}

.comment-form button:active {
    background: #333;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .photos-section {
        padding: 2rem 0;
    }
    
    .photos-header {
        padding: 1.5rem 2rem;
        top: 70px;
    }
    
    .photos-header h2 {
        font-size: 1.5rem;
    }
    
    .upload-modal-content {
        max-width: 600px;
    }
    
    .photo-content {
        padding: 1rem 1.5rem;
    }
    
    .photos-feed {
        max-width: 600px;
        margin: 0 auto;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1.5rem;
    }

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

    .hero-images {
        grid-template-columns: 1fr;
    }

    .detail-item strong {
        display: block;
        margin-bottom: 0.25rem;
        min-width: auto;
    }
}

/* Map Preview and Lightbox */
.map-preview-container {
    margin: 1rem 0;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.map-preview-container::after {
    content: '🔍 Click to view larger';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    white-space: nowrap;
}

.map-preview-container:hover {
    opacity: 0.95;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.map-preview-container:hover::after {
    opacity: 1;
}

.map-preview {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.map-preview-container:hover .map-preview {
    border-color: rgba(26, 26, 26, 0.2);
}

/* Image Lightbox Modal */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.image-lightbox.hidden {
    display: none;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    z-index: 10001;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
}

.lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 10002;
}

.lightbox-close:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.lightbox-image-container {
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.lightbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.lightbox-btn:hover {
    background: #f5f3ee;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #ebded4;
}

.lightbox-btn:active {
    transform: translateY(0);
}

.lightbox-btn span {
    font-size: 1.2rem;
}

/* Responsive adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 100vw;
        max-height: 100vh;
        padding: 0.5rem;
        gap: 1rem;
    }
    
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 2rem;
        width: 2rem;
        height: 2rem;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
    }
    
    .lightbox-image-container {
        max-height: 70vh;
    }
    
    .lightbox-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .lightbox-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

