.bp24-tsr,
.bp24-tsr * {
    box-sizing: border-box;
}

.bp24-tsr {
    --tsr-bg: #f5f7fb;
    --tsr-card: #ffffff;
    --tsr-text: #16213b;
    --tsr-muted: #667085;
    --tsr-border: #dde3ec;
    --tsr-primary: #126857;
    --tsr-primary-dark: #0c4d41;
    --tsr-primary-soft: #e8f5f1;
    --tsr-blue-soft: #eef5ff;
    --tsr-blue: #2b67a9;
    width: 100%;
    max-width: 1080px;
    margin: 28px auto;
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid var(--tsr-border);
    border-radius: 24px;
    background: var(--tsr-bg);
    color: var(--tsr-text);
    font-family: inherit;
    line-height: 1.5;
    box-shadow: 0 18px 50px rgba(22, 33, 59, 0.08);
}

.bp24-tsr button,
.bp24-tsr input,
.bp24-tsr select {
    font: inherit;
}

.bp24-tsr h2,
.bp24-tsr p {
    margin-top: 0;
}

.bp24-tsr__header {
    max-width: 760px;
    margin-bottom: 24px;
}

.bp24-tsr__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--tsr-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.bp24-tsr__header h2 {
    margin-bottom: 9px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.bp24-tsr__header p {
    margin-bottom: 0;
    color: var(--tsr-muted);
    font-size: 16px;
}

.bp24-tsr__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.bp24-tsr__form-card,
.bp24-tsr__results {
    min-width: 0;
    border: 1px solid var(--tsr-border);
    border-radius: 18px;
    background: var(--tsr-card);
    box-shadow: 0 7px 24px rgba(22, 33, 59, 0.05);
}

.bp24-tsr__form-card {
    padding: clamp(18px, 3vw, 26px);
}

.bp24-tsr__field {
    margin: 0 0 20px;
}

.bp24-tsr__field:last-of-type {
    margin-bottom: 18px;
}

.bp24-tsr__field label,
.bp24-tsr__field legend {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    color: var(--tsr-text);
    font-size: 14px;
    font-weight: 750;
}

.bp24-tsr__field small {
    display: block;
    margin-top: 7px;
    color: var(--tsr-muted);
    font-size: 12px;
}

.bp24-tsr__field select,
.bp24-tsr__input-wrap {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cfd6e1;
    border-radius: 11px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bp24-tsr__field select {
    padding: 0 42px 0 13px;
    color: var(--tsr-text);
    cursor: pointer;
}

.bp24-tsr__field select:focus,
.bp24-tsr__input-wrap:focus-within {
    border-color: var(--tsr-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(18, 104, 87, 0.12);
}

.bp24-tsr__input-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bp24-tsr__input-wrap input {
    min-width: 0;
    flex: 1;
    height: 46px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--tsr-text);
}

.bp24-tsr__input-wrap span {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-left: 1px solid #e4e8ef;
    background: #f8fafc;
    color: var(--tsr-muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.bp24-tsr__field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bp24-tsr__field--vehicle {
    min-width: 0;
    padding: 0;
    border: 0;
}

.bp24-tsr__vehicles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bp24-tsr__vehicle {
    position: relative;
    margin: 0 !important;
    cursor: pointer;
}

.bp24-tsr__vehicle:last-child {
    grid-column: 1 / -1;
}

.bp24-tsr__vehicle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.bp24-tsr__vehicle > span {
    display: grid;
    min-height: 82px;
    height: 100%;
    align-content: center;
    padding: 13px 14px;
    border: 1px solid #d8dee8;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.bp24-tsr__vehicle b,
.bp24-tsr__vehicle small,
.bp24-tsr__vehicle strong {
    display: block;
}

.bp24-tsr__vehicle b {
    font-size: 14px;
    line-height: 1.3;
}

.bp24-tsr__vehicle small {
    margin-top: 2px;
    color: var(--tsr-muted);
    font-size: 11px;
    font-weight: 500;
}

.bp24-tsr__vehicle strong {
    margin-top: 5px;
    color: var(--tsr-primary);
    font-size: 13px;
}

.bp24-tsr__vehicle input:checked + span {
    border-color: var(--tsr-primary);
    background: var(--tsr-primary-soft);
    box-shadow: inset 0 0 0 1px var(--tsr-primary);
}

.bp24-tsr__vehicle input:focus-visible + span {
    outline: 3px solid rgba(18, 104, 87, 0.18);
    outline-offset: 2px;
}

.bp24-tsr__reset {
    padding: 9px 12px;
    border: 0;
    background: transparent;
    color: var(--tsr-muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.bp24-tsr__reset:hover {
    color: var(--tsr-text);
    text-decoration: underline;
}

.bp24-tsr__results {
    position: sticky;
    top: 22px;
    overflow: hidden;
}

.bp24-tsr__results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e7ebf1;
}

.bp24-tsr__results-heading > span {
    font-size: 15px;
    font-weight: 800;
}

.bp24-tsr__year-badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--tsr-primary-soft);
    color: var(--tsr-primary-dark);
    font-size: 11px;
}

.bp24-tsr__primary-result {
    padding: 22px 18px 18px;
    background: var(--tsr-blue-soft);
}

.bp24-tsr__primary-result > span,
.bp24-tsr__tax-result > span {
    display: block;
    margin-bottom: 4px;
    color: #38516f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bp24-tsr__primary-result > strong {
    display: block;
    color: #183d69;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.bp24-tsr__primary-result p {
    margin: 10px 0 0;
    color: #38516f;
    font-size: 13px;
}

.bp24-tsr--eligible-amount .bp24-tsr__primary-result {
    background: var(--tsr-primary-soft);
}

.bp24-tsr--eligible-amount .bp24-tsr__primary-result > span,
.bp24-tsr--eligible-amount .bp24-tsr__primary-result p {
    color: var(--tsr-primary-dark);
}

.bp24-tsr--eligible-amount .bp24-tsr__primary-result > strong {
    color: var(--tsr-primary-dark);
}

.bp24-tsr__result-list {
    margin: 0;
    padding: 8px 18px;
}

.bp24-tsr__result-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f4;
}

.bp24-tsr__result-list > div:last-child {
    border-bottom: 0;
}

.bp24-tsr__result-list dt {
    color: var(--tsr-muted);
    font-size: 13px;
}

.bp24-tsr__result-list dd {
    margin: 0;
    text-align: right;
    font-size: 14px;
    font-weight: 800;
}

.bp24-tsr__result-list-highlight dd {
    color: var(--tsr-primary);
    font-size: 17px;
}

.bp24-tsr__tax-result {
    margin: 0 18px 16px;
    padding: 15px;
    border: 1px solid #cae3dc;
    border-radius: 13px;
    background: var(--tsr-primary-soft);
}

.bp24-tsr__tax-result > span {
    color: var(--tsr-primary-dark);
}

.bp24-tsr__tax-result > strong {
    display: block;
    color: var(--tsr-primary-dark);
    font-size: 26px;
    line-height: 1.2;
}

.bp24-tsr__tax-result small {
    display: block;
    margin-top: 4px;
    color: #53756d;
    font-size: 11px;
}

.bp24-tsr__formula {
    display: grid;
    gap: 3px;
    padding: 14px 18px;
    border-top: 1px solid #e7ebf1;
    background: #fafbfc;
    color: var(--tsr-muted);
    font-size: 12px;
}

.bp24-tsr__formula strong {
    color: var(--tsr-text);
}

.bp24-tsr__notes {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 15px 17px;
    border: 1px solid #d3dfef;
    border-radius: 14px;
    background: #f0f6ff;
    color: #38516f;
}

.bp24-tsr__notes p {
    margin: 0;
    font-size: 12px;
}

@media (max-width: 820px) {
    .bp24-tsr__layout {
        grid-template-columns: 1fr;
    }

    .bp24-tsr__results {
        position: static;
    }
}

@media (max-width: 560px) {
    .bp24-tsr {
        margin: 18px auto;
        padding: 14px;
        border-radius: 18px;
    }

    .bp24-tsr__field-grid,
    .bp24-tsr__vehicles {
        grid-template-columns: 1fr;
    }

    .bp24-tsr__vehicle:last-child {
        grid-column: auto;
    }

    .bp24-tsr__vehicle > span {
        min-height: 0;
    }

    .bp24-tsr__results-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
