form[name="contact"] .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

form[name="contact"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    align-items: start;
    max-width: 1280px;
    margin-block-start: 55px;
}

form[name="contact"] .invalid input,
form[name="contact"] .invalid textarea {
    border-color: red !important;
}

form[name="contact"] input[name="name"],
form[name="contact"] input[name="email"],
form[name="contact"] input[name="phone"] {
    grid-column: 1;
    width: 100%;
    padding: 10px 38px 10px 12px;
    font-size: 1.25rem;
    font-weight: normal;
    border: 5px solid var(--wp--preset--color--preto);
    border-radius: 20px;
    background: var(--wp--preset--color--branco);
    color: var(--wp--preset--color--preto);
    outline: none;
    height: 60px;
    box-sizing: border-box;
    transition: border-color .2s;
}

form[name="contact"] input:focus {
    border-color: var(--wp--preset--color--preto);
    box-shadow: 0 0 0 2px rgba(55, 138, 221, .12);
}

form[name="contact"] input::placeholder {
    color: var(--wp--preset--color--preto);
}

form[name="contact"] textarea[name="message"] {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 100%;
    min-height: 220px;
    padding: 10px 12px;
    font-size: 1.25rem;
    font-weight: normal;
    border: 5px solid var(--wp--preset--color--preto);
    border-radius: 20px;
    background: var(--wp--preset--color--branco);
    color: var(--wp--preset--color--preto);
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s;
}

form[name="contact"] textarea:focus {
    border-color: var(--wp--preset--color--preto);
    box-shadow: 0 0 0 2px rgba(55, 138, 221, .12);
}

form[name="contact"] textarea::placeholder {
    color: var(--wp--preset--color--preto);
}

form[name="contact"] .g-recaptcha {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

form[name="contact"] button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: center;
    background: var(--wp--preset--color--azul-primario);
    color: var(--wp--preset--color--branco);
    border: none;
    border-radius: 25px;
    width: 196px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .45s ease;
}

.cf7-sucesso,
.cf7-sucesso:hover,
.cf7-sucesso:disabled,
.cf7-sucesso *,
.cf7-sucesso:hover * {
    background: #27ae60 !important;
    color: #fff !important;
    fill: #fff !important;
}

.cf7-erro,
.cf7-erro:hover,
.cf7-erro:disabled,
.cf7-erro *,
.cf7-erro:hover * {
    background: red !important;
    color: #fff !important;
    fill: #fff !important;
}

form[name="contact"] button[type="submit"]:hover {
    background: var(--wp--preset--color--amarelo);
    color: var(--wp--preset--color--preto);
}

.cf-input-wrap {
    position: relative;
    grid-column: 1;
}

.cf-input-wrap input {
    width: 100% !important;
}

.cf-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: none;
    pointer-events: none;
}

.cf-input-wrap.valid .cf-icon {
    display: block;
    background: var(--wp--preset--color--verde);
    background-image: url('../svg/check-f.svg');
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0;
}

.cf-input-wrap.invalid .cf-icon {
    display: block;
    background: #FE0100;
    background-image: url('../svg/xc.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px;
    font-size: 0;
}

.cf-input-wrap.valid input {
    border-color: var(--wp--preset--color--verde-primario) !important;
}

.cf-input-wrap.invalid input {
    border-color: var(--wp--preset--color--vermelho-primario) !important;
}

.cf-input-wrap textarea~.cf-icon {
    top: 24px;
    bottom: inherit;
}




button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button[type="submit"].cf7-enviando {
    cursor: not-allowed;
    opacity: 0.85;
}

.cf7-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: cf7spin 0.7s linear infinite;
    flex-shrink: 0;
}

.cf7-enviando {
    border-radius: 100% !important;
    width: 260px !important;
    min-height: 260px !important;
    padding: 0 20px !important;

}


@keyframes cf7spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .cf-input-wrap.cf-textarea {
        grid-column: 2;
        grid-row: 1 / 4;
    }
}

@media (max-width: 767px) {

    body.slug-contato main {

        padding: 0 10px !important;
    }

    form[name="contact"] {
        grid-template-columns: 1fr;
    }

    form[name="contact"] textarea[name="message"] {
        grid-column: 1;
        grid-row: auto;
    }

    body:not(.home) main {
        padding-top: 116px;
        padding: 116px 10px;
    }

    form[name="contact"] textarea[name="message"],
    form[name="contact"] input[name="name"],
    form[name="contact"] input[name="email"],
    form[name="contact"] input[name="phone"] {
        border-width: 3px;
    }
}