.multistep-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 4xl;
    margin: 0 auto;
}

.multistep-content {
    padding: 2rem;
    min-height: 400px;
}

.form-step {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

.form-step.active {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

.form-step.hidden {
    display: none;
}

.multistep-navigation {
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
}

.form-step .form-group {
    margin-bottom: 1.5rem;
}

.form-step label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-step input,
.form-step select,
.form-step textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-step input:focus,
.form-step select:focus,
.form-step textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-step .field-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.form-step .error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Classe spécifique pour les erreurs de validation - FORCE la bordure rouge */
.field-has-error {
    border-color: #ef4444 !important;
    border-width: 2px !important;
    border-style: solid !important;
}

.field-has-error:focus {
    border-color: #ef4444 !important;
    ring-color: #ef4444 !important;
}


.form-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.form-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-section-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.form-section-icon i {
    color: white;
    font-size: 1rem;
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-grid-2 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .form-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-grid-3 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .form-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .form-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

.form-step.animate-in-right {
    animation: slideInRight 0.3s ease-out;
}

.form-step.animate-in-left {
    animation: slideInLeft 0.3s ease-out;
}

@media (max-width: 768px) {
    .multistep-content {
        padding: 1rem;
    }

    .multistep-navigation {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .multistep-navigation .btn {
        width: 100%;
    }

    .form-section {
        padding: 1rem;
    }
}