* {
    margin: 0;
    padding: 0;
    font-family: 'Satoshi', sans-serif;
}

body {
    background-color: #F5F5F7;
}

header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 100;

    height: 100px;
}

.header-esquerda {
    justify-self: start;
    padding-left: 3vw;
}

#img-embracon {
    width: 10vw;
    height: auto;
}

.header-centro {
    display: flex;
    justify-content: center;
    gap: 3vw;
}

.a-header-centro {
    text-decoration: none;
    color: #777777;
    padding: 6px 2px;
    border-bottom: solid 2px transparent;

    transition: all 0.4s ease;
}

.a-header-centro:hover {
    color: #C40011;
    padding: 6px 2px;
    border-bottom: solid 2px #C40011;
}

.header-direita {
    justify-self: end;
    padding-right: 4vw;
}

.fa-whatsapp {
    font-size: 20px;
    margin-right: 0.1vw;
}

.a-fale-comigo {
    border: solid 2px #C40011;
    color: white;
    text-decoration: none;
    padding: 2vh 2vw;
    font-weight: bold;
    border-radius: 100px;
    
    background-image: linear-gradient(to bottom, white 50%, #C40011 50%);
    background-size: 100% 200%;
    background-position: bottom; 
    
    transition: all 0.6s ease;
}

.a-fale-comigo:hover {
    color: #C40011;
    background-position: top; 
    border-color: #C40011;    
}

.div-formulario {
    margin-top: 5vh;
    text-align: center;
}

.span-vermelho {
    color: #C40011;
}

#h1-titulo-simule {
    font-size: clamp(40px, 5vw, 50px);
}

#p-titulo-simule {
    font-size: clamp(13px, 0.9vw, 15px);
    color: #5b5a5f;
}

form {
    margin: 5vh auto;
    width: 35%;
    padding-top: 2vh;
    padding-bottom: 5vh;

    background-color: white;
    border: 1px solid #d0cfd3;
    border-radius: 8px;
}

#p-simular-com {
    font-size: 14px;
    color: #777777;
    margin-bottom: 0.5vh;
}

.div-botoes-creditoparcela {
    display: flex;
    background-color: #F5F5F7;
    width: 60%;
    margin: auto;
    border-radius: 100px;
}

.credito-parcela {
    display: none;
}

.label-creditoparcela {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    color: #5b5a5f;

    min-height: 7vh;
    width: 10vw;

    transition: all 0.1s ease;
}

.label-creditoparcela:hover {
    color: #1b1a1b;
    cursor: pointer;
}

.credito-parcela:checked + .label-creditoparcela {
    background-color: #C40011;
    border-radius: 100px;
    color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
}

.div-imovel-carro-outro {
    margin-top: 4vh;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1vw;
    margin-left: 1vw;
    margin-right: 1vw;
}

.input-imovel-carro-outro {
    display: none;
}

.label-imovel-carro-outro {
    display: flex;
    justify-content: center;
    flex-direction: column;

    border: 1px solid #5b5a5f;
    color: #5b5a5f;
    border-radius: 10px;
    height: 9vh;

    transition: all 0.2s ease;
}

.input-imovel-carro-outro:hover + .label-imovel-carro-outro {
    border: 1px solid #C4001170;
    cursor: pointer;
}

.input-imovel-carro-outro:checked + .label-imovel-carro-outro {
    color: #C40011;
    background-color: #C4001110;
    border: 1px solid #C40011;
}

.fa-house, .fa-car, .fa-briefcase {
    font-size: 20px;
}

.div-label-input {
    display: flex;
    flex-direction: column;
}

.div-credito-desejado {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 2vh auto;
}

#label-credito-desejado {
    color: #6d6d6d;
    text-align: start;
}

#input-credito-desejado {
    background-color: transparent;
    font-size: 18px;
    padding-left: 1vw;
    height: 7vh;
    border: none;
    border-bottom: 1px solid #d0cfd3;
}

