/**
 * TestBank Niveau 2 - Styles CSS
 * Styles pour le formulaire de candidature niveau 2
 *
 * @package PIGI_Conseils
 * @since 1.0.0
 */

/* ============================================
   Niveau 2 Hero Section
============================================ */
.testbank-niveau2-section .niveau2-intro {
    position: relative;
    overflow: hidden;
}

.testbank-niveau2-section .niveau2-intro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ============================================
   Formulaire Niveau 2
============================================ */
.testbank-niveau2-form .form-group {
    margin-bottom: 25px;
}

.testbank-niveau2-form .form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.testbank-niveau2-form .form-control {
    width: 100%;
    font-size: 15px;
    color: #374151;
    transition: all 0.3s ease;
}

.testbank-niveau2-form .form-control:focus {
    outline: none;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.testbank-niveau2-form .text-danger {
    color: #dc2626;
}

/* ============================================
   Upload CV Styles
============================================ */
.cv-upload-wrapper {
    position: relative;
}

.cv-upload-wrapper input[type="file"] {
    cursor: pointer;
}

.cv-upload-wrapper input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.cv-upload-wrapper input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

#cv-filename {
    padding: 8px 0;
}

#cv-filename i {
    margin-right: 8px;
}

/* ============================================
   Checkbox Personnalisé
============================================ */
.custom-control {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.custom-control-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-control-label {
    cursor: pointer;
    user-select: none;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.custom-control-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background: #3b82f6;
    border-color: #3b82f6;
}

.custom-control-label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    width: 8px;
    height: 14px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-control-input:checked ~ .custom-control-label::after {
    opacity: 1;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ============================================
   Bouton Submit
============================================ */
.theme-btn.btn-style-one:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(30, 58, 138, 0.4);
}

.theme-btn.btn-style-one:active {
    transform: translateY(-1px);
}

.theme-btn.btn-style-one i {
    margin-left: 10px;
}

/* ============================================
   Alerts
============================================ */
.alert {
    animation: slideDown 0.3s ease;
}

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

.alert-danger h4 {
    font-size: 18px;
    font-weight: 700;
}

.alert-danger ul {
    line-height: 1.8;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 768px) {
    .testbank-niveau2-section {
        padding: 50px 0 !important;
    }

    .niveau2-intro {
        padding: 30px 20px !important;
    }

    .niveau2-intro h2 {
        font-size: 24px !important;
    }

    .niveau2-intro p {
        font-size: 15px !important;
    }

    .testbank-niveau2-form-container {
        padding: 30px 20px !important;
    }

    .testbank-niveau2-form-container h3 {
        font-size: 20px !important;
    }

    .theme-btn.btn-style-one {
        padding: 15px 40px !important;
        font-size: 15px !important;
    }
}

/* ============================================
   Focus States & Accessibility
============================================ */
.form-control:focus,
.custom-control-input:focus ~ .custom-control-label::before,
.theme-btn:focus {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

/* ============================================
   Loading State
============================================ */
.theme-btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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