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

:root {
    /* Elegant Wedding Palette */
    --bg-cream: #f8f7ee;
    --bg-sage: #66713f;
    --bg-sage-light: #c7caa0;
    --card-bg: #FFFFFF;
    --text-dark: #313722;
    --text-muted: #73785a;
    --text-warm: #7a8449;
    --accent-gold: #788346;
    --accent-sage: #d8dcc0;
    --divider: #e1e4cb;
    --overlay-dark: rgba(45, 51, 29, 0.5);
    --accent-soft: rgba(126, 139, 78, 0.12);
    --accent-line: rgba(126, 139, 78, 0.28);
    --paper-shadow: 0 28px 70px rgba(52, 59, 34, 0.1);
    --paper-shadow-soft: 0 16px 40px rgba(52, 59, 34, 0.08);

    /* Typography */
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-cream);
    background-image:
        radial-gradient(circle at top left, rgba(126, 139, 78, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(102, 113, 63, 0.1), transparent 28%);
    color: var(--text-dark);
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   OPENINGSUITNODIGING
   ========================================= */
#intro-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
    background: #66713f;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 1.35s ease, visibility 1.35s ease;
}

#intro-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.95s ease-in-out;
}

#intro-overlay.is-opening::after {
    opacity: 1;
}

#intro-overlay.is-opening {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-delay: 0.9s, 0.9s;
}

#intro-overlay:focus-visible {
    outline: none;
}

.intro-card {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease, opacity 0.45s ease;
    pointer-events: none;
}

.intro-picture {
    display: block;
    width: 100%;
    height: 100%;
}

#intro-overlay.is-opening .intro-card {
    transform: translateY(-10px) scale(0.97);
    opacity: 0;
}

#intro-overlay:focus-visible .intro-card {
    filter:
        drop-shadow(0 30px 80px rgba(42, 48, 28, 0.3))
        drop-shadow(0 0 0 rgba(255, 255, 255, 0));
}

.intro-envelope-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    user-select: none;
    -webkit-user-drag: none;
}

#envelope-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 30px;
}

.btn-outline-sage {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
}

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

@media (max-width: 640px) {
    .intro-card {
        inset: 0;
    }
}

/* =========================================
   HERO SECTION — Full Screen Photo BG
   ========================================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%) brightness(0.82) contrast(1.08);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(104, 112, 62, 0.14) 0%,
        rgba(86, 94, 50, 0.2) 42%,
        rgba(42, 48, 28, 0.72) 100%
    );
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 42rem;
    color: #fff;
    padding: 2rem;
}

.hero-monogram {
    width: 82px;
    height: 82px;
    margin: 0 auto 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-monogram-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-names {
    font-family: var(--font-script);
    font-size: clamp(4rem, 14vw, 7rem);
    font-weight: 400;
    line-height: 1.15;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.4);
}

.amp {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.5em;
    opacity: 0.85;
    margin: 0 0.15em;
}

.hero-divider {
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    margin: 2rem auto;
}

.hero-date {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
}

.hero-venue {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
}

.hero-invite-line {
    max-width: 28rem;
    margin: 1.5rem auto 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.hero-arrow {
    display: inline-block;
    color: #fff;
    margin-top: 2rem;
    opacity: 0.7;
    animation: float 2.5s ease-in-out infinite;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.hero-arrow:hover {
    opacity: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* =========================================
   SHARED SECTION STYLES
   ========================================= */
.section {
    padding: 6rem 1.5rem;
    width: 100%;
    border-bottom: 1px solid var(--accent-line);
    text-align: center;
}

.section:last-of-type {
    border-bottom: none;
}

.section > * {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.section-heading-script {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.section-intro {
    max-width: 42rem;
    margin: 0 auto 2.4rem;
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.section-frame {
    position: relative;
    max-width: 960px !important;
    padding: clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 252, 244, 0.92) 100%);
    border: 1px solid rgba(126, 139, 78, 0.16);
    border-radius: 28px;
    box-shadow: var(--paper-shadow);
    overflow: hidden;
}

.section-frame::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(126, 139, 78, 0.14);
    border-radius: 22px;
    pointer-events: none;
}

.section-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(216, 220, 192, 0.2), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 50%);
    pointer-events: none;
}

.section-frame > * {
    position: relative;
    z-index: 1;
}

.section-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.section-ornament::before,
.section-ornament::after {
    content: '';
    width: clamp(56px, 10vw, 120px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.section-ornament-mark {
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(126, 139, 78, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-warm);
}

.invitation-section {
    padding-top: 4.5rem;
}

.invitation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.invite-detail-card {
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(126, 139, 78, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(216, 220, 192, 0.18) 100%);
    box-shadow: var(--paper-shadow-soft);
}

.invite-detail-label {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.invite-detail-card strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
}

.invite-detail-card p {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* =========================================
   COUNTDOWN
   ========================================= */
.countdown-section {
    background: linear-gradient(180deg, rgba(216, 220, 192, 0.18) 0%, var(--bg-cream) 100%);
}

.countdown-boxes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.countdown-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 1.2rem 0.8rem;
    border: 1px solid var(--accent-gold);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(216, 220, 192, 0.18) 100%);
    box-shadow: 0 10px 24px rgba(54, 60, 34, 0.06);
    overflow: hidden;
}

.countdown-box::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(126, 139, 78, 0.12);
    border-radius: 8px;
    pointer-events: none;
}

