/* ========================================
   CALCULATOR PAGE
======================================== */

.calculator-page {
    background-color: #f8fafc;
}

/* ========================================
   CALCULATOR HEADER
======================================== */

.calculator-header {
    width: min(90%, 900px);
    margin-inline: auto;

    padding-block: clamp(35px, 5vw, 55px);

    text-align: center;
}

.calculator-eyebrow {
    margin-bottom: 10px;

    color: #2563eb;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.calculator-header h1 {
    margin-bottom: 14px;

    color: #123a63;

    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
}

.calculator-intro,
.calculator-instruction {
    max-width: 720px;

    margin-left: auto;
    margin-right: auto;

    text-align: justify;

    line-height: 1.7;
}

.calculator-intro {
    margin-top: 18px;

    color: #475569;

    font-size: clamp(15px, 1.5vw, 16px);
}

.calculator-instruction {
    margin-top: 32px;

    color: #64748b;

    font-size: clamp(14px, 1.4vw, 15px);
}


/* ========================================
   CALCULATOR LAYOUT
======================================== */

.calculator-layout {
    width: min(96%, 1600px);

    margin-inline: auto;

    padding-block: clamp(15px, 3vw, 70px);

    display: grid;

    grid-template-columns:
        minmax(120px, 200px)
        minmax(0, 1000px)
        minmax(120px, 200px);

    justify-content: center;
    align-items: start;

    gap: clamp(20px, 3vw, 40px);
}


/* ========================================
   AD SPACES
======================================== */

.calculator-ad {
    min-height: 500px;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding-top: 10px;

    color: #94a3b8;

    font-size: 10px;
    letter-spacing: 0.5px;
}


/* ========================================
   CALCULATOR TOOL
======================================== */

.calculator-tool {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(240px, 0.8fr)
        minmax(0, 1.4fr);

    background-color: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);

    overflow: hidden;
}


/* ========================================
   INPUT SIDE
======================================== */

.calculator-inputs {
    padding: clamp(20px, 3vw, 32px);

    background-color: #ffffff;

    border-right: 1px solid #e2e8f0;
}

.calculator-inputs h2 {
    margin-bottom: 28px;

    color: #0f172a;

    font-size: clamp(18px, 2vw, 20px);
}


/* ========================================
   INPUT GROUPS
======================================== */

.input-group {
    margin-bottom: 24px;
}

/* Space between loan term unit and loan term */
.loan-term-input {
    margin-top: 32px;
}

.input-group label {
    display: block;

    margin-bottom: 8px;

    color: #475569;

    font-size: 13px;
    font-weight: 600;
}


/* ========================================
   INPUT BOXES
======================================== */

.money-input,
.percent-input,
.years-input {
    height: 48px;

    display: flex;
    align-items: center;

    background-color: #ffffff;

    border: 1px solid #cbd5e1;
    border-radius: 8px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.money-input:focus-within,
.percent-input:focus-within,
.years-input:focus-within {
    border-color: #2563eb;

    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.money-input span {
    padding-left: 14px;
    padding-right: 6px;
}

.money-input input {
    padding-left: 6px;
}
.percent-input span,
.years-input span {
    padding: 0 14px;

    color: #64748b;

    font-size: 14px;
}

.money-input input,
.percent-input input,
.years-input input {
    width: 100%;
    height: 100%;

    padding: 0 12px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #0f172a;

    font-size: 16px;
    font-weight: 600;
}


/* ========================================
   RESULTS SIDE
======================================== */

.calculator-results {
    min-width: 0;

    padding: clamp(20px, 3vw, 32px);
}

.result-main {
    margin-bottom: 25px;
}

.result-main span {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 13px;
}

.result-main strong {
    color: #123a63;

    font-size: clamp(30px, 3vw, 38px);
    line-height: 1.1;
}


/* ========================================
   RESULT SUMMARY
======================================== */

.result-summary {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(160px, 1fr));

    gap: 15px;

    margin-bottom: 28px;
}

.result-summary > div {
    padding: 15px;

    background-color: #f8fafc;

    border-radius: 8px;
}

.result-summary span {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 12px;
}

.result-summary strong {
    color: #0f172a;

    font-size: clamp(16px, 1.6vw, 18px);
}


/* ========================================
   CHART
======================================== */

.calculator-chart {
    width: 100%;

    min-height: clamp(240px, 30vw, 320px);

    background-color: #f8fafc;

    border-radius: 10px;

    overflow: hidden;
}

#compound-chart,
#auto-loan-chart,
#mortgage-chart {
    width: 100%;
    height: clamp(240px, 30vw, 320px);
    display: block;
}

