﻿/* Definir a fonte Poppins */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

/* -------- ESTRUTURA BASE -------- */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}


/* Container principal */
.contato-page {
    background: #FFFFFF;
}

.contato-container {
    display: flex;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
    font-family: 'Poppins', sans-serif;
}

/* Coluna Esquerda */
.contato-left img {
    width: 535px;
    height: 569px;
    border-radius: 21px;
    object-fit: cover;
}

/* Coluna Direita */
.contato-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .contato-right h2 {
        font-family: 'Poppins', sans-serif;
        font-size: 36px;
        font-weight: 700;
        line-height: 44px;
        margin: 0;
    }

/* Formulário */
.form-box {
    border: 1px solid #D1D1D1;
    border-radius: 16px;
    padding: 24px;
    width: 661px;
    display: flex;
    flex-direction: column;
    gap: 21px;
}

    /* Inputs */
    .form-box input {
        font-family: 'Inter', sans-serif;
        height: 52px;
        background: #FFFFFF;
        border: 1px solid #D1D1D1;
        border-radius: 8px;
        padding: 14px 16px;
        font-size: 16px;
        font-weight: 400;
        line-height: 24px;
        width: 100%;
        box-sizing: border-box;
        outline: none;
    }

textarea {
    max-height: 81px;
    resize: vertical;
    width: 100%;
    height: auto;
    padding: 14px 16px;
    border: 1.5px solid #d1d1d1;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border 0.2s ease;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Propriedades da tipografia */
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 24px;
    letter-spacing: 0;
    vertical-align: middle;
    color: #161616;
}

.form-box input:focus {
    border-color: #EB0000;
}

.form-box textarea:focus {
    border-color: #EB0000;
}

.form-row {
    display: flex;
    gap: 24px;
}

.form-group label {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 6px;
    display: block;
    color: #333;
    text-align: left;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    color: #5D5D5D;
    cursor: pointer;
}

/* Diferencia tamanho da tipografia */
.checkbox-group:not(.checkbox-privacy) .checkbox-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

.checkbox-group.checkbox-privacy .checkbox-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
}

    .checkbox-group.checkbox-privacy .checkbox-text a {
        font-weight: 600;
        color: #0066cc;
        text-decoration: none;
    }

        .checkbox-group.checkbox-privacy .checkbox-text a:hover {
            text-decoration: underline;
        }

/* Oculta input real */
.checkbox-group input[type="checkbox"] {
    display: none;
}

/* Caixa customizada */
.custom-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1.5px solid #D1D1D1;
    background: #F6F6F6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Tamanho menor para privacidade */
.checkbox-group.checkbox-privacy .custom-checkbox {
    width: 20px;
    height: 20px;
}

/* Ícone do check */
.check-icon {
    width: 13px;
    height: 9px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Exibe o check quando marcado */
.checkbox-group input[type="checkbox"]:checked + .custom-checkbox {
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.checkbox-group.checkbox-privacy input[type="checkbox"]:checked + .custom-checkbox {
    background: #D1D1D1;
    border-color: #D1D1D1;
}

.checkbox-group input[type="checkbox"]:checked + .custom-checkbox .check-icon {
    opacity: 1;
}

/* Botão */
.btn-submit {
    width: 100%;
    height: 56px;
    background: var(--primary-red);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-submit:hover {
        background: #c00000;
    }

/* Adicione ao seu arquivo contato-style.css */
input.error,
textarea.error {
    border-color: #EB0000 !important;
}

.checkbox-group input[type="checkbox"].error {
    border-color: #EB0000 !important;
    box-shadow: 0 0 0 2px rgba(235, 0, 0, 0.2);
}

/* Sessão 3 – Contatos */
.contato-extra {
    border-radius: 16px;
    padding: 24px;
    width: 661px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-self: flex-start;
}

    /* Títulos: Telefones, Horário, Localização */
    .contato-extra h3 {
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        font-size: 24px;
        line-height: 32px;
        color: #161616;
        margin: 0;
    }

    /* Conteúdo */
    .contato-extra p,
    .contato-extra li {
        font-family: 'Poppins', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0.5px;
        color: #161616;
        margin: 0 0 4px 0;
    }

/* Telefones com ícone */
.telefones {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.telefones-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .telefones-lista li {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
    }

        .telefones-lista li:last-child {
            margin-bottom: 0;
        }

.icone-whats {
    width: 17px;
    height: 17px;
    opacity: 0.6;
}

/* Horário de funcionamento */
.desc {
    margin: 0 0 20px 0;
}

    .desc div {
        margin-bottom: 6px;
    }

/* Localização */
.local-end {
    margin: 0 0 4px 0;
}

    .local-end div {
        margin-bottom: 6px;
    }

/* Mapa placeholder */
.mapa {
    width: 637px;
    height: 400px;
    background: #D9D9D9;
    border-radius: 8px;
}

/* Responsividade */
@media (max-width: 1024px) {
    .contato-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-family: 'Poppins', sans-serif;
    }

    .contato-left img {
        width: 100%;
        height: auto;
        max-width: 500px;
    }

    .form-box,
    .contato-extra {
        width: 100%;
        max-width: 600px;
    }

    .mapa {
        width: 100%;
        max-width: 600px;
        height: 300px;
    }
}

/* ====== Versão Mobile (Celulares) ====== */
@media (max-width: 680px) {

    /* ===== CONFIGURAÇÃO GERAL ===== */
    html,
    body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    main {
        width: 100%;
    }

    #header,
    #footer {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 680px) {

    /* Container principal */
    .contato-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 0;
        align-items: flex-start;
        text-align: left;
    }

    /* Imagem */
    .contato-left {
        width: 100%;
        margin: 0;
        padding: 0;
    }

        .contato-left img {
            width: 100%;
            height: auto;
            border-radius: 0;
            display: block;
        }

    /* Título e textos */
    .contato-right {
        width: 100%;
        align-items: center;
        text-align: center;
        gap: 24px;
        padding: 0 16px;
    }

        .contato-right h2 {
            font-size: 26px;
            line-height: 34px;
        }

    /* Formulário */
    .form-box {
        width: 100%;
        max-width: 360px;
        padding: 20px;
        gap: 16px;
    }

    /* Inputs lado a lado */
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .form-box input,
    .form-box textarea {
        font-size: 15px;
        height: auto;
    }

    .form-box textarea {
        max-height: auto;
    }

    /* Checkboxes */
    .checkbox-group {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        margin: 8px 0;
    }

        .checkbox-group input[type="checkbox"] {
            width: 20px;
            height: 20px;
            margin-right: 10px;
        }

    .checkbox-privacy label {
        font-size: 13px;
        line-height: 19px;
    }

    /* Botão */
    .btn-submit {
        width: 100%;
        height: 52px;
        font-size: 15px;
    }

    /* Sessão 3 – Contatos */
    .contato-extra {
        width: 100%;
        max-width: 360px;
        padding: 20px;
        align-items: flex-start;
        text-align: left;
    }

        .contato-extra h3 {
            font-size: 20px;
            margin-bottom: 8px;
        }

        .contato-extra p,
        .contato-extra li {
            font-size: 15px;
        }

    /* Mapa */
    .mapa {
        width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
        border-radius: 0;
        padding: 0;
        height: 244px;
    }
}
