
/* =========================================================
   V61 — CORRECTIONS VISUELLES DU FORMULAIRE CONTACT
   ========================================================= */

/* Le header fixe ne doit plus recouvrir le début du formulaire */
#mq-contact-form {
    scroll-margin-top: 190px !important;
    overflow: visible !important;
}

/* Labels : jamais coupés */
#mq-contact-form label,
#mq-contact-form .wpforms-field-label,
#mq-contact-form .elementor-field-label {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;
    white-space: normal !important;

    line-height: 1.4 !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Wrappers : laisser respirer les intitulés */
#mq-contact-form .wpforms-field,
#mq-contact-form .elementor-field-group,
#mq-contact-form .form-field,
#mq-contact-form .field,
#mq-contact-form .form-group {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;
}

/*
 * IMPORTANT :
 * Les SELECT ne doivent PAS utiliser le même padding vertical
 * que les inputs texte.
 */
#mq-contact-form select {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;

    padding: 0 44px 0 15px !important;

    line-height: normal !important;
    vertical-align: middle !important;

    background-color: #fff !important;
    color: #143e5b !important;

    border: 1px solid #d5e1e8 !important;
    border-radius: 10px !important;

    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;

    overflow: visible !important;

    box-sizing: border-box !important;
}

/* Options internes */
#mq-contact-form select option {
    color: #143e5b !important;
    background: #fff !important;

    font-family: inherit !important;
    font-size: 16px !important;
    line-height: normal !important;
}

/* Inputs normaux : hauteur cohérente */
#mq-contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]) {
    min-height: 52px !important;
    height: 52px !important;

    padding: 0 15px !important;

    line-height: normal !important;
    box-sizing: border-box !important;
}

/* Textarea reste libre */
#mq-contact-form textarea {
    height: auto !important;
    min-height: 145px !important;
    padding: 13px 15px !important;
    line-height: 1.5 !important;
}

/* Mobile */
@media (max-width: 759px) {
    #mq-contact-form {
        scroll-margin-top: 105px !important;
    }

    #mq-contact-form select,
    #mq-contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]) {
        min-height: 50px !important;
        height: 50px !important;
        font-size: 16px !important;
    }
}
