/* ==========================================================================
   STYLE SHEET FOR SUPER FARM VERSION 3 (SANTI & CAMILA'S INVITATION)
   ========================================================================== */

/* DESIGN SYSTEM & GLOBAL VARIABLES */
:root {
    --bg-cream: #FAF6EE;
    --primary-green: #7E9A75;
    --primary-green-hover: #67835E;
    --dark-green: #4E6A45;
    --barn-red: #D36B5C;
    --barn-red-hover: #BA5648;
    --barn-red-light: #FBECEB;
    --wheat-yellow: #E8C07D;
    --sky-blue: #A9CBE2;
    --sky-blue-dark: #6C93AF;
    --sky-blue-light: #EBF3F8;
    --gold: #FFC048;
    --text-dark: #4A3E39;
    --text-muted: #7D6B63;
    --bg-card: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.88);
    --card-shadow: 0 15px 35px rgba(126, 154, 117, 0.1);
    --hover-shadow: 0 20px 45px rgba(126, 154, 117, 0.18);
    --border-radius-lg: 32px;
    --border-radius-md: 20px;
    --border-radius-sm: 12px;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #D6E3D2; /* Solid pastoral farm green */
    background-image: 
        radial-gradient(rgba(126, 154, 117, 0.2) 1.5px, transparent 1.5px),
        radial-gradient(rgba(126, 154, 117, 0.2) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* APP CONTAINER */
.app-container {
    width: 100%;
    max-width: 650px;
    background-color: var(--bg-cream);
    box-shadow: 0 35px 90px rgba(78, 106, 45, 0.28);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

@media (min-width: 650px) {
    .app-container {
        margin: 2.5rem 0;
        border-radius: 44px;
        min-height: calc(100vh - 5rem);
    }
}

/* FLOATING BUTTONS */
.floating-btn {
    position: fixed;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
}

#music-toggle {
    right: 20px;
    bottom: 20px;
    background-color: var(--primary-green);
    color: white;
}

#music-toggle.playing {
    background-color: var(--barn-red);
}

.music-wave {
    display: none;
    align-items: flex-end;
    gap: 2.5px;
    height: 12px;
    margin-left: 4px;
}

#music-toggle.playing .music-wave {
    display: flex;
}

#music-toggle.playing i {
    display: none;
}

.music-wave span {
    width: 2.5px;
    height: 100%;
    background-color: white;
    border-radius: 1px;
    animation: bounceWave 0.8s ease infinite alternate;
}

.music-wave span:nth-child(2) { animation-delay: 0.2s; }
.music-wave span:nth-child(3) { animation-delay: 0.4s; }

.papas-access {
    left: 20px;
    bottom: 20px;
    width: 85px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--glass-bg);
    color: var(--text-dark);
    border: 1.5px solid var(--wheat-yellow);
    font-weight: 700;
    font-size: 0.85rem;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(125, 107, 99, 0.15);
}

.papas-access i {
    color: var(--barn-red);
    font-size: 0.9rem;
}