/* ========================================
   MOBILE / TABLET BOTTOM AD
======================================== */

.calculator-mobile-ad {
    display: none;
}

/* ========================================
   RESPONSIVE - STRUCTURAL CHANGES ONLY
======================================== */

@media (max-width: 1200px) {

    .calculator-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .calculator-ad-left,
    .calculator-ad-right {
        display: none;
    }

    .calculator-mobile-ad {
        width: min(92%, 860px);
        min-height: 180px;

        margin: 20px auto 32px;

        display: flex;
        align-items: flex-start;
        justify-content: center;

        padding-top: 28px;

        color: #94a3b8;

        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

}

/* ========================================
   MOBILE - HIDE BOTTOM AD
======================================== */

@media (max-width: 600px) {

    .calculator-mobile-ad {
        display: none;
    }

}


@media (max-width: 800px) {

    .calculator-tool {
        grid-template-columns: 1fr;
    }

    .calculator-inputs {
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

}

.calculator-inputs input::placeholder {
    color: #94a3b8;
    opacity: 1;
    font-weight: 500;
}

/* ========================================
   REINVEST INTEREST SWITCH
======================================== */

.reinvest-option {
    margin-top: 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.reinvest-text {
    flex: 1;
}

.reinvest-text label {
    display: block;

    margin-bottom: 5px;

    color: #475569;

    font-size: 13px;
    font-weight: 600;
}

.reinvest-text span {
    display: block;

    color: #94a3b8;

    font-size: 11px;
    line-height: 1.4;
}


/* SWITCH */

.switch {
    position: relative;

    width: 44px;
    height: 24px;

    flex-shrink: 0;
}

.switch input {
    width: 0;
    height: 0;

    opacity: 0;
}

.switch-slider {
    position: absolute;

    inset: 0;

    background-color: #cbd5e1;

    border-radius: 24px;

    cursor: pointer;

    transition: background-color 0.2s ease;
}

.switch-slider::before {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    background-color: #ffffff;

    border-radius: 50%;

    transition: transform 0.2s ease;
}

.switch input:checked + .switch-slider {
    background-color: #2563eb;
}

.switch input:checked + .switch-slider::before {
    transform: translateX(20px);
}

/* ========================================
   CHART EXPLANATION
======================================== */

.chart-explanation {
    margin-top: 22px;
}

.chart-explanation h3 {
    margin-bottom: 8px;

    color: #0f172a;

    font-size: 15px;
}

.chart-explanation p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.6;
}

.calculator-assumption {
    margin-top: 8px !important;

}

/* ========================================
   LOAN TERM OPTION
======================================== */

.term-option {
    margin-top: 28px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.term-option-text {
    flex: 1;
}

.term-option-text > span {
    display: block;

    margin-bottom: 5px;

    color: #475569;

    font-size: 13px;
    font-weight: 600;
}

.term-option-text small {
    display: block;

    color: #94a3b8;

    font-size: 11px;
    line-height: 1.4;
}

.term-toggle {
    display: flex;
	gap: 5px;
    padding: 3px;
    background-color: #f1f5f9;
    border-radius: 8px;
	
}

.term-button {
    padding: 7px 10px;

    border: 0;
    border-radius: 6px;

    background: transparent;

    color: #64748b;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.term-button.active {
    background-color: #ffffff;

    color: #2563eb;

    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* ========================================
   AUTO LOAN - ESTIMATED COSTS
======================================== */

.estimated-costs {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.estimated-costs h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 14px;
}

.estimated-costs .reinvest-option {
    margin-top: 20px;
}

.loan-estimate-note {
    margin: 20px 0 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.5;
}

/* =========================================================
   PORTFOLIO SIMULATOR
========================================================= */

.portfolio-investments {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.portfolio-investments-header {
    margin-bottom: 18px;
}

.portfolio-investments-header h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 16px;
}

.portfolio-investments-header p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}


/* INVESTMENT CARDS */

.portfolio-investment-card {
    margin-bottom: 16px;
    padding: 18px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.investment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.investment-card-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
}

.optional-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 400;
}


/* REMOVE INVESTMENT */

.remove-investment {
    padding: 0;
    background: none;
    border: 0;
    color: #64748b;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.remove-investment:hover {
    color: #0f172a;
}


/* ADD INVESTMENT */

.add-investment-button {
    width: 100%;
    padding: 11px 14px;
    background-color: #ffffff;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    color: #2563eb;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.add-investment-button:hover {
    background-color: #f8fafc;
    border-color: #2563eb;
}


/* ALLOCATION STATUS */

.portfolio-allocation-status {
    margin-top: 16px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    background-color: #eff6ff;
    border-radius: 8px;
}

.portfolio-allocation-status span {
    color: #475569;
    font-size: 12px;
}

.portfolio-allocation-status strong {
    color: #123a63;
    font-size: 13px;
}

.portfolio-allocation-status small {
    grid-column: 1 / -1;
    color: #64748b;
    font-size: 11px;
}


/* PORTFOLIO BREAKDOWN */

.portfolio-breakdown {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}

.portfolio-breakdown h3 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 14px;
}

.portfolio-breakdown-empty {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
}


/* INVESTMENT WARNING */

.investment-warning {
    margin: 24px 0 0;
    padding: 12px 14px;
    background-color: #f8fafc;
    border-left: 3px solid #2563eb;
    border-radius: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.investment-warning strong {
    color: #0f172a;
}

/* REINVEST DIVIDENDS SWITCH */

.reinvest-option {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.reinvest-option > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.reinvest-option strong {
    color: #0f172a;
    font-size: 14px;
}

.reinvest-option > div > span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background-color: #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s ease;
}

.slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: 0.2s ease;
}

.switch input:checked + .slider {
    background-color: #2563eb;
}

.switch input:checked + .slider::before {
    transform: translateX(20px);
}

.portfolio-breakdown-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.portfolio-breakdown-row:last-child {
    border-bottom: 0;
}

.portfolio-breakdown-row span {
    min-width: 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-breakdown-row strong {
    color: #0f172a;
    font-size: 13px;
}

.portfolio-breakdown-row small {
    min-width: 48px;
    color: #64748b;
    font-size: 12px;
    text-align: right;
}

.portfolio-breakdown-error {
    color: #dc2626;
    font-weight: 500;
}

.portfolio-allocation-status.over-allocated {
    background-color: #fef2f2;
}

.portfolio-allocation-status.over-allocated span,
.portfolio-allocation-status.over-allocated strong,
.portfolio-allocation-status.over-allocated small {
    color: #dc2626;
}

/* =========================================================
   MONTHLY BUDGET CALCULATOR
   ========================================================= */

.budget-tool {
    align-items: stretch;
}


/* -------------------------
   INPUT SIDE
   ------------------------- */

.budget-section {
    margin-top: 28px;
}

.budget-section h3,
.additional-expenses h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 15px;
}

.budget-section-note {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.budget-section .input-group {
    margin-bottom: 18px;
}

.budget-section .input-group:last-child {
    margin-bottom: 0;
}


/* -------------------------
   ADDITIONAL EXPENSES
   ------------------------- */

.additional-expenses {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.additional-expenses-header p {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.add-expense-button {
    width: 100%;
    padding: 11px 14px;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #2563eb;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.add-expense-button:hover {
    background-color: #eff6ff;
    border-color: #2563eb;
}


/* -------------------------
   MAIN RESULT
   ------------------------- */

.budget-main-result {
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.budget-main-result > span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.budget-main-result > strong {
    display: block;
    color: #123a63;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.budget-main-result > p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}


/* -------------------------
   BUDGET FLEXIBILITY
   ------------------------- */

.budget-flexibility {
    margin-top: 24px;
    padding: 18px 20px;
    background-color: #f8fafc;
    border-left: 4px solid #cbd5e1;
    border-radius: 8px;
}

.budget-flexibility > span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.budget-flexibility > strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
}

.budget-flexibility > p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}


/* Neutral starting state */

.budget-flexibility.neutral {
    border-left-color: #cbd5e1;
}


/* The JS will activate these states later */

.budget-flexibility.shortfall {
    background-color: #fef2f2;
    border-left-color: #dc2626;
}

.budget-flexibility.limited {
    background-color: #fff7ed;
    border-left-color: #ea580c;
}

.budget-flexibility.moderate {
    background-color: #fffbeb;
    border-left-color: #d97706;
}

.budget-flexibility.flexible {
    background-color: #f0fdf4;
    border-left-color: #16a34a;
}


/* -------------------------
   SUMMARY
   ------------------------- */

.budget-summary {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.budget-summary .result-card {
    min-width: 0;
    padding: 15px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.budget-summary .result-card span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.budget-summary .result-card strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
}


/* -------------------------
   EDUCATIONAL SECTIONS
   ------------------------- */

.budget-explanation,
.spending-breakdown,
.budget-guidance {
    margin-top: 30px;
}

.budget-explanation {
    padding: 18px 20px;
    background-color: #eff6ff;
    border-radius: 8px;
}

.budget-explanation h3,
.spending-breakdown h3,
.budget-guidance h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 15px;
}

.budget-explanation p,
.budget-guidance p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}


/* -------------------------
   SPENDING BREAKDOWN
   ------------------------- */

.budget-breakdown-header,
.budget-breakdown-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(75px, auto)
        minmax(70px, auto);
    gap: 14px;
    align-items: center;
}

.budget-breakdown-header {
    padding: 10px 12px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 600;
}

.budget-breakdown-header span:nth-child(2),
.budget-breakdown-header span:nth-child(3),
.budget-breakdown-row span:nth-child(2),
.budget-breakdown-row span:nth-child(3) {
    text-align: right;
}

.budget-breakdown-row {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
    font-size: 12px;
}

.budget-breakdown-row:last-child {
    border-bottom: 0;
}

.budget-breakdown-empty {
    margin: 0;
    padding: 18px 12px;
    color: #94a3b8;
    font-size: 12px;
}


/* -------------------------
   THINGS TO CONSIDER
   ------------------------- */

.budget-guidance {
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}


/* -------------------------
   DYNAMIC ADDITIONAL EXPENSE
   ------------------------- */

.custom-expense {
    margin-bottom: 14px;
    padding: 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.custom-expense-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(110px, 0.8fr);
    gap: 12px;
    align-items: end;
}

.custom-expense label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}


/* Name input */

.custom-expense-name {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.custom-expense-name:focus {
    border-color: #2563eb;
}


/* Money input */

.custom-expense .input-prefix {
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.custom-expense .input-prefix:focus-within {
    border-color: #2563eb;
}

.custom-expense .input-prefix span {
    padding-left: 10px;
    color: #64748b;
    font-size: 13px;
    user-select: none;
}

.custom-expense .input-prefix input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 9px 9px 9px 5px;
    background: transparent;
    border: 0;
    outline: 0;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
}


/* Remove */

.remove-expense {
    margin-top: 11px;
    padding: 0;
    background: none;
    border: 0;
    color: #64748b;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.remove-expense:hover {
    color: #dc2626;
}

/* -------------------------
   MOBILE
   ------------------------- */

@media (max-width: 600px) {

    .budget-summary {
        grid-template-columns: 1fr;
    }

    .custom-expense-fields {
        grid-template-columns: 1fr;
    }

    .budget-breakdown-header,
    .budget-breakdown-row {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(65px, auto)
            minmax(60px, auto);
        gap: 8px;
    }

}

/* Monthly Budget money inputs */

.budget-section .input-prefix {
    width: min(100%, 220px);
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.budget-section .input-prefix:focus-within {
    border-color: #2563eb;
}

.budget-section .input-prefix span {
    padding-left: 11px;
    color: #64748b;
    font-size: 13px;
    user-select: none;
}

.budget-section .input-prefix input {
    width: 100%;
    min-width: 0;
    padding: 9px 10px 9px 6px;
    background: transparent;
    border: 0;
    outline: 0;
    color: #0f172a;
    font: inherit;
}

/* -------------------------
   THINGS TO CONSIDER
   ------------------------- */

.budget-guidance {
    padding: 22px 0 4px;
}

.budget-guidance .budget-guidance-intro {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.budget-guidance-option {
    padding: 14px 0;
    border-top: 1px solid #e2e8f0;
}

.budget-guidance-option strong {
    display: block;
    margin-bottom: 5px;
    color: #0f172a;
    font-size: 13px;
}

.budget-guidance-option p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.budget-guidance-option:first-child {
	border-top: 0;
    padding-top: 4px;
}

.budget-guidance-label {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.simple-input-helper {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

.simple-formula-section {
    margin-top: 26px;
    padding: 18px 20px;
    background-color: #f8fafc;
    border-radius: 8px;
}

.simple-formula-section h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 15px;
}

.simple-formula {
    margin: 0 0 8px;
    color: #123a63;
    font-size: 15px;
    font-weight: 600;
}

#simple-formula-breakdown {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}
.simple-formula-legend {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.simple-formula-legend strong {
    color: #0f172a;
    font-weight: 600;
}

.input-note {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #64748b;
}

.calculator-learn-more {
    margin-top: 24px;
}

.calculator-learn-more p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}

.calculator-learn-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 9px 16px;

    border-radius: 8px;

    background: #123a63;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.calculator-learn-button:hover {
    background: #0d2f52;
}

.calculator-learn-button:focus-visible {
    outline: 3px solid rgba(18, 58, 99, 0.22);
    outline-offset: 2px;
}