html {
    scroll-behavior: smooth;
}

#wrapper {
    width: 100% !important;
    max-width: none !important;
    box-shadow: none !important;
}

.content-wrap {
    padding: 60px 0 !important;
    width: 100% !important;
    box-shadow: none !important;
}

/* Brand Colors */
.brand-red {
    color: #C51E3A;
}

.brand-green {
    color: #527F68;
}

.brand-dark-red {
    color: #A41C30;
}

/* Brand Colors (Utilizzati per Hero) */
.brand-red {
    color: #C51E3A;
}

.brand-dark-red {
    color: #A41C30;
}

/* Hero Section - CONTAINER ESTERNO */
#hero {
    /* Gradiente Scuro verso il Basso (come richiesto) */
    background: linear-gradient(to bottom, #C51E3A, #A41C30);
    height: 550px;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
}

/* Overlay che non serve più (settato a 'none' per sicurezza) */
#hero::before {
    content: none;
}



/* Box Bianco CENTRALE (Hero Content) */
.hero-content {
    position: relative;
    z-index: 2;
    background-color: #fefefe;
    /* Bordi Stondati */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    /* Layout a DUE COLONNE */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    /* Dimensioni */
    max-width: 1100px;
    width: 90%;
    height: auto;
    margin: 0 20px;
    padding: 60px 80px;
}

/* ========================================================== */
/* COLONNA 1: LOGO */
/* ========================================================== */

.hero-logo-wrapper {
    flex: 0 0 45%;
    text-align: left;
    margin-bottom: 0;
}

.hero-logo-container {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.hero-logo {
    height: auto;
    width: 100%;
    max-width: 350px;
    filter: none;
}

/* ========================================================== */
/* COLONNA 2: TESTO E CTA (Tutto Centrato) */
/* ========================================================== */

.hero-text-content {
    flex: 0 0 55%;
    text-align: center;
    /* Allineamento Centrale */
    padding-left: 40px;
}

/* Titolo H1 */
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #C51E3A;
    text-transform: uppercase;
}

/* Disabilita allcaps per i testi del profilo comportamentale */
.behavioral-question-card h4,
.behavioral-question-card p,
.behavioral-question-card label {
    text-transform: none !important;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .button-group button {
        font-size: 0.9rem;
        padding: 10px 15px;
        border-radius: 5px;
    }

    .prev-step,
    .next-step,
    .save-later-button,
    .submit-button {
        width: 100%;
    }
}

/* Separatore (Linea Griga Sotto Titolo) */
.hero-separator {
    width: 80px;
    height: 3px;
    background-color: #ccc;
    margin: 5px auto 0;
    /* Centra la linea */
}

/* Sottotitolo H2 */
.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #555;
    margin-top: 20px;
}

/* Pulsante CTA - GRANDE E CENTRATO */
.btn-primary-custom {
    background-color: #C51E3A;
    color: #fff;
    padding: 28px 70px;
    /* Bottone molto più grande */
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: #9e192fff;
    color: white;
}

/* Contenitore generale */
.info-stats-highlight {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
}

/* Singolo Box */
.stat-item-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 35px;
    text-align: center;
    width: 230px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effetto */
.stat-item-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

/* Icona */
.stat-icon {
    font-size: 36px;
    color: #A41C30;
    margin-bottom: 14px;
}

/* Numero grande */
.stat-number {
    display: block;
    font-size: 2.1rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 6px;
}

/* Etichetta */
.stat-label {
    font-size: 1.05rem;
    color: #555;
}

/* Mobile */
@media (max-width: 768px) {
    .stat-item-box {
        width: 100%;
        max-width: 260px;
    }
}

/* ========================================================== */
/* MEDIA QUERIES (RESPONSIVITÀ) */
/* ========================================================== */

