.wpcf7 br,
.wpcf7-spinner{
    display: none;
}

.wpcf7 form{
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wpcf7 form p{
    width: 100%;
}

.wpcf7 form p label{
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Ubuntu';
    font-size: 16px;
    line-height: 24px;
    font-weight: bold;
}

.wpcf7 form p label,
.wpcf7 form p * {
    width: 100%;
    font-family: var(--ffMBo);
    font-size: 1rem;
    line-height: 1.375rem;
}

.wpcf7 form p input,
.wpcf7 form p textarea,
.wpcf7 form p select{
    display: block;
    outline: none;
    border: solid 1px #B5B7BC;
    border-radius: 0px;
    height: 44px;
    resize: none;
    padding: 12px;
}

.wpcf7 form p input,
.wpcf7 form p textarea,
.wpcf7 form p select,
.wpcf7 form p select option,
.wpcf7 form p input::placeholder,
.wpcf7 form p textarea::placeholder,
.wpcf7 form p select::placeholder,
.wpcf7 form p select option::placeholder{
    color: var(--white);
    font-family: var(--ffMMe);
    font-size: 1rem;
    line-height: 1.3125rem;
}

.wpcf7 form p input {
    background-color: transparent;
    padding: 8px 0px;
    border: none;
    border-bottom: 1px solid var(--white);
    font-family: var(--ffMMe);
    color: var(--white);
}

.wpcf7-form-control-wrap {
    position: relative;
    height: fit-content;
    display: block;
}

.wpcf7 form p input:focus:not(input[type="submit"]),
.wpcf7 form p input:hover:not(input[type="submit"]),
.wpcf7 form p textarea:focus,
.wpcf7 form p textarea:hover,
.wpcf7 form p select:focus, 
.wpcf7 form p select:hover {
    margin-top: 0px;
    border-bottom: 2px solid var(--white);
    padding-block: 8px 7px;
}

.wpcf7 form p .wpcf7-form-control-wrap{
    position: relative;
}

/* .wpcf7 form p .wpcf7-form-control-wrap::after{
    content: "Optionnel";
    height: fit-content;
    width: fit-content;
    display: block;
    position: absolute;
    font-size: 14px;
    line-height: 16px;
    right: 0px;
    top: -25px;
    color: #545D63;
} */

.wpcf7 form p .wpcf7-form-control-wrap:has(input[aria-required="true"])::after,
.wpcf7 form p .wpcf7-form-control-wrap:has(textarea[aria-required="true"])::after,
.wpcf7 form p .wpcf7-form-control-wrap:has(select[aria-required="true"])::after{
    display: none;
}

.wpcf7 form p textarea:focus,
.wpcf7 form p textarea:hover {
    padding: 0;
}

.wpcf7 form p span[data-name="a-message"] {
    position: relative;
    display: block;
}

.wpcf7 form p span[data-name="a-message"]::before {
    content: "Saisissez votre message";
    position: absolute;
    bottom: 12px;
    left: 0;
    color: var(--white);
    font-family: var(--ffMMe);
    font-size: 1rem;
    line-height: 1.3125rem;
    transition: opacity 0.3s ease;
}

.wpcf7 form p span[data-name="a-message"].has-content::before {
    opacity: 0;
}

.wpcf7 form p textarea {
    height: 170px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--white);
    padding: 0 0 8px 0;
}

.wpcf7-not-valid-tip{
    font-size: 14px;
    margin-top: 2px;
    color: #dc3232;
}

/* .wpcf7 form .wpcf7-submit{
    display: block;
    width: 100%;
    background-color: #000;
    color: #fff;
    transition: 300ms ease;
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
    border-radius: 0px;
    border: none;
    padding: 10px;
    text-align: center;
    clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
    cursor: pointer;
} */

.wpcf7 form .wpcf7-submit {
    display: flex;
    align-items: center;
    color: var(--white);
    gap: 17px;
    font-family: var(--ffMXBo);
    font-size: 1rem;
    line-height: 1.25rem;
    padding: unset;
    text-transform: uppercase;
    width: fit-content;
    position: relative;
    /* margin-inline: auto; */
    border: 0px;
    transition: all .3s ease;
}

.wpcf7 form .wpcf7-submit::after {
    content: '';
    display: block;
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('../img/icons/arrow.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 12px;
    width: 21px;
    transition: all 0.3s ease;
}

.wpcf7 form .wpcf7-submit:hover{
    background-color: var(--primary);
    transition: 300ms ease;
}

.wpcf7 form.invalid .wpcf7-response-output, 
.wpcf7 form.unaccepted .wpcf7-response-output, 
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output{
    border: solid 1px #dc3232 !important;
    font-size: 16px;
    line-height: 22px;
    padding: 12px 25px;
    margin: 0px;
    color: var(--white)
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    grid-column: 1/3;
}

/* Empêcher la soumission en double de formulaire */

.wpcf7-form.submitting .wpcf7-submit {
    pointer-events: none;
    opacity: 0.7;
    cursor: wait;
}

.wpcf7 form.sent .wpcf7-response-output {
    color: var(--white);
    padding: 8px 12px;
    width: 100%;
}


.wpcf7 form p:nth-child(8) > span > input {
    border: none;
}

@media (width > 575px) {
    .wpcf7 form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 29px 24px;
    }

    .wpcf7 form p:nth-child(6),
    .wpcf7 form p:nth-child(7),
    .wpcf7 form p:has(input[type="submit"]) {
        grid-column: 1/3;
    }

    .wpcf7 form .wpcf7-submit {
        margin-inline: auto;
    }

    .informations {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width > 767px) {
.wpcf7 form{
    gap: 24px;
}
}

@media (width > 991px) {
    .wpcf7 form {
        gap: 63px 46px;
    }

    .wpcf7 form .wpcf7-submit {
        height: fit-content;
        background-color: var(--white);
        color: var(--black);
        padding: 16px 20px;
        border: 1px solid;
        border-color: var(--white);
    }

    .wpcf7 form {
        position: relative;
    }

    .wpcf7 form.failed .wpcf7-response-output,
    .wpcf7 form.aborted .wpcf7-response-output {
        position: absolute;
        bottom: -110px;
    }
}

@media (pointer: fine) {
    .wpcf7 form .wpcf7-submit:hover {
        background-color: var(--black);
        color: var(--white);
        transition: all .3s ease;
    }
}