/* ==========================================================================
   CONTACTO — ONEPA
   ========================================================================== */

.contacto-main {
    --c-ink: var(--color-ink, #10182b);
    --c-muted: var(--color-muted, #6b7280);
    --c-accent: var(--color-accent, #3b6ff6);
    --c-border: var(--color-border, #e6e8f0);

    color: var(--c-ink);
    background: #fff;
}


/* ==========================================================================
   CONTAINER
   ========================================================================== */

.contacto-main .container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 22px;
    box-sizing: border-box;
}


/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.contact-form-section {
    /*
     * Mesmo espaçamento superior usado na página Sobre:
     *
     * .sobre-hero {
     *     padding: 64px 32px 40px;
     * }
     *
     * Não existe qualquer conteúdo entre o header e o formulário.
     * Este espaço é apenas padding.
     */
    padding: 100px 0 64px;
    background: #fff;
}

.contact-form {
    width: 100%;
    margin: 0;
}


/* ==========================================================================
   NOME / EMAIL / TELEFONE
   ========================================================================== */

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.form-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 400;
    color: #10182b;
}

.form-field input,
.form-field textarea {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #e1e1e1;
    border-radius: 4px;

    background: #f5f5f5;
    color: #10182b;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color .15s ease,
        background-color .15s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #7a8797;
    opacity: 1;
}


/* ==========================================================================
   CAMPOS SUPERIORES
   ========================================================================== */

.form-field input {
    height: 31px;
    min-height: 31px;
    padding: 5px 9px;
}


/* ==========================================================================
   CAIXA DE MENSAGEM
   ========================================================================== */

.form-field-message {
    width: 100%;
    margin-top: 10px;
}

.form-field textarea {
    display: block;

    min-height: 146px;
    height: 146px;

    padding: 10px 9px;

    line-height: 1.45;

    resize: vertical;
}


/* ==========================================================================
   ESTADOS DOS CAMPOS
   ========================================================================== */

.form-field input:hover,
.form-field textarea:hover {
    background: #f5f5f5;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #cfcfcf;
    background: #f5f5f5;
    box-shadow: none;
}


/* ==========================================================================
   BOTÃO ENVIAR
   ========================================================================== */

.contact-send-wrapper {
    max-height: 0;

    opacity: 0;

    overflow: hidden;

    transform: translateY(-8px);

    margin-top: 0;

    transition:
        max-height .3s ease,
        opacity .2s ease,
        transform .3s ease,
        margin-top .3s ease;
}

.contact-send-wrapper.is-visible {
    max-height: 100px;

    opacity: 1;

    transform: translateY(0);

    margin-top: 16px;
}

.contact-send-button {
    border: 0;

    cursor: pointer;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 12px 22px;

    border-radius: 4px;

    background: #24466f;

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    transition:
        transform .2s ease,
        background .2s ease;
}

.contact-send-button:hover {
    background: #183958;

    transform: translateY(-1px);
}

.contact-send-button:active {
    transform: translateY(0);
}

.contact-send-button:disabled {
    opacity: .65;

    cursor: wait;

    transform: none;
}

.send-arrow {
    font-size: 18px;

    line-height: 1;

    transition:
        transform .2s ease;
}

.contact-send-button:hover .send-arrow {
    transform: translateX(3px);
}


/* ==========================================================================
   ESTADO DO FORMULÁRIO
   ========================================================================== */

.contact-form-status {
    min-height: 22px;

    margin-top: 14px;

    text-align: center;

    color: var(--c-muted);

    font-size: 14px;

    line-height: 1.5;
}

.contact-form-status[hidden] {
    display: none;
}

.contact-form-status.is-success {
    color: #1f7a4d;
}

.contact-form-status.is-error {
    color: #b42318;
}

.contact-form-status.is-sending {
    color: var(--c-muted);
}


/* ==========================================================================
   CONTACTOS
   ========================================================================== */

.contact-extra {
    padding: 0 0 42px;

    background: #fff;
}

.contact-extra-text {
    margin: 0;

    text-align: center;

    color: var(--c-muted);

    font-size: 15px;

    line-height: 1.6;
}

.contact-extra-email {
    color: var(--c-accent);

    text-decoration: none;

    font-weight: 500;

    white-space: nowrap;
}

.contact-extra-email:hover,
.contact-extra-email:focus-visible {
    color: var(--c-accent);

    text-decoration: none;
}

.contact-extra-arrow {
    display: inline-block;

    margin-left: 3px;

    font-size: 14px;

    line-height: 1;
}

.contact-extra-phone {
    margin-left: 12px;

    color: var(--c-muted);

    white-space: nowrap;
}


/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
    padding: 48px 0 56px;

    background: #fff;
}

.faq .container {
    max-width: 720px;
}

.faq h2 {
    margin: 0 0 32px;

    text-align: center;

    font-size: clamp(
        26px,
        3.4vw,
        34px
    );

    line-height: 1.2;

    font-weight: 700;
}

.faq-list {
    border-top: 1px solid var(--c-border);
}

.faq-item {
    border-bottom: 1px solid var(--c-border);
}

.faq-question {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 20px 4px;

    background: none;

    border: none;

    font: inherit;

    font-size: 16px;

    font-weight: 500;

    color: var(--c-ink);

    text-align: left;

    cursor: pointer;
}

.faq-question:focus-visible {
    outline: 2px solid var(--c-accent);

    outline-offset: 2px;
}


/* ==========================================================================
   FAQ ICON
   ========================================================================== */

.faq-icon {
    flex: none;

    position: relative;

    width: 18px;
    height: 18px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";

    position: absolute;

    background: var(--c-accent);

    border-radius: 2px;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);
}

