.mvsm-progress-vertical {
    width: 12px; /* Largeur de la barre */
    height: auto; /* Elle s'adaptera à la hauteur du formulaire */
    min-height: 300px;
    display: flex;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 30px;
}

.mvsm-progress-vertical .progress-bar {
    width: 12px; /* On occupe toute la largeur définie */
    transition: height 0.6s ease; /* Animation fluide de la hauteur */
}

form {
    width: 100%;
}

@media (max-width: 768px) {
    .mvsm-form-container {
        flex-direction: column-reverse; /* Repasse en horizontal sur mobile si nécessaire */
    }

    .mvsm-progress-vertical {
        width: 100%;
        height: 8px;
        min-height: auto;
        flex-direction: row;
        margin: 15px 0;
    }

    .mvsm-progress-vertical .progress-bar {
        height: 100% !important;
    }
}

.mvsm-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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


.mvsm-step.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    z-index: 10;
}

.mvsm-step.is-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    margin-left: -16px;
    border: 3px solid #cfd8dc;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: mvsm-spin 0.8s linear infinite;
    z-index: 11;
}

@keyframes mvsm-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


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

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

.is-invalid-group {
    border: 1px solid #dc3545;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(220, 53, 69, 0.05);
}

.mvsm-radio-group .form-check-label {
    cursor: pointer;
}

/* Cacher l'input radio natif mais le garder accessible */
.mvsm-radio-group .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.security-message {
    opacity: 1;
    transition: opacity 0.25s ease;
}


