/**
 * Nexus-Asso - Styles Formulaire d'adhésion
 * @since 1.0.0
 */

/* Container principal */
.nexus-asso-adhesion-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* En-tête du formulaire */
.nexus-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
}

.nexus-form-header h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.nexus-form-header p {
    margin: 0;
    color: #666;
}

/* Messages */
.nexus-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.nexus-message.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.nexus-message.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.nexus-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #ddd;
}

.nexus-notice-info {
    background: #e7f3ff;
    border-color: #2271b1;
}

/* Sections du formulaire */
.nexus-form-section {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nexus-form-section h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
    color: #2271b1;
    font-size: 18px;
}

.nexus-form-notice {
    background: #f0f6fc;
    padding: 10px 15px;
    border-left: 3px solid #2271b1;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Choix du type d'adhésion */
.nexus-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.nexus-radio-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.nexus-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.nexus-radio-card .radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    text-align: center;
}

.nexus-radio-card .radio-card-content .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    color: #666;
}

.nexus-radio-card .radio-card-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.nexus-radio-card .radio-card-content small {
    color: #666;
    font-size: 12px;
}

.nexus-radio-card input[type="radio"]:checked + .radio-card-content {
    border-color: #2271b1;
    background: #f0f6fc;
}

.nexus-radio-card input[type="radio"]:checked + .radio-card-content .dashicons {
    color: #2271b1;
}

.nexus-radio-card:hover .radio-card-content {
    border-color: #2271b1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.nexus-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.nexus-form-col {
    display: flex;
    flex-direction: column;
}

/* Labels */
.nexus-form-group label,
.nexus-form-col label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #dc3545;
}

.nexus-field-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Champs de formulaire */
.nexus-form input[type="text"],
.nexus-form input[type="email"],
.nexus-form input[type="tel"],
.nexus-form input[type="date"],
.nexus-form select,
.nexus-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.nexus-form input[type="text"]:focus,
.nexus-form input[type="email"]:focus,
.nexus-form input[type="tel"]:focus,
.nexus-form input[type="date"]:focus,
.nexus-form select:focus,
.nexus-form textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.nexus-form input[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

.nexus-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Membres de famille */
.membre-famille-item {
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    position: relative;
}

.membre-famille-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.membre-famille-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.btn-remove-membre {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-remove-membre:hover {
    background: #c82333;
}

.btn-remove-membre .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Checkboxes */
.nexus-checkbox-group {
    margin-bottom: 20px;
}

.nexus-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.nexus-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
}

.nexus-checkbox span {
    flex: 1;
}

/* Boutons */
.nexus-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nexus-button-primary {
    background: #2271b1;
    color: white;
}

.nexus-button-primary:hover {
    background: #135e96;
}

.nexus-button-secondary {
    background: #fff;
    color: #2271b1;
    border: 2px solid #2271b1;
}

.nexus-button-secondary:hover {
    background: #f0f6fc;
}

.nexus-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.nexus-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Actions du formulaire */
.nexus-form-actions {
    text-align: center;
    padding-top: 20px;
}

.nexus-form-actions .nexus-button {
    min-width: 250px;
    justify-content: center;
}

.button-loader {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nexus-asso-adhesion-form {
        padding: 10px;
    }
    
    .nexus-form-section {
        padding: 15px;
    }
    
    .nexus-radio-group {
        grid-template-columns: 1fr;
    }
    
    .nexus-form-row {
        grid-template-columns: 1fr;
    }
    
    .nexus-form-actions .nexus-button {
        min-width: 100%;
    }
}
