/* ==========================================
 *  CONFIGURAÇÕES GERAIS
 *  ========================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
    Arial,
    Helvetica,
    sans-serif;

    background: #f7f7f7;
    color: #222;
}


/* ==========================================
 *  PÁGINA PRINCIPAL
 *  ========================================== */

.pagina {
    min-height: 100vh;

    display: flex;

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

    padding: 40px;
}


.conteudo {
    width: min(1100px, 100%);

    display: grid;

    grid-template-columns:
    1fr 1fr;

    align-items: center;

    gap: 80px;
}


/* ==========================================
 *  TEXTO
 *  ========================================== */

.texto {
    max-width: 520px;
}


.texto h1 {
    margin: 0 0 25px;

    font-size:
    clamp(42px, 5vw, 70px);

    line-height: 1.05;

    font-weight: 700;
}


.texto p {
    margin: 0 0 35px;

    font-size: 20px;

    line-height: 1.6;

    color: #666;
}


/* ==========================================
 *  BOTÃO "ME AVISE"
 *  ========================================== */

.btn-avise {
    border: 0;

    border-radius: 8px;

    padding:
    15px 30px;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

    background: #222;

    color: white;

    transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}


.btn-avise:hover {
    transform:
    translateY(-2px);

    opacity: 0.9;
}


/* ==========================================
 *  LOGO
 *  ========================================== */

.logo-area {
    display: flex;

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


.logo-area img {
    display: block;

    width: 420px;

    max-width: 100%;

    height: auto;
}


/* ==========================================
 *  MODAL
 *  ========================================== */

.modal {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 1000;

    background:
    rgba(0, 0, 0, 0.6);

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

    padding: 20px;
}


.modal.aberto {
    display: flex;
}


.modal-conteudo {
    position: relative;

    width:
    min(450px, 100%);

    background: white;

    border-radius: 14px;

    padding: 40px;

    box-shadow:
    0 20px 60px
    rgba(0, 0, 0, 0.25);

    animation:
    aparecer 0.2s ease;
}


@keyframes aparecer {

    from {
        opacity: 0;
        transform:
        translateY(-10px)
        scale(0.98);
    }

    to {
        opacity: 1;
        transform:
        translateY(0)
        scale(1);
    }

}


/* ==========================================
 *  TÍTULO DO MODAL
 *  ========================================== */

.modal-conteudo h2 {
    margin:
    0 0 10px;

    font-size: 30px;
}


.modal-conteudo p {
    margin:
    0 0 25px;

    line-height: 1.5;

    color: #666;
}


/* ==========================================
 *  BOTÃO FECHAR
 *  ========================================== */

.fechar {
    position: absolute;

    top: 12px;
    right: 16px;

    border: 0;

    background: transparent;

    font-size: 32px;

    line-height: 1;

    cursor: pointer;

    color: #777;
}


.fechar:hover {
    color: #222;
}


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

.campo {
    margin-bottom: 18px;
}


.campo label {
    display: block;

    margin-bottom: 7px;

    font-weight: bold;
}


.campo input {
    width: 100%;

    padding:
    13px 14px;

    border:
    1px solid #ccc;

    border-radius: 7px;

    font-size: 16px;

    outline: none;
}


.campo input:focus {
    border-color: #555;

    box-shadow:
    0 0 0 2px
    rgba(0, 0, 0, 0.08);
}


/* ==========================================
 *  HONEYPOT
 *  ========================================== */

.campo-escondido {
    position: absolute;

    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


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

.btn-enviar {
    width: 100%;

    border: 0;

    border-radius: 8px;

    padding:
    15px;

    background: #222;

    color: white;

    font-size: 17px;

    font-weight: bold;

    cursor: pointer;

    transition:
    opacity 0.15s ease;
}


.btn-enviar:hover {
    opacity: 0.9;
}


.btn-enviar:disabled {
    opacity: 0.6;

    cursor: wait;
}


/* ==========================================
 *  MENSAGENS
 *  ========================================== */

.mensagem {
    margin-top: 18px;

    text-align: center;

    line-height: 1.4;
}


.mensagem.sucesso {
    color: #267326;
}


.mensagem.erro {
    color: #a00000;
}


/* ==========================================
 *  CELULAR
 *  ========================================== */

@media (max-width: 700px) {

    .pagina {
        padding:
        30px 20px;
    }


    .conteudo {

        grid-template-columns:
        1fr;

        gap: 45px;

        text-align: center;
    }


    .texto {
        max-width: none;

        order: 1;
    }


    .logo-area {
        order: 2;
    }


    .logo-area img {

        width:
        min(300px, 80vw);
    }


    .texto h1 {

        font-size:
        clamp(38px, 11vw, 55px);
    }


    .texto p {
        font-size: 18px;
    }


    .modal-conteudo {

        padding:
        35px 25px 30px;
    }

}