.countdown-box > * {
    position: relative;
    z-index: 1;
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-warm);
    line-height: 1;
}

.countdown-label {
    font-family: var(--font-sans);
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

.countdown-separator {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--accent-gold);
    opacity: 0.5;
    padding: 0 0.2rem;
}

/* =========================================
   PHOTO BREAK
   ========================================= */
.photo-break {
    width: 100%;
    padding: 0 1.5rem;
}

.photo-break-frame {
    max-width: 880px;
    margin: 0 auto;
    padding: 1rem 1rem 1.4rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(126, 139, 78, 0.14);
    border-radius: 28px;
    box-shadow: var(--paper-shadow);
}

.photo-break-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 16px;
    max-width: 700px !important;
    margin: 0 auto !important;
    filter: grayscale(100%) contrast(1.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* =========================================
   VENUE
   ========================================= */
.venue-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, rgba(216, 220, 192, 0.16) 100%);
    border: 1px solid rgba(126, 139, 78, 0.12);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 32px rgba(54, 60, 34, 0.06);
    text-align: center;
    max-width: 700px !important;
    margin: 0 auto !important;
    overflow: hidden;
}

.venue-card::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(126, 139, 78, 0.12);
    border-radius: 12px;
    pointer-events: none;
}

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

.venue-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
    color: var(--text-warm);
}

.venue-name {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.venue-address {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.venue-divider {
    width: 30px;
    height: 1px;
    background: var(--divider);
    margin: 2rem auto;
}

.venue-time-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-dark);
}

.venue-time-text strong {
    color: var(--text-warm);
}

.venue-time-sub {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid var(--divider);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-map:hover {
    background: var(--bg-sage);
    color: #fff;
    border-color: var(--bg-sage);
}

.btn-map svg {
    stroke: currentColor;
}

/* =========================================
   TIMELINE
   ========================================= */
.timeline {
    position: relative;
    padding: 1rem 0;
    max-width: 600px !important;
    margin: 0 auto !important;
}

.timeline-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: start;
    column-gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 1.2rem;
    bottom: 1.2rem;
    width: 1px;
    background: rgba(126, 139, 78, 0.18);
}

/* Time badge — charcoal pill */
.timeline-badge {
    flex-shrink: 0;
    width: 70px;
    padding: 0.4rem 0;
    background: var(--text-dark);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 2px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 0.65rem;
}

.timeline-content {
    min-width: 0;
    text-align: left;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(126, 139, 78, 0.12);
    border-radius: 18px;
    box-shadow: var(--paper-shadow-soft);
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.timeline-content p {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-muted);
}

/* Desktop: Alternating timeline with center line */
@media (min-width: 600px) {
    .timeline::before {
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1px;
        background: var(--divider);
        transform: translateX(-50%);
    }

    .timeline-item {
        display: grid;
        grid-template-columns: 1fr 14px 1fr;
        gap: 0;
        align-items: start;
    }

    /* Center dot */
    .timeline-item::after {
        content: '';
        grid-column: 2;
        grid-row: 1;
        width: 10px;
        height: 10px;
        background: var(--accent-gold);
        border: 2px solid var(--bg-cream);
        border-radius: 50%;
        margin-top: 6px;
        justify-self: center;
        z-index: 2;
    }

    /* Odd: content LEFT | dot | badge RIGHT */
    .timeline-item:nth-child(odd) .timeline-content {
        grid-column: 1;
        grid-row: 1;
        text-align: right;
        margin-right: 1.5rem;
    }

    .timeline-item:nth-child(odd) .timeline-badge {
        grid-column: 3;
        grid-row: 1;
        justify-self: start;
        margin-left: 1.5rem;
    }

    /* Even: badge LEFT | dot | content RIGHT */
    .timeline-item:nth-child(even) .timeline-badge {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        margin-right: 1.5rem;
    }

    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 3;
        grid-row: 1;
        text-align: left;
        margin-left: 1.5rem;
    }
}

/* =========================================
   INFO CARDS
   ========================================= */

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 700px !important;
    margin: 0 auto !important;
}

@media (min-width: 500px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-card:last-child {
        grid-column: 1 / -1;
    }
}

.info-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, rgba(216, 220, 192, 0.16) 100%);
    border: 1px solid rgba(126, 139, 78, 0.1);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 32px rgba(54, 60, 34, 0.06);
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(126, 139, 78, 0.12);
    border-radius: 12px;
    pointer-events: none;
}

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

.info-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--text-warm);
}

