/* V2.9.6 — Contato: correção reforçada, independente das regras visuais do tema. */

/* Cabeçalho e logo: neutraliza posicionamentos absolutos/offsets do tema apenas em /contato/. */
header .vdv-contact-logo-wrap,
.vdv-contact-logo-wrap{
    position:relative!important;
    inset:auto!important;
    top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
    transform:none!important;
    display:flex!important;
    align-items:center!important;
    min-height:104px!important;
    max-height:104px!important;
    padding:12px 0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    z-index:5!important;
}
.vdv-contact-header-logo,
.custom-logo,
.site-branding img,
.site-logo img,
header .logo img,
header img.custom-logo{
    display:block!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    width:auto!important;
    height:auto!important;
    max-width:min(440px,82vw)!important;
    max-height:72px!important;
    object-fit:contain!important;
    object-position:left center!important;
    margin:0!important;
}
header .custom-logo-link,
header .site-branding>a,
header .site-logo>a,
header .logo>a{
    display:inline-flex!important;
    align-items:center!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    max-width:100%!important;
    line-height:1!important;
}

/* Faixa do título sempre começa abaixo do cabeçalho. */
.vdv-contact-title-zone,
.page-header,.entry-header,.inner-banner,.breadcrumb-area,.page-title-area{
    clear:both!important;
    position:relative!important;
    z-index:1!important;
}

/* Botão: verde sempre; hover institucional azul. */
form input[type="submit"],
form button[type="submit"],
.wpcf7-submit,.wpforms-submit,.forminator-button-submit,.gform_button,
.elementor-form button[type="submit"],.elementor-button[type="submit"],
[class*="contact"] input[type="submit"],[class*="contact"] button[type="submit"]{
    appearance:none!important;
    background:#25D366!important;
    background-image:none!important;
    border:1px solid #25D366!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    min-height:48px!important;
    padding:0 24px!important;
    border-radius:8px!important;
    box-shadow:0 6px 16px rgba(37,211,102,.16)!important;
    font-weight:700!important;
    line-height:1!important;
    margin-top:24px!important;
    transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease!important;
}
form input[type="submit"]:hover,
form button[type="submit"]:hover,
.wpcf7-submit:hover,.wpforms-submit:hover,.forminator-button-submit:hover,.gform_button:hover,
.elementor-form button[type="submit"]:hover,.elementor-button[type="submit"]:hover,
[class*="contact"] input[type="submit"]:hover,[class*="contact"] button[type="submit"]:hover{
    background:#00265A!important;
    background-image:none!important;
    border-color:#00265A!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    box-shadow:0 7px 18px rgba(0,38,90,.18)!important;
    transform:translateY(-1px)!important;
}
/* Evita que o botão fique colado no último campo em plugins de formulário comuns. */
.wpcf7-form p:has(.wpcf7-submit),
.wpforms-submit-container,.forminator-row-last,.gform_footer,.elementor-field-type-submit{
    margin-top:18px!important;
    padding-top:0!important;
}

@media(max-width:760px){
    header .vdv-contact-logo-wrap,.vdv-contact-logo-wrap{min-height:84px!important;max-height:84px!important;padding:9px 0!important}
    .vdv-contact-header-logo,.custom-logo,.site-branding img,.site-logo img,header .logo img,header img.custom-logo{max-height:58px!important;max-width:82vw!important}
    form input[type="submit"],form button[type="submit"],.wpcf7-submit,.wpforms-submit,.forminator-button-submit,.gform_button{width:100%!important;min-height:50px!important}
}


.vdv-contact-brand-row{min-height:104px!important;display:flex!important;align-items:center!important;position:relative!important;overflow:hidden!important;box-sizing:border-box!important}
form button[type="submit"]:before,form button[type="submit"]:after,.wpcf7-submit:before,.wpcf7-submit:after,.wpforms-submit:before,.wpforms-submit:after{background:#25D366!important;background-image:none!important;border-color:#25D366!important}
form button[type="submit"]:hover:before,form button[type="submit"]:hover:after,.wpcf7-submit:hover:before,.wpcf7-submit:hover:after,.wpforms-submit:hover:before,.wpforms-submit:hover:after{background:#00265A!important;background-image:none!important;border-color:#00265A!important}
@media(max-width:760px){.vdv-contact-brand-row{min-height:84px!important}}

/* V2.15.3 — páginas públicas auxiliares responsivas */
@media(max-width:1024px){
  .vdv-contact-brand-row,.vdv-contact-logo-wrap,.vdv-contact-header-logo{max-width:100%!important;box-sizing:border-box!important}
  body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),body select,body textarea{max-width:100%;box-sizing:border-box}
}
