/* =====================================================
   SIMULADOR DE VIAGEM
   Estilos exclusivos da ferramenta
   ===================================================== */


/* =====================================================
   ÁREA DA FERRAMENTA
   ===================================================== */

.travel-tool {

    max-width: 960px;

    margin: 0 auto;

}


/* =====================================================
   ORIENTAÇÃO
   ===================================================== */

.travel-orientation {

    margin-bottom: 0;

}


.orientation-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;

    margin-top: 22px;

}


.orientation-item {

    padding: 17px;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    background: #f8fafc;

}


.orientation-item strong {

    display: block;

    margin-bottom: 7px;

    color: #0f172a;

    font-size: .92rem;

}


.orientation-item p {

    margin: 0;

    color: #64748b;

    font-size: .84rem;

    line-height: 1.55;

}


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

.checkbox-field {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 25px;

}


.checkbox-field input {

    width: 18px;

    height: 18px;

    margin: 0;

}


.checkbox-field label {

    margin: 0;

    cursor: pointer;

    font-size: .86rem;

    font-weight: 600;

}


.scenario-fields {

    margin-top: 4px;

}


.scenario-fields[hidden] {

    display: none;

}


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

.result {

    display: none;

    margin-top: 34px;

}


.result.active {

    display: block;

}


.result-total {

    padding: 30px 24px;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    background: #fff;

    text-align: center;

}


.result-total-label {

    margin-bottom: 8px;

    color: #64748b;

    font-size: .92rem;

}


.result-total-value {

    color: #0f172a;

    font-size: clamp(2.3rem, 6vw, 3rem);

    line-height: 1.1;

    font-weight: 700;

}


.result-total-note {

    margin-top: 12px;

    color: #64748b;

    font-size: .84rem;

    line-height: 1.5;

}


/* =====================================================
   RESUMO
   ===================================================== */

.summary-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

    margin: 20px 0;

}


.summary-card {

    padding: 17px;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    background: #fff;

}


.summary-label {

    margin-bottom: 6px;

    color: #64748b;

    font-size: .78rem;

}


.summary-value {

    color: #0f172a;

    font-size: 1.08rem;

    font-weight: 700;

}


/* =====================================================
   TABELA DE CUSTOS
   ===================================================== */

.result-cost-card {

    margin-top: 20px;

}


.result-table-wrapper {

    overflow-x: auto;

}


.result-table {

    width: 100%;

    border-collapse: collapse;

}


.result-table th,
.result-table td {

    padding: 12px 10px;

    border-bottom:
        1px solid #e2e8f0;

    text-align: left;

}


.result-table th:last-child,
.result-table td:last-child {

    text-align: right;

    white-space: nowrap;

}


.result-table th {

    color: #64748b;

    font-size: .82rem;

    font-weight: 600;

}


.result-table td {

    color: #334155;

    font-size: .88rem;

}


.result-table .total td {

    border-top: 2px solid #cbd5e1;

    border-bottom: 0;

    color: #0f172a;

    font-size: 1rem;

    font-weight: 700;

}


/* =====================================================
   GRÁFICO
   ===================================================== */

.chart-box {

    margin-top: 20px;

    padding: 20px;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    background: #fff;

}


.chart-box h2 {

    margin: 0 0 15px;

    color: #0f172a;

    font-size: 1.12rem;

}


.chart-container {

    position: relative;

    width: 100%;

    height: 300px;

}


#costChart {

    display: block;

    width: 100%;

    height: 100%;

}


/* =====================================================
   CENÁRIOS
   ===================================================== */

.scenario-box {

    margin-top: 20px;

    padding: 20px;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    background: #fff;

}


.scenario-box h2 {

    margin: 0 0 15px;

    color: #0f172a;

    font-size: 1.12rem;

}


.scenario-toggle {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 18px;

    color: #334155;

    font-size: .86rem;

    font-weight: 600;

}


.scenario-toggle input {

    width: 18px;

    height: 18px;

    margin: 0;

}


.scenario-result {

    display: none;

}


.scenario-result.active {

    display: block;

}


.comparison-grid {

    display: grid;

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

    gap: 12px;

}


.comparison-card {

    padding: 17px;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    background: #f8fafc;

}


.comparison-card h3 {

    margin: 0 0 11px;

    color: #0f172a;

    font-size: .92rem;

}


.comparison-label {

    display: block;

    margin-top: 8px;

    color: #64748b;

    font-size: .76rem;

}


.comparison-value {

    display: block;

    margin-top: 3px;

    color: #0f172a;

    font-size: 1.05rem;

    font-weight: 700;

}


/* =====================================================
   MEMÓRIA DE CÁLCULO
   ===================================================== */

.calculation-box {

    margin-top: 20px;

    padding: 20px;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    background: #fff;

}


.calculation-box h2 {

    margin: 0 0 14px;

    color: #0f172a;

    font-size: 1.12rem;

}


.calculation-item {

    padding: 11px 0;

    border-bottom:
        1px solid #e2e8f0;

    color: #475569;

    font-size: .87rem;

    line-height: 1.55;

}


.calculation-item:last-child {

    border-bottom: 0;

}


.calculation-title {

    display: block;

    margin-bottom: 3px;

    color: #0f172a;

    font-weight: 700;

}


/* =====================================================
   AVISOS
   ===================================================== */

.notice {

    margin-top: 18px;

}


.legal-notice {

    margin-top: 24px;

    padding: 17px;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    background: #f8fafc;

    color: #475569;

    font-size: .82rem;

    line-height: 1.6;

}


/* =====================================================
   INFORMAÇÕES PÓS-RESULTADO
   ===================================================== */

.travel-information {

    line-height: 1.65;

}


.travel-information > p {

    margin: 0 0 16px;

}


.travel-information-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;

    margin-top: 22px;

}


.information-card {

    padding: 17px;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    background: #f8fafc;

}


.information-card h3 {

    margin: 0 0 8px;

    color: #0f172a;

    font-size: .94rem;

}


.information-card p {

    margin: 0;

    color: #64748b;

    font-size: .84rem;

    line-height: 1.55;

}


/* =====================================================
   RESPONSIVIDADE
   ===================================================== */

@media (max-width: 800px) {

    .summary-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .comparison-grid {

        grid-template-columns: 1fr;

    }


    .orientation-grid,
    .travel-information-grid {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 720px) {

    .form-grid,
    .form-grid.three {

        grid-template-columns: 1fr;

    }


    .field.full {

        grid-column: auto;

    }


    .summary-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 520px) {

    .summary-grid {

        grid-template-columns: 1fr;

    }


    .chart-container {

        height: 240px;

    }


    .result-total {

        padding: 25px 18px;

    }


    .result-total-value {

        font-size: 2.25rem;

    }

}


/* =====================================================
   IMPRESSÃO
   ===================================================== */

@media print {

    header,
    footer,
    .tool-breadcrumb,
    .tool-header,
    .travel-input-section,
    .travel-orientation,
    .actions,
    .result-actions,
    .ad-container {

        display: none !important;

    }


    .result {

        display: block !important;

        margin: 0;

    }


    .result-total,
    .summary-card,
    .result-cost-card,
    .chart-box,
    .scenario-box,
    .calculation-box {

        border-color: #ccc;

        box-shadow: none;

    }


    body {

        background: #fff;

    }

}