/* =========================================================
   RIDE AND TECH — AUTO LOAN CALCULATOR
   STEP 8A — VEHICLE & PURCHASE
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.auto-loan-hero {
    padding: 95px 0 75px;
    background: #ffffff;
}

.auto-loan-hero h1 {
    margin: 18px 0 18px;

    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;

    font-weight: 800;
    letter-spacing: -2px;

    color: #111111;
}

.auto-loan-hero p {
    max-width: 780px;

    margin: 0;

    font-size: 18px;
    line-height: 1.7;

    color: #68717d;
}

.auto-loan-note {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    max-width: 760px;

    margin-top: 25px;
    padding: 14px 18px;

    border-left: 3px solid #e60000;

    background: #fff7f7;

    color: #68717d;

    font-size: 14px;
    line-height: 1.6;
}

.auto-loan-note i {
    margin-top: 3px;

    color: #e60000;
}


/* =========================================================
   CALCULATOR SECTION
   ========================================================= */

.auto-loan-calculator {
    padding: 40px 0 100px;

    background: #f8f8f9;
}

.auto-loan-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 0.95fr);

    gap: 28px;

    align-items: start;
}


/* =========================================================
   PANELS
   ========================================================= */

.auto-loan-input-panel,
.auto-loan-result-panel {
    background: #ffffff;

    border: 1px solid #e2e5e8;
    border-radius: 20px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.045);
}

.auto-loan-input-panel {
    padding: 36px;
}

.auto-loan-result-panel {
    position: sticky;
    top: 110px;

    min-height: 420px;

    padding: 36px;
}


/* =========================================================
   PANEL HEADING
   ========================================================= */

.auto-loan-panel-heading {
    margin-bottom: 35px;
}

.auto-loan-panel-heading .tools-eyebrow {
    margin-bottom: 15px;
}

.auto-loan-panel-heading h2 {
    margin: 0 0 10px;

    font-size: 30px;
    line-height: 1.2;

    font-weight: 800;

    color: #111111;
}

.auto-loan-panel-heading p {
    margin: 0;

    font-size: 15px;
    line-height: 1.6;

    color: #68717d;
}


/* =========================================================
   INPUT GROUP
   ========================================================= */

.loan-input-group {
    padding-top: 30px;

    border-top: 1px solid #e8eaed;
}

.loan-group-heading {
    display: flex;
    align-items: flex-start;

    gap: 16px;

    margin-bottom: 28px;
}

.loan-group-icon {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #111111;

    color: #ffffff;

    font-size: 18px;
}

.loan-group-heading h3 {
    margin: 0 0 5px;

    font-size: 20px;
    line-height: 1.3;

    font-weight: 800;

    color: #111111;
}

.loan-group-heading p {
    margin: 0;

    font-size: 14px;
    line-height: 1.5;

    color: #68717d;
}


/* =========================================================
   FIELDS
   ========================================================= */

.loan-field {
    margin-bottom: 24px;
}

.loan-field:last-child {
    margin-bottom: 0;
}

.loan-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    line-height: 1.4;

    font-weight: 700;

    color: #111111;
}

.loan-optional {
    margin-left: 6px;

    font-size: 11px;
    font-weight: 600;

    color: #68717d;
}


/* =========================================================
   SELECT + INPUT
   ========================================================= */

