/* ========================================
   Wedding Website - Editorial Luxury
   ======================================== */

/* ── Paper Texture Overlay ─────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9999;
}

/* ── Shimmer Animation Keyframes ───────────── */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

:root {
    /* ── Primary ──────────────────────── */
    --ivory:         #FDFCF7;
    --cream:         #F7F3EB;
    --champagne:     #E8D5A3;
    --gold:          #C9A961;
    --gold-deep:     #A88B4A;
    --gold-light:    #E8D5A3;

    /* ── Secondary / Natur ───────────── */
    --sage:          #8FAE7E;
    --sage-light:    #B5C9A0;
    --terracotta:    #C4826A;
    --blush:         #E8C4B8;

    /* ── Text ────────────────────────── */
    --text-primary:   #2C2416;
    --text-secondary: #6B5D4D;
    --text-muted:    #9B8E7E;
    --text-gold:     #C9A961;

    /* ── Surface / Cards ─────────────── */
    --surface:       #FFFFFF;
    --surface-warm:  #F5F0E8;

    /* ── Depth ───────────────────────── */
    --shadow-soft:   rgba(44, 36, 22, 0.06);
    --shadow-medium: rgba(44, 36, 22, 0.12);
    --shadow-strong: rgba(44, 36, 22, 0.20);

    /* ── Legacy Mappings (for backwards compat) ── */
    --olive-green:   var(--sage);
    --olive-light:   var(--sage-light);
    --olive-pale:    #E8EED4;
    --cream-legacy:  var(--cream);
    --text-dark:     var(--text-primary);
    --text-light:    var(--text-secondary);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 300;
    background-color: var(--ivory);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Password Gate — Editorial Luxury
   ======================================== */

#password-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}

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

#password-gate.hidden {
    display: none;
}

.gate-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        var(--ivory) 0%,
        var(--cream) 40%,
        var(--champagne) 80%,
        var(--ivory) 100%
    );
    z-index: -1;
}

/* Subtle radial vignette */
.gate-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(44, 36, 22, 0.04) 100%
    );
}

.gate-content {
    text-align: center;
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    animation: gateFadeIn 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

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

/* Gold star decoration */
.gate-star {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 32px;
    display: block;
    animation: starPulse 3s ease-in-out infinite;
}

.gate-star-bottom {
    margin-top: 40px;
    margin-bottom: 0;
    animation-delay: 1.5s;
}

@keyframes starPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.1); }
}

.gate-names {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--text-primary);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.gate-amp {
    font-style: italic;
    color: var(--gold);
    font-weight: 300;
}

.gate-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 20px;
}

.gate-date {
    font-family: 'DM Mono', monospace;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin: 0 0 6px;
    letter-spacing: 0.1em;
}

.gate-tagline {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0 0 36px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.gate-invitation {
    margin-bottom: 36px;
}

.gate-invitation-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin: 0;
}

/* Input wrapper */
.gate-input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

#password-input {
    padding: 14px 0;
    font-size: 1rem;
    border: none;
    border-bottom: 1.5px solid var(--champagne);
    background: transparent;
    width: 200px;
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: var(--text-primary);
    text-align: center;
    transition: border-color 0.3s;
    letter-spacing: 0.05em;
}

#password-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

#password-input:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

#password-btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#password-btn:hover {
    background: var(--gold);
    color: var(--ivory);
    transform: scale(1.08);
}

#password-btn:active {
    transform: scale(0.95);
}

.gate-error {
    color: var(--terracotta);
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.3s;
    margin: 0;
    letter-spacing: 0.02em;
}

.gate-error.show {
    opacity: 1;
}

/* ========================================
   Main Content Hidden/Show
   ======================================== */

#main-content.hidden {
    display: none;
}

/* ========================================
   Navigation — Editorial Gold Accents
   ======================================== */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 252, 247, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    z-index: 100;
    padding: 0;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    transform: translateY(-100%);
    transition: transform 0.4s ease, background 0.3s, box-shadow 0.3s;
}

#navbar.show {
    transform: translateY(0);
    box-shadow: 0 2px 30px rgba(44, 36, 22, 0.08);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 64px;
}

