/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --azul: #073f8c;
    --azul-escuro: #042c65;
    --azul-claro: #eaf3ff;

    --verde: #22a447;

    --branco: #ffffff;

    --texto: #172033;
    --texto-claro: #697386;

    --borda: #e4e9f1;

    --sombra:
        0 15px 50px
        rgba(8, 35, 75, 0.12);

}


html {
    scroll-behavior: smooth;
}


body {

    font-family: "Montserrat", sans-serif;

    background: #f7f9fc;

    color: var(--texto);

}


/* =========================
   CAPA
========================= */

.hero {

    position: relative;

    width: 100%;

    height: auto;

    overflow: hidden;

    line-height: 0;

}


.hero picture {

    display: block;

    width: 100%;

}


.hero-image {

    display: block;

    width: 100%;

    height: auto;

}


/* =========================
   CONTEÚDO
========================= */

.main {

    position: relative;

    z-index: 10;

}


.busca-section {

    position: relative;

    z-index: 10;

    padding:
        0
        20px
        80px;

    /*
    Faz o card subir
    sobre a capa
    */

    margin-top: -45px;

}


.container {

    width: 100%;

    max-width: 680px;

    margin: auto;

    background: white;

    border-radius: 28px;

    padding:
        48px
        40px;

    box-shadow: var(--sombra);

}


/* =========================
   CABEÇALHO
========================= */

.cabecalho {

    text-align: center;

    margin-bottom: 35px;

}


.tag {

    display: inline-block;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.6px;

    color: var(--azul);

    background: var(--azul-claro);

    padding:
        9px
        14px;

    border-radius: 100px;

    margin-bottom: 18px;

}


.cabecalho h1 {

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

    line-height: 1.08;

    letter-spacing: -1.5px;

    font-weight: 800;

    margin-bottom: 18px;

}


.cabecalho h1 span {

    display: block;

    color: var(--azul);

}


.cabecalho p {

    max-width: 520px;

    margin: auto;

    font-size: 15px;

    line-height: 1.7;

    color: var(--texto-claro);

}


/* =========================
   BUSCA
========================= */

.search-wrapper {

    position: relative;

    z-index: 20;

}


.search-box {

    position: relative;

    display: flex;

    align-items: center;

}


.search-box input {

    width: 100%;

    height: 64px;

    border:
        2px solid
        var(--borda);

    border-radius: 16px;

    outline: none;

    padding:
        0
        55px;

    font-family: inherit;

    font-size: 16px;

    font-weight: 500;

    color: var(--texto);

    background: white;

    transition: .25s ease;

}


.search-box input:focus {

    border-color: var(--azul);

    box-shadow:
        0 0 0 4px
        rgba(7, 63, 140, .08);

}


.search-box input:disabled {

    background: #f5f6f8;

    cursor: wait;

}


.search-icon {

    position: absolute;

    left: 20px;

    width: 22px;

    stroke-width: 2;

    color: var(--azul);

    z-index: 2;

}


/* =========================
   SUGESTÕES
========================= */

.sugestoes {

    position: absolute;

    left: 0;

    right: 0;

    top: calc(100% + 8px);

    background: white;

    border:
        1px solid
        var(--borda);

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 20px 40px
        rgba(15, 35, 65, .15);

    display: none;

}


.sugestoes.ativo {

    display: block;

}


.sugestao {

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        16px
        18px;

    cursor: pointer;

    border-bottom:
        1px solid
        #f0f2f6;

    transition: .2s;

}


.sugestao:last-child {

    border-bottom: 0;

}


.sugestao:hover {

    background: var(--azul-claro);

}


.pin {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 34px;

    height: 34px;

    border-radius: 50%;

    background: var(--azul-claro);

    flex-shrink: 0;

}


.sugestao strong {

    font-size: 14px;

    font-weight: 700;

}


/* =========================
   STATUS
========================= */

.status {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 20px;

    font-size: 13px;

    color: var(--texto-claro);

}


.status.pronto {

    display: none;

}