/* FLOATING VERSION SWITCHER SIDEBAR DOCK */
.version-sidebar-dock {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle-handle {
    display: none; /* Hidden on desktop */
}

.sidebar-wood-panel {
    background-image: 
        linear-gradient(180deg, #A26846 0%, #764326 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 15px);
    border: 3px solid #4D2812;
    border-radius: 20px;
    padding: 15px 10px;
    box-shadow: 
        0 10px 25px rgba(90, 51, 26, 0.35), 
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 170px;
    align-items: stretch;
}

.sidebar-header-title {
    color: var(--wheat-yellow, #E8C07D);
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1.5px 2px rgba(0,0,0,0.5);
}

.sidebar-item {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background-color: var(--bg-cream, #FAF6EE);
    color: #764326;
    border-color: var(--wheat-yellow, #E8C07D);
    transform: translateX(4px);
}

.sidebar-item.active {
    background-color: var(--wheat-yellow, #E8C07D);
    color: #4D2812;
    border-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sidebar-icon {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

/* RESPONSIVE BREAKPOINT FOR SIDEBAR DOCK */
@media (max-width: 900px) {
    .version-sidebar-dock {
        left: -180px; /* Collapsed off-screen */
    }
    
    .version-sidebar-dock.open {
        left: 10px; /* Slide in on open */
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    }
    
    .sidebar-toggle-handle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: -42px; /* Positioned just outside the panel */
        top: 50%;
        transform: translateY(-50%);
        width: 42px;
        height: 90px;
        background-color: #764326;
        color: white;
        border: 2px solid #4D2812;
        border-left: none;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
        cursor: pointer;
        padding: 5px;
        gap: 4px;
        box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        transition: all 0.3s ease;
    }
    
    .sidebar-toggle-handle:hover {
        background-color: #8A4F2E;
    }
    
    .sidebar-toggle-handle i {
        font-size: 1rem;
        animation: pulseIcon 2.5s infinite;
    }
    
    .handle-text {
        font-size: 0.58rem;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* SCENIC BANNER */
.scenic-header {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.watercolor-banner-wrapper {
    position: relative;
    width: 100%;
    height: 270px;
    overflow: hidden;
    border-bottom: 6px solid var(--primary-green);
}

.watercolor-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
}

.banner-overlay-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(0deg, rgba(126, 154, 117, 0.25) 0%, transparent 100%);
}

/* PROMINENT NAMES: RUSTIC WOOD SIGN WITH SWINGING ROPE EFFECTS */
.wood-board-hanger-container {
    position: relative;
    width: 90%;
    margin: -45px auto 20px auto;
    min-height: 135px;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.board-rope {
    position: absolute;
    top: -55px;
    width: 6px;
    height: 80px;
    background: repeating-linear-gradient(45deg, #BC9B8C, #BC9B8C 4px, #9E7463 4px, #9E7463 8px);
    border-radius: 3px;
    z-index: 11;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.15);
}

.rope-left { left: 16%; }
.rope-right { right: 16%; }

.board-rope::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #5C3A21;
    border-radius: 50%;
    border: 1px solid #7D4F2E;
}

.rustic-wood-board {
    width: 100%;
    background-image: 
        linear-gradient(180deg, #A26846 0%, #764326 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 15px);
    border: 3.5px solid #4D2812;
    box-shadow: 
        0 12px 28px rgba(90, 51, 26, 0.35), 
        inset 0 3px 0 rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 14px 10px;
    color: white;
    text-align: center;
    transform-origin: top center;
    position: relative;
}

.board-mini-text {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--wheat-yellow);
    display: block;
    margin-bottom: 2px;
    text-shadow: 0 1.5px 2px rgba(0,0,0,0.5);
}

.celebrants-names-board {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.name-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #FFF3D6;
    text-shadow: 0 3px 0 #3A1F0D, 0 5px 6px rgba(0,0,0,0.3);
    line-height: 1;
    display: flex;
    flex-direction: column;
}

.name-text small {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bg-cream);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}

.and-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    color: var(--wheat-yellow);
    text-shadow: 0 2px 0 #3A1F0D;
}

.santi-wood-name { color: #FFF; text-shadow: 0 3px 0 #603D00, 0 5px 5px rgba(0,0,0,0.3); }
.santi-wood-name small { color: #FFE8CB; }

.camila-wood-name { color: #FFF; text-shadow: 0 3px 0 #183C58, 0 5px 5px rgba(0,0,0,0.3); }
.camila-wood-name small { color: #D7EAFA; }

/* SWAYING ANIMATION FOR WOOD BOARD */
.animate-board {
    animation: woodSway 4s ease-in-out infinite alternate;
}

/* INTRO CELEBRANTS DESCRIPTION */
.celebrants-intro-badge {
    padding: 0 1.5rem;
    text-align: center;
}

.celebrants-intro-badge p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
}

/* COUNTDOWN BLOCK (GLASS-GRAIN) */
.countdown-section-v3 {
    padding: 1.8rem 1.5rem;
    text-align: center;
    background-color: white;
    margin: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    border: 1.5px solid rgba(126, 154, 117, 0.15);
    position: relative;
    overflow: hidden;
}

.countdown-section-v3 h3 {
    font-size: 0.95rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.countdown-item {
    background-color: var(--bg-cream);
    padding: 12px 5px;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(126, 154, 117, 0.1);
}

.time-num {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-dark);
}

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

/* CONTENT CONTAINER */
.content-section-v3 {
    padding: 0 1.5rem 3rem 1.5rem;
    position: relative;
    z-index: 5;
}

.celebration-cards-container-v3 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* DUAL CARDS & PEEKING ANIMALS */
.celebration-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 2.2rem 1.8rem 1.8rem 1.8rem;
    position: relative;
    box-shadow: var(--card-shadow);
    border: 1.5px solid transparent;
    transition: var(--transition-smooth);
}

.santi-card { border-color: #F6E2CD; }
.camila-card { border-color: #DDEBF5; }

.santi-card:hover { transform: translateY(-3px); box-shadow: var(--hover-shadow); }
.camila-card:hover { transform: translateY(-3px); box-shadow: var(--hover-shadow); }

.card-badge {
    position: absolute;
    top: -14px;
    left: 20px;
    padding: 5px 14px;
    border-radius: 15px;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.cumplesanti { background-color: #E68A1E; }
.bautizocamila { background-color: var(--sky-blue-dark); }

.celebration-card h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.santi-card h2 { color: #8F4C08; }
.camila-card h2 { color: #2D5875; }

.card-quote {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.2rem;
    line-height: 1.45;
}

.card-padrinos {
    background-color: var(--bg-cream);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(125, 107, 99, 0.06);
}

.card-padrinos h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.padrinos-names {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* PEEKING ANIMAL CORNERS */
.peeking-chick-corner {
    position: absolute;
    top: -24px;
    right: 20px;
    z-index: 5;
    animation: bobbing 2s ease-in-out infinite alternate;
}

.peeking-sheep-left {
    position: absolute;
    bottom: -22px;
    left: -8px;
    z-index: 5;
    animation: bobbing 2.5s ease-in-out infinite alternate-reverse;
}

/* ITINERARY & PEEKING ANIMALS */
.itinerary-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    color: var(--dark-green);
    text-align: center;
    margin-bottom: 1.8rem;
}

.itinerary-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.itinerary-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.8rem 1.8rem 1.8rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1.5px solid rgba(126, 154, 117, 0.15);
    position: relative;
    transition: var(--transition-smooth);
}

.itinerary-card:hover {
    box-shadow: var(--hover-shadow);
}

.peeking-cow-behind {
    position: absolute;
    top: -38px;
    left: 20px;
    z-index: -1;
    animation: peekUp 3.5s ease-in-out infinite alternate;
}

.peeking-pig-behind {
    position: absolute;
    top: -32px;
    right: 20px;
    z-index: -1;
    animation: peekUp 3s ease-in-out infinite alternate-reverse;
}

.itinerary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -48px auto 0.8rem auto;
    font-size: 1.4rem;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(126, 154, 117, 0.15);
}

.card-church .itinerary-icon { color: var(--sky-blue-dark); background-color: var(--sky-blue-light); }
.card-reception .itinerary-icon { color: var(--barn-red); background-color: var(--barn-red-light); }

.itinerary-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.time-badge {
    display: inline-block;
    padding: 3px 12px;
    background-color: var(--bg-cream);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 15px;
    margin-bottom: 0.8rem;
}

.place-name { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.3rem; }
.place-address { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.2rem; }

/* EXTRAS / IMPORTANT BULLETS WOOD STYLE */
.extras-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.extra-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: 1.2rem;
    text-align: center;
    border: 1.5px solid white;
    box-shadow: var(--card-shadow);
}

.card-wood-decor {
    background-image: linear-gradient(180deg, #FFFFFF 0%, #FAF8F2 100%);
    border-color: #ECE0D1;
}

.extra-item i {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.extra-item h4 {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.92rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.extra-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* BUTTONS BASE */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 22px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-primary { background-color: var(--sky-blue-dark); color: white; }
.btn-primary:hover { filter: brightness(0.92); transform: translateY(-1.5px); }
.btn-secondary { background-color: var(--barn-red); color: white; }
.btn-secondary:hover { background-color: var(--barn-red-hover); transform: translateY(-1.5px); }
.btn-success { background-color: var(--primary-green); color: white; }
.btn-outline { background-color: transparent; border: 1.5px solid var(--text-muted); color: var(--text-muted); }
.btn-maps { width: 100%; }

/* RSVP BOX SUPER GRANJA */
.rsvp-box {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 2.2rem 1.6rem;
    box-shadow: var(--card-shadow);
    border: 2px solid #EADBC8;
    position: relative;
    overflow: hidden;
}

.rsvp-box-v3 {
    border-color: var(--wheat-yellow);
}

.rsvp-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--wheat-yellow) 0%, var(--primary-green) 50%, var(--sky-blue) 100%);
}

.rsvp-tractor-decor {
    font-size: 1.8rem;
    text-align: center;
    margin: -10px auto 0.5rem auto;
    animation: driveSlow 8s linear infinite alternate;
    width: fit-content;
}

.rsvp-header { text-align: center; margin-bottom: 1.5rem; }
.rsvp-ribbon {
    font-family: 'Fredoka', sans-serif;
    display: inline-block;
    padding: 6px 20px;
    background-color: var(--barn-red-light);
    color: var(--barn-red);
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: 25px;
    margin-bottom: 0.8rem;
}

.rsvp-intro { font-size: 0.88rem; color: var(--text-muted); }

/* RSVP FORM */
.rsvp-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-size: 0.85rem; font-weight: 700; }

.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper i { position: absolute; left: 14px; color: var(--text-muted); font-size: 0.9rem; }

.rsvp-form input[type="text"],
.rsvp-form input[type="tel"],
.rsvp-form textarea,
.papas-form input[type="password"] {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid #EADBC8;
    background-color: var(--bg-cream);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.rsvp-form textarea { padding-left: 38px; resize: none; }
.rsvp-form input:focus, .rsvp-form textarea:focus { border-color: var(--primary-green); background-color: white; }

.attendance-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-attendance {
    padding: 10px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid #EADBC8;
    background-color: var(--bg-cream);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-attendance.active { background-color: white; }
.btn-yes.active { border-color: var(--primary-green); background-color: #F3F8F2; color: var(--dark-green); }
.btn-no.active { border-color: var(--barn-red); background-color: var(--barn-red-light); color: var(--barn-red); }

#rsvp-details-container { max-height: 0; overflow: hidden; opacity: 0; transition: all 0.3s ease-out; }
#rsvp-details-container.rsvp-details-expanded { max-height: 90px; opacity: 1; }
.form-row { display: flex; gap: 12px; }
.form-group.col { flex: 1; }

.number-counter { display: flex; align-items: center; border: 1.5px solid #EADBC8; border-radius: var(--border-radius-sm); background-color: var(--bg-cream); }
.counter-btn { width: 40px; height: 36px; border: none; background-color: transparent; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.number-counter input { flex: 1; width: 100%; height: 36px; border: none; background-color: transparent; text-align: center; font-size: 0.95rem; font-weight: 700; outline: none; }

.btn-submit-rsvp {
    background: linear-gradient(135deg, var(--barn-red) 0%, var(--barn-red-hover) 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(211, 107, 92, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-submit-rsvp:hover { transform: translateY(-1px); }

/* SUCCESS BOX */
.rsvp-success { text-align: center; padding: 1.5rem 0.5rem; }
.success-icon { font-size: 3rem; margin-bottom: 0.8rem; }
.rsvp-success h3 { font-family: 'Fredoka', sans-serif; font-size: 1.5rem; color: var(--dark-green); margin-bottom: 0.5rem; }
.rsvp-success p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
#btn-edit-rsvp { padding: 9px 18px; border-radius: 18px; font-size: 0.8rem; }

/* PARALLAX GREEN HILLS FOOTER DECORATION */
.parallax-hills-container {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    margin-top: 1rem;
    pointer-events: none;
    margin-bottom: -5px; /* Cover any gaps */
}

.wood-fence-pasture {
    position: absolute;
    bottom: 35px;
    width: 100%;
    height: 12px;
    background-image: 
        repeating-linear-gradient(90deg, #8C6A5C, #8C6A5C 8px, transparent 8px, transparent 35px), 
        linear-gradient(180deg, #8C6A5C, #8C6A5C 4px, transparent 4px);
    z-index: 10;
    opacity: 0.85;
}

.pasture-hill-1 {
    position: absolute;
    bottom: -15px;
    left: -10%;
    width: 120%;
    height: 60px;
    background: linear-gradient(180deg, #7E9A75 0%, #4E6A45 100%);
    border-radius: 50%;
    z-index: 11;
    transform: rotate(-1.5deg);
}

.pasture-hill-2 {
    position: absolute;
    bottom: -22px;
    right: -15%;
    width: 120%;
    height: 70px;
    background: linear-gradient(180deg, #6C8B63 0%, #3D5835 100%);
    border-radius: 50%;
    z-index: 12;
    transform: rotate(2deg);
}

/* APP FOOTER */
.app-footer {
    background-color: var(--dark-green);
    color: #E2ECE0;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: none; /* Merges seamlessly with green hills */
    position: relative;
    z-index: 15;
}

.footer-decorations { font-size: 1.3rem; margin-bottom: 0.6rem; letter-spacing: 3px; }
.app-footer p { font-size: 0.85rem; font-weight: 700; }
.app-footer .copyright { font-size: 0.7rem; color: #A3B899; margin-top: 0.8rem; }

/* PARENTS MODAL & DASHBOARD (SHARED STYLES) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 62, 57, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: var(--glass-bg);
    border: 2px solid white;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.close-modal:hover { color: var(--barn-red); transform: rotate(90deg); }

.modal-view {
    padding: 2rem 1.5rem;
    overflow-y: auto;
    max-height: 88vh;
}

.auth-header { text-align: center; margin-bottom: 1.5rem; }
.auth-header .icon-circle {
    width: 52px;
    height: 52px;
    background-color: var(--barn-red-light);
    color: var(--barn-red);
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem auto;
    border: 2px solid white;
}

.auth-header h2 { font-family: 'Fredoka', sans-serif; font-size: 1.4rem; }
.auth-header p { font-size: 0.82rem; color: var(--text-muted); }

#papas-login-form { max-width: 290px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
#papas-password { text-align: center; padding-left: 12px !important; }
.error-msg { color: var(--barn-red); font-size: 0.78rem; font-weight: 700; text-align: center; margin-top: 4px; }

.dashboard-header { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; border-bottom: 1.5px solid rgba(125, 107, 99, 0.08); padding-bottom: 0.8rem; }
@media (min-width: 480px) { .dashboard-header { flex-direction: row; align-items: center; justify-content: space-between; } }
.dashboard-header h2 { font-family: 'Fredoka', sans-serif; font-size: 1.3rem; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.btn-sm { padding: 4px 10px; font-size: 0.72rem; border-radius: 12px; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 1rem; }
@media (min-width: 480px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background-color: white; padding: 10px 8px; border-radius: var(--border-radius-md); text-align: center; border: 1px solid rgba(125, 107, 99, 0.06); }
.card-stat-confirmed { background-color: #F1FAF0; border-color: #D3EFD1; }
.card-stat-declined { background-color: #FDF4F4; border-color: #F8DFDF; }
.stat-num { display: block; font-family: 'Fredoka', sans-serif; font-size: 1.4rem; font-weight: 700; }
.card-stat-confirmed .stat-num { color: var(--dark-green); }
.card-stat-declined .stat-num { color: var(--barn-red); }
.stat-lbl { font-size: 0.68rem; color: var(--text-muted); font-weight: 700; }

.dashboard-table-container { background-color: white; border-radius: var(--border-radius-md); padding: 0.8rem; border: 1px solid rgba(125, 107, 99, 0.06); margin-bottom: 1rem; }
.table-filters { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
@media (min-width: 480px) { .table-filters { flex-direction: row; } }
.search-box { position: relative; flex: 1; display: flex; align-items: center; }
.search-box i { position: absolute; left: 10px; color: var(--text-muted); font-size: 0.75rem; }
.search-box input { width: 100%; padding: 6px 8px 6px 26px; border-radius: var(--border-radius-sm); border: 1.5px solid #EADBC8; background-color: var(--bg-cream); font-family: inherit; font-size: 0.8rem; outline: none; }
.filter-box select { padding: 6px 10px; border-radius: var(--border-radius-sm); border: 1.5px solid #EADBC8; background-color: var(--bg-cream); font-family: inherit; font-size: 0.8rem; outline: none; width: 100%; }

.table-scroll { overflow-x: auto; border-radius: var(--border-radius-sm); border: 1.5px solid var(--bg-cream); }
.guests-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; text-align: left; white-space: nowrap; }
.guests-table th { background-color: var(--bg-cream); padding: 8px 10px; font-weight: 700; }
.guests-table td { padding: 8px 10px; border-bottom: 1px solid rgba(125, 107, 99, 0.04); }
.guests-table tbody tr:hover { background-color: var(--bg-cream); }
.badge-table { display: inline-block; padding: 2px 6px; font-weight: 700; font-size: 0.68rem; border-radius: 8px; }
.badge-table-yes { background-color: #E2F2E0; color: var(--dark-green); }
.badge-table-no { background-color: var(--barn-red-light); color: var(--barn-red); }
.empty-row { text-align: center; color: var(--text-muted); }
.empty-row td { padding: 1.5rem 0; }
.btn-delete-row { background: none; border: none; color: var(--barn-red); cursor: pointer; font-size: 0.85rem; padding: 2px; }

.manual-rsvp-section { background-color: white; border-radius: var(--border-radius-md); padding: 1rem; border: 1.5px dashed var(--wheat-yellow); }
.manual-rsvp-section h3 { font-family: 'Fredoka', sans-serif; font-size: 0.9rem; margin-bottom: 0.6rem; }
.manual-rsvp-form { display: flex; flex-direction: column; gap: 6px; }
.manual-rsvp-form .form-row { flex-direction: column; gap: 6px; }
@media (min-width: 480px) {
    .manual-rsvp-form .form-row { flex-direction: row; align-items: center; }
    .col-2 { flex: 2; }
    .col-1 { flex: 1.2; }
    .col-counter { width: 45px; }
    .col-action { display: flex; align-items: center; }
}
.manual-rsvp-form input, .manual-rsvp-form select { width: 100%; padding: 6px; border-radius: var(--border-radius-sm); border: 1.5px solid #EADBC8; background-color: var(--bg-cream); font-family: inherit; font-size: 0.78rem; outline: none; }

/* CANVAS FOR CONFETTI */
.confetti-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 150; pointer-events: none; }

/* ==========================================================================
   ANIMATIONS & DECORATIONS
   ========================================================================== */

@keyframes woodSway {
    0% { transform: rotate(-1.5deg); }
    100% { transform: rotate(1.5deg); }
}

@keyframes bounceWave {
    0% { height: 3px; }
    100% { height: 16px; }
}

@keyframes bobbing {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-4px) scale(1.02); }
}

@keyframes peekUp {
    0% { transform: translateY(20px); }
    100% { transform: translateY(0px); }
}

@keyframes driveSlow {
    0% { transform: translateX(-15px); }
    100% { transform: translateX(15px); }
}

@keyframes scaleUp {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.hidden { display: none !important; }

/* FARM THEMED DECORATIVE SVGS */
.farm-decor-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 1.2rem auto 0.2rem auto;
    width: 100%;
}

.farm-decor {
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.05));
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.farm-decor:hover {
    transform: scale(1.15) rotate(3deg);
    filter: drop-shadow(0 5px 10px rgba(126, 154, 117, 0.15));
}
