:root {
    --rastreio-azul: #061b31;
    --rastreio-azul-claro: #0d3152;
    --rastreio-laranja: #ef6c00;
    --rastreio-fundo: #f3f6f8;
    --rastreio-borda: #dce4ea;
    --rastreio-texto: #10263b;
    --rastreio-sucesso: #16805b;
}

* {
    box-sizing: border-box;
}

.pagina-rastreio {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 92% 12%, rgba(239, 108, 0, .09), transparent 24rem),
        var(--rastreio-fundo);
    color: var(--rastreio-texto);
}

.cabecalho-rastreio {
    position: relative;
}

.rastreio-principal {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 80px;
}

.rastreio-apresentacao {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
    gap: 56px;
    align-items: center;
    padding: 48px;
    border-radius: 24px;
    background: var(--rastreio-azul);
    color: #fff;
    box-shadow: 0 22px 60px rgba(6, 27, 49, .18);
}

.rastreio-introducao .eyebrow {
    color: #ff9b4a;
}

.rastreio-introducao h1 {
    margin: 12px 0 14px;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: .98;
    letter-spacing: -.045em;
}

.rastreio-introducao p {
    max-width: 600px;
    margin: 0;
    color: #c9d7e4;
    font-size: 1.05rem;
    line-height: 1.7;
}