.loader {

    width: 17px;

    height: 17px;

    border:
        2px solid
        #dbe2ec;

    border-top-color:
        var(--azul);

    border-radius: 50%;

    animation:
        girar
        .8s
        linear
        infinite;

}


.loader-small {

    display: none;

}


@keyframes girar {

    to {

        transform:
            rotate(360deg);

    }

}


/* =========================
   RESULTADO
========================= */

.resultado {

    display: none;

    margin-top: 28px;

    padding:
        32px
        28px;

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #f3f8ff,
            #ffffff
        );

    border:
        1px solid
        #dceaff;

    text-align: center;

    animation:
        aparecer
        .35s ease;

}


.resultado.ativo {

    display: block;

}


@keyframes aparecer {

    from {

        opacity: 0;

        transform:
            translateY(8px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


.check {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 52px;

    height: 52px;

    margin:
        0 auto
        15px;

    border-radius: 50%;

    background: #e5f8eb;

    color: var(--verde);

}


.check svg {

    width: 25px;

    stroke-width: 3;

}


.encontramos {

    display: block;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: var(--verde);

    margin-bottom: 8px;

}


.resultado h2 {

    font-size: 30px;

    font-weight: 800;

    color: var(--azul-escuro);

    margin-bottom: 10px;

}


.resultado p {

    max-width: 440px;

    margin:
        0 auto
        22px;

    font-size: 14px;

    line-height: 1.6;

    color: var(--texto-claro);

}


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

.btn-drive {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    width: 100%;

    min-height: 58px;

    background:
        linear-gradient(
            135deg,
            var(--azul),
            var(--azul-escuro)
        );

    color: white;

    text-decoration: none;

    border-radius: 14px;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .4px;

    transition: .25s ease;

    box-shadow:
        0 10px 25px
        rgba(7, 63, 140, .22);

}


.btn-drive svg {

    width: 19px;

    stroke-width: 2.5;

    transition: .25s;

}


.btn-drive:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 30px
        rgba(7, 63, 140, .3);

}


.btn-drive:hover svg {

    transform:
        translateX(4px);

}


/* =========================
   NÃO ENCONTRADO
========================= */

.nao-encontrado {

    display: none;

    margin-top: 25px;

    text-align: center;

    padding: 25px;

    border-radius: 18px;

    background: #fff8e8;

}


.nao-encontrado.ativo {

    display: block;

}


.icone-info {

    display: flex;

    align-items: center;

    justify-content: center;

    margin:
        0 auto
        12px;

    width: 38px;

    height: 38px;

    border-radius: 50%;

    background: #ffb82e;

    color: white;

    font-weight: 800;

}


.nao-encontrado h3 {

    font-size: 16px;

    margin-bottom: 7px;

}


.nao-encontrado p {

    font-size: 13px;

    line-height: 1.6;

    color: var(--texto-claro);

}


/* =========================
   FOOTER
========================= */

footer {

    padding:
        25px
        20px
        40px;

    text-align: center;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: .5px;

    color: #9aa3b2;

}


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

@media (max-width: 600px) {

    /*
    A imagem mobile é escolhida
    automaticamente pelo <picture>
    do HTML.
    */

    .hero {

        width: 100%;

        height: auto;

        min-height: 0;

    }


    .hero picture {

        width: 100%;

        display: block;

    }


    .hero-image {

        display: block;

        width: 100%;

        height: auto;

    }


    /*
    Faz o card entrar um pouco
    sobre a capa mobile.
    */

    .busca-section {

        padding:
            0
            14px
            50px;

        margin-top: -30px;

    }


    .container {

        padding:
            35px
            20px;

        border-radius: 23px;

    }


    .cabecalho {

        margin-bottom: 28px;

    }


    .cabecalho h1 {

        font-size: 28px;

        letter-spacing: -1px;

    }


    .cabecalho p {

        font-size: 14px;

    }


    .search-box input {

        height: 60px;

        font-size: 15px;

    }


    .resultado {

        padding:
            27px
            20px;

    }


    .resultado h2 {

        font-size: 25px;

    }

}