.faq-icon::before {
    width: 14px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 14px;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.faq-question[aria-expanded="true"]
.faq-icon::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);

    opacity: 0;
}


/* ==========================================================================
   FAQ ANSWER
   ========================================================================== */

.faq-answer {
    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows .22s ease;
}

.faq-answer p {
    overflow: hidden;

    margin: 0;

    color: var(--c-muted);

    font-size: 14.5px;

    line-height: 1.6;

    padding-right: 34px;
}

.faq-item:has(
    .faq-question[aria-expanded="true"]
) .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item:has(
    .faq-question[aria-expanded="true"]
) .faq-answer p {
    padding-bottom: 18px;
}


/* ==========================================================================
   LOCALIZAÇÃO
   ========================================================================== */

.location {
    padding: 40px 0 0;

    background: #fff;

    text-align: center;
}


/*
 * "Onde nos encontrar"
 *
 * Mesmo tamanho, cor e peso visual do:
 *
 * geral@onepa.co.mz →
 */

.location-eyebrow {
    margin: 0 0 24px;

    color: var(--c-accent);

    font-size: 15px;

    line-height: 1.6;

    font-weight: 500;
}

.map-embed {
    width: 100%;

    aspect-ratio: 16 / 7;

    min-height: 480px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;

    border: 0;

    display: block;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 640px) {

    .contacto-main .container {
        padding: 0 18px;
    }


    /*
     * Mesmo espaçamento superior da página Sobre no mobile:
     *
     * .sobre-hero {
     *     padding: 40px 20px 32px;
     * }
     */
    .contact-form-section {
        padding-top: 40px;

        padding-bottom: 48px;
    }


    .contact-form-row {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .form-field-message {
        margin-top: 14px;
    }


    .form-field textarea {
        min-height: 130px;

        height: 130px;
    }


    .contact-extra {
        padding-bottom: 36px;
    }


    .contact-extra-text {
        padding: 0 10px;
    }


    .contact-extra-phone {
        display: block;

        margin: 4px 0 0;
    }


    .location-eyebrow {
        font-size: 15px;
    }


    .map-embed {
        aspect-ratio: 4 / 5;

        min-height: 420px;
    }


    .contact-send-button {
        width: 100%;

        padding: 14px 20px;
    }
}


/* ==========================================================================
   REDUZIR ANIMAÇÕES
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .faq-answer,
    .form-field input,
    .form-field textarea,
    .contact-send-wrapper,
    .contact-send-button {
        transition: none;
    }
}

/* ==========================================================================
   FIX — ESPAÇO ENTRE O HEADER E O PRIMEIRO FORMULÁRIO
   ========================================================================== */

.contacto-main .contact-form-section {
    padding-top: 64px !important;
    margin-top: 0 !important;
}

/* Mobile */
@media (max-width: 640px) {
    .contacto-main .contact-form-section {
        padding-top: 40px !important;
        margin-top: 0 !important;
    }
}