/* VC Contact — layout responsivo */
/* Aplicação exclusiva à página Contacto (ID 23) */

body.page-id-23 .elementor-widget-shortcode,
body.page-id-23 .elementor-widget-shortcode .elementor-widget-container {
    width: 100%;
    min-width: 0;
}

body.page-id-23 .elementor-widget-shortcode form {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: #ffffff;
    box-sizing: border-box;
}

/* Legendas alinhadas acima dos campos */
body.page-id-23 .elementor-widget-shortcode form label {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    color: #f5f5f5;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    box-sizing: border-box;
}

/* Campos de texto */
body.page-id-23 .elementor-widget-shortcode form
:is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    select,
    textarea
) {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 7px 0 0;
    padding: 13px 16px;
    border: 1px solid #465b63;
    border-radius: 6px;
    background: #11191b;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

/* Altura dos campos simples */
body.page-id-23 .elementor-widget-shortcode form
input:not([type="checkbox"]):not([type="hidden"]) {
    min-height: 50px;
}

/* Mensagem */
body.page-id-23 .elementor-widget-shortcode form textarea {
    min-height: 190px;
    resize: vertical;
}

/* Destaque do campo selecionado */
body.page-id-23 .elementor-widget-shortcode form
:is(input, textarea, select):focus {
    outline: 2px solid #b89a53;
    outline-offset: 1px;
    border-color: #b89a53;
    box-shadow: 0 0 0 3px rgba(184,154,83,.12);
}

/* Confirmação de privacidade */
body.page-id-23 .elementor-widget-shortcode form
input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0 8px 0 0;
    vertical-align: middle;
    accent-color: #b89a53;
}

body.page-id-23 .elementor-widget-shortcode form
label:has(input[type="checkbox"]) {
    margin-top: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 400;
}

/* Botão */
body.page-id-23 .elementor-widget-shortcode form
:is(button[type="submit"], input[type="submit"]) {
    display: inline-block;
    min-height: 50px;
    padding: 13px 28px;
    border: 0;
    border-radius: 6px;
    background: #096dcc;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

body.page-id-23 .elementor-widget-shortcode form
:is(button[type="submit"], input[type="submit"]):hover {
    background: #0756a2;
}

/* Logótipo na coluna direita */
body.page-id-23 .elementor-widget-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 540px;
    height: auto;
    object-fit: contain;
    margin-inline: auto;
}

/* Telemóvel */
@media (max-width: 767px) {
    body.page-id-23 .elementor-widget-shortcode form {
        width: 100%;
    }

    body.page-id-23 .elementor-widget-shortcode form textarea {
        min-height: 170px;
    }

    body.page-id-23 .elementor-widget-image img {
        max-height: 400px;
        margin-top: 20px;
    }

    body.page-id-23 .elementor-widget-shortcode form
    :is(button[type="submit"], input[type="submit"]) {
        width: 100%;
    }
}

/* VC-CONTACT-CENTER-BEGIN
   Centralização do formulário e logótipo.
   Exclusivo das páginas de contacto.
*/

@media (min-width: 1025px) {

    /* Área principal da página */
    body.page-id-23 .elementor-location-single,
    body.page-id-23 main {
        width: 100%;
    }

    /* Contentor original do formulário e imagem */
    body.page-id-23
    .elementor-element.elementor-element-46e239a {
        width: 100%;
        max-width: 1120px;
        margin-left: auto;
        margin-right: auto;
        padding: 55px 30px 65px;

        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 65px;
        box-sizing: border-box;
    }

    /* Coluna do formulário */
    body.page-id-23
    .elementor-element.elementor-element-46e239a
    > .e-con:first-child {
        flex: 0 1 520px;
        width: 55%;
        min-width: 0;
    }

    /* Coluna do logótipo */
    body.page-id-23
    .elementor-element.elementor-element-46e239a
    > .e-con:last-child {
        flex: 0 1 420px;
        width: 45%;
        min-width: 0;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Dimensão equilibrada da imagem */
    body.page-id-23
    .elementor-element.elementor-element-46e239a
    .elementor-widget-image img {
        max-width: 100%;
        max-height: 520px;
        width: auto;
        height: auto;
        margin: 0 auto;
    }
}

/* Tablet e telemóvel */
@media (max-width: 1024px) {

    body.page-id-23
    .elementor-element.elementor-element-46e239a {
        width: 100%;
        max-width: 760px;
        margin: 0 auto;
        padding: 35px 20px 55px;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {

    body.page-id-23
    .elementor-element.elementor-element-46e239a {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    body.page-id-23
    .elementor-element.elementor-element-46e239a
    > .e-con {
        width: 100%;
        max-width: 100%;
    }

    body.page-id-23
    .elementor-widget-image img {
        max-height: 350px;
    }
}

/* VC-CONTACT-CENTER-END */