.nav-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.nav-brand:hover {
    opacity: 0.7;
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.35s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

/* ========================================
   Hero Section — Full Bleed Editorial
   ======================================== */

#hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

/* Hero Media — full bleed image */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

/* Vignette overlay — soft top-to-bottom fade */
.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(44, 36, 22, 0.6) 0%,
            rgba(44, 36, 22, 0.25) 40%,
            rgba(44, 36, 22, 0.08) 70%,
            transparent 100%
        );
}

/* Hero Content — centered overlay */
.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    padding-bottom: 14vh;
    animation: heroFadeUp 1.2s ease forwards;
}

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

.hero-text {
    text-align: center;
    background: linear-gradient(
        to top,
        rgba(44, 36, 22, 0.5) 0%,
        rgba(44, 36, 22, 0.2) 60%,
        transparent 100%
    );
    padding: 48px 56px 40px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    position: relative;
}

/* Gold top-line accent */
.hero-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.hero-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--champagne);
    margin-bottom: 14px;
    display: block;
}

.hero-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(3.2rem, 8vw, 6rem);
    font-weight: 300;
    color: #ffffff;
    margin: 0 0 18px;
    letter-spacing: -0.015em;
    line-height: 1.0;
}

.hero-amp {
    font-style: italic;
    color: var(--champagne);
}

.hero-divider {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne), transparent);
    margin: 0 auto 20px;
}

.hero-date {
    font-family: 'DM Mono', monospace;
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 6px;
    letter-spacing: 0.08em;
    text-align: center;
}

.hero-location {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    letter-spacing: 0.08em;
    text-align: center;
}

/* Scroll hint — minimal line */
.scroll-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: heroFadeUp 1.2s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.scroll-hint.hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scroll-hint-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--champagne), transparent);
    margin: 0 auto;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50%       { transform: scaleY(1.3); opacity: 1; }
}

/* ========================================
   Content Sections — Editorial Layout
   ======================================== */

.content-section {
    padding: 120px 8vw;
}

.content-section.alt-bg {
    background: var(--cream);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* Section header block */
.section-header {
    margin-bottom: 64px;
    animation: fadeUp 0.8s ease forwards;
}

.section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin: 0;
}

.section-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 24px 0;
}

/* Two-column section layout */
.section-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.section-two-col.reverse {
    direction: rtl;
}

.section-two-col.reverse > * {
    direction: ltr;
}

.section-text-col {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.section-media-col {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.section-intro {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.85;
    margin: 0 0 32px;
}

/* Address block */
.address-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-text {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.address-text strong {
    font-weight: 600;
    color: var(--text-primary);
}

.address-location {
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Map link button */
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gold);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--gold);
    transition: opacity 0.3s;
}

.map-link:hover {
    opacity: 0.7;
}

.map-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Map container */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px var(--shadow-medium);
    background: var(--surface-warm);
    height: 280px;
}

/* Embedded map — hidden on desktop (map shows in side column) */
.map-container.map-embedded {
    display: none;
}

/* Desktop-only map — hidden on mobile */
.map-container.map-desktop-only {
    display: none;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* Time badge — editorial style */
.time-badge {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--gold);
    padding: 6px 16px;
    border: 1px solid var(--gold);
    border-radius: 2px;
    margin-bottom: 20px;
}

/* Centered section variant */
.section-centered {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.section-centered .section-divider {
    margin: 24px auto;
}

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

/* Decorative line — legacy */
.decorative-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 24px 0;
}

.address-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
}

.address {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--olive-green);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.2s;
}

.map-link:hover {
    background: var(--olive-light);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.map-icon {
    width: 18px;
    height: 18px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.map-container iframe {
    display: block;
}

/* ========================================
   Footer — Editorial Elegant
   ======================================== */

footer {
    position: relative;
    padding: 100px 8vw;
    text-align: center;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--ivory) 0%,
        var(--cream) 50%,
        var(--champagne) 100%
    );
    z-index: -1;
}

.footer-content {
    max-width: 520px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease forwards;
}

