/* Style de base */

* {
    box-sizing: border-box; /* Global box-sizing for consistent layout */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: url('/images/mhk_2.jpg') no-repeat center center/cover;
    display: flex; /* Utilisation de flexbox pour aligner le contenu */
    flex-direction: column; /* Alignement en colonne */
    min-height: 100vh; /* Assure que le body occupe toute la hauteur de la page */
    color: #2c3e50; /* Improved text color */
    overflow-x: hidden; /* Prevent horizontal scroll on body */
}

/* Styles d'En-tête */
/* Header and navigation styles removed - using component header from components/components.css */

.container {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-container {
    width: 85%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    margin-top: 120px; /* Espace pour la barre d'étapes fixe */
}

.container .steps {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    margin: 0;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 80px;
    position: relative;
    z-index: 2;
}

/* Ligne continue - même logique que l'ancienne version */
.steps .progress-bar {
    position: absolute;
    height: 2px;
    width: 100%;
    background: #f0f0f0;
    z-index: -1; /* Derrière tout, comme dans l'ancienne version */
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Les cercles masquent naturellement la ligne grâce à leur fond blanc (#fff) ou vert (#009E60 pour actif) */
/* Ils sont au-dessus de la ligne (z-index implicite > -1) */

.step-name {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.step-item .circle.active + .step-name,
.step-name.active {
    color: #009E60;
    font-weight: 600;
}

.current-step-display {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    display: none;
}

.current-step-text {
    font-size: 14px;
    font-weight: 600;
    color: #009E60;
    background: rgba(0, 158, 96, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.steps .circle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 35px;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.steps .circle.active {
    border-color: #009E60;
    color: #fff;
    background: #009E60;
    transform: scale(1.1);
    font-weight: bold;
    box-shadow: 0 0 0 3px rgba(0, 158, 96, 0.2);
    animation: pulse-green 2s infinite;
}

/* ========== NAVIGATION INTERACTIVE DES STEP-ITEMS ========== */
/* Effet hover pour les step-items */
.steps .circle.step-hover {
    background-color: rgba(0, 158, 96, 0.1);
    border-color: #009E60;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Effet click temporaire */
.steps .circle.step-clicked {
    background-color: #007A4A;
    transform: scale(0.95);
    transition: all 0.1s ease;
}

/* Curseur et états des step-items */
.step-item {
    transition: opacity 0.2s ease;
}

/* Étapes actives/cliquables */
.step-item:has(.circle.active) {
    cursor: pointer;
}

.step-item:has(.circle.active):hover {
    opacity: 0.8;
}

/* Étapes non activées/non-cliquables */
.step-item:has(.circle:not(.active)),
.step-item.step-disabled {
    cursor: not-allowed !important;
    opacity: 0.6;
}

.step-item:has(.circle:not(.active)):hover,
.step-item.step-disabled:hover {
    opacity: 0.4;
}

.step-item.step-disabled .circle {
    background-color: #e0e0e0 !important;
    border-color: #bdbdbd !important;
    color: #9e9e9e !important;
}

/* Effet de blocage pour les étapes non accessibles */
.steps .circle.step-blocked {
    background-color: #ff6b6b;
    border-color: #ff5252;
    animation: shake 0.5s ease-in-out;
    transform: scale(1.1);
}

/* Animations */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 158, 96, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 158, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 158, 96, 0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0) scale(1.1);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px) scale(1.1);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px) scale(1.1);
    }
}
/* ========== FIN NAVIGATION INTERACTIVE ========== */

/* Indicateur de progression verte (animé par JavaScript) */
.steps .progress-bar .indicator {
    position: absolute;
    height: 100%;
    width: 0%;
    background: #009e60;
    transition: width 0.5s ease-in-out;
    z-index: 1; /* Au-dessus de la ligne grise (z-index: 0) mais derrière les cercles (z-index: 3) */
}

.feedback-message {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.feedback-message.fade-in {
    opacity: 1;
}

/* Form Steps */
.form-step {
    display: none;
}

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

/* Form Groups pour 2 colonnes */
.form-row {
    display: flex;
    gap: min(50px, 5vw); /* Responsive gap - smaller on narrow screens */
    margin-bottom: 15px;
    width: 100%; /* Ensure full width */
}

.form-row .form-group {
    flex: 1; /* Make each form group take equal space */
    min-width: 0; /* Prevent flex items from overflowing */
}

/* Remove the margin-right since we're using gap */
.form-row .form-group:last-child {
    margin-right: 0;
}

/* Style des inputs */
.form-group input,
.form-group select,
.multi-select {
    width: 100%;
    height: 35px; /* Reduced from 45px to match other form elements */
    padding: 6px 12px; /* Adjusted padding */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px; /* Slightly reduced font size */
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

.form-group input.important,
.form-group select.important {
    border-color: #ff6b6b;
    background-color: #fff8f8;
}

.form-group input.well_fill,
.form-group select.well_fill {
    border-color: #009E60;
    background-color: #f0fff4;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #009E60;
    box-shadow: 0 0 0 3px rgba(0, 158, 96, 0.1);
    outline: none;
}

/* Styles pour les boutons radio */
.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    transform: translateY(-1px);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #009E60;
}

.radio-option label {
    margin: 0 !important;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    user-select: none;
}

/* Boutons de navigation */
.next-btn, .prev-btn, .submit-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.next-btn, .submit-btn {
    background: #009E60;
    color: white;
}

.prev-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.next-btn:hover, .submit-btn:hover {
    background: #008050;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 158, 96, 0.15);
}

.prev-btn:hover {
    background: #f1f1f1;
    color: #333;
}

/* Styles pour le footer */

footer {
    background-color: transparent; /* Supprime l'arrière-plan */
    color: #252525; 
    text-align: center;
    padding: 15px 20px; /* Increased padding for better spacing */
    font-size: clamp(12px, 2.5vw, 16px); /* Responsive font size */
    line-height: 1.4; /* Better line height for readability */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; 
    margin-top: auto;
    word-wrap: break-word; /* Handle long text */
    hyphens: auto; /* Allow hyphenation */
}

footer p {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-wrap: break-word; /* Break long words if needed */
}

/* Footer links styling */
footer a {
    color: #009E60;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 8px;
}

footer a:hover {
    color: #007a4a;
    text-decoration: underline;
}

footer a:focus {
    outline: 2px solid #009E60;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Styles pour tablettes et grands mobiles */
@media (min-width: 481px) and (max-width: 768px) {
    .step-name {
        display: block;
        font-size: 11px;
    }

    .current-step-display {
        display: block;
    }

    .form-container {
        margin-bottom: 120px;
    }
}

/* Styles pour petits mobiles */
@media (max-width: 480px) {
    .steps .progress-bar {
        width: calc(100% - 120px);
        left: 60px;
    }

    .current-step-text {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .step-item {
        min-width: 50px;
    }
    
    .steps .circle {
        height: 28px;
        width: 28px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .container .steps {
        position: relative; /* Ne plus fixer en bas sur mobile */
        top: auto;
        bottom: auto;
        border-top: none;
        border-bottom: 1px solid #e0e0e0;
        padding: 10px 15px;
        margin-bottom: 20px;
    }

    .current-step-display {
        display: block;
        order: -1;
    }

    .step-item {
        min-width: 60px;
    }

    .step-name {
        font-size: 10px;
        display: none; /* Masquer les noms sur mobile très petit */
    }

    .steps .circle {
        height: 30px;
        width: 30px;
        font-size: 14px;
    }

    .form-container {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
        margin-top: 40px; /* Moins d'espace en haut sur mobile */
        margin-bottom: 40px; /* Espace normal en bas maintenant que les steps ne sont plus fixes */
    }

    .form-row {
        flex-direction: column;
        gap: 15px; /* Smaller gap on mobile */
    }

    .form-group input,
    .form-group select,
    .multi-select {
        height: 40px; /* Adjusted from 50px for better harmony */
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .form-group select {
        background-position: right 12px center;
    }

    /* Improved navigation buttons on mobile */
    .next-btn, .prev-btn, .submit-btn {
        width: 100%;
        margin: 10px 0;
        padding: 15px;
    }

    /* Header styles removed - using component header from components/components.css */

    /* Steps indicator adjustments */
    .steps .circle {
        height: 40px;
        width: 40px;
        font-size: 16px;
    }

    .progress-bar {
        flex-direction: column;
        align-items: center;
    }

    .progress-step {
        margin-bottom: 10px;
    }

    .form-group input {
        font-size: 16px;
    }

    /* Ajustements pour le formulaire sur petits écrans */
    .form-row {
        flex-direction: column; /* Colonne unique sur petits écrans */
    }

    .form-row .form-group {
        margin-right: 0; /* Réinitialise les marges */
    }
    #alpha_checker{
       
        width:80vw;
        height:60vh;
        bottom:10vh;
        left:10vw;
    }

    /* Email Disclaimer Styles */
    .email-disclaimer {
        background: linear-gradient(135deg, #e8f4f8 0%, #f0f8ff 100%);
        border: 1px solid #b8d4e3;
        border-radius: 8px;
        padding: 12px 16px;
        margin: 15px 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .email-disclaimer small {
        color: #2c5282;
        font-size: 13px;
        line-height: 1.4;
        display: block;
        text-align: center;
    }

    .email-disclaimer strong {
        color: #1a365d;
        font-weight: 600;
    }

    /* Footer responsive improvements for mobile */
    footer {
        padding: 20px 15px; /* More padding on mobile */
        font-size: clamp(14px, 4vw, 18px); /* Larger font on mobile */
    }

    footer p {
        line-height: 1.5; /* Better line spacing on mobile */
    }

    footer a {
        font-size: clamp(16px, 4.5vw, 20px); /* Larger links on mobile */
        padding: 8px; /* More touch area */
        margin: 10px 0; /* More spacing around links */
    }
}

/* Notification Modal Styles - Adapted from Quiz */
.notification-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.notification-modal.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.notification-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.16), 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    min-width: 320px;
    max-width: 400px;
    position: relative;
    border-left: 4px solid #009E60;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    background: #009E60;
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-body h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
}

.notification-body p {
    margin: 0;
    font-size: 0.9rem;
    color: #2c3e50;
    opacity: 0.8;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #2c3e50;
    opacity: 0.5;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.notification-close:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.1);
}

/* Notification Types */
.notification-modal.success .notification-content {
    border-left-color: #009E60;
}

.notification-modal.success .notification-icon {
    background: #009E60;
}

.notification-modal.error .notification-content {
    border-left-color: #dc3545;
}

.notification-modal.error .notification-icon {
    background: #dc3545;
}

.notification-modal.warning .notification-content {
    border-left-color: #ffc107;
}

.notification-modal.warning .notification-icon {
    background: #ffc107;
    color: #2c3e50;
}

.notification-modal.info .notification-content {
    border-left-color: #004080;
}

.notification-modal.info .notification-icon {
    background: #004080;
}

/* Mobile responsive notifications */
@media (max-width: 768px) {
    .notification-modal {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification-modal.show {
        transform: translateY(0);
    }
    
    .notification-content {
        min-width: auto;
        max-width: none;
        padding: 1rem;
    }
    
    .notification-body h4 {
        font-size: 0.9rem;
    }
    
    .notification-body p {
        font-size: 0.8rem;
    }
}

/* Additional UI improvements */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

/* Improved focus states */
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #009E60;
    box-shadow: 0 0 0 2px rgba(0, 158, 96, 0.1);
}

/* Enhanced Select Dropdown */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px !important;
}

/* Dropdown Menu Specific Styles */
select option {
    padding: 12px;
    background: white;
    color: #2c3e50;
}

select option:hover,
select option:focus {
    background-color: #f8f9fa;
    color: #009E60;
}

select option:checked {
    background-color: #e6f7ef;
    color: #009E60;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* Progress Bar Animation */
.steps .progress-bar .indicator {
    position: absolute;
    height: 100%;
    width: 0%;
    background: #009E60;
    transition: width 0.5s ease-in-out;
}

/* Standardized Form Controls */
.form-group input,
.form-group select,
.multi-select {
    width: 100%;
    height: 35px; /* Reduced from 45px to match other form elements */
    padding: 6px 12px; /* Adjusted padding */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px; /* Slightly reduced font size */
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
}

/* Enhanced Select Styling with Icons */
.form-group select:not(.language-select) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
    cursor: pointer;
}

/* Language Select Specific Styling */
.language-select {
    height: 45px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    background-color: white !important;
}

.language-select:focus {
    border-color: #009E60 !important;
    box-shadow: 0 0 0 3px rgba(0, 158, 96, 0.1) !important;
    outline: none !important;
}

/* Standardize Select Options */
select option {
    padding: 12px;
    font-size: 14px;
    background: white;
    color: #333;
}

/* Hover and Focus States */
.form-group input:hover,
.form-group select:hover {
    border-color: #009E60;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #009E60;
    box-shadow: 0 0 0 3px rgba(0, 158, 96, 0.1);
    outline: none;
}

/* Validation States */
.form-group input.important,
.form-group select.important {
    border-color: #ff6b6b;
    background-color: #fff8f8;
}

.form-group input.well_fill,
.form-group select.well_fill {
    border-color: #009E60;
    background-color: #f0fff4;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .multi-select {
        height: 40px; /* Adjusted from 50px for better harmony */
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .form-group select {
        background-position: right 12px center;
    }
}

/* Select List Dropdown Animation */
.form-group select:focus option {
    animation: selectFadeIn 0.2s ease;
}

@keyframes selectFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Steps Animation */
.steps .circle {
    transition: all 0.3s ease-in-out;
}

.steps .circle.active {
    animation: scaleUp 0.3s ease-in-out;
}

@keyframes scaleUp {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.1);
    }
}




.form-step.step3 {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
}

.form-step.step3 h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.form-group.step3 {
    margin-bottom: 20px;
}

.form-group.step3 label {
    font-weight: bold;
    color: #555;
}

.form-group.step3 p {
    color: #666;
}

#experience-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed; /* Prevent table from expanding beyond container */
}

.table-container {
    width: 100%;
    overflow-x: auto; /* Allow horizontal scroll when needed */
    margin: 10px 0;
}

#experience-table thead {
    background-color: #007bff;
    color: #fff;
}

