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

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    background: #ffffff;
    color: #242424;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

button,
input,
select,
textarea {
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


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

.pacote-container {
    width: 100%;
    max-width: 1120px;

    margin: 0 auto;

    padding:
        80px
        24px
        78px;
}


/* ==================================================
   ETAPA
   ================================================== */

.etapa {
    margin:
        0
        0
        17px;

    color: #92969e;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;

    letter-spacing: 2px;
    text-transform: uppercase;
}


/* ==================================================
   TÍTULO
   ================================================== */

.pacote-title {
    max-width: 650px;

    margin:
        0
        0
        14px;

    color: #1e1e1e;

    font-size: 42px;
    line-height: 1.08;
    font-weight: 700;

    letter-spacing: -2px;
}


/* ==================================================
   SUBTÍTULO
   ================================================== */

.pacote-subtitle {
    max-width: 690px;

    margin:
        0
        0
        35px;

    color: #6f7075;

    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
}


/* ==================================================
   PAÍSES
   ================================================== */

.lista-paises {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;
}


/* ==================================================
   CARD DO PAÍS
   ================================================== */

.pais {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 86px;

    padding:
        18px
        18px
        17px
        56px;

    border:
        1px solid
        #b8bbc1;

    border-radius: 11px;

    background: #ffffff;
    color: #242424;

    text-align: left;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}


.pais:hover {
    border-color: #8d8d91;
}


/* ==================================================
   PAÍS SELECIONADO
   ================================================== */

.pais.ativo {
    border-color: #282828;

    background: #fafafa;

    box-shadow:
        inset
        0
        0
        0
        1px
        #282828;
}


/* ==================================================
   RADIO DO PAÍS
   ================================================== */

.pais-radio {
    position: absolute;

    top: 23px;
    left: 20px;

    display: flex;

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

    width: 20px;
    height: 20px;

    min-width: 20px;
    min-height: 20px;

    border:
        1px solid
        #b9bdc4;

    border-radius: 50%;

    background: #ffffff;

    flex-shrink: 0;
}


.pais.ativo .pais-radio {
    border-color: #292929;
    background: #292929;
}


.pais.ativo .pais-radio::after {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #ffffff;
}


/* ==================================================
   NOME DO PAÍS
   ================================================== */

.pais-nome {
    display: block;

    margin:
        0
        0
        6px;

    color: #242424;

    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
}


/* ==================================================
   RESUMO DO PAÍS
   ================================================== */

.pais-resumo {
    display: block;

    color: #929399;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
}


/* ==================================================
   SEÇÃO DE CIDADES
   ================================================== */

.cidades-section {
    margin-top: 42px;
}


/* ==================================================
   LABEL CIDADES DISPONÍVEIS
   ================================================== */

.cidades-label {
    margin:
        0
        0
        17px;

    color: #92969e;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;

    letter-spacing: 2px;
    text-transform: uppercase;
}


/*
 * O JavaScript continua preenchendo:
 *
 * "Destinos em Canadá"
 * "Destinos em África do Sul"
 *
 * mas ele fica oculto visualmente.
 */

.cidades-subtitle {
    display: none;
}


/* ==================================================
   GRID DAS CIDADES
   ================================================== */

.lista-cidades {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;

    width: 100%;
}


/* ==================================================
   CARD DA CIDADE
   ================================================== */

.cidade {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    padding: 0;

    overflow: hidden;

    border:
        1px solid
        #b8bbc1;

    border-radius: 12px;

    background: #ffffff;
    color: #242424;

    text-align: left;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}


.cidade:hover {
    border-color: #858589;

    transform:
        translateY(-1px);
}


/* ==================================================
   CIDADE SELECIONADA
   ================================================== */

.cidade.ativo {
    border-color: #222222;

    box-shadow:
        inset
        0
        0
        0
        1px
        #222222;
}


/* ==================================================
   IMAGEM DA CIDADE
   ================================================== */

.cidade-imagem {
    display: block;

    width: 100%;
    height: 145px;

    margin: 0;
    padding: 0;

    border: 0;

    object-fit: cover;

    background: #eeeeef;
}


/* ==================================================
   CIDADE SEM IMAGEM
   ================================================== */

.cidade-sem-imagem {
    display: flex;

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

    width: 100%;
    height: 145px;

    background: #f1f1f2;
    color: #99999e;

    font-size: 11px;
    line-height: 1.4;
}


/* ==================================================
   CONTEÚDO DA CIDADE
   ================================================== */

.cidade-conteudo {
    display: block;

    width: 100%;
    min-height: 104px;

    padding:
        20px
        20px
        18px;

    background: #ffffff;
}


/* ==================================================
   NOME DA CIDADE
   ================================================== */

.cidade-nome {
    display: block;

    margin:
        0
        0
        10px;

    color: #242424;

    font-size: 14px;
    line-height: 1.25;
    font-weight: 500;
}


/* ==================================================
   DESCRIÇÃO DA CIDADE
   ================================================== */

.cidade-descricao {
    display: block;

    margin: 0;

    color: #77797e;

    font-size: 12px;
    line-height: 1.45;
    font-weight: 400;
}


/* ==================================================
   STATUS DAS CIDADES
   ================================================== */

.cidades-status {
    width: 100%;

    padding: 30px;

    border:
        1px solid
        #dedee1;

    border-radius: 10px;

    background: #fafafa;
    color: #838388;

    text-align: center;

    font-size: 12px;
    line-height: 1.4;
}


.cidades-status.erro {
    color: #b42318;
}


/* ==================================================
   LOADING
   ================================================== */

.loading-indicator {
    display: inline-block;

    width: 14px;
    height: 14px;

    margin-right: 8px;

    vertical-align: middle;

    border:
        2px solid
        #d5d5d7;

    border-top-color:
        #222222;

    border-radius: 50%;

    animation:
        pacote-spin
        0.7s
        linear
        infinite;
}


@keyframes pacote-spin {

    to {
        transform:
            rotate(360deg);
    }

}


/* ==================================================
   FOOTER / NAVEGAÇÃO
   ================================================== */

.pacote-footer {
    display: flex;

    align-items: center;

    gap: 16px;

    margin-top: 48px;

    padding-top: 24px;

    border-top:
        1px solid
        #b8bbc1;
}


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

.botao-voltar {
    min-width: 97px;
    height: 52px;

    padding:
        0
        20px;

    border:
        1px solid
        #b8bbc1;

    border-radius: 11px;

    background: #ffffff;
    color: #242424;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}


.botao-voltar:hover {
    background: #f7f7f8;

    border-color: #96969a;
}


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

.botao-continuar {
    min-width: 142px;
    height: 52px;

    padding:
        0
        22px;

    border: 0;

    border-radius: 11px;

    background: #202020;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

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


.botao-continuar:hover:not(:disabled) {
    background: #000000;
}


/* ==================================================
   CONTINUAR DESABILITADO
   ================================================== */

.botao-continuar:disabled {
    background: #bfc0c2;
    color: #ffffff;

    opacity: 1;

    cursor: not-allowed;
}


/* ==================================================
   TEXTO OBRIGATÓRIO
   ================================================== */

.obrigatorio {
    color: #999ba2;

    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


/* ==================================================
   ACESSIBILIDADE / FOCO
   ================================================== */

.pais:focus-visible,
.cidade:focus-visible,
.botao-voltar:focus-visible,
.botao-continuar:focus-visible {
    outline:
        2px solid
        #222222;

    outline-offset: 3px;
}


/* ==================================================
   FORÇAR FONTE NESTE COMPONENTE
   ==================================================
   
   O tema estava sobrescrevendo a font-family.
   Por isso aplicamos especificamente dentro
   do pacote-container.
   ================================================== */

.pacote-container,
.pacote-container * {
    font-family:
        Arial,
        Helvetica,
        sans-serif
        !important;
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 850px) {

    .pacote-container {
        padding:
            50px
            24px
            50px;
    }


    .lista-paises,
    .lista-cidades {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .pacote-title {
        max-width: 600px;

        font-size: 36px;

        letter-spacing: -1.5px;
    }

}


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

@media (max-width: 560px) {

    .pacote-container {
        padding:
            35px
            18px
            30px;
    }


    .etapa {
        font-size: 10px;

        letter-spacing: 1.7px;
    }


    .pacote-title {
        font-size: 30px;
        line-height: 1.08;

        letter-spacing: -1px;
    }


    .pacote-subtitle {
        font-size: 13px;
        line-height: 1.6;

        margin-bottom: 30px;
    }


    .lista-paises,
    .lista-cidades {
        grid-template-columns: 1fr;
    }


    .pais {
        min-height: 82px;
    }


    .cidade-imagem,
    .cidade-sem-imagem {
        height: 175px;
    }


    .cidade-conteudo {
        min-height: auto;

        padding:
            18px
            18px
            20px;
    }


    .cidades-section {
        margin-top: 35px;
    }


    .pacote-footer {
        flex-wrap: wrap;

        margin-top: 38px;
    }


    .botao-voltar {
        flex: 1;

        min-width: 0;
    }


    .botao-continuar {
        flex: 1.4;

        min-width: 0;
    }


    .obrigatorio {
        width: 100%;

        margin-top: 2px;
    }

}