/* Définition des variables CSS pour faciliter la personnalisation */
:root {
    --primary-color: #01937C;
    --secondary-color: #185ADB;
    --border-color: #ddd;
    --text-color: #333;
    --error-color: red;
    --background-color: #fff;
}

/* Conteneur principal du formulaire */
.msf-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: inherit;
}

.hidden-force {
    display: none !important;
}


.msf-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}
/*.msf-container > form,.msf-container >.form-step {
    display:flex;
    flex-direction: column;

}*/

.msf-container > form,.msf-container >.form-step {
    display:flex;
    flex-direction: column;
}

/* Titre */
.msf-title {
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Indicateur de progression */
.msf-indicator {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 24px;
}

/* Ligne de progression */
.msf-indicator .form-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: var(--border-color);
    width: 100%;
    left: 0;
    z-index: 10;
}

/* Span pour la barre de progression */
.msf-indicator .form-line span {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    width: 0%; /* Initialiser à 0% */
    background: var(--app-them);
    transition: width 0.3s ease-in-out;
}

/* Étapes */
.msf-indicator .step {
    position: relative;
    z-index: 20;
    width: 40px;
    height: 46px;
    border: 4px solid var(--border-color);
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 40px!important;
    color: var(--text-color);
    transition: 0.3s ease-in-out;
}

/* Étape active */
.msf-indicator .step.active {
    border-color: var(--app-them);
    color: var(--app-them);
}

/* Étape déjà passée */
.msf-indicator .step.completed {
    border-color: var(--app-them);
    background: var(--app-them);
    color: #fff;
}

/* Étapes du formulaire */
.form-step {
    display: none !important;
}

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

/* Champs de formulaire */
.form-group {
    margin-bottom: 18px;
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
}

.error-message {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Boutons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-buttons button {
    padding: 10px 30px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 4px;
}

.form-buttons .prev-btn {
    background: #eee;
}

.form-buttons .next-btn {
    background: var(--app-them);
    color: #fff;
}

/* ✅ Responsive */
@media (max-width: 500px) {
    .msf-container {
        max-width: 100%;
    }

    .msf-indicator .step {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .form-buttons button {
        padding: 10px 20px;
    }
}
