* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f4f7fa;
    color: #0b2035;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

button,
input,
select {
    font: inherit;
}

.tax-page {
    min-height: 100vh;
}

.tax-container {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.tax-hero {
    padding: 88px 0 150px;
    background:
        linear-gradient(
            135deg,
            #071f36 0%,
            #0d416b 100%
        );
    color: #ffffff;
}

.tax-eyebrow {
    margin: 0 0 14px;
    color: #b9d7ed;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tax-hero h1 {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.tax-hero-copy {
    max-width: 680px;
    margin: 0;
    color: #d8e6f0;
    font-size: 20px;
    line-height: 1.65;
}

.tax-calculator-section {
    padding: 0 0 80px;
}

.tax-calculator-card {
    margin-top: -84px;
    padding: 42px;
    border: 1px solid #dce4eb;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 65px rgba(7, 31, 54, 0.14);
}

.tax-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.tax-field label {
    display: block;
    margin: 0 0 9px;
    font-size: 15px;
    font-weight: 700;
}

.tax-field select,
.tax-money-input {
    width: 100%;
    min-height: 58px;
    border: 1px solid #b7c4cf;
    border-radius: 10px;
    background: #ffffff;
}

.tax-field select {
    padding: 0 15px;
    color: #0b2035;
}

.tax-money-input {
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.tax-money-input span {
    margin-right: 7px;
    font-size: 18px;
    font-weight: 700;
}

.tax-money-input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0b2035;
    font-size: 18px;
}

#tax-calculate-button {
    grid-column: 1 / -1;
    min-height: 58px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: #0963b5;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 160ms ease,
        background 160ms ease;
}

#tax-calculate-button:hover {
    background: #074f91;
    transform: translateY(-1px);
}

#tax-calculate-button:focus-visible,
.tax-field input:focus,
.tax-field select:focus {
    outline: 3px solid rgba(9, 99, 181, 0.22);
    outline-offset: 2px;
}

.tax-error {
    grid-column: 1 / -1;
    min-height: 20px;
    margin: -6px 0 0;
    color: #b42318;
    font-size: 14px;
    font-weight: 700;
}

.tax-results {
    margin-top: 34px;
    padding-top: 34px;
    border-top: 1px solid #dce4eb;
}

.tax-result-label {
    margin: 0 0 8px;
    color: #587083;
    font-size: 15px;
    font-weight: 700;
}

.tax-annual-result {
    margin: 0 0 28px;
    color: #0963b5;
    font-size: clamp(48px, 8vw, 82px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
}

.tax-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tax-result-box {
    padding: 20px;
    border-radius: 14px;
    background: #eef4f8;
}

.tax-result-box span {
    display: block;
    margin-bottom: 8px;
    color: #587083;
    font-size: 14px;
}

.tax-result-box strong {
    display: block;
    font-size: 21px;
}

.tax-calculation-breakdown {
    margin-top: 26px;
    padding: 24px;
    border-left: 4px solid #0963b5;
    background: #f7fafc;
}

.tax-calculation-breakdown h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.tax-calculation-breakdown p {
    margin: 0;
    color: #40576a;
    line-height: 1.7;
}

.tax-information-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.tax-information-grid article {
    padding: 26px;
    border: 1px solid #dce4eb;
    border-radius: 16px;
    background: #ffffff;
}

.tax-information-grid h2,
.tax-example h2 {
    margin: 0 0 12px;
    font-size: 21px;
}

.tax-information-grid p,
.tax-example p {
    margin: 0;
    color: #506779;
    line-height: 1.7;
}

.tax-example {
    margin-top: 24px;
    padding: 30px;
    border-radius: 16px;
    background: #0b2035;
    color: #ffffff;
}

.tax-example p {
    color: #d4e0e9;
}

.tax-disclaimer {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #dce4eb;
    border-radius: 14px;
    background: #ffffff;
    color: #5d6d79;
    font-size: 14px;
    line-height: 1.65;
}

.tax-disclaimer strong {
    color: #0b2035;
}

@media (max-width: 760px) {
    .tax-container {
        width: min(100% - 28px, 1080px);
    }

    .tax-hero {
        padding: 64px 0 125px;
    }

    .tax-hero-copy {
        font-size: 18px;
    }

    .tax-calculator-card {
        margin-top: -66px;
        padding: 26px 20px;
    }

    .tax-form,
    .tax-result-grid,
    .tax-information-grid {
        grid-template-columns: 1fr;
    }
}

.tax-result-grid {
    grid-template-columns: repeat(4, 1fr);
}

.tax-rate-information {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid #dce4eb;
    border-radius: 14px;
    background: #ffffff;
}

.tax-rate-information h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.tax-rate-information p {
    margin: 0;
    color: #40576a;
    line-height: 1.7;
}

.tax-source-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
}

.tax-source-row span {
    color: #587083;
}

.tax-source-row a {
    color: #0963b5;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tax-updated-note {
    margin-top: 12px !important;
    font-size: 13px;
}

@media (max-width: 900px) {
    .tax-result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .tax-result-grid {
        grid-template-columns: 1fr;
    }
}