/* Account pages (/sign-in, /my-tests) and the e-mail step of the test and the results page. Self-contained: it uses the
   site colors with fallbacks and no class of the Italian sheets, so it also works inside /test and /results. */
.ac-page .s-contenitore { max-width: 560px; }
.ac-card { background: #fff; border: 1px solid var(--ta-linea, #d9e2ef); border-radius: 24px; box-shadow: var(--ta-ombra, 0 1px 2px rgba(11,37,69,.05), 0 12px 32px rgba(11,37,69,.08)); padding: 26px 22px 24px; margin: 0 0 18px; box-sizing: border-box; }
@media (min-width: 768px) { .ac-card { padding: 32px 32px 28px; } }
.ac-card--wide { max-width: 100%; }
.ac-h1 { font-size: 26px; line-height: 1.2; font-weight: 800; color: var(--ta-testo, #191c1e); margin: 0 0 8px; letter-spacing: -.01em; }
.ac-h2 { font-size: 20px; line-height: 1.25; font-weight: 800; color: var(--ta-testo, #191c1e); margin: 0 0 8px; }
.ac-title { font-size: 22px; line-height: 1.2; font-weight: 800; color: var(--ta-testo, #191c1e); margin: 0 0 8px; }
.ac-sub { font-size: 15px; line-height: 1.55; color: var(--ta-muto, #424752); margin: 0 0 16px; }
.ac-label { display: block; font-size: 14px; font-weight: 800; color: var(--ta-testo, #191c1e); margin: 0 0 6px; }
.ac-input { display: block; width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 14px; font: 500 16px/1.2 var(--ta-font, Inter, system-ui, sans-serif); color: var(--ta-testo, #191c1e); background: #fff; border: 2px solid var(--ta-bordo, #c2c6d4); border-radius: 14px; }
.ac-input:focus { outline: none; border-color: var(--ta-blu, #00488d); box-shadow: 0 0 0 3px var(--ta-blu-chiaro, #d6e3ff); }
.ac-code { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .3em; }
.ac-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ta-muto, #424752); cursor: pointer; }
.ac-check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ta-blu, #00488d); }
.ac-err { margin: 12px 0 0; font-size: 14px; font-weight: 700; color: var(--ta-rosso, #ba1a1a); }
.ac-err[hidden] { display: none; }
.ac-status { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--ta-blu-tenue, #eef4ff); font-size: 14px; line-height: 1.5; }
.ac-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--ta-tenue, #5f6573); }
.ac-foot { margin: 16px 0 0; font-size: 14px; color: var(--ta-muto, #424752); text-align: center; }
.ac-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ac-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
@media (min-width: 560px) { .ac-actions { flex-direction: row; } .ac-actions .ac-btn { flex: 1 1 0; } }
/* The two choices are the same size: "No thanks" is as visible as the button. */
.ac-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--ta-blu, #00488d); background: var(--ta-blu, #00488d); color: #fff; font: 800 16px/1.2 var(--ta-font, Inter, system-ui, sans-serif); text-decoration: none; cursor: pointer; }
.ac-btn:hover { background: var(--ta-blu-2, #005fb8); border-color: var(--ta-blu-2, #005fb8); }
.ac-btn:focus-visible, .ac-link:focus-visible { outline: 3px solid var(--ta-blu-chiaro, #d6e3ff); outline-offset: 2px; }
.ac-btn[disabled] { opacity: .6; cursor: default; }
.ac-btn--ghost { background: #fff; color: var(--ta-blu, #00488d); }
.ac-btn--ghost:hover { background: var(--ta-blu-tenue, #eef4ff); border-color: var(--ta-blu, #00488d); }
.ac-btn--full { width: 100%; margin-top: 16px; }
.ac-btn--small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.ac-btn--danger { background: var(--ta-rosso, #ba1a1a); border-color: var(--ta-rosso, #ba1a1a); }
.ac-btn--danger:hover { background: #93000a; border-color: #93000a; }
.ac-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; font: 700 14px/1.2 var(--ta-font, Inter, system-ui, sans-serif); color: var(--ta-blu, #00488d); text-decoration: underline; cursor: pointer; }
.ac-link[disabled] { color: var(--ta-tenue, #5f6573); cursor: default; text-decoration: none; }
.ac-link--danger { color: var(--ta-rosso, #ba1a1a); }
.ac-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.ac-confirm { margin-top: 14px; padding: 16px; border-radius: 14px; background: #fde8e7; font-size: 14px; line-height: 1.5; }
.ac-confirm p { margin: 0 0 10px; }
.ac-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ac-result { border: 1px solid var(--ta-linea, #d9e2ef); border-radius: 18px; padding: 16px; background: var(--ta-sfondo, #f7f9fc); }
.ac-result__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ta-tenue, #5f6573); }
.ac-result__band { font-size: 19px; font-weight: 800; color: var(--ta-testo, #191c1e); margin: 6px 0 4px; }
.ac-result__line { font-size: 14px; line-height: 1.5; color: var(--ta-muto, #424752); }
.ac-result .ac-btn { margin-top: 12px; }
/* The e-mail step (end of the test) and the box on the results page */
.ac-save { background: #fff; border: 1px solid var(--ta-linea, #d9e2ef); border-radius: 22px; padding: 22px 20px; box-sizing: border-box; }
.ac-save--box { margin: 22px 0; max-width: 720px; }
/* The step lives inside the card of the test: no second frame around it. */
.ac-save--step { border: 0; border-radius: 0; padding: 0; background: transparent; }
.ac-check a { color: var(--ta-blu, #00488d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ac-save--done { background: var(--ta-blu-tenue, #eef4ff); }
.ac-save--done .ac-sub { margin: 0; }
.ac-save--done .ac-sub + .ac-sub { margin-top: 8px; }
@media print { .ac-save, .ac-card { display: none; } }
/* The last step of the test (js/save.js, mode 'step'): the form sits inside the frame of /test, so it uses that page's
   ta-* classes for the field, the tick box and the button. These rules only fit them to the step. */
.ac-form--step [hidden] { display: none !important; }
.ac-form--step .ac-step-go { margin-top: 20px; }
.ac-form--step .ta-cta { width: 100%; }
.ac-form--step .ta-cta[disabled] { opacity: .6; cursor: default; }
.ac-form--step .ac-note { text-align: center; }
@media (min-width: 768px) {
  .ac-form--step .ta-cta { width: auto; }
  .ac-form--step .ta-salta, .ac-form--step .ac-note { text-align: left; }
}
/* /my-tests: the cards are Italy's (css/it-pagina-miei-test.css, loaded for the account pages). These rules fit them here. */
.mt-pagina .ac-card { max-width: 720px; margin-top: 26px; }
.mt-pagina .ac-status { max-width: 720px; }
.mt-scheda--prima { border-top: 4px solid var(--ta-blu, #00488d); }   /* an older adult result: no profile column */
.mt-ico svg { display: block; width: 24px; height: 24px; }
.mt-elenco__riga { min-height: 44px; }
.mt-bottoni button.s-btn { cursor: pointer; font-family: inherit; }
@media print { .mt-pagina .ac-card { display: none; } }