.footer-star {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 32px;
    display: block;
    animation: starPulse 3s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.1); }
}

.footer-names {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 300;
    color: var(--text-primary);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.footer-amp {
    font-style: italic;
    color: var(--gold);
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 20px;
}

.footer-date {
    font-family: 'DM Mono', monospace;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin: 0 0 6px;
    letter-spacing: 0.1em;
}

.footer-location {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-muted);
    margin: 0 0 32px;
    letter-spacing: 0.08em;
}

.footer-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin: 0;
}

.footer-olive {
    max-width: 300px;
    margin: 40px auto 0;
    opacity: 0.6;
}

.footer-olive svg {
    width: 100%;
    height: auto;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .gate-names {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(253, 252, 247, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 32px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .hero-content {
        padding: 0 24px 10vh;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
    }

    .content-section {
        padding: 70px 24px;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .section-inner {
        padding: 0;
    }

    .hero-olive {
        display: none;
    }

    /* Two-column sections → stack vertically on mobile */
    .section-two-col {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-two-col.reverse {
        direction: ltr;
    }

    /* Side column: hide map on mobile (it's now inline) */
    .section-media-col {
        display: none;
    }

    /* Inline embedded map — show only on mobile */
    .map-container.map-embedded {
        display: block;
        height: 220px;
        width: 100%;
        margin-top: 24px;
    }

    /* Desktop-only map — hidden on mobile */
    .map-container.map-desktop-only {
        display: none !important;
    }

    .section-text-col,
    .section-media-col {
        animation: fadeUp 0.6s ease forwards;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        padding: 0 20px;
    }

    .gate-content {
        padding: 40px 24px;
    }

    .gate-names {
        font-size: 1.9rem;
    }

    #password-input {
        width: 180px;
    }

    .hero-content {
        padding: 0 20px 10vh;
    }
}

/* ========================================
   RSVP Form — Editorial Luxury Wedding
   ======================================== */

.rsvp-form {
    max-width: 640px;
    margin: 56px auto 0;
    background: var(--surface);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow:
        0 4px 24px var(--shadow-soft),
        0 16px 60px var(--shadow-medium);
    border: 1px solid rgba(201, 169, 97, 0.15);
    animation: fadeUp 0.8s ease forwards;
}

/* ── Form Header ─────────────────────────── */
.form-header {
    background: linear-gradient(
        160deg,
        var(--champagne) 0%,
        var(--gold-light) 50%,
        var(--champagne) 100%
    );
    padding: 32px 40px 28px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.form-header::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.form-header-star {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}

.form-header-icon {
    width: 28px;
    height: 28px;
    color: var(--gold-deep);
    margin-bottom: 10px;
}

.form-header-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.form-header-sub {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.form-header-sub strong {
    color: var(--gold-deep);
    font-weight: 600;
}

/* ── Form Body ─────────────────────────────── */
.rsvp-form > *:not(.form-header) {
    padding: 0 40px;
}

.rsvp-form > *:not(.form-header):not(:last-child) {
    padding-top: 24px;
}

.rsvp-form .form-header + * {
    padding-top: 28px !important;
}

/* ── Form Row (split layout) ──────────────── */
.form-row {
    display: grid;
    gap: 16px;
}

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

@media (max-width: 540px) {
    .form-row-split {
        grid-template-columns: 1fr;
    }
}

/* ── Form Group ────────────────────────────── */
.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 13px 0;
    border: none;
    border-bottom: 1.5px solid var(--champagne);
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color 0.3s;
    outline: none;
    border-radius: 0;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
    border-bottom-color: var(--gold);
}

.form-group input.input-error,
.form-group input[type="email"].input-error,
.form-group select.input-error {
    border-bottom-color: var(--terracotta);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C9A961' stroke-width='1.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
}

/* ── Form Divider ─────────────────────────── */
.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.form-divider-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* ── Event List (elegant invitation cards) ── */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    display: block;
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid var(--champagne);
    background: var(--surface-warm);
    transition: border-color 0.3s, background 0.3s, transform 0.2s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(201, 169, 97, 0.05) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.event-card:hover {
    border-color: var(--gold);
    background: var(--surface);
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.1);
}

.event-card:hover::before {
    opacity: 1;
}

.event-card:active {
    transform: scale(0.992);
}

.event-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.event-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    gap: 16px;
}

.event-card-main {
    display: flex;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    gap: 14px;
}

.event-card-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--champagne);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s;
    margin-top: 1px;
}

