/*
 * «Ho bisogno di aiuto» (rilascio 28, 23/10/2026): procedura guidata pubblica, conferma dell'email e link personale
 * della richiesta da fuori. Sopra il modello delle pagine di accesso (auth.css): telefono prima, bersagli da 44 px.
 */

/* avanzamento: «Passo 2 di 5» con la barra */
.help-progress { margin: 0 0 var(--s-4); }
.help-progress-text { margin: 0 0 6px; font-size: var(--t-14); color: var(--c-ink-muted); }
.help-progress-bar { display: block; width: 100%; height: 6px; border: 0; border-radius: var(--r-pill); background: var(--c-surface-alt); overflow: hidden; }
.help-progress-bar::-webkit-progress-bar { background: var(--c-surface-alt); border-radius: var(--r-pill); }
.help-progress-bar::-webkit-progress-value { background: var(--c-action); border-radius: var(--r-pill); }
.help-progress-bar::-moz-progress-bar { background: var(--c-action); border-radius: var(--r-pill); }

.help-step-title { margin: 0 0 var(--s-3); font-size: var(--t-18); font-weight: 700; color: var(--c-ink); }

/* scelte grandi, una sotto l'altra, tutta la riga cliccabile */
.help-options { border: 0; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: 10px; }
.help-options legend { margin-bottom: 8px; font-weight: 700; }
.help-option { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 12px 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r-md); background: var(--c-surface); font-size: var(--t-16); line-height: 1.35; cursor: pointer; }
.help-option input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; }
.help-option:hover { border-color: var(--c-action); }
.help-option:focus-within { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.help-option.is-checked, .help-option:has(input:checked) { border-color: var(--c-action); background: var(--c-action-soft); }

.help-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: var(--s-4); }
.help-nav .btn { min-height: 44px; }
.help-nav .btn-primary { flex: 1 1 auto; }

/* riepilogo: dove va la richiesta */
.help-destination { margin: 0 0 var(--s-4); padding: 14px 16px; border-left: 4px solid var(--c-brand); border-radius: var(--r-sm); background: var(--c-brand-soft); }
.help-destination-where { margin: 0 0 6px; font-weight: 700; color: var(--c-ink); }
.help-destination p { margin: 0 0 6px; }
.help-destination p:last-child { margin-bottom: 0; }
.help-answers { display: grid; grid-template-columns: minmax(7em, auto) 1fr; gap: 6px 14px; margin: 0 0 var(--s-4); font-size: var(--t-14); }
.help-answers dt { color: var(--c-ink-muted); }
.help-answers dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }

/* campo anti-robot: fuori dallo schermo, mai visibile né raggiungibile con il tasto Tab */
.help-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* conversazione dal link personale */
.help-thread { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: 10px; }
.help-msg { padding: 10px 12px; border-radius: var(--r-md); background: var(--c-surface-alt); }
.help-msg.is-staff { background: var(--c-action-soft); }
.help-msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin-bottom: 4px; font-size: var(--t-14); }
.help-msg-body { overflow-wrap: anywhere; }
.help-event { font-size: var(--t-14); color: var(--c-ink-muted); padding: 0 4px; }
.help-files { list-style: none; margin: 6px 0 0; padding: 0; font-size: var(--t-14); }
.help-files a { display: inline-flex; min-height: 32px; align-items: center; }
.help-meta { color: var(--c-ink-muted); font-size: var(--t-14); }

@media (prefers-reduced-motion: no-preference) {
    .help-option { transition: border-color var(--m-fast) var(--m-ease), background-color var(--m-fast) var(--m-ease); }
}
