/**
 * Styles pour la modale d'inscription NASID
 */

/* Overlay de la modale */
#nasid-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenu de la modale */
#nasid-modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Bouton de fermeture */
#nasid-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

#nasid-modal-close:hover {
    color: #333;
}

/* Titre de la modale */
#nasid-modal-content h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
}

/* Texte d'introduction */
#nasid-modal-content > p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.5;
}

/* Groupes de champs */
.nasid-form-group {
    margin-bottom: 20px;
}

.nasid-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.nasid-form-row .nasid-form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Labels */
.nasid-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

/* Champs de saisie */
.nasid-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.nasid-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Texte d'aide */
.nasid-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

/* Bouton de soumission */
.nasid-submit-button {
    width: 100%;
    background-color: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.nasid-submit-button:hover {
    background-color: #005a87;
}

/* Messages d'erreur */
.nasid-error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Messages de succès */
.nasid-success-message {
    background-color: #e8f5e8;
    color: #2e7d32;
    padding: 20px;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    text-align: center;
}

.nasid-success-message h3 {
    margin-top: 0;
    color: #2e7d32;
}

/* Texte en bas de la modale */
#nasid-modal-content p:last-of-type {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    #nasid-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .nasid-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .nasid-form-row .nasid-form-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    #nasid-modal-content {
        padding: 15px;
        margin: 10px;
    }
    
    #nasid-modal-content h2 {
        font-size: 20px;
    }
}