@media(max-width: 992px) {

    /* Impila gli elementi su tablet */
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-logo-wrapper {
        flex: auto;
        margin-bottom: 20px;
    }

    /* Centra tutti gli elementi nella colonna di testo */
    .hero-text-content {
        flex: auto;
        padding-left: 0;
        text-align: center;
    }

    /* La separatore rimane centrato (gestito da margin: auto) */
    .hero-title {
        font-size: 2.2rem;
    }
}

@media(max-width:768px) {

    /* Altezza adattiva su mobile */
    #hero {
        height: auto;
        padding: 40px 0;
    }

    .hero-logo-container {
        max-width: 250px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-content {
        padding: 30px 15px;
        max-width: 95%;
    }

    .btn-primary-custom {
        padding: 15px 40px;
        /* Ridotto su mobile */
        font-size: 1.1rem;
    }
}

.disabled-label {
    opacity: 0.5;
    cursor: not-allowed;
}

.disabled-label input[type="checkbox"] {
    cursor: not-allowed;
}


/* Logo */
.logo {
    font-family: sans-serif;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 20px;
}

/* Contenuto principale centrato */
.main-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content-container>h2.info-main-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 2.8rem;
    font-weight: 700;
    color: #C51E3A;
    text-align: center;
    margin-bottom: 50px;
}

