/* PAGE HEADER */

.calculator-header {
    padding: 55px 0 30px;
}

.calculator-header h1 {
    margin-bottom: 8px;
    font-size: 36px;
    letter-spacing: -1px;
}

.calculator-header > .container > p:last-child {
    max-width: 600px;
    color: #666;
    font-size: 14px;
}


/* CALCULATOR */

.calculator-section {
    padding: 25px 0 60px;
}

.full-width-form,
.results-box,
.loan-progress-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 26px;
}

.full-width-form {
    margin-bottom: 24px;
}

.calculator-form h2 {
    margin-bottom: 25px;
    font-size: 20px;
}


/* INPUTS */

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
}

.input-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
}

.input-wrapper:focus-within {
    border-color: #111;
}

.input-wrapper span {
    padding: 0 11px;
    color: #777;
    font-size: 13px;
}

.input-wrapper input {
    width: 100%;
    padding: 11px 4px;
    border: 0;
    outline: 0;
    font-size: 14px;
}

select {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    font-size: 14px;
}


/* BUTTONS */

.button-row {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 12px;
    margin-top: 8px;
}

.calculate-button,
.reset-button {
    padding: 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.calculate-button {
    border: 0;
    background: #111;
    color: #fff;
}

.calculate-button:hover {
    background: #333;
}

.reset-button {
    border: 1px solid #ccc;
    background: #fff;
    color: #111;
}

.reset-button:hover {
    background: #f3f3f3;
}


/* BOTTOM GRID */

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.results-box,
.loan-progress-card {
    background: #f7f7f7;
}


/* RESULTS */

.results-label {
    color: #777;
    font-size: 12px;
}

.results-box > h2,
.loan-progress-card > h2 {
    margin: 3px 0 20px;
    font-size: 36px;
    letter-spacing: -1px;
}

.result-list {
    border-top: 1px solid #ddd;
}

.result-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
}

.result-list span {
    color: #777;
}

.total-cost {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background: #111;
    color: #fff;
    border-radius: 5px;
    font-size: 13px;
}


/* LOAN PROGRESS */

.progress-text {
    margin-bottom: 20px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.progress-months-group {
    margin-bottom: 22px;
}


/* INFORMATION */

.calculator-info,
.example-section,
.tips-section,
.disclaimer-section {
    padding: 60px 0;
}

.calculator-info {
    background: #f7f7f7;
}

.info-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
}

.calculator-info article {
    max-width: 700px;
}

.calculator-info h2,
.example-section h2,
.tips-section h2 {
    margin-bottom: 16px;
    font-size: 25px;
}