#experience-table th, #experience-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

#experience-table th {
    font-size: 16px;
}

#experience-table td {
    font-size: 14px;
}

#experience-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

#experience-table tr:hover {
    background-color: #f1f1f1;
}

/* Styles pour checkboxes personnalisées */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #27ae60;
    border-radius: 4px;
    background-color: #ffffff;
    margin-right: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
}

input[type="checkbox"]:hover {
    border-color: #2ecc71;
    background-color: #f8fff9;
    transform: scale(1.05);
}

input[type="checkbox"]:checked {
    background-color: #27ae60;
    border-color: #27ae60;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

/* Style spécial pour les checkboxes WhatsApp */
.form-group-grouped-mini input[type="checkbox"] {
    border-color: #25D366;
}

.form-group-grouped-mini input[type="checkbox"]:hover {
    border-color: #128C7E;
    background-color: #f0fffe;
}

.form-group-grouped-mini input[type="checkbox"]:checked {
    background-color: #25D366;
    border-color: #25D366;
}

/* Amélioration du style des labels associés aux checkboxes */
.form-group label[for] {
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.form-group label[for]:hover {
    color: #27ae60;
}

/* Style pour les labels dans la section WhatsApp */
.form-group-grouped-mini label[for] {
    font-size: 14px;
    color: #128C7E;
}

.form-group-grouped-mini label[for]:hover {
    color: #25D366;
}

/* Styles pour les checkboxes dans les tableaux */
table td input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 auto;
    display: block;
}

table td input[type="checkbox"]:checked {
    background-color: #3498db;
    border-color: #3498db;
}

table td input[type="checkbox"]:hover {
    border-color: #5dade2;
    background-color: #ebf3fd;
}

#country_block.form-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

 #country.form-group input {
    width: 50%;
}
#country_block.form-group select {
    width: 36%;
}

