/**
 * Styles pour le formulaire de contact
 */

/* Styles pour les champs en erreur */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff3b30;
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.2);
}

.checkbox-group.error .checkmark {
    border-color: #ff3b30;
}

/* Message d'erreur sous les champs */
.error-message {
    color: #ff3b30;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
}

/* Message de succès après envoi */
.form-success-message {
    background-color: #f8fff8;
    border: 1px solid #34c759;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    animation: fadeIn 0.5s ease-in-out;
}

.form-success-message .success-icon {
    color: #34c759;
    font-size: 3rem;
    margin-bottom: 10px;
}

.form-success-message h4 {
    color: #34c759;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Message d'erreur après tentative d'envoi */
.form-error-message {
    background-color: #fff8f8;
    border: 1px solid #ff3b30;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    animation: fadeIn 0.5s ease-in-out;
}

.form-error-message .error-icon {
    color: #ff3b30;
    font-size: 3rem;
    margin-bottom: 10px;
}

.form-error-message h4 {
    color: #ff3b30;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Animation pour les messages */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style pour le spinner de chargement */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