.loan-field select,
.loan-field input {
    width: 100%;

    min-height: 52px;

    padding: 13px 15px;

    border: 1px solid #d9dde1;
    border-radius: 10px;

    background: #ffffff;

    color: #111111;

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.loan-field select:focus,
.loan-field input:focus {
    border-color: #e60000;

    box-shadow:
        0 0 0 3px rgba(230, 0, 0, 0.08);
}


/* =========================================================
   MONEY INPUT
   ========================================================= */

.loan-input-wrap {
    position: relative;
}

.loan-currency-symbol {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 15px;
    font-weight: 700;

    color: #68717d;

    pointer-events: none;
}

.loan-input-wrap input {
    padding-left: 38px;
}

.loan-field small {
    display: block;

    margin-top: 7px;

    font-size: 12px;
    line-height: 1.5;

    color: #7a838e;
}


/* =========================================================
   RESULT EMPTY STATE
   ========================================================= */

.result-empty-state {
    min-height: 340px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.result-empty-icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 16px;

    background: #fff1f1;

    color: #e60000;

    font-size: 24px;
}

.result-empty-state h2 {
    margin: 0 0 10px;

    font-size: 24px;
    line-height: 1.3;

    font-weight: 800;

    color: #111111;
}

.result-empty-state p {
    max-width: 360px;

    margin: 0;

    font-size: 15px;
    line-height: 1.7;

    color: #68717d;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .auto-loan-layout {
        grid-template-columns: 1fr;
    }

    .auto-loan-result-panel {
        position: static;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .auto-loan-hero {
        padding: 65px 0 55px;
    }

    .auto-loan-hero h1 {
        font-size: 40px;
        letter-spacing: -1.5px;
    }

    .auto-loan-hero p {
        font-size: 16px;
    }

    .auto-loan-calculator {
        padding: 25px 0 70px;
    }

    .auto-loan-input-panel,
    .auto-loan-result-panel {
        padding: 25px;

        border-radius: 16px;
    }

    .auto-loan-panel-heading h2 {
        font-size: 26px;
    }

    .loan-group-heading {
        gap: 12px;
    }

    .loan-group-icon {
        flex-basis: 44px;

        width: 44px;
        height: 44px;
    }

    .result-empty-state {
        min-height: 280px;
    }

}
/* =========================================================
   INPUT SUFFIX
   ========================================================= */

.loan-input-wrap input {
    padding-right: 70px;
}

.loan-input-suffix {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 14px;
    font-weight: 700;

    color: #68717d;

    pointer-events: none;
}

.custom-term-field[hidden] {
    display: none;
}
/* =========================================================
   CALCULATOR ACTION
   ========================================================= */

.loan-calculator-action {
    margin-top: 34px;
    padding-top: 30px;

    border-top: 1px solid #e8eaed;
}


/* ---------------------------------------------------------
   Calculate Button
   --------------------------------------------------------- */

.loan-calculate-button {
    width: 100%;
    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 15px 24px;

    border: 0;
    border-radius: 12px;

    background: #e60000;
    color: #ffffff;

    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 800;

    text-align: center;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(230, 0, 0, 0.14);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* ---------------------------------------------------------
   Button Arrow
   --------------------------------------------------------- */

.loan-calculate-button i {
    font-size: 14px;

    transition:
        transform 0.2s ease;
}


/* ---------------------------------------------------------
   Hover
   --------------------------------------------------------- */

.loan-calculate-button:hover {

    background: #c90000;

    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(230, 0, 0, 0.20);
}

.loan-calculate-button:hover i {
    transform: translateX(4px);
}


/* ---------------------------------------------------------
   Active / Click
   --------------------------------------------------------- */

.loan-calculate-button:active {

    transform: translateY(0);

    box-shadow:
        0 5px 12px rgba(230, 0, 0, 0.14);
}


/* ---------------------------------------------------------
   Keyboard Focus
   --------------------------------------------------------- */

.loan-calculate-button:focus-visible {

    outline: 3px solid rgba(230, 0, 0, 0.22);

    outline-offset: 3px;
}


/* ---------------------------------------------------------
   Action Note
   --------------------------------------------------------- */

.loan-action-note {

    margin: 12px 0 0;

    text-align: center;

    font-size: 12px;
    line-height: 1.5;

    color: #7a838e;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .loan-calculator-action {

        margin-top: 28px;
        padding-top: 25px;

    }

    .loan-calculate-button {

        min-height: 54px;

        padding: 14px 20px;

        border-radius: 11px;

        font-size: 14px;

    }

    .loan-action-note {

        font-size: 11px;

    }

}
/* =========================================================
   RESULT PANEL
   ========================================================= */

.loan-result-heading {
    margin-bottom: 30px;
}

.loan-result-heading .tools-eyebrow {
    margin-bottom: 14px;
}

.loan-result-heading h2 {
    margin: 0 0 10px;

    font-size: 30px;
    line-height: 1.2;

    font-weight: 800;

    color: #111111;
}

.loan-result-heading p {
    margin: 0;

    font-size: 14px;
    line-height: 1.6;

    color: #68717d;
}


/* =========================================================
   PRIMARY RESULT
   ========================================================= */

.loan-primary-result {

    padding: 26px 24px;

    border-radius: 16px;

    background: #fff1f1;

    border: 1px solid rgba(230, 0, 0, 0.10);

    text-align: center;
}

.loan-result-label {

    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    line-height: 1.4;

    font-weight: 700;

    color: #68717d;
}

.loan-primary-result strong {

    display: block;

    margin: 0;

    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -1px;

    color: #e60000;

    word-break: break-word;
}

.loan-result-subtext {

    display: block;

    margin-top: 7px;

    font-size: 13px;

    color: #68717d;
}


/* =========================================================
   RESULT SUMMARY
   ========================================================= */

.loan-result-summary {

    margin-top: 24px;

    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
}

.loan-result-row {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 15px 0;

    border-bottom: 1px solid #eef0f2;
}

.loan-result-row:last-child {
    border-bottom: 0;
}

.loan-result-row span {

    font-size: 14px;

    color: #68717d;
}

.loan-result-row strong {

    font-size: 14px;

    font-weight: 800;

    color: #111111;

    text-align: right;
}


/* =========================================================
   RESULT EXPLANATION
   ========================================================= */

.loan-result-explanation {

    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin-top: 24px;

    padding: 18px;

    border-radius: 12px;

    background: #f8f8f9;
}

.loan-result-explanation-icon {

    flex: 0 0 36px;

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #111111;

    color: #ffffff;

    font-size: 14px;
}

.loan-result-explanation h3 {

    margin: 1px 0 7px;

    font-size: 15px;
    line-height: 1.4;

    font-weight: 800;

    color: #111111;
}

.loan-result-explanation p {

    margin: 0;

    font-size: 13px;
    line-height: 1.6;

    color: #68717d;
}


/* =========================================================
   DISCLAIMER
   ========================================================= */

.loan-result-disclaimer {

    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 18px;
}

.loan-result-disclaimer i {

    margin-top: 3px;

    color: #7a838e;

    font-size: 12px;
}

.loan-result-disclaimer p {

    margin: 0;

    font-size: 11px;
    line-height: 1.55;

    color: #7a838e;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .loan-result-heading h2 {
        font-size: 26px;
    }

    .loan-primary-result {
        padding: 24px 18px;
    }

    .loan-primary-result strong {
        font-size: 36px;
    }

    .loan-result-row {
        padding: 14px 0;
    }

}
/* =========================================================
   TRADE-IN HELP
   ========================================================= */

