/* ========================================
   HOME - CALCULADORA DE IMPOSTOS
======================================== */

.tax-calculator-section {
    color: var(--ef-white);
    font-family: "Montserrat", Arial, sans-serif;
}

.tax-calculator-container {
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
}

.tax-calculator-header {
    text-align: center;
    margin-bottom: 48px;
    /* Adjusted to match original calculator header margin-bottom */
}

.tax-calculator-header h2 {
    margin: 0;
    font-size: 31px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 2.8px;
}

.tax-calculator-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

.tax-calculator-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tax-card {
    background: #101010;
    border-radius: 24px;
    box-shadow: inset 0 0 0 1px #161616;
}

.tax-input-card {
    min-height: 122px;
    padding: 24px 26px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tax-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.tax-card-top label {
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: #666565;
    letter-spacing: 1px;
    font-family: "Open Sans", Arial, sans-serif;
}

.tax-value {
    color: #ffffff;
    font-size: 23px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.tax-slider-wrap {
    margin-top: 8px;
    padding: 0 4px;
}

input[type="range"].tax-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    /* mais alto para facilitar clique */
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    height: 8px;
    /* Ajustado para 4px conforme o original */
    background: var(--ef-track);
    /* Cor do track não preenchido */
}

/* track (chrome) */
input[type="range"].tax-slider::-webkit-slider-runnable-track {
    height: 4px;
    /* Ajustado para 4px conforme o original */
    border-radius: 999px;
    background: var(--ef-track);
    /* Cor do track não preenchido */
}

/* thumb */
input[type="range"].tax-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -8px;
    /* Ajustado para centralizar o thumb de 20px em um track de 4px */
    border-radius: 50%;
    background: var(--gold-slider-gradient);
    /* Gradiente dourado do original */
    border: 4px solid #000;
    /* Borda de 4px preta */
    cursor: pointer;
    background: var(--gold-gradient);
}

/* firefox */
input[type="range"].tax-slider::-moz-range-track {
    height: 4px;
    /* Ajustado para 4px conforme o original */
    border-radius: 999px;
    /* Borda arredondada */
}

input[type="range"].tax-slider::-moz-range-progress {
    height: 4px;
    /* Ajustado para 4px conforme o original */
    border-radius: 999px;
    background: var(--gold-slider-gradient);
    /* Gradiente dourado do original */
}

input[type="range"].tax-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-slider-gradient);
    /* Gradiente dourado do original */
    border: 4px solid #000;
    /* Borda de 4px preta */

    box-shadow: 0 0 0 2px var(--thumb-shadow-color),
        0 0 18px var(--thumb-shadow-color);
    /* Sombra do thumb do slider */
    cursor: pointer;
}

.tax-result-card {
    min-height: 262px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tax-result-card h3 {
    margin: 0 0 28px;
    text-align: center;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.tax-result-box {
    min-height: 98px;
    border: 1px solid rgba(224, 184, 74, 0.72);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.tax-result-box span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
}

@media (max-width: 991px) {
    .tax-calculator-grid {
        grid-template-columns: 1fr;
    }

    .tax-result-card {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .tax-calculator-section {
        padding: 32px 0;
    }

    .tax-calculator-container {
        width: min(328px, calc(100% - 64px));
    }

    .tax-calculator-header h2 {
        font-size: 28px;
        letter-spacing: 2px;
        display: block;
        font-family: 'Open Sans', sans-serif;
        font-weight: 900;
        letter-spacing: 1px;
        font-size: 28px;
        line-height: 1.05;
        margin-bottom: 8px;
    }

    .tax-calculator-header h2 span {
        display: block;
    }

    .tax-input-card,
    .tax-result-card {
        padding: 22px 18px;
    }

    .tax-card-top {
        flex-direction: row;
        gap: 10px;
    }

    .tax-value {
        font-size: 18px;
    }

    .tax-result-box span {
        font-size: 34px;
    }
    
    .tax-result-card h3 {
        font-size: 19px;
    }
}