/* Styles personnalisés pour le formulaire de contact - Meubles Barbier */
/* Intégration avec le design existant du site */

.contact-form-container {
    margin: 0;
    padding: 0;
}

.contact-form-container h3 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Style général pour chaque groupe de champs */
.contact-form-group {
    margin-bottom: 20px;
}

/* Style pour les labels */
.contact-form-group label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Style des champs de saisie - harmonisé avec le site Barbier */
.contact-form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 0;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    transition: border-color 0.3s;
}

.contact-form-input:focus {
    outline: none;
    border-color: #94c045;
}

/* Pour aligner le prénom et le nom sur une seule ligne */
.contact-form-row {
    display: flex;
    gap: 15px;
}

.contact-form-row .contact-half-width {
    width: 50%;
}

/* Style pour le champ textarea */
textarea.contact-form-input {
    min-height: 150px;
    resize: vertical;
}

/* Alignement hCaptcha et bouton de soumission */
.hcaptcha-submit-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* Style du bouton - correspond au bouton existant .btn-line */
.contact-submit-button {
    padding: 12px 40px;
    background-color: #fff;
    color: #333;
    border: 2px solid #94c045;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.contact-submit-button:hover {
    background-color: #94c045;
    color: #fff;
}

/* Style pour les champs obligatoires */
.contact-required {
    color: #e74c3c;
    font-weight: bold;
}

/* Message de confirmation d'envoi */
.contact-confirmation-message {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    color: #27ae60;
    font-weight: 600;
    border: 2px solid #27ae60;
    border-radius: 0;
    background-color: #eafaf1;
    margin: 20px 0;
}

/* Message d'erreur */
.contact-error-message {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    color: #e74c3c;
    font-weight: 600;
    border: 2px solid #e74c3c;
    border-radius: 0;
    background-color: #fadbd8;
    margin: 20px 0;
}

/* Honeypot anti-spam (caché) */
.anti-spam-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

/* Responsive Design pour mobile */
@media (max-width: 768px) {
    /* Empile les champs Prénom et Nom en colonne */
    .contact-form-row {
        flex-direction: column;
    }

    .contact-form-row .contact-half-width {
        width: 100%;
    }

    /* Empile hCaptcha et le bouton en colonne */
    .hcaptcha-submit-container {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-submit-button {
        width: 100%;
        text-align: center;
    }
}