.calculator-info p,
.example-section p {
    margin-bottom: 14px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.side-ad {
    margin: 0;
    min-height: 250px;
}


/* TIPS */

.tips-section {
    background: #f7f7f7;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.tips-grid div {
    padding-top: 15px;
    border-top: 2px solid #111;
}

.tips-grid h3 {
    margin-bottom: 8px;
    font-size: 15px;
}

.tips-grid p {
    color: #777;
    font-size: 13px;
}


/* DISCLAIMER */

.disclaimer-section {
    padding: 25px 0;
}

.disclaimer-section p {
    max-width: 750px;
    color: #888;
    font-size: 11px;
}


/* MOBILE */

@media (max-width: 800px) {

    .input-row,
    .bottom-grid,
    .button-row,
    .info-layout,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .calculator-header h1 {
        font-size: 30px;
    }

    .results-box > h2,
    .loan-progress-card > h2 {
        font-size: 30px;
    }

    .side-ad {
        min-height: 100px;
    }

}

.subheading {
    margin-top: 12px;
    padding-top: 22px;
    border-top: 1px solid #ddd;
}

.ownership-highlight {
    max-width: 450px;
    margin-top: 25px;
    padding: 22px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border: 1px solid #ddd;
    border-radius: 7px;

    background: #f7f7f7;
}

.ownership-highlight span {
    color: #777;
    font-size: 13px;
}

.ownership-highlight strong {
    font-size: 22px;
}

.form-error {
    display: none;

    margin-bottom: 14px;
    padding: 10px 12px;

    border: 1px solid #e0b4b4;
    border-radius: 5px;

    background: #fff5f5;
    color: #8a1f1f;

    font-size: 12px;
}

.form-error.show {
    display: block;
}

.input-error {
    border-color: #b42318 !important;
}
.commute-inputs {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #ddd;
}

.commute-inputs h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.commute-results {
    margin-top: 18px;
    padding: 25px;

    border: 1px solid #ddd;
    border-radius: 7px;

    background: #fff;
}

.commute-results h2 {
    margin-top: 5px;
    margin-bottom: 20px;

    font-size: 28px;
}

@media (max-width: 768px) {

    .commute-results {
        padding: 20px;
    }

}
/* COMPARE CARS */

.compare-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.compare-car-card {
    padding: 26px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.compare-car-card h2 {
    margin: 3px 0 24px;
}

.text-input {
    width: 100%;
    padding: 11px;

    border: 1px solid #ccc;
    border-radius: 5px;

    outline: none;

    font-size: 14px;
}

.text-input:focus {
    border-color: #111;
}

.compare-button-row {
    margin-bottom: 24px;
}

.comparison-winner {
    margin-bottom: 24px;
    padding: 28px;

    border-radius: 8px;

    background: #111;
    color: #fff;
}

.comparison-winner .results-label {
    color: #aaa;
}

.comparison-winner h2 {
    margin: 4px 0 8px;

    font-size: 34px;
    letter-spacing: -1px;
}

.comparison-winner p:last-child {
    max-width: 650px;

    color: #ddd;

    font-size: 14px;
    line-height: 1.6;
}

.comparison-savings {
    margin-top: 24px;
    padding: 26px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #f7f7f7;
}

.comparison-savings h2 {
    margin-bottom: 20px;

    font-size: 20px;
}

.comparison-savings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.comparison-savings-grid div {
    padding: 18px;

    border: 1px solid #ddd;
    border-radius: 6px;

    background: #fff;
}

.comparison-savings-grid span {
    display: block;

    margin-bottom: 5px;

    color: #777;

    font-size: 12px;
}

.comparison-savings-grid strong {
    font-size: 20px;
}


@media (max-width: 800px) {

    .compare-input-grid,
    .comparison-savings-grid {
        grid-template-columns: 1fr;
    }

    .comparison-winner {
        padding: 22px;
    }

    .comparison-winner h2 {
        font-size: 29px;
    }

}
.car-image-wrap {
    position: relative;

    width: 100%;
    height: 220px;

    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid #ddd;
    border-radius: 7px;

    background: #f7f7f7;
}

.car-image {
    display: none;

    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 10px;
}

.car-image.loaded {
    display: block;
}

.car-image-placeholder {
    color: #999;
    font-size: 12px;
}

@media (max-width: 800px) {

    .car-image-wrap {
        height: 190px;
    }

}
/* CAR AFFORDABILITY */

.affordability-main-result {
    margin-bottom: 24px;
    padding: 30px;

    border-radius: 8px;

    background: #111;
    color: #fff;
}

.affordability-main-result .results-label {
    color: #aaa;
}

.affordability-main-result h2 {
    margin: 4px 0 8px;

    font-size: 40px;
    letter-spacing: -1px;
}

.affordability-main-result p:last-child {
    max-width: 700px;

    color: #ddd;

    font-size: 14px;
    line-height: 1.6;
}


@media (max-width: 800px) {

    .affordability-main-result {
        padding: 22px;
    }

    .affordability-main-result h2 {
        font-size: 32px;
    }

}
/* =========================================================
   DRIVEMATH CALCULATOR UI REFRESH
   ========================================================= */

.calculator-header {
    padding: 38px 0 22px;
    background: #fff;
    border-bottom: 1px solid #e4e7ec;
}

.calculator-header h1 {
    margin-bottom: 6px;
    color: #101828;
    font-size: clamp(29px, 3vw, 36px);
    line-height: 1.12;
    letter-spacing: -1px;
}

.calculator-header > .container > p:last-child {
    max-width: 680px;
    color: #667085;
    font-size: 13.5px;
    line-height: 1.55;
}

.calculator-section {
    padding: 24px 0 48px;
}

.full-width-form,
.results-box,
.loan-progress-card,
.compare-car-card,
.commute-results,
.comparison-savings {
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

.full-width-form,
.compare-car-card {
    padding: 22px;
    background: #fff;
}

.full-width-form {
    margin-bottom: 18px;
}

.calculator-form h2 {
    margin-bottom: 18px;
    color: #101828;
    font-size: 17px;
    letter-spacing: -.2px;
}

/* Inputs: denser and easier to scan */
.input-group {
    margin-bottom: 14px;
}

.input-group label {
    margin-bottom: 5px;
    color: #344054;
    font-size: 11.5px;
    font-weight: 600;
}

.input-row {
    gap: 12px;
}

.input-wrapper,
.text-input,
select {
    min-height: 42px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.input-wrapper:hover,
.text-input:hover,
select:hover {
    border-color: #98a2b3;
}

.input-wrapper:focus-within,
.text-input:focus,
select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .09);
}

.input-wrapper span {
    color: #667085;
    font-size: 12px;
}

.input-wrapper input {
    padding: 10px 4px;
    color: #101828;
    font-size: 13px;
}

.text-input,
select {
    padding: 10px 11px;
    color: #101828;
    font-size: 13px;
}

.field-note {
    margin-top: 5px;
    color: #667085;
    font-size: 11px;
}

/* Buttons */
.button-row {
    grid-template-columns: 1fr 120px;
    gap: 9px;
    margin-top: 6px;
}

.calculate-button,
.reset-button {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 650;
}

.calculate-button {
    background: #101828;
}

.calculate-button:hover {
    background: #1d2939;
}

.reset-button {
    border-color: #d0d5dd;
    color: #344054;
}

/* Result cards */
.bottom-grid {
    gap: 14px;
}

.results-box,
.loan-progress-card {
    padding: 20px;
    background: #fff;
}

.results-label {
    color: #667085;
    font-size: 10.5px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.results-box > h2,
.loan-progress-card > h2 {
    margin: 5px 0 16px;
    color: #101828;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.result-list {
    border-color: #e4e7ec;
}

.result-list div {
    gap: 16px;
    padding: 10px 0;
    border-color: #e4e7ec;
    font-size: 11.5px;
}

.result-list span {
    color: #667085;
}

.result-list strong {
    color: #101828;
    text-align: right;
}

.total-cost {
    margin-top: 14px;
    padding: 12px 13px;
    border-radius: 7px;
    background: #101828;
    font-size: 11.5px;
}

/* Secondary sections are quieter */
.calculator-info,
.example-section,
.tips-section,
.disclaimer-section {
    padding: 44px 0;
}

.calculator-info,
.tips-section {
    background: #f8fafc;
}

.info-layout {
    grid-template-columns: 1fr 280px;
    gap: 40px;
}

.calculator-info h2,
.example-section h2,
.tips-section h2 {
    margin-bottom: 11px;
    color: #101828;
    font-size: 21px;
    letter-spacing: -.35px;
}

.calculator-info p,
.example-section p {
    color: #667085;
    font-size: 13px;
    line-height: 1.65;
}

.tips-grid {
    gap: 16px;
    margin-top: 20px;
}

.tips-grid div {
    padding-top: 12px;
    border-top: 1px solid #d0d5dd;
}

.tips-grid h3 {
    color: #101828;
    font-size: 13.5px;
}

.tips-grid p {
    color: #667085;
    font-size: 12px;
}

.disclaimer-section {
    padding: 20px 0;
}

.disclaimer-section p {
    color: #98a2b3;
    font-size: 10.5px;
}

/* Subsections */
.subheading {
    margin-top: 8px;
    padding-top: 18px;
    border-color: #e4e7ec;
}

.ownership-highlight {
    max-width: 520px;
    margin-top: 16px;
    padding: 16px 18px;
    border-color: #e4e7ec;
    border-radius: 8px;
    background: #fff;
}

.ownership-highlight span {
    color: #667085;
    font-size: 11.5px;
}

.ownership-highlight strong {
    color: #101828;
    font-size: 18px;
}

.form-error {
    margin-bottom: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 11px;
}

/* Commute */
.commute-inputs {
    margin-top: 20px;
    padding-top: 18px;
    border-color: #e4e7ec;
}

.commute-inputs h3 {
    color: #101828;
    font-size: 15px;
}

.commute-results {
    margin-top: 14px;
    padding: 20px;
    background: #fff;
}

.commute-results h2 {
    margin: 4px 0 16px;
    color: #101828;
    font-size: 25px;
}

/* Compare cars */
.compare-input-grid {
    gap: 14px;
    margin-bottom: 18px;
}

.compare-car-card {
    padding: 20px;
}

.compare-car-card h2 {
    margin: 4px 0 18px;
}

.compare-button-row {
    margin-bottom: 18px;
}

.comparison-winner,
.affordability-main-result {
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 10px;
    background: #101828;
    box-shadow: none;
}

.comparison-winner h2 {
    margin: 4px 0 6px;
    font-size: 28px;
}

.comparison-winner p:last-child,
.affordability-main-result p:last-child {
    color: #d0d5dd;
    font-size: 12.5px;
    line-height: 1.55;
}

.comparison-savings {
    margin-top: 18px;
    padding: 20px;
    background: #fff;
}

.comparison-savings h2 {
    margin-bottom: 14px;
    font-size: 17px;
}

.comparison-savings-grid {
    gap: 10px;
}

.comparison-savings-grid div {
    padding: 14px;
    border-color: #e4e7ec;
    border-radius: 7px;
    background: #f9fafb;
}

.comparison-savings-grid span {
    color: #667085;
    font-size: 10.5px;
}

.comparison-savings-grid strong {
    color: #101828;
    font-size: 17px;
}

/* Affordability */
.affordability-main-result h2 {
    margin: 4px 0 7px;
    font-size: 34px;
    letter-spacing: -1px;
}

/* Hide abandoned image placeholders if old markup remains anywhere */
.car-image-wrap:empty,
.car-image-wrap:has(img[src=""]) {
    display: none;
}

/* Mobile */
@media (max-width: 800px) {
    .calculator-header {
        padding: 30px 0 18px;
    }

    .calculator-section {
        padding: 18px 0 38px;
    }

    .full-width-form,
    .compare-car-card,
    .results-box,
    .loan-progress-card,
    .commute-results,
    .comparison-savings {
        padding: 17px;
    }

    .button-row {
        grid-template-columns: 1fr;
    }

    .results-box > h2,
    .loan-progress-card > h2 {
        font-size: 26px;
    }

    .comparison-winner,
    .affordability-main-result {
        padding: 18px;
    }

    .comparison-winner h2,
    .affordability-main-result h2 {
        font-size: 27px;
    }

    .calculator-info,
    .example-section,
    .tips-section {
        padding: 34px 0;
    }
}


/* =========================================================
   DRIVEMATH CALCULATOR READABILITY THEME
   ========================================================= */

:root {
    --dm-bg: #f6f8fb;
    --dm-surface: #ffffff;
    --dm-soft: #f1f5f9;
    --dm-text: #172033;
    --dm-muted: #5f6b7a;
    --dm-border: #d9e0e8;
    --dm-accent: #2563eb;
    --dm-accent-dark: #1d4ed8;
}

/* PAGE HEADER */

.calculator-header {
    padding: 46px 0 26px;
    background: #fff;
    border-bottom: 1px solid var(--dm-border);
}

.calculator-header h1 {
    margin-bottom: 10px;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -1.2px;
    color: var(--dm-text);
}

.calculator-header > .container > p:last-child {
    max-width: 680px;
    color: var(--dm-muted);
    font-size: 16px;
    line-height: 1.65;
}

/* MAIN CALCULATOR */

.calculator-section {
    padding: 30px 0 56px;
}

.full-width-form,
.results-box,
.loan-progress-card,
.compare-car-card,
.commute-results,
.comparison-savings {
    border: 1px solid var(--dm-border);
    border-radius: 10px;
    background: var(--dm-surface);
}

.full-width-form,
.results-box,
.loan-progress-card,
.compare-car-card {
    padding: 28px;
}

.calculator-form h2 {
    margin-bottom: 22px;
    font-size: 22px;
    line-height: 1.3;
    color: var(--dm-text);
}

.subheading {
    margin-top: 18px;
    padding-top: 24px;
    border-top: 1px solid var(--dm-border);
}

/* INPUTS */

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    margin-bottom: 8px;
    color: #2b3648;
    font-size: 14px;
    font-weight: 700;
}

.input-wrapper,
.text-input,
select {
    min-height: 46px;
    border: 1px solid #cbd3dd;
    border-radius: 7px;
    background: #fff;
}

.input-wrapper:focus-within,
.text-input:focus,
select:focus {
    border-color: var(--dm-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.input-wrapper span {
    padding: 0 12px;
    color: #667085;
    font-size: 14px;
}

.input-wrapper input {
    padding: 12px 5px;
    color: var(--dm-text);
    font-size: 16px;
}

.text-input,
select {
    padding: 11px 12px;
    color: var(--dm-text);
    font-size: 16px;
}

.field-note {
    margin-top: 7px;
    color: var(--dm-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* BUTTONS */

.calculate-button,
.reset-button {
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
}

.calculate-button {
    background: var(--dm-accent);
}

.calculate-button:hover {
    background: var(--dm-accent-dark);
}

.reset-button {
    border-color: var(--dm-border);
}

/* RESULTS */

.results-box,
.loan-progress-card {
    background: #fff;
}

.results-label {
    color: #718096;
    font-size: 13px;
    font-weight: 600;
}

.results-box > h2,
.loan-progress-card > h2 {
    margin: 4px 0 20px;
    font-size: 34px;
    line-height: 1.15;
    color: var(--dm-text);
}

.result-list {
    border-top: 1px solid var(--dm-border);
}

.result-list div {
    padding: 13px 0;
    border-bottom: 1px solid var(--dm-border);
    font-size: 14px;
    line-height: 1.45;
}

.result-list span {
    color: var(--dm-muted);
}

.result-list strong {
    color: var(--dm-text);
    font-size: 14px;
}

.total-cost {
    margin-top: 18px;
    padding: 16px;
    background: #eaf2ff;
    color: var(--dm-text);
    border: 1px solid #cfe0ff;
    border-radius: 7px;
    font-size: 14px;
}

.total-cost strong {
    color: var(--dm-accent-dark);
}

/* SPECIAL RESULT PANELS */

.comparison-winner,
.affordability-main-result {
    background: #172033;
    color: #fff;
    border-radius: 10px;
}

.comparison-winner h2,
.affordability-main-result h2 {
    color: #fff;
}

.comparison-winner .results-label,
.affordability-main-result .results-label {
    color: #b7c0cf;
}

.comparison-winner p:last-child,
.affordability-main-result p:last-child {
    color: #d6dce5;
}

.comparison-savings {
    background: #f8fafc;
}

.comparison-savings-grid div {
    border: 1px solid var(--dm-border);
    background: #fff;
}

.comparison-savings-grid span {
    color: var(--dm-muted);
    font-size: 13px;
}

.comparison-savings-grid strong {
    color: var(--dm-text);
    font-size: 21px;
}

.commute-inputs {
    border-top-color: var(--dm-border);
}

.commute-inputs h3 {
    font-size: 20px;
}

.commute-results {
    padding: 26px;
    background: #fff;
}

.commute-results h2 {
    font-size: 30px;
}

/* AMORTIZATION */

.amortization-table th {
    background: #eef3f8;
    color: #344054;
    font-size: 14px;
}

.amortization-table td {
    font-size: 14px;
}

/* INFO / TIPS */

.calculator-info,
.tips-section {
    background: #f2f5f9;
}

.calculator-info h2,
.example-section h2,
.tips-section h2 {
    font-size: 27px;
}

.calculator-info p,
.example-section p {
    color: var(--dm-muted);
    font-size: 15px;
    line-height: 1.75;
}

.tips-grid h3 {
    font-size: 17px;
}

.tips-grid p {
    color: var(--dm-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* ERRORS */

.form-error {
    font-size: 13px;
}

/* MOBILE */

@media (max-width: 800px) {
    .calculator-header {
        padding: 34px 0 22px;
    }

    .calculator-header h1 {
        font-size: 33px;
    }

    .calculator-header > .container > p:last-child {
        font-size: 15px;
    }

    .full-width-form,
    .results-box,
    .loan-progress-card,
    .compare-car-card {
        padding: 20px;
    }

    .input-group label {
        font-size: 14px;
    }

    .input-wrapper input,
    .text-input,
    select {
        font-size: 16px;
    }

    .results-box > h2,
    .loan-progress-card > h2 {
        font-size: 29px;
    }

    .result-list div {
        font-size: 14px;
    }

    .result-list span,
    .result-list strong {
        font-size: 14px;
    }
}


/* =========================================================
   DRIVEMATH COMPACT CALCULATOR LAYOUT
   ========================================================= */

.calculator-header {
    padding: 38px 0 22px;
}

.calculator-section {
    padding: 24px 0 46px;
}

.full-width-form {
    margin-bottom: 18px;
}

.full-width-form,
.results-box,
.loan-progress-card,
.compare-car-card {
    padding: 24px;
}

.calculator-form h2 {
    margin-bottom: 18px;
}

.input-row {
    gap: 12px;
}

.input-group {
    margin-bottom: 16px;
}

.button-row {
    margin-top: 4px;
    gap: 10px;
}

.bottom-grid {
    gap: 18px;
}

.result-list div {
    padding: 11px 0;
}

.total-cost {
    margin-top: 15px;
}

.comparison-winner,
.affordability-main-result {
    margin-bottom: 18px;
    padding: 24px;
}

.compare-input-grid {
    gap: 18px;
    margin-bottom: 18px;
}

.comparison-savings {
    margin-top: 18px;
    padding: 22px;
}

.comparison-savings-grid {
    gap: 10px;
}

.comparison-savings-grid div {
    padding: 15px;
}

.commute-inputs {
    margin-top: 22px;
    padding-top: 20px;
}

.commute-results {
    margin-top: 14px;
    padding: 22px;
}

.calculator-info,
.example-section,
.tips-section,
.disclaimer-section {
    padding: 48px 0;
}

.info-layout {
    gap: 42px;
}

.tips-grid {
    gap: 16px;
    margin-top: 22px;
}

@media (max-width: 800px) {
    .calculator-header {
        padding: 30px 0 18px;
    }

    .calculator-section {
        padding: 20px 0 38px;
    }

    .full-width-form,
    .results-box,
    .loan-progress-card,
    .compare-car-card {
        padding: 18px;
    }

    .bottom-grid,
    .compare-input-grid {
        gap: 14px;
    }

    .comparison-winner,
    .affordability-main-result {
        padding: 20px;
    }

    .calculator-info,
    .example-section,
    .tips-section,
    .disclaimer-section {
        padding: 38px 0;
    }
}