.info-title {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-desc {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
}

/* =========================================
   RSVP
   ========================================= */
.rsvp-section {
    background: linear-gradient(180deg, rgba(216, 220, 192, 0.1) 0%, rgba(126, 139, 78, 0.1) 100%);
    padding: 6rem 1.5rem;
}

.rsvp-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, rgba(216, 220, 192, 0.18) 100%);
    border: 1px solid var(--accent-gold);
    border-radius: 16px;
    padding: 3.5rem 2rem;
    box-shadow: 0 10px 32px rgba(54, 60, 34, 0.08);
    text-align: center;
    max-width: 700px !important;
    margin: 0 auto !important;
    overflow: hidden;
}

.rsvp-card::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(126, 139, 78, 0.14);
    border-radius: 12px;
    pointer-events: none;
}

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

.rsvp-divider {
    width: 40px;
    height: 1px;
    background: var(--accent-gold);
    margin: 0 auto 2rem;
}

.rsvp-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.rsvp-intro-copy {
    margin-bottom: 1.8rem;
}

.rsvp-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.rsvp-meta-item {
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(126, 139, 78, 0.12);
    background: rgba(255, 255, 255, 0.74);
}

.rsvp-meta-label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.rsvp-meta-item strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.rsvp-text strong {
    font-weight: 400;
    color: var(--text-dark);
}

.btn-rsvp {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-rsvp:hover {
    background: var(--bg-sage);
    border-color: var(--bg-sage);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(54, 60, 34, 0.16);
}

/* Form Styles */
.rsvp-step {
    transition: opacity 0.5s ease;
}

.rsvp-form {
    text-align: left;
    margin-top: 1rem;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row > * {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 250px;
}

.guest-names-section {
    margin: 0 0 1.5rem;
    padding: 1.1rem 1rem 0.4rem;
    border: 1px solid rgba(126, 139, 78, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.guest-names-label {
    margin-bottom: 1rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.guest-names-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: transparent;
    border: 1px solid rgba(126, 139, 78, 0.35);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(126, 139, 78, 0.14);
}

.form-select {
    cursor: pointer;
    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='%23788346' 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 1rem center;
    background-size: 1em;
}

.form-textarea {
    resize: vertical;
    margin-bottom: 2rem;
}

.rsvp-form-message {
    min-height: 1.6rem;
    margin: 0 0 1rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.rsvp-form-message.is-loading {
    color: var(--text-warm);
}

.rsvp-form-message.is-success {
    color: var(--bg-sage);
}

.rsvp-form-message.is-error {
    color: #a34f4f;
}

.btn-submit {
    width: 100%;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--text-muted);
    border-color: var(--text-muted);
}

/* Success State */
#rsvp-success {
    padding: 2rem 0;
}

.success-heading {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.success-text {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    background: linear-gradient(180deg, rgba(216, 220, 192, 0.16) 0%, rgba(126, 139, 78, 0.06) 100%);
}

.footer-names {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.footer-date {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

#main-content {
    opacity: 0;
    transition: opacity 1.2s ease;
    position: relative;
}

/* =========================================
   FLOATING PARTICLES
   ========================================= */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   DECORATIVE FLOURISHES
   ========================================= */
.flourish {
    text-align: center;
    padding: 2rem 0;
    color: var(--accent-gold);
    opacity: 0.5;
}

.flourish svg {
    display: inline-block;
}

/* =========================================
   ENHANCED SECTION ANIMATIONS
   ========================================= */
.countdown-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(54, 60, 34, 0.1);
}

.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(54, 60, 34, 0.1);
}

.venue-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.venue-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(54, 60, 34, 0.1);
}

.rsvp-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rsvp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(54, 60, 34, 0.12);
}

.timeline-badge {
    transition: transform 0.2s ease;
}

.timeline-badge:hover {
    transform: scale(1.08);
}

.photo-break-img {
    transition: transform 0.6s ease;
}

.photo-break-img:hover {
    transform: scale(1.02);
}

@media (min-width: 760px) {
    .invitation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 620px;
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 4.5rem 1rem;
    }

    .section-frame {
        padding: 1.6rem;
        border-radius: 24px;
    }

    .section-frame::before {
        inset: 9px;
        border-radius: 18px;
    }

    .hero-monogram {
        width: 72px;
        height: 72px;
        font-size: 0.68rem;
        letter-spacing: 3px;
    }

    .hero-invite-line {
        font-size: 1rem;
    }

    .countdown-boxes {
        flex-wrap: wrap;
        row-gap: 0.9rem;
    }

    .countdown-separator {
        display: none;
    }

    .intro-envelope-image {
        object-fit: cover;
    }

    .timeline {
        padding: 0.2rem 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        display: block;
        margin-bottom: 0.95rem;
    }

    .timeline-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 68px;
        margin: 0 0 0.55rem;
        padding: 0.42rem 0.85rem;
        font-size: 0.64rem;
        letter-spacing: 1.5px;
        border-radius: 999px;
    }

    .timeline-content {
        padding: 0.95rem 1rem;
        border-radius: 16px;
    }

    .timeline-content h3 {
        font-size: 1rem;
        line-height: 1.22;
    }

    .timeline-content p {
        font-size: 0.76rem;
        line-height: 1.45;
    }

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