/* ===================================================
   BLUE Car Rental — Brand Palette & Custom Font
   =================================================== */

@font-face {
    font-family: 'BLUE Display';
    src: url('../fonts/BLUEDISPLAY-REGULAR.woff2') format('woff2'),
         url('../fonts/BLUEDISPLAY-REGULAR.woff') format('woff'),
         url('../fonts/BLUEDISPLAY-REGULAR.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue-deep: #050505;
    --blue-dark: #00143B;
    --blue-bright: #1B56FD;
    --blue-white: #F8F8F8;
    --blue-light: #C3DCFF;
    --blue-warm-white: #EDEDED;
    --blue-lava: #FD6112;
    --text-dark: #212529;
    --text-muted: #6c757d;
}

/* ===================================================
   Global Styles
   =================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--blue-dark);
    margin: 0;
}

/* ===================================================
   Fixed Background Video (parallax effect)
   =================================================== */

#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    transform: scale(1.15);
    transform-origin: center center;
}

/* ===================================================
   Festival Header — full viewport, video shows through
   =================================================== */

.festival-header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
}

/* Header overlay — transparent, used for centering only */
.header-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 48px 56px;
}

/* Event logo in header */
.event-logo {
    display: block;
    width: 90vw;
    max-width: 900px;
    height: auto;
    margin: 0 auto 20px;
}

/* ===================================================
   Main Content — scrolls over the video
   =================================================== */

main {
    position: relative;
    z-index: 1;
    background-color: var(--blue-white);
    padding-top: 16px;
    padding-bottom: 40px;
}

/* Welcome Section */
.welcome-section h2 {
    font-family: 'BLUE Display', 'Helvetica Neue', Arial, sans-serif;
    color: var(--blue-dark);
    font-weight: 400;
}

.welcome-section .lead {
    color: var(--text-muted);
}

.venue-info {
    margin-top: 16px;
}

.venue-info p {
    font-family: 'BLUE Display', 'Helvetica Neue', Arial, sans-serif;
    color: var(--blue-dark);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

/* ===================================================
   RSVP Form
   =================================================== */

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Form group spacing */
.form-group {
    margin-bottom: 24px;
}

/* Labels: BLUE Display font, dark blue */
.form-label {
    display: block;
    font-family: 'BLUE Display', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.required-star {
    color: var(--blue-lava);
}

/* Text inputs and selects: system sans-serif */
.form-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: #fff;
    border: 1.5px solid var(--blue-warm-white);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: var(--blue-dark);
}

/* Select arrow indicator */
select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300143B' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Radio button groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 10px 14px;
    border: 1.5px solid var(--blue-warm-white);
    border-radius: 6px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-label:hover {
    border-color: var(--blue-light);
}

.radio-label:has(input:checked) {
    border-color: var(--blue-bright);
    background-color: rgba(27, 86, 253, 0.04);
}

.radio-label input[type="radio"] {
    accent-color: var(--blue-bright);
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

/* Spouse fields: hidden by default, smooth reveal */
.spouse-fields {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.spouse-fields--visible {
    max-height: 400px;
    opacity: 1;
}

/* Submit button: lava accent */
.form-submit {
    margin-top: 32px;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-family: 'BLUE Display', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    color: #fff;
    background-color: var(--blue-lava);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-submit:hover {
    background-color: #e55510;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success / Error messages */
.form-message {
    text-align: center;
    padding: 40px 20px;
}

.form-message h3 {
    font-family: 'BLUE Display', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    color: var(--blue-dark);
    margin-bottom: 12px;
}

.form-message p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.form-message--error p {
    color: #c0392b;
}

/* ===================================================
   Footer
   =================================================== */

footer {
    position: relative;
    z-index: 1;
    background-color: var(--blue-dark);
    color: var(--blue-white);
}

footer p {
    color: var(--blue-white);
}

/* Footer wordmark */
.footer-logo {
    display: block;
    width: 80px;
    height: auto;
    margin: 0 auto 12px;
}

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

@media (max-width: 768px) {
    .event-logo {
        width: 85vw;
    }

    .header-overlay {
        padding: 28px 20px;
        margin: 0 16px;
    }

    .form-container {
        padding: 0 16px 32px;
    }
}

/* ===================================================
   Accessibility: reduced motion
   =================================================== */

@media (prefers-reduced-motion: reduce) {
    /* No animations to disable currently, but keep the
       query in place for future motion additions. */
}
