/* Myself Eventi — prenotazione a tappe. Eredita font, colori e bottoni dal tema (Astra): qui solo struttura e spaziature.
 * Colore d'accento: quello del tema (--ast-global-color-0), con ripiego sul blu del sito. Pensata prima per telefono. */
.myself-prenota {
    --mp-accento: var(--ast-global-color-0, #1a1a5e);
    --mp-bordo: rgba(0, 0, 0, .18);
    --mp-sfondo: rgba(0, 0, 0, .035);
    max-width: 640px;
    margin: 0 auto 2rem;
    font: inherit;
    color: inherit;
}
.myself-prenota *, .myself-prenota *::before, .myself-prenota *::after { box-sizing: border-box; }

/* Tappe */
.myself-prenota .mp-passi { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; gap: 6px; counter-reset: none; }
.myself-prenota .mp-passo { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .8rem; opacity: .55; text-align: center; margin: 0; }
.myself-prenota .mp-numero { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--mp-bordo); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.myself-prenota .mp-corrente { opacity: 1; font-weight: 600; }
.myself-prenota .mp-corrente .mp-numero { background: var(--mp-accento); border-color: var(--mp-accento); color: #fff; }
.myself-prenota .mp-fatto { opacity: .9; }
.myself-prenota .mp-fatto .mp-numero { border-color: var(--mp-accento); color: var(--mp-accento); }

.myself-prenota h3 { margin: 0 0 .75rem; }
.myself-prenota h3:focus { outline: none; }
.myself-prenota .mp-servizio { margin: 0 0 1rem; }
.myself-prenota .mp-sceltofin, .myself-prenota .mp-riga-scelta { margin: 0 0 1rem; padding: .6rem .8rem; background: var(--mp-sfondo); border-radius: 8px; }

/* Giorni e orari */
.myself-prenota .mp-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 0 0 1rem; }
.myself-prenota .mp-scelta { min-height: 76px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.15; background: #fff; color: inherit; border: 2px solid var(--mp-bordo); border-radius: 10px; cursor: pointer; text-align: center; }
.myself-prenota .mp-scelta:hover, .myself-prenota .mp-scelta:focus-visible { border-color: var(--mp-accento); background: #fff; color: inherit; }
.myself-prenota .mp-scelta:focus-visible, .myself-prenota .mp-invia:focus-visible, .myself-prenota .mp-indietro:focus-visible { outline: 3px solid var(--mp-accento); outline-offset: 2px; }
.myself-prenota .mp-sett { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.myself-prenota .mp-num { font-size: 1.5rem; font-weight: 700; }
.myself-prenota .mp-mese { font-size: .85rem; opacity: .75; }
.myself-prenota .mp-orari { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }

/* Modulo */
.myself-prenota .mp-campo { margin: 0 0 1rem; }
.myself-prenota .mp-campo label { display: block; margin-bottom: 4px; font-weight: 600; }
.myself-prenota .mp-campo input { width: 100%; min-height: 46px; font-size: 16px; /* 16px: su iPhone evita lo zoom */ }
.myself-prenota .mp-aiuto { display: block; margin-top: 4px; opacity: .75; }
.myself-prenota .mp-spunta { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 .9rem; cursor: pointer; }
.myself-prenota .mp-spunta input { flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; }
.myself-prenota .mp-testo { margin: 0 0 .75rem; }
.myself-prenota .mp-testo summary { cursor: pointer; min-height: 32px; text-decoration: underline; }
.myself-prenota .mp-testo-corpo { max-height: 220px; overflow: auto; padding: .6rem .8rem; margin-top: .4rem; background: var(--mp-sfondo); border-radius: 8px; font-size: .9rem; white-space: pre-wrap; }
.myself-prenota .mp-trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.myself-prenota .mp-azioni { margin: 1.25rem 0 .5rem; }
.myself-prenota .mp-invia { width: 100%; min-height: 50px; font-size: 1.05rem; cursor: pointer; }
.myself-prenota .mp-invia[disabled] { opacity: .6; cursor: wait; }
.myself-prenota .mp-azioni-sec { margin: .5rem 0 0; }
.myself-prenota .mp-indietro { background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--mp-accento); text-decoration: underline; cursor: pointer; font: inherit; }
.myself-prenota .mp-indietro:hover { background: none; color: var(--mp-accento); }

/* Messaggi */
.myself-prenota .mp-errore, .myself-prenota .mp-errori:not(:empty) { margin: 0 0 1rem; padding: .7rem .9rem; border-left: 4px solid #b3261e; background: #fdecea; color: #7a1712; border-radius: 4px; }
.myself-prenota .mp-errori p { margin: 0 0 .25rem; }
.myself-prenota .mp-caricamento { padding: 1rem; text-align: center; opacity: .7; }

/* Conferma */
.myself-prenota .mp-esito { padding: 1.25rem; border: 2px solid var(--mp-bordo); border-radius: 12px; }
.myself-prenota .mp-esito-ok { border-color: #2e7d32; }
.myself-prenota .mp-esito h3 { margin-bottom: .5rem; }
.myself-prenota .mp-riepilogo { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 1rem 0 0; padding: .9rem 1rem; background: var(--mp-sfondo); border-radius: 8px; }
.myself-prenota .mp-riepilogo dt { font-weight: 600; margin: 0; }
.myself-prenota .mp-riepilogo dd { margin: 0; }
.myself-prenota .mp-nota { margin: .75rem 0 0; font-size: .9rem; opacity: .85; }

@media (max-width: 420px) {
    .myself-prenota .mp-nome { font-size: .72rem; }
    .myself-prenota .mp-riepilogo { grid-template-columns: 1fr; gap: 0; }
    .myself-prenota .mp-riepilogo dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
    .myself-prenota .mp-scelta { transition: border-color .12s; }
}