/* CONTAINER GRIGIO ESTERNO (Wrapper) */
.info-block-wrapper {
    background-color: #F8F8F8;
    border-radius: 12px;
    /* Bordi smussati per il wrapper */
    padding: 20px;
    /* Padding interno per separare il box interno dal bordo grigio */
    margin: 40px auto;
    max-width: 1040px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Info Block - Contenitore Flex Interno (NON ha più sfondo o margini) */
.info-block {
    background-color: transparent;
    /* Il background è sul wrapper */
    border: none;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    /* Bordi smussati anche per questo contenitore logico */
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    max-width: 100%;

    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Colonna Rossa a Sinistra - PIÙ PICCOLA E CON BORDI SMUSSATI */
.info-left-pane {
    padding-top: 25px;
    flex: 0 0 35%;
    /* Ridotto al 35% (era 40%) */
    background-color: #A41C30;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    line-height: 1.4;
    border-radius: 10px;
    /* Bordi smussati per il box rosso */
    /* Aggiungo un piccolo margine per farlo notare all'interno del wrapper */
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    /* Ombra più definita per staccarlo */
}

.info-left-pane h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.info-left-pane strong {
    font-weight: 700;
}

/* Colonna Destra - Testo - PIÙ GRANDE */
.info-right-pane {
    flex: 1;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-right-pane p {
    font-size: 1.55rem;
    /* Testo più grande (era 1.4rem) */
    color: #555;
    line-height: 1.7;
    /* Line-height leggermente aumentato per leggibilità */
    margin-bottom: 20px;
    /* Spazio tra paragrafi leggermente aumentato */
}

.info-right-pane p:last-child {
    margin-bottom: 0;
}

.info-right-pane strong {
    font-weight: 700;
    color: #444;
}

/* Stile per ISCRIVITI (Titolo in rosso) */
.info-block-subtitle.small-heading {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #A41C30;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 5px;
}

/* Nuovo Sottotitolo (La frase sotto ISCRIVITI) */
.info-block-subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: #333;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 20px;
}

.info-block-subtitle strong {
    font-weight: 700;
    color: #A41C30;
}

/* ========================================================== */
/* MEDIA QUERIES (RESPONSIVITÀ) */
/* ========================================================== */

@media(max-width: 992px) {
    /* ... (Mantenere gli stili Hero qui, se non hai un blocco separato per le media queries dell'hero) ... */

    /* INFO BLOCK */
    .info-block-wrapper {
        padding: 15px;
        max-width: 90%;
    }

    .info-block {
        flex-direction: column;
        max-width: 100%;
    }

    .info-left-pane {
        flex: auto;
        /* Torna alla larghezza automatica su mobile */
        padding: 30px;
        margin: 10px auto 20px;
        /* Margine per centrarlo e staccarlo */
        max-width: 300px;
        /* Larghezza massima per il box rosso su mobile */
    }

    .info-left-pane h3 {
        font-size: 1.8rem;
    }

    .info-right-pane {
        flex: auto;
        padding: 30px;
    }

    .info-right-pane p {
        font-size: 1.3rem;
        /* Adeguato font size su tablet */
    }

    .main-content-container>h2.info-main-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .info-block-subtitle {
        font-size: 1.6rem;
        margin-top: 10px;
    }

    .info-block-subtitle.small-heading {
        font-size: 1.3rem;
        margin-top: 40px;
        margin-bottom: 10px;
    }
}

@media(max-width: 768px) {
    .behavioral-question-card {
        padding: 20px;
        margin-bottom: 25px;
    }

    .behavioral-question-card h4 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    /* INFO BLOCK */
    .info-block-wrapper {
        border-radius: 0;
        padding: 0;
        max-width: 100%;
    }

    .info-block {
        border-radius: 0;
    }

    .info-left-pane h3 {
        font-size: 1.5rem;
    }

    .info-right-pane p {
        font-size: 1.1rem;
        /* Adeguato font size su mobile */
    }

    .main-content-container>h2.info-main-title {
        font-size: 1.8rem;
    }

    .info-block-subtitle {
        font-size: 1.3rem;
    }

    .info-block-subtitle.small-heading {
        font-size: 1.1rem;
    }

    .radio-option {
        margin-bottom: 12px;
    }

    .radio-option input[type="radio"] {
        transform: scale(1.4);
        margin-right: 12px;
    }

    .radio-option label {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .behavioral-intro {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .behavioral-question-card h4 {
        font-size: 1rem;
    }

    .radio-option label {
        font-size: 0.9rem;
    }
}

/* --- INIZIO BLOCCO FORM AGGIORNATO --- */
.form-container {
    padding: 40px;
    border-radius: 8px;
    background-color: #fefefe;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    /* Aumentato il max-width per schermi più grandi */
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    /* Assicura che padding e border siano inclusi nella larghezza */
}

/* 1. Stile del Pulsante e del Cerchiolino (Sostituisce .info-icon) */

.info-button {
    /* Resetta gli stili di base del <button> per farlo apparire come un'icona */
    all: unset;
    cursor: pointer;
    display: inline-flex;
    padding: 0;
    line-height: 1;
    /* Aggiungi 'position: relative;' se vuoi aggiungere animazioni o altri elementi basati sul pulsante */
}

.dot-question {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    font-size: 10px;
    font-weight: bold;
    pointer-events: auto;
    cursor: pointer;
    z-index: 999;
}

.checkbox-group-inline {
    display: flex;
    flex-wrap: wrap;
    /* Permette ai tag di andare a capo su più righe */
    gap: 8px;
    /* Spazio tra i tag */
}

/* Nasconde il checkbox standard */
.checkbox-group-inline input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-group-inline label {
    display: inline-block;
    cursor: pointer;
    margin: 0;
    /* Rimuove i margini verticali di default */
}

/* Stile base del "pill" (applicato allo span) */
.checkbox-group-inline label span {
    display: inline-block;
    padding: 8px 15px;
    /* Spaziatura interna del tag */
    border: 1px solid #ccc;
    border-radius: 20px;
    /* Bordi arrotondati per l'effetto pillola */
    background-color: #f8f8f8;
    color: #333;
    transition: all 0.2s ease;
    font-size: 0.95em;
}

/* Stile quando l'opzione è selezionata (input:checked + span adiacente) */
.checkbox-group-inline input[type="checkbox"]:checked+span {
    border-color: #C51E3A;
    /* Usa il tuo brand-red */
    background-color: #ffebeb;
    /* Sfondo leggero */
    color: #C51E3A;
    /* Testo in brand-red */
    font-weight: 600;
}

/* 2. Stile della Finestra Modale (Il nuovo Tooltip) */

.info-dialog {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: white;
    color: #333;
    font-size: 12px;
    /* Font size desiderata (più piccolo) */
    line-height: 1.6;
    max-width: 90vw;
    /* Non esce mai dallo schermo su mobile */
    max-height: 80vh;
    /* Limita l'altezza per schermi piccoli */
    overflow-y: auto;
    /* Aggiunge lo scroll se necessario */
}

/* Stile per l'overlay (lo sfondo scuro dietro la modale) */
.info-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.info-dialog p {
    margin: 0 0 10px 0;
    /* Margine sotto il testo, ma non sopra */
    white-space: pre-line;
    /* Riconosce le interruzioni di riga */
}

.dialog-close-btn {
    /* Stile per il bottone di chiusura */
    display: block;
    float: right;
    /* Lo spinge a destra */
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f0f0f0;
    font-size: 11px;
    cursor: pointer;
}

/* Media query per schermi più piccoli */
@media (max-width: 1024px) {
    .form-container {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .form-container {
        max-width: 100%;
        border-radius: 0;
        padding: 20px;
    }
}

.form-title-main {
    margin-top: 0;
    font-size: 2.5rem;
    color: #333;
    font-weight: 600;
}

.form-subtitle-main {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

h3 {
    color: #C51E3A;
    font-weight: 600;
}

.form-wizard {
    margin-bottom: 30px;
    /* Rimosso border-bottom per un aspetto più pulito */
}

.wizard-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #e0e0e0;
    /* Spostato il bordo sul contenitore flex per una linea continua */
}

/* Nascondi i passi del wizard su schermi piccoli */
.mobile-step-indicator {
    display: none;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #C51E3A;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .wizard-steps {
        display: none;
    }

    .mobile-step-indicator {
        display: block;
    }
}

.wizard-steps li {
    flex: 1;
    /* Assicura che tutti i passi abbiano la stessa larghezza */
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    cursor: pointer;
    /* Migliora l'usabilità */
}

.wizard-steps li.active a {
    color: #C51E3A;
    font-weight: bold;
}

.wizard-steps li.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    /* Posizionato per coprire il bordo del contenitore */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #C51E3A;
}

.wizard-steps a {
    display: block;
    text-decoration: none;
    color: #9e9e9e;
    transition: color 0.3s;
}

.step-number {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 28px;
    border-radius: 50%;
    border: 2px solid #9e9e9e;
    margin: 0 auto 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.wizard-steps li.active .step-number {
    background-color: #C51E3A;
    color: #fff;
    border-color: #C51E3A;
}

.step-desc {
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MODIFICHE PER LA RESPONSIVITÀ */
/* Assicura che il testo si adatti su schermi molto piccoli */
@media (max-width: 480px) {
    .wizard-steps {
        flex-wrap: wrap;
        /* Permette ai passi di andare a capo */
        gap: 10px 0;
        /* Aggiunge spazio verticale tra i passi se vanno a capo */
    }

    .wizard-steps li {
        flex-basis: 50%;
        /* Ogni passo occupa il 50% della larghezza per stare su due righe */
        padding-bottom: 10px;
        /* Riduci il padding */
    }

    .wizard-steps li.active::after {
        bottom: -7px;
        /* Adatta la posizione del bordo attivo */
    }

    .step-desc {
        font-size: 12px;
        /* Riduci la dimensione del font per adattarsi */
        white-space: normal;
        /* Permette al testo di andare a capo */
        overflow: visible;
        /* Rende il testo visibile */
        text-overflow: clip;
    }
}


/* Form Steps and Fields */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
    z-index: 1;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    position: relative;
}

/* Stile per il testo di aiuto su riga separata ma in piccolo */
.info-help-text {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 15px;
}

input[type="text"],
input[type="email"],
input[type="file"],
input[type="date"],
textarea,
select,
.captcha-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus,
.captcha-input:focus {
    border-color: #C51E3A;
    outline: none;
}

.invalid {
    border-color: #C51E3A !important;
}

.invalid-group {
    border-left: 5px solid #C51E3A;
    padding-left: 10px;
}


.captcha-group {
    display: flex;
    flex-direction: column;
}

.captcha-flex-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-img-container {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-input {
    flex-grow: 1;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 15px;
}

.checkbox-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.checkbox-group-wrapper label {
    display: block;
    margin-bottom: 5px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-label-text {
    font-size: 14px;
    color: #555;
}

.required-fields-note {
    font-size: 12px;
    color: #888;
    margin-top: 20px;
    text-align: right;
}

.message {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

/* SUCCESS */
.message.success {
    background-color: #e8f8ee;
    /* Verde chiaro più elegante */
    color: #2b6b3d;
    border-left: 5px solid #3cb878;
    /* Bordo sinistro per enfasi */
    border-radius: 6px;
    padding: 15px 20px;
}

/* ERROR */
.message.error,
.message.warning {
    background-color: #ffe8e8;
    /* Rosso chiaro meno “flashy” */
    color: #C51E3A;
    border-left: 5px solid #C51E3A;
    border-radius: 6px;
    padding: 15px 20px;
}

/* Icona opzionale (se usi Font Awesome) */
.message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}


/* Buttons */
.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.prev-step,
.next-step,
.submit-button {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.next-step,
.submit-button {
    background-color: #C51E3A;
    color: #fff;
}

.next-step:hover,
.submit-button:hover {
    background-color: #a41c30;
}

.prev-step {
    background-color: #e0e0e0;
    color: #555;
}

.prev-step:hover {
    background-color: #ccc;
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    z-index: 9999;
    /* già alto ma meglio rinforzare */
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Responsive adjustment to prevent overlap on smaller screens */
@media (max-width: 768px) {
    .whatsapp-float {
        left: auto;
        right: 20px;
    }
}

/* Nuovo design per la sezione comportamentale */
.behavioral-intro {
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #555;
}

.behavioral-question-card {
    background-color: #f9f9f9;
    border-left: 5px solid #C51E3A;
    border-radius: 8-px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.behavioral-question-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.behavioral-question-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.behavioral-question-card h4 i {
    color: #C51E3A;
    font-size: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    accent-color: #C51E3A;
    transform: scale(1.2);
}

.radio-option label {
    margin: 0;
    font-weight: normal;
    color: #333;
    cursor: pointer;
}

/* Stili per il nuovo dropdown personalizzato */
.dropdown-search-checkbox-wrapper .dropdown-search-checkbox-container {
    position: relative;
}

.dropdown-search-checkbox-wrapper .dropdown-search-checkbox-container .dropdown-toggle {
    cursor: pointer;
    background-color: #fff;
}

.dropdown-search-checkbox-wrapper .dropdown-search-checkbox-container .dropdown-menu {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    background-color: #fff;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 10px;
    margin-top: -1px;
    /* Per far combaciare i bordi */
}

.dropdown-search-checkbox-wrapper .dropdown-search-checkbox-container .dropdown-menu.show {
    display: block;
}

.dropdown-search-checkbox-wrapper .dropdown-search-checkbox-container .dropdown-search-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.dropdown-checkbox-list label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.dropdown-checkbox-list label:hover {
    background-color: #f5f5f5;
}

.dropdown-checkbox-list input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 0;
    accent-color: #C51E3A;
}

/* Pulsante "Continua più tardi" */
.save-later-button {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ccc;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-later-button:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
    color: #333;
}

.save-later-button:active {
    background-color: #d8d8d8;
}

.cv-choice-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.choice-btn {
    padding: 10px 16px;
    border-radius: 6px;
    border: 2px solid #C51E3A;
    background: white;
    color: #C51E3A;
    cursor: pointer;
    font-weight: 600;
    transition: 0.25s;
}

.choice-btn.active {
    background: #C51E3A;
    color: white;
}


.choice-btn:hover {
    background: #C51E3A10;
    color: #C51E3A;
}


#cv-upload-wrapper {
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.cv-choice-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}
.wizard-steps li.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}
.wizard-steps li[style*="display: none"] {
  display: none !important;
}
