/* Reset des styles */
.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefit-item i {
    color: #198754;
    font-size: 1.2rem;
}

.benefit-item span {
    color: #000;
}

/* Styles pour le formulaire de devis */
/* Styles pour le formulaire de devis */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 0.85rem;
    text-align: center;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.step.active .step-title {
    color: #0d6efd;
    font-weight: bold;
}

.step.completed .step-number {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.step.completed .step-title {
    color: #198754;
}

/* Animation des questions */
.step-content {
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

.step-content.active {
    display: block;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timer-container {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.timer-container i {
    color: #000000;
    margin-right: 0.5rem;
}

.progress {
    height: 8px;
    margin-bottom: 2rem;
}

.form-check {
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.form-check:hover {
    transform: translateX(5px);
}

.accident-type, .violations-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.alert i {
    color: #0dcaf0;
}

/* Animations des champs conditionnels */
.accidents-details,
.violations-details,
.termination-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accidents-details.show,
.violations-details.show,
.termination-details.show {
    max-height: 500px;
}

/* Animation des boutons */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:active {
    transform: translateY(0);
}

/* Animation des selects */
.form-select {
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Animations pour les questions */
.form-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    transform: translateY(-20px);
    font-size: 0.9rem;
    color: #0d6efd;
}

.form-check {
    transform: scale(1);
    transition: transform 0.2s ease;
}

.form-check:hover {
    transform: scale(1.02);
}

.form-check-input:checked + .form-check-label {
    color: #0d6efd;
    font-weight: 500;
}

/* Style pour les select */
.form-select {
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:hover {
    border-color: #0d6efd;
}

.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Animation pour les champs conditionnels */
.accidents-details,
.violations-details,
.termination-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.accidents-details:not(.d-none),
.violations-details:not(.d-none),
.termination-details:not(.d-none) {
    max-height: 500px;
}

/* Style pour les boutons */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

/* Style pour la progression */
.progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Animation pour les messages de validation */
.invalid-feedback {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.invalid-feedback.show {
    transform: translateY(0);
    opacity: 1;
}

/* Style pour les étapes */
.steps-indicator {
    margin-bottom: 3rem;
}

.step {
    transform: scale(1);
    transition: all 0.3s ease;
}

.step:hover {
    transform: scale(1.05);
}

.step.active .step-number {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Style pour le timer */
.timer-container {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .steps-indicator {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .step {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .steps-indicator::before {
        display: none;
    }
}

.question-item {
    position: relative;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease-in-out;
}

.question-item.active {
    opacity: 1;
    transform: translateY(0);
}

.question-item:not(.active) {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.progress {
    height: 8px;
    margin-bottom: 30px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background-color: #0d6efd;
    transition: width 0.5s ease-in-out;
}

.form-check {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.form-check:hover {
    background-color: #f8f9fa;
}

.form-check-input:checked + .form-check-label {
    color: #0d6efd;
    font-weight: 500;
}

.success-message {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animations pour les questions */
.form-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 1rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
    transform: translateY(-20px);
    font-size: 0.9rem;
    color: #0d6efd;
}

.form-check {
    transform: scale(1);
    transition: transform 0.2s ease;
}

.form-check:hover {
    transform: scale(1.02);
}

.form-check-input:checked + .form-check-label {
    color: #0d6efd;
    font-weight: 500;
}

/* Style pour les select */
.form-select {
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:hover {
    border-color: #0d6efd;
}

.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* Animation pour les champs conditionnels */
.accidents-details,
.violations-details,
.termination-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.accidents-details:not(.d-none),
.violations-details:not(.d-none),
.termination-details:not(.d-none) {
    max-height: 500px;
}

/* Style pour les boutons */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

/* Style pour la progression */
.progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Animation pour les messages de validation */
.invalid-feedback {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.invalid-feedback.show {
    transform: translateY(0);
    opacity: 1;
}

/* Style pour les étapes */
.steps-indicator {
    margin-bottom: 3rem;
}

.step {
    transform: scale(1);
    transition: all 0.3s ease;
}

.step:hover {
    transform: scale(1.05);
}

.step.active .step-number {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Style pour le timer */
.timer-container {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Styles spécifiques pour les icônes de la section parrainage uniquement */
.referral-steps .step i {
    font-size: 2rem;
    color: #000;
    margin-bottom: 1rem;
}

/* Style spécifique pour l'icône de la modal parrainage */
.modal-body i.fa-user-tie {
    background: #000;
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Style spécifique pour l'icône du téléphone dans la modal */
.modal-body .btn i.fa-phone {
    font-size: 1.1rem;
}

/* Style spécifique pour les icônes des avantages en haut */
.benefit-item i {
    color: #000;
}

.modal-body i.fa-user-tie {
    font-size: 2.5rem;
    background: #000;
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Supprimer les styles qui interfèrent */
.referral-card,
.referral-steps,
.step,
.feature-list,
.benefit-item {
    all: unset;
}

/* Style du formulaire */
.modal-content {
    background: #ffffff;
}

.modal-body {
    padding: 2rem;
}

/* Style des groupes de radio */
.radio-group {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-label {
    color: #000000;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Style des boutons */
.btn {
    background-color: #000000;
    border-color: #000000;
}

.btn:hover {
    background-color: #333333;
    border-color: #333333;
}

/* Style des icônes */
.contact-info i {
    font-size: 2rem !important;
}

.feature-item i {
    font-size: 2.5rem !important;
    margin-bottom: 1rem;
}

/* Boutons */
.btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.btn-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
}

/* Ajuster le style de l'icône dans la modal */
.modal-body i.fa-user-tie {
    background: inherit;
    color: inherit;
    width: inherit;
    height: inherit;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-body .btn i {
    font-size: inherit;
}

/* Styles spécifiques pour les icônes de la section parrainage uniquement */
.referral-steps .step i {
    font-size: 2rem;
    color: #000;
    margin-bottom: 1rem;
}

/* Style spécifique pour l'icône de la modal parrainage */
.modal-body i.fa-user-tie {
    background: #000;
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Style spécifique pour l'icône du téléphone dans la modal */
.modal-body .btn i.fa-phone {
    font-size: 1.1rem;
}

/* Style spécifique pour les icônes des avantages en haut */
.benefit-item i {
    color: #000;
}

.modal-body i.fa-user-tie {
    font-size: 2.5rem;
    background: #000;
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Style pour le label principal */
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
    font-size: 1rem;
}

/* Style pour le message d'erreur */
.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Groupe de boutons radio */
.radio-group {
    margin-bottom: 2rem;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Styles pour la modal */
.modal-content {
    background-color: #f8f9fa !important;
}

.modal-body {
    background-color: #f8f9fa !important;
}

/* Style de la modal */
.modal-content {
    background: #f8f9fa;
    border: none;
    border-radius: 15px;
}

.modal-body {
    padding: 2rem;
}

/* Groupe de boutons radio */
.radio-group {
    margin-bottom: 2rem;
}

.radio-group .form-label {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Style des boutons radio comme des cartes */
.radio-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-check {
    flex: 1;
    min-width: 150px;
    margin: 0;
    padding: 0;
    border: none;
}

.form-check-input {
    display: none;
}

.form-check-label {
    display: block;
    padding: 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    font-weight: 500;
}

.form-check-input:checked + .form-check-label {
    background: #000000;
    border-color: #000000;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-check-label:hover {
    border-color: #000000;
    transform: translateY(-2px);
}

/* Message d'erreur */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Animation pour les transitions */
.form-check-label {
    position: relative;
    overflow: hidden;
}

.form-check-label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.form-check-label:hover::before {
    width: 200%;
    height: 200%;
}
