.tbn-refi-estimator{--tbn-blue:#096bc9;--tbn-navy:#12365f;--tbn-text:#42566f;--tbn-border:#cfe0f3;--tbn-bg:#f5f9ff;padding:clamp(28px,5vw,72px) 18px;background:linear-gradient(135deg,#edf8ff,#f8f5ff);color:var(--tbn-navy);font-family:inherit}.tbn-estimator-wrap{max-width:1080px;margin:auto;background:#fff;border:1px solid #e3edf8;border-radius:26px;padding:clamp(22px,4vw,48px);box-shadow:0 18px 55px #163c6512}.tbn-estimator-heading{text-align:center;max-width:720px;margin:0 auto 26px}.tbn-estimator-heading h2{margin:0 0 10px;font-size:clamp(25px,3vw,38px);line-height:1.35;color:var(--tbn-navy)}.tbn-estimator-heading p{margin:0;color:#667b94;font-size:16px}.tbn-eyebrow{color:var(--tbn-blue)!important;font-weight:700;margin-bottom:8px!important}.tbn-estimator-progress{list-style:none;display:flex;justify-content:center;gap:clamp(12px,4vw,48px);padding:0;margin:24px auto 34px}.tbn-estimator-progress li{display:flex;align-items:center;gap:9px;color:#8a9aab;font-size:14px}.tbn-estimator-progress li span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:1px solid #c9d8e8;font-weight:700;background:#fff}.tbn-estimator-progress li.is-active,.tbn-estimator-progress li.is-done{color:var(--tbn-blue)}.tbn-estimator-progress li.is-active span,.tbn-estimator-progress li.is-done span{background:var(--tbn-blue);border-color:var(--tbn-blue);color:#fff}.tbn-estimator-step h3{font-size:22px;margin:0 0 22px;color:var(--tbn-navy)}.tbn-estimator-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.tbn-estimator-grid label{display:flex;flex-direction:column;gap:8px;color:#243f60;font-weight:650}.tbn-estimator-grid input,.tbn-estimator-grid select{width:100%;min-height:52px;border:1px solid #c7d9eb;border-radius:12px;padding:12px 14px;background:#fff;color:#203a5a;font:inherit;font-weight:400;box-sizing:border-box}.tbn-estimator-grid input:focus,.tbn-estimator-grid select:focus{outline:3px solid #096bc926;border-color:var(--tbn-blue)}.tbn-estimator-grid select:disabled{background:#f4f7fa;color:#8c9aab}.tbn-estimator-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.tbn-estimator-actions.tbn-between{justify-content:space-between}.tbn-estimator-actions button{min-height:50px;padding:12px 24px;border:0;border-radius:12px;font:inherit;font-weight:700;cursor:pointer}.tbn-primary{background:var(--tbn-blue);color:#fff;box-shadow:0 8px 18px #096bc92b}.tbn-primary:hover{background:#0759a9}.tbn-secondary{background:#edf4fb;color:#31516f}.tbn-estimator-note{font-size:13px;color:#71849a;line-height:1.7;margin:16px 0 0}.tbn-estimator-message,.tbn-screening-result{margin-top:16px;color:#42566f}.tbn-estimator-message:not(:empty){padding:12px 14px;border:1px solid #f0c2bd;border-radius:12px;background:#fff4f2;color:#a1261d;font-weight:700;line-height:1.55}.tbn-screening-result{padding:16px 18px;border-radius:14px;background:#f3f8ff;border:1px solid #d9e8f8;line-height:1.7}.tbn-screening-result.is-good{background:#effaf3;border-color:#bde8cb;color:#20683a}.tbn-screening-result.is-review{background:#fff9ed;border-color:#f2ddb2;color:#77501a}.tbn-screening-result strong{display:block;font-size:18px}.tbn-consent{display:flex;align-items:flex-start;gap:10px;margin-top:22px;color:#294461;line-height:1.8}.tbn-consent input{flex:none;width:21px;height:21px;margin-top:3px;accent-color:var(--tbn-blue)}.tbn-consent a{color:var(--tbn-blue);font-weight:650}.tbn-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.tbn-price-result{margin-top:20px;padding:18px;border:1px solid #d6e7fa;background:#f5faff;border-radius:16px;color:#304c6a}.tbn-price-result strong{font-size:24px;color:var(--tbn-blue)}@media(max-width:640px){.tbn-refi-estimator{padding:28px 12px}.tbn-estimator-wrap{padding:22px 17px;border-radius:18px}.tbn-estimator-progress{gap:12px;justify-content:space-between}.tbn-estimator-progress li{flex-direction:column;gap:4px;font-size:11px;text-align:center}.tbn-estimator-progress li span{width:30px;height:30px}.tbn-estimator-grid{grid-template-columns:1fr;gap:14px}.tbn-estimator-step h3{font-size:19px}.tbn-estimator-actions button{padding:11px 15px;min-height:48px}.tbn-consent{font-size:14px}}
.tbn-refi-estimator [hidden]{display:none!important}.tbn-range-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;min-height:52px;padding:10px 14px;border:1px solid #c7d9eb;border-radius:12px;background:#fff}.tbn-range-control input[type=range]{appearance:none;min-height:28px;height:28px;padding:0;border:0;background:transparent;cursor:pointer;accent-color:var(--tbn-blue)}.tbn-range-control input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:#d9e8f7}.tbn-range-control input[type=range]::-webkit-slider-thumb{appearance:none;width:20px;height:20px;margin-top:-7px;border-radius:50%;background:var(--tbn-blue);border:3px solid #fff;box-shadow:0 0 0 1px var(--tbn-blue)}.tbn-range-control input[type=range]::-moz-range-track{height:6px;border-radius:999px;background:#d9e8f7}.tbn-range-control input[type=range]::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:var(--tbn-blue);border:3px solid #fff;box-shadow:0 0 0 1px var(--tbn-blue)}.tbn-range-control output{min-width:54px;text-align:right;color:var(--tbn-blue);font-weight:750;white-space:nowrap}.tbn-payoff-field[hidden]{display:none!important}
.tbn-amount-emphasis{display:flex;flex-direction:column;gap:7px;margin:22px 0;padding:22px 24px;border-radius:18px;background:linear-gradient(135deg,#102b4b,#183e68);border:1px solid #2d5277;color:#fff;box-shadow:0 12px 28px #0d28422b}.tbn-amount-emphasis[hidden]{display:none!important}.tbn-amount-label{font-size:16px;font-weight:700;color:#dceaff;letter-spacing:.01em}.tbn-amount-value{font-size:clamp(30px,4.5vw,46px);font-weight:850;line-height:1.15;letter-spacing:-.025em;color:#fff;font-variant-numeric:tabular-nums}.tbn-amount-emphasis small{color:#d0ddef;font-size:13px;line-height:1.6}.tbn-estimator-actions button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}@media(max-width:640px){.tbn-amount-emphasis{margin:18px 0;padding:18px;border-radius:15px}.tbn-amount-value{font-size:32px}.tbn-amount-label{font-size:15px}}

/* Compact, touch-friendly single-choice buttons for the two-option screening fields. */
.tbn-choice-field{min-width:0;margin:0;padding:0;border:0}
.tbn-choice-field[hidden]{display:none!important}
.tbn-choice-field legend{margin:0 0 8px;padding:0;color:#243f60;font-weight:700}
.tbn-choice-options{display:flex;flex-wrap:wrap;gap:10px}
.tbn-choice{position:relative;display:inline-flex;flex-direction:row;align-items:center;gap:0;min-height:48px;margin:0;color:#243f60;cursor:pointer}
.tbn-choice input{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;overflow:hidden!important;clip:rect(0,0,0,0);white-space:nowrap;border:0!important;padding:0!important;opacity:0}
.tbn-choice span{display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:10px 15px;border:1px solid #c7d9eb;border-radius:999px;background:#fff;color:#294461;font-weight:650;line-height:1.35;transition:background-color .15s,border-color .15s,color .15s}
.tbn-choice span:before{content:"";width:17px;height:17px;flex:none;border:2px solid #8ca4bd;border-radius:50%;background:#fff;box-sizing:border-box}
.tbn-choice input:checked+span{border-color:#096bc9;background:#eaf4ff;color:#0759a9}
.tbn-choice input:checked+span:before{border:5px solid #096bc9}
.tbn-choice input:focus-visible+span{outline:3px solid #096bc94d;outline-offset:2px}
.tbn-payment-estimator{margin:22px 0 18px;padding:20px 22px;border:1px solid #d6e4f3;border-radius:16px;background:#f7faff}
.tbn-payment-estimator h4{margin:0 0 16px;color:#12365f;font-size:19px}
.tbn-payment-estimator .tbn-estimator-grid{margin-bottom:14px}
.tbn-payment-result{padding:15px 17px;border-radius:12px;background:#102b4b;color:#fff;font-size:clamp(20px,3vw,26px);font-weight:800;line-height:1.4;font-variant-numeric:tabular-nums}
.tbn-payment-note{margin:10px 0 0;color:#5c7188;font-size:13px;line-height:1.65}
@media(max-width:640px){.tbn-choice-options{gap:8px}.tbn-choice span{padding:10px 12px;font-size:14px}.tbn-payment-estimator{padding:17px 14px}.tbn-payment-estimator h4{font-size:17px}}

.tbn-amount-options{margin:18px 0}.tbn-custom-amount{display:grid;gap:10px;max-width:560px;margin-top:16px;padding:17px 18px;border:1px solid #d6e4f3;border-radius:16px;background:linear-gradient(135deg,#f7fbff,#eef6ff);box-shadow:0 8px 20px #12365f0b;color:#243f60}.tbn-custom-amount-title{display:flex;align-items:baseline;gap:6px;color:#12365f;font-size:18px;font-weight:750;line-height:1.4}.tbn-custom-amount-title span{color:#6b7f96;font-size:15px;font-weight:600}.tbn-custom-amount-title em{color:#d92d20;font-style:normal}.tbn-custom-amount input{display:block;width:100%;min-height:58px;box-sizing:border-box;border:1.5px solid #b8cee6;border-radius:13px;padding:13px 16px;background:#fff;color:#12365f;font-family:inherit;font-size:21px;font-weight:750;font-variant-numeric:tabular-nums;transition:border-color .15s,box-shadow .15s}.tbn-custom-amount input::placeholder{color:#91a1b3;font-size:16px;font-weight:450}.tbn-custom-amount input:focus{outline:0;border-color:#096bc9;box-shadow:0 0 0 4px #096bc91c}.tbn-custom-amount small{display:block;margin:0;color:#526b86;font-size:14px;font-weight:650;line-height:1.5}.tbn-amount-error{margin-top:8px;color:#b42318;font-weight:700;line-height:1.5}.tbn-amount-error:empty{display:none}.tbn-interest-error:not([hidden]){display:block;margin:0 0 14px;padding:11px 14px;border:1px solid #f3c2bc;border-radius:12px;background:#fff3f1;color:#b42318;font-weight:750;line-height:1.5;text-align:center}.tbn-payment-result.is-invalid{border:1px solid #f3c2bc;background:#fff3f1;color:#b42318}@media(max-width:640px){.tbn-custom-amount{max-width:none;padding:15px 14px}.tbn-custom-amount-title{font-size:17px}.tbn-custom-amount input{min-height:56px;font-size:20px}}
.tbn-credit-details{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px}.tbn-credit-details[hidden]{display:none!important}
@media(max-width:640px){.tbn-credit-details{grid-template-columns:1fr}}

/* Keep loan-term controls together and separate from credit-history details on desktop. */
.tbn-installments-group{grid-column:1/-1;padding:18px 20px;border:1px solid #cfe0f3;border-radius:16px;background:#f5f9ff}
.tbn-installments-group>h4{margin:0 0 14px;color:#12365f;font-size:17px;line-height:1.4}
.tbn-installment-fields{gap:14px 20px}
@media(min-width:641px){
.tbn-estimator-step[data-step="2"] .tbn-estimator-grid>.tbn-field-vehicle-status{order:1;grid-column:1/-1}
.tbn-estimator-step[data-step="2"] .tbn-estimator-grid>.tbn-installments-group{order:2;grid-column:1/-1}
.tbn-estimator-step[data-step="2"] .tbn-estimator-grid>.tbn-field-credit-status{order:3;grid-column:1/-1}
.tbn-estimator-step[data-step="2"] .tbn-estimator-grid>.tbn-credit-details{order:4}
.tbn-estimator-step[data-step="2"] .tbn-estimator-grid>.tbn-field-closed-account{order:5;grid-column:1/-1}
.tbn-estimator-step[data-step="2"] .tbn-estimator-grid>.tbn-choice-field[data-arrears-field]{order:6}
.tbn-estimator-step[data-step="2"] .tbn-estimator-grid>.tbn-payoff-field{order:7}
.tbn-estimator-step[data-step="2"] .tbn-estimator-grid>.tbn-prior-rejection-field{order:8;grid-column:1/-1}
}
@media(max-width:640px){
.tbn-installments-group{display:contents}
.tbn-installments-group>h4{display:none}
.tbn-installment-fields{display:contents}
}

/* Keep long model/variant option labels from widening the form on mobile. */
.tbn-refi-estimator{scroll-margin-top:90px}
.tbn-estimator-wrap,.tbn-estimator-form,.tbn-estimator-step,.tbn-estimator-grid,.tbn-estimator-grid>label{min-width:0;max-width:100%}
.tbn-estimator-grid select,.tbn-estimator-grid input{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
.tbn-estimator-grid select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:640px){
  .tbn-refi-estimator{box-sizing:border-box;width:100vw;min-width:100vw;max-width:100vw;margin-left:0;margin-right:0;overflow-x:clip}
  .tbn-estimator-grid,.tbn-estimator-grid>label{width:100%}
}


/* Larger finger targets for installment sliders on phones. */
@media(max-width:640px){
  .tbn-refi-estimator .tbn-range-control{min-height:76px;padding:8px 12px;gap:10px}
  .tbn-refi-estimator .tbn-range-control input[type=range]{width:100%;min-height:56px;height:56px;padding:0}
  .tbn-refi-estimator .tbn-range-control input[type=range]::-webkit-slider-runnable-track{height:10px}
  .tbn-refi-estimator .tbn-range-control input[type=range]::-webkit-slider-thumb{width:38px;height:38px;margin-top:-14px}
  .tbn-refi-estimator .tbn-range-control input[type=range]::-moz-range-track{height:10px}
  .tbn-refi-estimator .tbn-range-control input[type=range]::-moz-range-thumb{width:34px;height:34px}
  .tbn-refi-estimator .tbn-range-control output{min-width:56px;font-size:16px}
}

/* Larger mobile slider hit areas for the installment and loan-term controls. */
@media(max-width:640px){
  .tbn-refi-estimator .tbn-range-control{min-height:92px;padding:8px 12px;gap:8px}
  .tbn-refi-estimator .tbn-range-control input[type=range]{width:auto;min-height:72px;height:72px;margin-left:16px;margin-right:22px;padding:0}
  .tbn-refi-estimator .tbn-range-control input[type=range]::-webkit-slider-runnable-track{height:12px}
  .tbn-refi-estimator .tbn-range-control input[type=range]::-webkit-slider-thumb{width:48px;height:48px;margin-top:-18px}
  .tbn-refi-estimator .tbn-range-control input[type=range]::-moz-range-track{height:12px}
  .tbn-refi-estimator .tbn-range-control input[type=range]::-moz-range-thumb{width:48px;height:48px}
  .tbn-refi-estimator .tbn-range-control output{min-width:64px;font-size:17px}
}
