/* Formulaire de devis Kokoto */

.devis { display: grid; gap: 1.6rem; max-width: 760px; margin-top: 2rem; }

.devis fieldset {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface); padding: 1.4rem 1.5rem; margin: 0;
}
.devis legend {
    font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
    padding: 0 .5rem; color: var(--text);
}
.devis .hint { font-weight: 400; font-size: .85rem; color: var(--text-muted); }
.devis .req { color: var(--error); }

/* Options radio/checkbox — cibles tactiles confortables */
.opts { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.opts label {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem .9rem; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg);
    cursor: pointer; min-height: 44px; transition: border-color .15s, background .15s;
}
.opts label:hover { background: var(--surface); border-color: var(--accent); }
.opts input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); flex: 0 0 auto; }
.opts input:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.opts label:has(input:checked) { border-color: var(--accent); border-width: 2px; padding: calc(.7rem - 1px) calc(.9rem - 1px); }

/* Champs texte */
.field { display: grid; gap: .35rem; margin-top: 1rem; }
.field > span { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
    font-family: var(--font-body); font-size: 1rem; color: var(--text);
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .7rem .9rem; width: 100%;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Honeypot — hors écran mais focusable par les bots, pas par l'humain */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Erreurs serveur (doublées texte + bordure couleur) */
.form-errors {
    border: 2px solid var(--error); border-radius: var(--radius);
    background: color-mix(in srgb, var(--error) 8%, var(--bg));
    color: var(--error-text); padding: 1rem 1.2rem;
}
.form-errors ul { margin: 0; padding-left: 1.2rem; }

.devis-result { max-width: 760px; margin-top: 2rem; padding: 2rem; }
.devis-result h2 { margin-top: 0; }