.formulario-rastreio {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

.formulario-rastreio label {
    display: block;
    margin-bottom: 9px;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.campo-rastreio {
    display: flex;
    gap: 10px;
}

.campo-rastreio input {
    min-width: 0;
    width: 100%;
    height: 54px;
    padding: 0 17px;
    border: 2px solid transparent;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--rastreio-azul);
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
}

.campo-rastreio input:focus {
    border-color: #ff9b4a;
    box-shadow: 0 0 0 4px rgba(239, 108, 0, .18);
}

.campo-rastreio button {
    height: 54px;
    padding: 0 21px;
    border: 0;
    border-radius: 10px;
    background: var(--rastreio-laranja);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    white-space: nowrap;
}

.campo-rastreio button:hover {
    background: #ff7a0a;
    transform: translateY(-1px);
}

.formulario-rastreio small {
    display: block;
    margin-top: 11px;
    color: #b8c8d6;
    line-height: 1.45;
}

.aviso-rastreio,
.selecao-registro,
.resumo-rastreio,
.destino-rastreio,
.painel-linha-tempo {
    margin-top: 28px;
    border: 1px solid var(--rastreio-borda);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(6, 27, 49, .07);
}

.aviso-rastreio {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 24px 28px;
}

.aviso-rastreio > span {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #fff0e5;
    color: var(--rastreio-laranja);
    font-size: 1.25rem;
    font-weight: 900;
}

.aviso-rastreio strong {
    display: block;
    margin-bottom: 4px;
}

.aviso-rastreio p {
    margin: 0;
    color: #637487;
}

.selecao-registro,
.painel-linha-tempo {
    padding: 34px;
}

.titulo-bloco > span {
    color: var(--rastreio-laranja);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.titulo-bloco h2 {
    margin: 7px 0 6px;
    color: var(--rastreio-azul);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.titulo-bloco p {
    margin: 0;
    color: #68798a;
}

.opcoes-pod {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.opcoes-pod > a {
    display: grid;
    grid-template-columns: .75fr 1.4fr auto 32px;
    gap: 20px;
    align-items: center;
    padding: 19px 20px;
    border: 1px solid var(--rastreio-borda);
    border-radius: 13px;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.opcoes-pod > a:hover {
    border-color: #f3a05c;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(6, 27, 49, .08);
}

.opcoes-pod small,
.resumo-rastreio small {
    display: block;
    margin-bottom: 5px;
    color: #758696;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.opcoes-pod strong {
    color: var(--rastreio-azul);
}

.opcoes-pod b {
    color: var(--rastreio-laranja);
    font-size: 1.3rem;
}

.resumo-rastreio {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr 1fr;
    gap: 1px;
    overflow: hidden;
}

.resumo-rastreio > div {
    min-width: 0;
    padding: 25px;
    border-right: 1px solid var(--rastreio-borda);
}

.resumo-rastreio > div:last-child {
    border-right: 0;
}

.resumo-rastreio h2,
.resumo-rastreio strong {
    display: block;
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--rastreio-azul);
}

.resumo-rastreio h2 {
    font-size: 1.55rem;
}

.destino-rastreio {
    display: grid;
    grid-template-columns: 52px minmax(0, 1.5fr) minmax(180px, .75fr);
    gap: 22px;
    align-items: center;
    padding: 24px 28px;
}

.icone-destino {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: #fff0e2;
    color: var(--rastreio-laranja);
    font-size: 1.35rem;
    font-weight: 900;
}

.destino-rastreio small {
    display: block;
    margin-bottom: 5px;
    color: #758696;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.destino-rastreio h2,
.destino-rastreio strong {
    display: block;
    margin: 0;
    color: var(--rastreio-azul);
    overflow-wrap: anywhere;
}

.destino-rastreio h2 {
    font-size: 1.15rem;
}

.status-rastreio {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .035em;
}

.status-concluido {
    background: #dff5ec;
    color: #0d694a;
}

.status-rota {
    background: #e4efff;
    color: #155aa2;
}

.status-andamento {
    background: #fff0e2;
    color: #a64b00;
}

.linha-tempo {
    position: relative;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.linha-tempo::before {
    position: absolute;
    top: 10px;
    bottom: 18px;
    left: 154px;
    width: 2px;
    background: #dce5eb;
    content: '';
}

.linha-tempo li {
    position: relative;
    display: grid;
    grid-template-columns: 130px 28px minmax(0, 1fr);
    gap: 12px;
    min-height: 92px;
}

.linha-tempo time {
    grid-column: 1;
    grid-row: 1;
    padding-top: 2px;
    color: #697b8b;
    font-size: .82rem;
    font-weight: 700;
    text-align: right;
}

.marcador-evento {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    width: 14px;
    height: 14px;
    margin: 3px auto 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #7890a4;
    box-shadow: 0 0 0 2px #bfcdd8;
}

.evento-rota .marcador-evento {
    background: #2e7ac2;
    box-shadow: 0 0 0 2px #9bc3e9;
}

.evento-conclusao .marcador-evento,
.evento-atual .marcador-evento {
    background: var(--rastreio-laranja);
    box-shadow: 0 0 0 3px #ffd1ad;
}

.conteudo-evento {
    grid-column: 3;
    grid-row: 1;
    padding: 0 0 27px 7px;
}

.conteudo-evento h3 {
    margin: 0 0 5px;
    color: var(--rastreio-azul);
    font-size: 1rem;
}

.conteudo-evento p {
    margin: 0;
    color: #697b8b;
    line-height: 1.55;
}

.sem-eventos {
    margin-top: 24px;
    padding: 25px;
    border-radius: 12px;
    background: var(--rastreio-fundo);
    color: #68798a;
    text-align: center;
}

.nova-consulta {
    margin-top: 24px;
    text-align: center;
}

.nova-consulta a {
    display: inline-flex;
    padding: 12px 20px;
    border: 1px solid var(--rastreio-azul);
    border-radius: 8px;
    color: var(--rastreio-azul);
    font-weight: 800;
    text-decoration: none;
}

.nova-consulta a:hover {
    background: var(--rastreio-azul);
    color: #fff;
}

.rodape-rastreio {
    margin-top: 0;
}

@media (max-width: 900px) {
    .rastreio-apresentacao {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 36px;
    }

    .resumo-rastreio {
        grid-template-columns: 1fr 1fr;
    }

    .resumo-rastreio > div:nth-child(2) {
        border-right: 0;
    }

    .resumo-rastreio > div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--rastreio-borda);
    }

    .opcoes-pod > a {
        grid-template-columns: 1fr 1.4fr;
    }

    .destino-rastreio {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .destino-rastreio > div:last-child {
        grid-column: 2;
    }

    .opcoes-pod b {
        display: none;
    }
}

@media (max-width: 680px) {
    .nav-rastreio a:not(.nav-cta) {
        display: none;
    }

    .rastreio-principal {
        width: min(100% - 24px, 1120px);
        padding: 24px 0 55px;
    }

    .rastreio-apresentacao {
        padding: 27px 20px;
        border-radius: 18px;
    }

    .formulario-rastreio {
        padding: 20px;
    }

    .campo-rastreio {
        flex-direction: column;
    }

    .campo-rastreio button {
        width: 100%;
    }

    .selecao-registro,
    .painel-linha-tempo {
        padding: 24px 19px;
    }

    .resumo-rastreio {
        grid-template-columns: 1fr;
    }

    .resumo-rastreio > div {
        border-right: 0;
        border-bottom: 1px solid var(--rastreio-borda);
    }

    .resumo-rastreio > div:last-child {
        border-bottom: 0;
    }

    .opcoes-pod > a {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .linha-tempo::before {
        left: 6px;
    }

    .destino-rastreio {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 15px;
        padding: 21px 19px;
    }

    .icone-destino {
        width: 40px;
        height: 40px;
    }

    .linha-tempo li {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 10px;
        min-height: 0;
        padding-bottom: 28px;
    }

    .linha-tempo time {
        grid-column: 2;
        grid-row: 1;
        padding: 0;
        text-align: left;
    }

    .marcador-evento {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 1px 0 0;
    }

    .conteudo-evento {
        grid-column: 2;
        grid-row: 2;
        padding: 2px 0 0;
    }
}