#input-credito-desejado::placeholder {
    font-size: 18px;
    color: #a7a7a7;
}

#input-credito-desejado:focus {
    outline: none;
    border-bottom: 1px solid #C40011;
    font-size: 18px;
    padding-left: 1vw;
}

.div-prazo {
    margin: 2vh auto;
    width: 90%;

    display: flex;
    flex-direction: column;
}

#label-prazo {
    text-align: start;
    color: #6d6d6d;
    margin-bottom: 1vh;
}

.div-nome-telefone {
    width: 90%;
    margin: 2vh auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.div-nome,
.div-telefone {
    display: flex;
    flex-direction: column;
}

.label-nometelefone {
    color: #6d6d6d;
    text-align: start;
}

.input-nometelefone {
    width: 100%;
    box-sizing: border-box;

    border: none;
    border-bottom: 1px solid #d0cfd3;

    padding: 0.7vw 1vw;
    font-size: 16px;
    background: transparent;
}

.input-nometelefone:focus {
    outline: none;
    border-bottom: 1px solid #C40011;
    padding-left: 1vw;
}

.input-nometelefone::placeholder {
    font-size: 15px;
    color: #a7a7a7;
}

#botao-enviar {
    margin: 2vh auto;
    width: 90%;
    height: 5vh;

    background-color: #C40011;
    color: white;
    border-radius: 10px;
    border: none;
    font-size: 17px;
}

#botao-enviar:hover {
    background-color: #b1000f;
    cursor: pointer;
}

.div-resultado {
    display: none;
    flex-direction: column;
    text-align: center;
    width: 35%;
    margin: auto;
    background-color: white;
    border: 1px solid #C40011;
    border-radius: 10px;

    padding-top: 5vh;
    padding-bottom: 5vh;
    margin-bottom: 1vh;
}

#h3-resultado {
    color: #C40011;
    font-size: 17px;
    text-align: start;
    margin-left: 2vw;
}

#h2-resultado {
    color: #1b1a1b;
    text-align: start;
    margin-left: 2vw;
}

.div-mostra-resultados {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 3vh;
}

.p-legenda-resultado {
    color: #6d6d6d;
}

#p-resultado-credito, #p-resultado-parcela, #p-resultado-prazo {
    margin-top: 0.2vh;
    font-weight: bold;
    font-size: 20px;
}

#p-legenda-aproximados {
    margin-top: 3vh;
    color: #777777;
    font-size: 13px;
    text-align: start;
    margin-left: 2vw;
}

#a-quero-falar {
    margin-top: 3vh;
    text-align: center;
    margin-left: 2vw;

    text-decoration: none;
    color: white;
    background-color: #C40011;
    width: 45%;
    padding-top: 1.5vh;
    padding-bottom: 1.5vh;
    border-radius: 10px;
}

#a-quero-falar:hover {
    background-color: #b1000f;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #C40011;
    cursor: pointer;
    justify-self: end;
    padding-right: 5vw;
}

.a-fale-comigo-mobile {
    display: none;
}

@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr auto;
        height: 80px;
    }

    .header-esquerda {
        padding-left: 5vw;
    }

    #img-embracon {
        width: 38vw;
        max-width: 170px;
    }

    .header-centro {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #F5F5F7;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .header-centro.active {
        max-height: 320px;
    }

    .a-header-centro {
        width: 100%;
        padding: 18px 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .a-fale-comigo-mobile {
        display: inline-block;
        margin: 20px auto;
        text-align: center;
    }

    .header-direita {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
    
    form {
        width: 90%;
    }

    .div-botoes-creditoparcela {
        width: 80%;
    }

    .label-creditoparcela {
        width: 35vw;
    }

    .div-resultado {
        width: 90%;
    }

    #p-resultado-credito, #p-resultado-parcela, #p-resultado-prazo {
        font-size: 18px;
        text-align: center;
        margin-left: 2vw;
    }

    #a-quero-falar {
        width: 70%;
    }
}

