/* Fichier : wp-content/themes/novatra-child/assets/novatra-contact.css */

.nv-contact-wrapper {
    max-width: 780px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nv-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Libellés et champs */

.nv-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
}

.nv-label-text {
    font-weight: 500;
}

.nv-contact .nv-label-text.nv-required::after {
    content: " *";
    color: red;
    margin-left: 0.25em;
}

/* Petit rappel dans le texte explicatif */

.nv-required-inline {
    color: red;
}

/* Inputs et select */

.nv-contact input[type="text"],
.nv-contact input[type="email"],
.nv-contact input[type="tel"],
.nv-contact select,
.nv-contact textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border-radius: 4px;
    border: 1px solid #cfd3d8;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
}

.nv-contact input[type="text"]:focus,
.nv-contact input[type="email"]:focus,
.nv-contact input[type="tel"]:focus,
.nv-contact select:focus,
.nv-contact textarea:focus {
    border-color: #004a80;
    box-shadow: 0 0 0 1px rgba(0, 74, 128, 0.18);
}

.nv-label-select select {
    max-width: 260px;
}

.nv-label-textarea textarea {
    min-height: 120px;
    resize: vertical;
}

/* Fieldset Type de demande */

.nv-fieldset {
    border: 1px solid #d8dde3;
    border-radius: 6px;
    padding: 12px 14px 10px 14px;
    margin: 8px 0 0 0;
}

.nv-fieldset-legend {
    padding: 0 4px;
    font-size: 14px;
    font-weight: 500;
}

.nv-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-top: 4px;
}

.nv-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* RGPD */

.nv-check-rgpd {
    margin-top: 6px;
}

/* Bouton */

.nv-contact-actions {
    margin-top: 12px;
}

.nv-contact-submit {
    display: inline-block;
    min-width: 140px;
    padding: 9px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    background-color: #004a80;
    color: #ffffff;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.nv-contact-submit:hover {
    background-color: #003965;
}

.nv-contact-submit:active {
    transform: translateY(1px);
}

/* Texte mémo en dessous du formulaire */

.texte-memo {
    margin-top: 18px;
}

.texte-memo p.texte {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.texte-memo p.texte:last-child {
    margin: 0 0 35px 0;
}

/* Responsive */

@media (max-width: 600px) {

    .nv-contact-wrapper {
        margin: 24px auto;
    }

    .nv-fieldset {
        padding: 10px 10px 8px 10px;
    }

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

/*-----------------------------------------------------------------------
 * PAGE "Contact" (ID 120) - suppression spacer 
 * 1) supprimer le spacer WP au-dessus du contenu
 *-----------------------------------------------------------------------
 */

body.page-id-120 .wp-block-spacer {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

