/* --- Stili Globali per il Form --- */

/* --- Contenitore Principale e Animazione --- */
.form-steps-container {
    position: relative;
    overflow: hidden;
    /* NUOVO: Aggiunge una transizione fluida per l'altezza */
    transition: height 0.4s ease-in-out;
}

.step-forms {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step-forms.step-forms-active {
    transform: translateX(0);
}

.step-forms.form-step-left {
    transform: translateX(-100%);
}

/* --- Barra di Avanzamento Professionale --- */
.progressbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Allinea verticalmente i cerchi */
    margin: 2rem auto 4rem;
    width: 90%; /* Lascia un po' di spazio ai lati */
    max-width: 800px;
}

.progressbar::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #e0e0e0;
    z-index: 1;
}

.progress {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background-color: #f0bb18; /* Giallo Energy */
    width: 0%;
    transition: width 0.4s ease;
    z-index: 2;
}

.progress-step {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #e0e0e0;
    transition: all 0.4s ease;
    z-index: 3; /* Assicura che i cerchi siano sopra la linea */
    position: relative; /* Contesto per il titolo */
}

.progress-step::before {
    /* USA L'ATTRIBUTO data-step INVECE DEL COUNTER CSS */
    content: attr(data-step);
    transition: opacity 0.3s ease;
}
.progress-step::after {
    content: attr(data-title);
    position: absolute;
    top: calc(100% + 10px);
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Stato Attivo */
.progress-step-active {
    border-color: #f0bb18;
    background-color: #f0bb18;
    color: #333;
}

/* Stato Completato */
.progress-step-check {
    border-color: #198754; /* Verde */
    background-color: #198754;
    color: #fff;
    cursor: pointer; /* Cursore per indicare che è cliccabile */
}

.progress-step-check::before {
    content: '\2713'; /* Checkmark */
    font-size: 1.2rem;
    line-height: 1;
}

/* Stile per i bottoni */
.btn-nav {
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: 600;
}

/* Ottimizzazione per Dispositivi Mobili */
@media (max-width: 768px) {
    .progressbar {
        width: 100%;
    }
    .progress-step::after {
        display: none; /* Nasconde i titoli su schermi piccoli per evitare sovrapposizioni */
    }
    .form-steps-container {
        min-height: auto; /* Altezza automatica su mobile */
    }
}
/* Aggiungi in fondo a css/form_style.css */
.card-hover-shadow {
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.card-hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}