﻿/* ============================================================
   WIZARD DI QUALIFICAZIONE — stili aggiuntivi
   Appendere a extra.css  (o creare wizard.css e linkarlo in _Layout)
   ============================================================ */

/* Passi del wizard: nascosti di default, mostrati via JS */
.wz-step {
    animation: wzFadeIn 0.25s ease;
}

@keyframes wzFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wz-intro {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-bottom: 1.4rem;
    text-align: center;
}

/* Singola domanda */
.wz-question {
    margin-bottom: 1.4rem;
}

.wz-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.55;
    margin-bottom: 0.55rem;
}

/* Griglia bottoni risposta */
.wz-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Bottone singola risposta */
.wz-btn {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.25);
    color: inherit;
    border-radius: 4px;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
    line-height: 1.3;
}

    .wz-btn:hover {
        border-color: rgba(255,255,255,0.6);
        background: rgba(255,255,255,0.07);
    }

    /* Risposta selezionata */
    .wz-btn.wz-selected {
        background: #fff;
        color: #111;
        border-color: #fff;
        font-weight: 600;
    }

/* Bottone "non so / indeciso" — tono leggermente smorzato */
.wz-btn--unsure {
    opacity: 0.65;
    font-style: italic;
}

    .wz-btn--unsure.wz-selected {
        opacity: 1;
        font-style: normal;
    }

/* Messaggio di errore se non si seleziona tutto */
.wz-error {
    font-size: 0.82rem;
    color: #ff6b6b;
    margin-top: 0.4rem;
}

/* Riepilogo risposte in cima allo step form */
.wz-summary {
    background: rgba(255,255,255,0.07);
    border-left: 3px solid rgba(255,255,255,0.3);
    border-radius: 2px;
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    opacity: 0.75;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .wz-options {
        flex-direction: column;
    }

    .wz-btn {
        width: 100%;
        text-align: left;
    }
}
.form-container {
    overflow-y:scroll;
}
/* Bottone torna indietro */
.wz-back {
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.5;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
    font-family: inherit;
    display: block;
    transition: opacity 0.15s;
}

    .wz-back:hover {
        opacity: 1;
    }


/*@media screen and (max-width: 991px) {
    .form-container {
        width: 100vw;
        padding: 48px 56px;
    }
    .form-block {
        -webkit-justify-content: flex-start;
        justify-content: flex-start;
    }
    .button.chiudi-overlay {
        top: 5%;
    }
}*/
@media screen and (max-width: 991px) {
   
    .form-block {
        -webkit-justify-content: flex-start;
        justify-content: flex-start;
    }

    .button.chiudi-overlay {
        top: 5%;
    }
}

@media screen and (max-width: 479px) {
    .form-container {
        display:flex;
    }
    .wz-step {
        width:calc(100vw - 32px);
    }
    .button.chiudi-overlay {
        top: 50px;
        right: 10%;
    }
}