.event-card-check svg {
    width: 12px;
    height: 12px;
    color: var(--ivory);
    opacity: 0;
    transition: opacity 0.3s;
}

.event-card-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.event-card-star {
    font-size: 0.7rem;
    color: var(--gold);
    margin-bottom: 2px;
}

.event-card-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    transition: color 0.3s;
    letter-spacing: -0.01em;
}

.event-card-desc {
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.4;
}

.event-card-time {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--gold);
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

/* Checked state */
.event-card:has(input:checked) {
    border-color: var(--gold);
    background: rgba(201, 169, 97, 0.06);
}

.event-card:has(input:checked) .event-card-check {
    background: var(--gold);
    border-color: var(--gold);
}

.event-card:has(input:checked) .event-card-check svg {
    opacity: 1;
}

.event-card:has(input:checked) .event-card-title {
    color: var(--gold-deep);
}

/* ── Message Field ─────────────────────────── */
.form-group-message {
    position: relative;
}

.form-group-message textarea {
    width: 100%;
    padding: 13px 0;
    border: none;
    border-bottom: 1.5px solid var(--champagne);
    background: transparent;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color 0.3s;
    outline: none;
    resize: vertical;
    min-height: 100px;
    line-height: 1.7;
    border-radius: 0;
}

.form-group-message textarea::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

.form-group-message textarea:focus {
    border-bottom-color: var(--gold);
}

/* ── Submit Button ─────────────────────────── */
.rsvp-submit {
    display: block;
    width: 100%;
    padding: 18px 32px;
    margin: 32px 0 0;
    background: var(--gold);
    color: var(--ivory);
    border: none;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

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

.rsvp-submit:hover {
    background: var(--gold-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(201, 169, 97, 0.3);
}

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

.rsvp-submit:active {
    transform: translateY(0);
}

.rsvp-submit:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rsvp-submit.loading .btn-text {
    opacity: 0;
}

.rsvp-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.rsvp-submit .btn-arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s;
}

.rsvp-submit:hover .btn-arrow {
    transform: translateX(3px);
}

.char-count {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    color: #b8c4a0;
    pointer-events: none;
}

/* ── Submit Button ─────────────────────────── */
.rsvp-submit {
    width: 100%;
    padding: 15px 24px;
    background: var(--olive-green);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s, transform 0.15s;
    margin-top: 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.rsvp-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.rsvp-submit:hover {
    background: #8fa862;
    box-shadow: 0 6px 24px rgba(168,184,122,0.35);
    transform: translateY(-1px);
}

.rsvp-submit:active {
    transform: scale(0.985) translateY(0);
}

.rsvp-submit:disabled {
    background: #c5d69b;
    color: rgba(255,255,255,0.7);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.rsvp-submit.loading .btn-text {
    opacity: 0;
}

.rsvp-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.rsvp-submit:hover .btn-arrow {
    transform: translateX(4px);
}

/* ── Success / Error ──────────────────────── */
.form-success {
    text-align: center;
    padding: 40px 20px;
    animation: fadeSlideUp 0.4s ease;
}

.form-success svg {
    color: var(--gold);
    margin-bottom: 16px;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.form-success p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.form-success .success-sub {
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 0 !important;
}

.form-error {
    text-align: center;
    color: var(--terracotta);
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    padding: 12px 16px;
    background: rgba(196,130,106,0.08);
    border-radius: 10px;
    margin-top: 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(196,130,106,0.15);
}

.field-error {
    display: block;
    color: var(--terracotta);
    font-size: 0.78rem;
    margin-top: 6px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}

.label-optional {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Anmeldung section intro */
#anmeldung .section-intro {
    font-size: 1rem;
    color: rgba(0,0,0,0.55);
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto 12px;
}
}
