/* Modal Styles - Simple */
.fnccr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.fnccr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.fnccr-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.fnccr-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fnccr-modal-close:hover {
    color: #000;
}

.fnccr-modal-header {
    padding: 25px 25px 15px 25px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.fnccr-modal-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #0A17A6;
}

.fnccr-resource-name {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
    font-style: italic;
}

.fnccr-modal-body {
    padding: 25px;
    background: white;
}

/* Form Styles - ACTEE Theme */
.fnccr-form-group {
    margin-bottom: 24px;
}

.fnccr-form-row {
    display: flex;
    gap: 20px;
}

.fnccr-form-row .fnccr-form-group {
    flex: 1;
}

.fnccr-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0A17A6;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.fnccr-form-group input[type="text"],
.fnccr-form-group input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: white;
    font-family: inherit;
}

.fnccr-form-group input[type="text"]:focus,
.fnccr-form-group input[type="email"]:focus {
    outline: none;
    border-color: #0A17A6;
}

.fnccr-form-group input.fnccr-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.fnccr-required::after {
    content: " *";
    color: #FF6536;
    font-weight: 700;
}

/* Checkbox Styles - ACTEE Design */
.fnccr-checkbox-group {
    margin-bottom: 12px;
}

.fnccr-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal !important;
    line-height: 1.5;
    padding: 0;
    background: none;
    border: none;
    transition: none;
}

.fnccr-checkbox-label:hover {
    background: none;
    border-color: transparent;
}

.fnccr-checkbox-label input[type="checkbox"] {
    height: 16px;
    width: 16px;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    accent-color: #0A17A6;
    cursor: pointer;
    margin-right: 0;
    margin-top: 0;
    flex-shrink: 0;
}

.fnccr-checkbox-label input[type="checkbox"]:focus {
    ring: transparent;
    outline: none;
}

.fnccr-checkbox-text {
    margin-left: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    user-select: none;
    font-weight: 500;
}

.fnccr-checkbox-label input[type="checkbox"].fnccr-error {
    outline: 2px solid #EF4444;
    outline-offset: 2px;
}

/* Messages - Simple */
.fnccr-success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid #10b981;
}

.fnccr-error-message {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid #ef4444;
}

.fnccr-field-error {
    color: #EF4444;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
    padding-left: 4px;
}

/* Actions - Simple comme sur le site */
.fnccr-form-actions {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.fnccr-submit-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #0A17A6;
    color: white;
    transition: background-color 0.3s ease;
}

.fnccr-submit-btn:hover {
    background: #ff5400;
}

.fnccr-submit-btn span {
    position: relative;
    z-index: 1;
}

.fnccr-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #9CA3AF;
    transform: none;
    box-shadow: none;
}

.fnccr-submit-btn:disabled:hover {
    background: #9CA3AF;
}

.fnccr-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fnccr-loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .fnccr-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .fnccr-modal-header,
    .fnccr-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .fnccr-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .fnccr-form-row .fnccr-form-group {
        margin-bottom: 15px;
    }
    
    .fnccr-modal-header h3 {
        font-size: 20px;
    }
    
    .fnccr-submit-btn {
        width: 100%;
    }
}

/* Integration avec le thème existant - ACTEE Colors */
.fnccr-modal .bg-nbleu {
    background-color: #0A17A6;
}

.fnccr-modal .hover\:bg-norange:hover {
    background-color: #ff5400;
}

.fnccr-modal .text-white {
    color: white;
}

/* ACTEE Brand Colors */
:root {
    --nbleu: #0A17A6;
    --norange: #ff5400;
    --nlila: #d1bffc;
    --ncyan: #0dcccc;
    --violet: #271932;
    --violet2: #480082;
    --violet3: #f2e1ff;
    --mauve: #810082;
    --mauve2: #f7d7f8;
    --jaune: #ffe600;
    --bleu: #32b9c8;
    --beige: #f2edea;
    --gris: #f2f2f2;
    --noir: #1f1f1f;
    --noir2: #5A5245;
}

/* Améliorer la lisibilité sur mobile */
@media (max-width: 480px) {
    .fnccr-modal-content {
        border-radius: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
    }
    
    .fnccr-modal-header,
    .fnccr-modal-body {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .fnccr-checkbox-text {
        font-size: 13px;
    }
}