@import url('https://fonts.googleapis.com/css?family=Roboto');

/* Reset et base */
* {
    margin: 0;
    padding: 0;
}

i {
    margin-right: 10px;
}

/* Focus states */
input:focus,
button:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control:disabled, 
.form-control[readonly] {
    background-color: #fff;
}

/* Utilitaires Bootstrap 5 compatibles */
.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

/* Container principal */
.signup-step-container {
    padding: 100px 0px 60px;
}

/* ===== WIZARD BOOTSTRAP 5 COMPATIBLE ===== */

.wizard {
    position: relative;
}

.wizard .wizard-inner {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

/* Ligne de connexion */
.connecting-line {
    height: 2px;
    background: #e0e0e0;
    position: absolute;
    width: 75%;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Navigation Bootstrap 5 */
.wizard .nav-tabs {
    position: relative;
    margin-bottom: 0;
    border-bottom: none;
    background: transparent;
    justify-content: center;
}

.wizard .nav-item {
    flex: 1;
    max-width: 200px;
    position: relative;
    z-index: 2;
}

.wizard .nav-link {
    background: transparent;
    border: none;
    color: #6c757d;
    text-align: center;
    padding: 0;
    margin: 20px auto;
    width: auto;
    position: relative;
    transition: all 0.3s ease;
}

.wizard .nav-link:hover {
    background: transparent;
    border: none;
    color: #495057;
}

.wizard .nav-link.active {
    background: transparent;
    border: none;
    color: #ED1C24;
    font-weight: 600;
}

.wizard .nav-link.disabled {
    color: #6c757d;
    pointer-events: none;
    cursor: default;
}

/* Round tabs Bootstrap 5 */
.wizard .round-tab {
    width: 40px;
    height: 40px;
    line-height: 40px;
    display: inline-block;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #6c757d;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.wizard .nav-link.active .round-tab {
    background: #ED1C24;
    color: #fff;
    border-color: #ED1C24;
    transform: scale(1.1);
}

.wizard .nav-link:hover .round-tab {
    border-color: #adb5bd;
    transform: scale(1.05);
}

.wizard .nav-link.disabled .round-tab {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

/* Étapes */
.wizard .nav-link i {
    display: block;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    margin-top: 5px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.wizard .nav-link.active i {
    color: #ED1C24;
}

/* Contenu des onglets */
.wizard .tab-content {
    position: relative;
    padding-top: 30px;
}

.wizard .tab-pane {
    position: relative;
    padding: 20px 0;
}

/* Boutons */
.prev-step,
.next-step {
    font-size: 14px;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    margin-top: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: none;
}

.next-step {
    background-color: #ED1C24;
    color: white;
}

.next-step:hover {
    background-color: #d1161f;
    transform: translateY(-1px);
}

.prev-step {
    background-color: #6c757d;
    color: white;
}

.prev-step:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.skip-btn {
    background-color: #ffc107;
    color: #000;
}

.skip-btn:hover {
    background-color: #e0a800;
}

/* Headers */
.step-head {
    font-size: 24px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
    color: #495057;
}

/* Terms */
.term-check {
    font-size: 14px;
    font-weight: 400;
}

/* Validation des champs */
.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Custom file upload */
.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 40px;
    margin-bottom: 0;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 40px;
    margin: 0;
    opacity: 0;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 40px;
    padding: 0.375rem 0.75rem;
    font-weight: 400;
    line-height: 2;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.custom-file-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: 38px;
    padding: 0.375rem 0.75rem;
    line-height: 2;
    color: #495057;
    content: "Browse";
    background-color: #e9ecef;
    border-left: inherit;
    border-radius: 0 0.375rem 0.375rem 0;
}

/* Utilitaires */
.list-inline li {
    display: inline-block;
    margin-right: 10px;
}

.pull-right {
    float: right;
}

.text-end {
    text-align: right;
}

/* Form improvements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

/* Alert customizations */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Card improvements pour les formulaires */
.card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

/* Form check customizations */
.form-check-custom {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    cursor: pointer;
}

.form-check-custom:hover {
    background: #e9f5ff;
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-check-custom input:checked + label {
    font-weight: 600;
    color: #0d6efd;
}

/* Indicateur d'étape active amélioré */
.nav-tabs .nav-link.active .round-tab {
    background: #ED1C24 !important;
    color: #fff !important;
    border-color: #ED1C24 !important;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(237, 28, 36, 0.3);
}

/* Animation des transitions */
.tab-pane {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.show.active {
    opacity: 1;
}

/* Amélioration des messages d'erreur */
/* .invalid-feedback {
    display: block !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #dc3545;
} */

/* Progress indicator pour les étapes */
.wizard .connecting-line {
    background: linear-gradient(to right, #ED1C24 0%, #ED1C24 25%, #e0e0e0 25%, #e0e0e0 100%);
    transition: background 0.3s ease;
}

.wizard[data-step="2"] .connecting-line {
    background: linear-gradient(to right, #ED1C24 0%, #ED1C24 50%, #e0e0e0 50%, #e0e0e0 100%);
}

.wizard[data-step="3"] .connecting-line {
    background: linear-gradient(to right, #ED1C24 0%, #ED1C24 75%, #e0e0e0 75%, #e0e0e0 100%);
}

.wizard[data-step="4"] .connecting-line {
    background: linear-gradient(to right, #ED1C24 0%, #ED1C24 100%);
}
/* Fix pour l'indicateur d'étape active */
.nav-tabs .nav-link.active .round-tab {
    background: #ED1C24 !important;
    color: #fff !important;
    border-color: #ED1C24 !important;
    transform: scale(1.1);
}

/* Fix pour les champs requis */
.invalid-feedback {
    display: block !important;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .wizard .nav-item {
        max-width: 150px;
    }
    
    .wizard .round-tab {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }
    
    .wizard .nav-link i {
        font-size: 10px;
    }
    
    .connecting-line {
        width: 60%;
    }
    
    .signup-step-container {
        padding: 50px 0px 30px;
    }
    
    .step-head {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .wizard .nav-link i {
        display: none;
    }
    
    .wizard .round-tab {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 12px;
    }
    
    .connecting-line {
        width: 50%;
    }
}