/* Champs texte CF7 + select */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select,
.wpcf7 input[type="file"].wpcf7-form-control {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #000;
    border-radius: 0;
    color: #000;
    font-size: 18px;
    padding: 0 0 8px 0;
    outline: none;
    box-shadow: none;
}

/* Placeholder */
.wpcf7 input[type="text"]::placeholder,
.wpcf7 input[type="email"]::placeholder,
.wpcf7 input[type="tel"]::placeholder,
.wpcf7 textarea::placeholder {
    color: #000;
    opacity: 1;
    font-size: 18px;
}

/* Focus : souligné en blanc */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-bottom-color: #fff;
    background-color: transparent;
    color: #000;
    box-shadow: none;
}

/* Textarea */
.wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

/* Select avec flèche custom */
.wpcf7 select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 32px;

    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23000' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 14px 8px;
}

/* Options du select */
.wpcf7 select option {
    color: #000;
    background: #fff;
}

/* Colonnes 2 champs */
.wpcf7 .col-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 28px;
}

/* Espacement général des champs */
.wpcf7 .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 28px;
}

/* Évite les doubles marges dans les colonnes */
.wpcf7 .col-2 .wpcf7-form-control-wrap {
    margin-bottom: 0;
}

/* Submit aligné à droite */
.wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #000;
    border-radius: 15px;
    color: #000;
    font-size: 18px;
    padding: 14px 32px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Submit CF7 : droite desktop */
.wpcf7 p:has(input[type="submit"]) {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

/* Spinner à gauche du bouton */
.wpcf7 p:has(input[type="submit"]) .wpcf7-spinner {
    order: -1;
    margin: 0;
}


.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus {
    background: #000;
    color: #fff;
    border-color: #000;
}

.wpcf7 .submit-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Spinner à gauche du bouton */
.wpcf7 .submit-wrap .wpcf7-spinner {
    order: -1;
    margin: 0;
}

/* Messages erreur */
.wpcf7 .wpcf7-not-valid-tip {
    margin-top: 8px;
    color: #b00020;
    font-size: 14px;
}

/* Message global CF7 */
.wpcf7 .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 14px 18px;
    font-size: 15px;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .wpcf7 .col-2 {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .wpcf7 .submit-wrap {
        justify-content: flex-start;
    }

    .wpcf7 .submit-wrap input[type="submit"] {
        order: 1;
    }

    .wpcf7 .submit-wrap .wpcf7-spinner {
        order: 2;
        margin: 0;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 textarea,
    .wpcf7 select {
        font-size: 16px;
    }

    .wpcf7 input[type="text"]::placeholder,
    .wpcf7 input[type="email"]::placeholder,
    .wpcf7 input[type="tel"]::placeholder,
    .wpcf7 textarea::placeholder {
        font-size: 16px;
    }
}

.footer-nav-wrap {
    display: flex;
    justify-content: center;
}

@media screen and (max-width:1126px) {

    .ast-builder-menu-1 .menu-item>.menu-link,
    .ast-builder-menu-2 .menu-item>.menu-link {
        font-size: 16px;
    }
}