.loan-help {
    margin-top: 20px;
    border: 1px solid #e2e5e8;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.loan-help-toggle {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 14px 16px;

    border: 0;
    background: #f8f8f9;

    color: #111111;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    text-align: left;

    cursor: pointer;
}

.loan-help-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loan-help-toggle span i {
    color: #e60000;
}

.loan-help-arrow {
    font-size: 11px;
    color: #68717d;

    transition: transform 0.2s ease;
}

.loan-help-toggle[aria-expanded="true"] .loan-help-arrow {
    transform: rotate(180deg);
}

.loan-help-content {
    padding: 20px;

    border-top: 1px solid #e8eaed;
}

.loan-help-content h4 {
    margin: 0 0 9px;

    font-size: 16px;
    font-weight: 800;

    color: #111111;
}

.loan-help-content > p {
    margin: 0 0 18px;

    font-size: 13px;
    line-height: 1.65;

    color: #68717d;
}

.loan-help-item {
    padding: 14px 0;

    border-top: 1px solid #eef0f2;
}

.loan-help-item strong {
    display: block;

    margin-bottom: 5px;

    font-size: 13px;

    color: #111111;
}

.loan-help-item p {
    margin: 0;

    font-size: 12px;
    line-height: 1.6;

    color: #68717d;
}

.loan-help-formula {
    margin-top: 10px;

    padding: 11px 13px;

    border-radius: 8px;

    background: #fff1f1;

    color: #e60000;

    font-size: 13px;
    font-weight: 800;

    text-align: center;
}

.loan-help-example {
    margin-top: 14px;

    padding: 14px;

    border-radius: 9px;

    background: #f8f8f9;
}

.loan-help-example strong {
    display: block;

    margin-bottom: 6px;

    font-size: 13px;

    color: #111111;
}

.loan-help-example p {
    margin: 0;

    font-size: 12px;
    line-height: 1.6;

    color: #68717d;
}

.loan-help-warning {
    background: #fff7f7;
    border: 1px solid rgba(230, 0, 0, 0.10);
}

.loan-help-warning strong {
    color: #e60000;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .loan-help-content {
        padding: 17px;
    }

    .loan-help-toggle {
        padding: 13px 14px;
        font-size: 12px;
    }

}