:root {
    --primary: #FF385C;
    /* Airbnb Red-ish / Vibrant Pink */
    --primary-hover: #D90B3E;
    --text-dark: #222222;
    --text-light: #717171;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.08);
    /* Airbnb style shadow */
    --shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.12);
    --radius: 24px;
    /* iOS/Modern look */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    min-height: 100vh;
    /* Animated Mesh Gradient Background */
    background-color: #F7F7F7;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-attachment: fixed;
    background-size: cover;
    line-height: 1.5;
}

/* Add a pseudo-element for the "Liquid" blobs */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 56, 92, 0.15), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(34, 193, 195, 0.15), transparent 40%);
    z-index: -1;
    animation: liquidMove 20s infinite alternate;
    pointer-events: none;
}

@keyframes liquidMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(10%, 10%) rotate(5deg);
    }
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===================================
   Sections (Navigation)
   =================================== */
.section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.section.active {
    display: block;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3 {
    font-weight: 600;
    /* Airbnb uses a slightly heavier weight but not bold */
    letter-spacing: -0.02em;
}

/* ===================================
   Hero Section - Elegant & Centered
   =================================== */
.hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    margin-bottom: 1.5rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-pretext {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

h1.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3em;
}

.hero-ampersand {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 0.85em;
    opacity: 0.95;
    /* Force visibility by overriding the parent's transparent text fill */
    -webkit-text-fill-color: #FFFFFF;
    text-fill-color: #FFFFFF;
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    margin-top: 1.25rem;
    border-radius: 2px;
}

.card-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

/* ===================================
   Glass Components
   =================================== */
.card.glass {
    background: rgba(255, 255, 255, 0.85);
    /* More opaque for readability 'Airbnb' style */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

/* ===================================
   Inputs & Buttons
   =================================== */
.input-field {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid #DDDDDD;
    /* Subtle grey border */
    border-radius: 12px;
    /* Smooth corners */
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-field:focus {
    outline: none;
    border-color: var(--text-dark);
    /* Airbnb style black focus border */
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(90deg, #FF385C 0%, #D90B3E 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 56, 92, 0.4);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    text-decoration: underline;
}

.btn-secondary:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

/* ===================================
   Search Box Specifics
   =================================== */
.search-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.search-results {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-item:hover {
    background: #f7f7f7;
    border-color: #ddd;
    transform: scale(1.01);
}

/* ===================================
   Guest Cards & RSVP
   =================================== */
.guest-card {
    background: #FFFFFF;
    border: 1px solid #EBEBEB;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.guest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.guest-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.rsvp-toggle {
    display: flex;
    background: #F7F7F7;
    padding: 4px;
    border-radius: 50px;
}

.rsvp-option {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.2s;
}

.rsvp-option.active[data-status="attending"] {
    background: #FFFFFF;
    color: #4CAF50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.rsvp-option.active[data-status="declined"] {
    background: #FFFFFF;
    color: #EF5350;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Meal Selector */
.meal-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.meal-option {
    padding: 0.5rem 1rem;
    border: 1px solid #DDDDDD;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.meal-option.selected {
    background: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
}

/* ===================================
   New Sections & Checkboxes
   =================================== */
.form-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #EBEBEB;
}

.form-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--text-dark);
}

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

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.switch-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* ===================================
   Quick Action Buttons
   =================================== */
.quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #43A047 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-outline-danger {
    background: transparent;
    color: #EF5350;
    border: 2px solid #EF5350;
}

.btn-outline-danger:hover {
    background: #EF5350;
    color: white;
}

/* ===================================
   Event Toggle Rows
   =================================== */
.event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #F0F0F0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.event-row:last-child {
    border-bottom: none;
}

.event-info {
    flex: 1;
    min-width: 150px;
}

.event-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.event-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.event-toggle {
    display: flex;
    background: #F7F7F7;
    padding: 3px;
    border-radius: 50px;
    gap: 2px;
}

.event-option {
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-light);
    transition: all 0.2s;
    white-space: nowrap;
}

.event-option.active[data-status="attending"] {
    background: #FFFFFF;
    color: #4CAF50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.event-option.active[data-status="declined"] {
    background: #FFFFFF;
    color: #EF5350;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* ===================================
   Radio Button Group
   =================================== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: #F7F7F7;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.radio-label:hover {
    background: #F0F0F0;
}

.radio-label:has(input:checked) {
    background: #E8F5E9;
    border-color: #4CAF50;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #4CAF50;
}

/* ===================================
   Info Text
   =================================== */
.info-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ===================================
   Section Divider
   =================================== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #EBEBEB, transparent);
    margin: 1.5rem 0;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .card.glass {
        padding: 1.5rem;
    }

    .hero {
        padding: 2rem 1rem 1.5rem;
    }

    .hero-pretext {
        font-size: 0.75rem;
    }

    h1.hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .guest-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rsvp-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .rsvp-option {
        flex: 1;
        text-align: center;
    }
}