/* Styles pour les radio boutons WhatsApp animés */
.whatsapp-config {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
    text-align: center;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.radio-item {
    position: relative;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-item label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    color: #374151;
}

.radio-item label:hover {
    border-color: #22c55e;
    transform: translateY(-2px);
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.radio-text {
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* États actifs */
.radio-item input[type="radio"]:checked + label {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #15803d;
}

.radio-item input[type="radio"]:checked + label .radio-custom {
    border-color: #22c55e;
    background: #f0fdf4;
}

.radio-item input[type="radio"]:checked + label .radio-custom::before {
    transform: translate(-50%, -50%) scale(1);
}

.radio-item input[type="radio"]:checked + label .radio-text {
    color: #15803d;
    font-weight: 600;
}

/* Styles pour les boutons radio Oui/Non */
.question-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.radio-group-yn {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.radio-item-yn {
    position: relative;
}

.radio-item-yn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-item-yn label {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    color: #374151;
    min-width: 80px;
    justify-content: center;
}

.radio-item-yn label:hover {
    border-color: #22c55e;
    transform: translateY(-1px);
}

.radio-custom-yn {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-custom-yn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.radio-text-yn {
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* États actifs pour Oui/Non */
.radio-item-yn input[type="radio"]:checked + label {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #15803d;
}

.radio-item-yn input[type="radio"]:checked + label .radio-custom-yn {
    border-color: #22c55e;
    background: #f0fdf4;
}

.radio-item-yn input[type="radio"]:checked + label .radio-custom-yn::before {
    transform: translate(-50%, -50%) scale(1);
}

.radio-item-yn input[type="radio"]:checked + label .radio-text-yn {
    color: #15803d;
    font-weight: 600;
}



/* Responsive simple - gestion des espaces */
@media (max-width: 768px) {
    .whatsapp-config {
        margin: 15px 0;
        padding: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .radio-item {
        width: 100%;
    }
    
    .radio-group-yn {
        gap: 12px;
        justify-content: center;
    }
    
    .radio-item-yn label {
        padding: 10px 16px;
        min-width: 70px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .whatsapp-config {
        margin: 10px 0;
        padding: 10px;
    }
    
    .radio-group {
        gap: 10px;
    }
    
    .radio-group-yn {
        gap: 10px;
    }
    
    .radio-item-yn label {
        padding: 8px 12px;
        min-width: 60px;
        font-size: 13px;
    }
    
    .radio-custom-yn {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
    
    .radio-custom-yn::before {
        width: 6px;
        height: 6px;
    }
    
    .question-label {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .form-container {
        padding: 10px;
    }
    
    .form-row {
        gap: 12px;
    }
}

/* Styles pour les messages de validation des uploads */
.upload-validation-error {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    color: #c53030;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-validation-error i {
    color: #e53e3e;
}

.upload-validation-success {
    background-color: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    color: #22543d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-validation-success i {
    color: #38a169;
}

/* Styles spécifiques pour la validation de la photo de profil */
.profile-image-requirements {
    background-color: #ebf4ff;
    border: 1px solid #bee3f8;
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
    font-size: 13px;
    color: #2c5282;
}

.profile-image-requirements h4 {
    margin: 0 0 10px 0;
    color: #2a69ac;
    font-size: 14px;
    font-weight: 600;
}

.profile-image-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.profile-image-requirements li {
    margin: 5px 0;
}

/* Amélioration des notifications */
.notification-modal.validation-error .notification-content {
    border-left: 4px solid #f56565;
}

.notification-modal.validation-success .notification-content {
    border-left: 4px solid #48bb78;
}

/* ===== STYLES POUR LE BOUTON DE GÉOLOCALISATION ===== */
.geo-detect-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    margin: 10px 0;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: 2px solid #45a049;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.geo-detect-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.geo-detect-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.geo-detect-btn:focus {
    outline: 3px solid rgba(76, 175, 80, 0.5);
    outline-offset: 2px;
}

/* Icône du bouton */
.geo-detect-btn .fas {
    font-size: 18px;
    margin-bottom: 4px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Texte principal */
.geo-detect-btn .btn-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Sous-titre explicatif */
.geo-detect-btn .btn-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.9;
    color: #e8f5e8;
    margin-top: 2px;
    line-height: 1.1;
}

/* État de chargement amélioré */
.geo-detect-btn.loading {
    pointer-events: none;
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
    border-color: #ff9800;
    position: relative;
    overflow: hidden;
}

.geo-detect-btn.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: geoShimmer 2s infinite;
}

.geo-detect-btn.loading .fas {
    animation: geoSpin 1s linear infinite;
}

/* Animation de scintillement pour l'état de chargement */
@keyframes geoShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Animation de rotation pour l'état de chargement */
@keyframes geoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* État de chargement avec progression */
.geo-detect-btn.loading.precision-mode {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    border-color: #1e88e5;
}

.geo-detect-btn.loading.precision-mode .btn-text::after {
    content: '';
    animation: geoLoadingDots 1.5s infinite;
}

@keyframes geoLoadingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* État de succès */
.geo-detect-btn.success {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    border-color: #4caf50;
}

.geo-detect-btn.success .fas {
    color: #fff;
}

/* État d'erreur */
.geo-detect-btn.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border-color: #d32f2f;
    animation: geoShake 0.5s ease-in-out;
}

@keyframes geoShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Effet de pulsation pour attirer l'attention */
.geo-detect-btn.pulse {
    animation: geoPulse 2s infinite;
}

@keyframes geoPulse {
    0% { box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6); }
    100% { box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3); }
}

/* Styles responsives pour mobile */
@media (max-width: 768px) {
    .geo-detect-btn {
        min-width: 160px;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .geo-detect-btn .fas {
        font-size: 16px;
    }
    
    .geo-detect-btn .btn-text {
        font-size: 13px;
    }
    
    .geo-detect-btn .btn-subtitle {
        font-size: 10px;
    }
}

/* Accessibilité pour les lecteurs d'écran */
.geo-detect-btn[aria-pressed="true"] {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-color: #1976D2;
}

/* Support pour les utilisateurs qui préfèrent moins d'animations */
@media (prefers-reduced-motion: reduce) {
    .geo-detect-btn {
        transition: none;
    }
    
    .geo-detect-btn:hover {
        transform: none;
    }
    
    .geo-detect-btn.loading .fas {
        animation: none;
    }
    
    .geo-detect-btn.pulse {
        animation: none;
    }
}

/* Bouton de déverrouillage des champs auto-remplis */
.unlock-location-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    border: 2px solid #e55a2b;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(229, 90, 43, 0.2);
    text-decoration: none;
    flex-direction: column;
    min-width: 120px;
    text-align: center;
}

.unlock-location-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #cc4e24 100%);
    border-color: #cc4e24;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(229, 90, 43, 0.3);
}

.unlock-location-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(229, 90, 43, 0.2);
}

.unlock-location-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.unlock-location-btn .fas {
    font-size: 16px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.unlock-location-btn .btn-text {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.unlock-location-btn .btn-subtitle {
    display: block;
    font-size: 10px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

.unlock-location-btn:hover .fas {
    transform: scale(1.1);
}

/* Styles pour les champs auto-remplis */
input[data-auto-filled="true"], select[data-auto-filled="true"] {
    background-color: #e8f5e8 !important;
    border-color: #28a745 !important;
    position: relative;
}

input[data-auto-filled="true"]:after, select[data-auto-filled="true"]:after {
    content: "🔒";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

/* Responsive design pour les boutons */
@media (max-width: 768px) {
    .unlock-location-btn {
        min-width: 100px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .unlock-location-btn .fas {
        font-size: 14px;
    }
    
    .unlock-location-btn .btn-text {
        font-size: 11px;
    }
    
    .unlock-location-btn .btn-subtitle {
        font-size: 9px;
    }
}

/* Classes pour la gestion des erreurs de champs */
.field-error, .error-field {
    border: 2px solid #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    animation: errorShake 0.5s ease-in-out;
}

.field-error:focus, .error-field:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5) !important;
}

/* Styles spécifiques pour les groupes radio et checkbox en erreur */
.radio-item.error-field, .radio-item-yn.error-field, .radio-option.error-field {
    border: 2px solid #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05) !important;
    border-radius: 8px;
    padding: 8px;
    margin: 2px 0;
}

/* Style pour les labels des champs en erreur */
.error-field + label, 
.form-group:has(.error-field) > label {
    color: #dc3545 !important;
    font-weight: bold;
}

/* Animation de secousse pour attirer l'attention */
@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Réduction d'animation pour les utilisateurs qui préfèrent moins d'animations */
@media (prefers-reduced-motion: reduce) {
    .field-error {
        animation: none;
    }
}
