/**
 * Styles du formulaire d'inscription étudiant
 * 
 * @package Soft_Academia_SM
 * @since 1.0.0
 */

/* Conteneur principal */
.saspm-registration-form-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Notices */
.saspm-notice {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.saspm-notice-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.saspm-notice-error {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.saspm-notice-info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.saspm-notice strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.saspm-notice ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.saspm-notice li {
    margin-bottom: 5px;
}

/* Formulaire */
.saspm-registration-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.saspm-registration-form h2 {
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
    color: #333;
    font-size: 24px;
}

/* Fieldsets */
.saspm-fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.saspm-fieldset legend {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    padding: 0 10px;
}

/* Lignes de formulaire */
.saspm-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.saspm-form-row:last-child {
    margin-bottom: 0;
}

/* Champs */
.saspm-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.saspm-form-field.saspm-full-width {
    flex: 1 1 100%;
}

.saspm-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.saspm-form-field input[type="text"],
.saspm-form-field input[type="email"],
.saspm-form-field input[type="tel"],
.saspm-form-field input[type="date"],
.saspm-form-field input[type="number"],
.saspm-form-field input[type="password"],
.saspm-form-field textarea,
.saspm-form-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.saspm-form-field input:focus,
.saspm-form-field textarea:focus,
.saspm-form-field select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

/* File inputs */
.saspm-form-field input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 2px dashed #ced4da;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.saspm-form-field input[type="file"]:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

/* Radio buttons */
.saspm-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.saspm-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.saspm-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Checkbox */
.saspm-checkbox-label {
    display: flex;
    align-items: start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.saspm-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

/* Date group */
.saspm-date-group {
    display: flex;
    gap: 10px;
}

.saspm-date-group input {
    width: auto;
    flex: 1;
    text-align: center;
}

.saspm-date-group input:first-child,
.saspm-date-group input:nth-child(2) {
    max-width: 70px;
}

.saspm-date-group input:last-child {
    max-width: 100px;
}

/* Texte d'aide */
.saspm-help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

/* Champ obligatoire */
.required {
    color: #dc3545;
    font-weight: bold;
}

/* Actions du formulaire */
.saspm-form-submit {
    margin-top: 30px;
    text-align: center;
}

.saspm-submit-button {
    background-color: #007bff;
    color: #ffffff;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.saspm-submit-button:hover {
    background-color: #0056b3;
}

.saspm-submit-button:active {
    transform: translateY(1px);
}

/* Note du formulaire */
.saspm-form-note {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .saspm-registration-form {
        padding: 20px;
    }

    .saspm-form-row {
        flex-direction: column;
        gap: 0;
    }

    .saspm-form-field {
        margin-bottom: 20px;
    }

    .saspm-registration-form h2 {
        font-size: 20px;
    }

    .saspm-fieldset legend {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .saspm-registration-form-wrapper {
        padding: 0 10px;
    }

    .saspm-registration-form {
        padding: 15px;
    }

    .saspm-submit-btn {
        width: 100%;
        padding: 14px;
    }
}
