/**
 * AmelCare Néoliane - Styles Public
 * Styles pour le formulaire de souscription
 */

/* ========================================
   CONTENEUR PRINCIPAL
======================================== */
.neoliane-formulaire-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   STEPPER
======================================== */
.neoliane-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    z-index: 2;
}

.stepper-step.active .step-number {
    background: #0073aa;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.stepper-step.completed .step-number {
    background: #46b450;
    color: white;
}

.stepper-step.completed .step-number::before {
    content: "✓";
}

.step-label {
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.stepper-step.active .step-label {
    color: #0073aa;
    font-weight: 700;
}

.stepper-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin: 0 10px;
    margin-bottom: 30px;
}

/* ========================================
   FORMULAIRES
======================================== */
.neoliane-step {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.neoliane-step h2 {
    color: #0073aa;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0073aa;
}

.neoliane-step h3 {
    color: #333;
    margin: 20px 0 15px;
    font-size: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.form-group input.error {
    border-color: #dc3232;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.required {
    color: #dc3232;
    font-weight: bold;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.date-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ========================================
   CARTES MEMBRES
======================================== */
.neoliane-membre,
.neoliane-membre-details,
.neoliane-bank-details {
    background: #f8f9fa;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.neoliane-membre:hover,
.neoliane-membre-details:hover,
.neoliane-bank-details:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.neoliane-membre h3,
.neoliane-membre-details h3,
.neoliane-bank-details h3 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    font-size: 18px;
}

.remove-membre-btn {
    float: right;
    background: #dc3232;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.remove-membre-btn:hover {
    background: #a00;
    transform: scale(1.05);
}

/* ========================================
   BOUTONS
======================================== */
.button-primary,
.button-secondary,
#add-membre-btn,
#validate-contracts-btn,
#download-prefilled-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.button-primary,
#validate-contracts-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.button-primary:hover,
#validate-contracts-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004668 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}

.button-secondary,
#add-membre-btn,
#download-prefilled-btn {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
}

.button-secondary:hover,
#add-membre-btn:hover,
#download-prefilled-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
    transform: translateY(-2px);
}

#add-membre-btn {
    width: 100%;
    margin-bottom: 20px;
    border-style: dashed;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #e1e4e8;
}

/* ========================================
   DOCUMENTS
======================================== */
.document-item {
    background: white;
    border: 2px solid #e1e4e8;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.document-item:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.document-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.document-concern {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.document-upload-input {
    margin-bottom: 10px;
}

.upload-status {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

.upload-status .success {
    color: #46b450;
}

.upload-status .error {
    color: #dc3232;
}

.upload-status .uploading {
    color: #0073aa;
}

/* ========================================
   LOADER
======================================== */
.amelcare-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease-in;
}

.amelcare-loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.amelcare-loader-overlay p {
    color: white;
    margin-top: 25px;
    font-size: 18px;
    font-weight: 600;
}

/* ========================================
   NOTIFICATIONS
======================================== */
.amelcare-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    min-width: 300px;
    max-width: 500px;
    padding: 20px 50px 20px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99998;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.amelcare-notification.notice-success {
    border-left: 5px solid #46b450;
}

.amelcare-notification.notice-error {
    border-left: 5px solid #dc3232;
}

.amelcare-notification.notice-warning {
    border-left: 5px solid #ffb900;
}

.amelcare-notification p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.close-notification {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-notification:hover {
    color: #333;
    transform: scale(1.1);
}

/* ========================================
   CHECKBOX & RADIO
======================================== */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ========================================
   CHAMPS SPÉCIAUX
======================================== */
.iban-input {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.field-error {
    display: block;
    color: #dc3232;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 600;
}

/* ========================================
   CONFIRMATION
======================================== */
#confirmation-message {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    border-radius: 12px;
    border: 3px solid #46b450;
}

#confirmation-message h2 {
    color: #46b450;
    font-size: 32px;
    margin-bottom: 20px;
}

#confirmation-message p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

#confirmation-message strong {
    color: #0073aa;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .neoliane-formulaire-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .neoliane-stepper {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .stepper-line {
        display: none;
    }
    
    .stepper-step {
        flex: 0 0 calc(25% - 15px);
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .amelcare-notification {
        left: 15px;
        right: 15px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .date-inputs {
        grid-template-columns: 1fr;
    }
}