/* ==========================================================
   Forms - ONE design for every form on the site
   (car page contact form, post-with-us, contact, report).
   Mobile-first, works down to 300px.
   ========================================================== */

:root {
    --form-accent: #0b5ed7;
    --form-text: #1a1a1a;
    --form-muted: #4b5563;
    --form-border: #e5e7eb;
}

/* ---------- Standalone form pages ---------- */
.form-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem .75rem 2.5rem;
    color: var(--form-text);
}
.form-page__title {
    margin: .5rem 0;
    font-size: clamp(1.4rem, 6vw, 2.1rem);
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}
.form-page__lead {
    margin: 0 0 1rem;
    text-align: center;
    color: var(--form-muted);
    font-size: 1.05rem;
}
.form-page__text {
    margin: 0 0 1rem;
    line-height: 1.7;
    color: var(--form-muted);
    overflow-wrap: anywhere;
}
.form-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--form-border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

/* ---------- Contact form ---------- */
.form__title {
    margin: 0 0 .75rem;
    font-size: 1.15rem;
}
.form__field {
    margin-bottom: .75rem;
}
.form__field label {
    display: block;
    margin-bottom: .25rem;
    font-size: .875rem;
    font-weight: 600;
}
.form__field input,
.form__field textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: .5rem .75rem;
    font-size: 1rem;               /* 16px+ stops iOS from zooming on focus */
    color: var(--form-text);
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: 8px;
}
.form__field textarea {
    min-height: 7rem;
    resize: vertical;
}
/* Honeypot: off-screen (not display:none, which some bots detect) */
.form__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__btn {
    width: 100%;
    min-height: 44px;
    padding: .65rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--form-accent);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.form__btn:hover {
    background: #0a4fb3;
}
.form__btn:disabled {
    background: #9aa3af;
    cursor: not-allowed;
}
.form__alert {
    margin: .75rem 0 0;
    padding: .6rem .75rem;
    font-size: .9rem;
    border-radius: 8px;
    overflow-wrap: anywhere;
}
.form__alert--error {
    color: #b42318;
    background: #fef3f2;
}
.form__alert--success {
    color: #067647;
    background: #ecfdf3;
}


/* Fields side by side (e.g. first name / last name) */
.form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 .75rem;
}
.form__field select {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: .5rem .75rem;
    font-size: 1rem;
    color: var(--form-text);
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: 8px;
}
.form__hint {
    margin: .25rem 0 0;
    font-size: .8rem;
    color: var(--form-muted);
}

/* Focus */
.form a:focus-visible,
.form button:focus-visible,
.form input:focus-visible,
.form textarea:focus-visible,
.form select:focus-visible {
    outline: 3px solid var(--form-accent);
    outline-offset: 2px;
}

@media (max-width: 360px) {
    .form-page { padding-inline: .5rem; }
    .form-card { padding: .75rem; }
}
@media (min-width: 640px) {
    .form-card { padding: 1.5rem; }
    .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}