/* =============================================
   FORM.CSS – Okyry Cars | Driver Application
   Scoped to .form-page only. Loaded after
   styles.css so these rules take precedence.
============================================= */

/* --- Hero section ------------------------------------ */

body.form-page {
    background: var(--bg);
}
.form-page .app-hero {
    padding: 40px 0 8px;
}

.form-page .app-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.0;
    margin-bottom: 0.75rem;
    text-align: left;
}

.form-page .app-hero .hero-text {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
    max-width: 100%;
    text-align: left;
}

/* --- Form section ------------------------------------ */
.form-page .section:not(.app-hero) {
    padding-top: 8px;
    padding-bottom: 48px;
}

/* --- Form shell -------------------------------------- */
.form-page .form-shell {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* --- Form blocks ------------------------------------- */
.form-page .form-block {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ececec;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 24px;
    margin-bottom: 16px;
}

.form-page .form-block h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f2f2f2;
    color: #1d1d1f;
}

/* --- Fields ------------------------------------------ */
.form-page .field {
    position: static;
    border: none;
    background: transparent;
    padding: 0;
}

.form-page .field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d1d1f;
    text-align: left;
}

.form-page .field input,
.form-page .field select,
.form-page .field textarea {
    width: 100%;
    background: #f7f7f5;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem; /* Prevents iOS auto-zoom */
    color: #1d1d1f;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-page .field input:focus,
.form-page .field select:focus,
.form-page .field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

/* --- Questions (radio/checkbox groups) -------------- */
.form-page .question {
    border: 1px solid #e8e8e2;
    border-radius: 12px;
    background: #fafafa;
    padding: 14px 16px;
    text-align: left;
}

.form-page .question p,
.form-page .question .font-medium {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 10px;
    text-align: left;
}

.form-page .question label {
    font-size: 0.9rem;
    color: #424245;
    cursor: pointer;
    text-align: left;
}

.form-page .question input[type="radio"],
.form-page .question input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

/* Disable scroll animations on form page */
.form-page .reveal-up {
    opacity: 1;
    transform: none;
}

.form-page .line {
    transform: none;
}

/* =============================================
   MOBILE  ( ≤ 768px )
============================================= */
@media (max-width: 768px) {
    .form-page .app-hero {
        padding: 20px 0 6px !important;
    }

    .form-page .app-hero h1 {
        font-size: 1.9rem !important;
        line-height: 1.1 !important;
    }

    .form-page .app-hero .hero-text {
        font-size: 0.95rem !important;
    }

    /* Tight gap between hero and form */
    .form-page .section:not(.app-hero) {
        padding-top: 10px !important;
        padding-bottom: 32px !important;
    }

    /* Flat cards on mobile – no white box, divider-separated */
    /* .form-page .form-block {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 0 24px !important;
        margin-bottom: 0 !important;
        border-bottom: 1px solid #e8e8e2 !important;
    } */

    .form-page .form-block:last-of-type {
        border-bottom: none !important;
    }

    .form-page .form-block h2 {
        font-size: 1.05rem !important;
        border-bottom: none !important;
        margin-bottom: 14px !important;
        padding-bottom: 0 !important;
    }

    .form-page .form-shell {
        padding: 0 !important;
    }

    .form-page .driver-form {
        gap: 24px !important;
    }

    .form-page .question {
        padding: 12px 14px !important;
        background: #f7f7f5 !important;
    }

    .form-page input,
    .form-page select,
    .form-page textarea {
        font-size: 1rem !important;
    }
}

/* =============================================
   SMALL PHONES  ( ≤ 480px )
============================================= */
@media (max-width: 480px) {
    .form-page .app-hero h1 {
        font-size: 1.7rem !important;
    }

    .form-page .form-block h2 {
        font-size: 1rem !important;
    }

    .form-page .question {
        padding: 10px 12px !important;
    }
}
