.ins-calculator { --ins-navy: #0b2639; --ins-gold: #ffe18b; color: #122d40; }
.ins-mode { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.ins-mode button, .ins-sub-button, .ins-driver-header button { font: inherit; cursor: pointer; }
.ins-mode button { color: #172d3f; background: #f5f4ed; border: 1px solid #d3cbaa; border-radius: 7px; min-height: 43px; padding: 8px 18px; }
.ins-mode button[aria-pressed="true"] { font-weight: 650; border-color: #dab947; background: linear-gradient(110deg,#ffebaa,#eac044); }
.ins-layout { display: grid; grid-template-columns: minmax(0,1.24fr) minmax(0,.86fr); gap: clamp(14px,2vw,30px); align-items: start; }
.ins-inputs, .ins-result { min-width: 0; border-radius: 16px; padding: clamp(18px,2.5vw,34px); }
.ins-inputs { background: #fff; border: 1px solid #d5e0e5; color: #173348; }
.ins-lead { margin: 0 0 22px; color: #455b68; line-height: 1.55; }
.ins-fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.ins-fieldset + .ins-fieldset { margin-top: 18px; }
.ins-fieldset legend { font-size: 20px; color: #112e40; font-weight: 650; padding: 0; margin-bottom: 12px; }
.ins-manual { display:flex; align-items:center; gap:.55rem; margin-block:.8rem 1rem; font-size:1rem; line-height:1.4; }
.ins-manual input { width:20px; height:20px; flex:0 0 auto; accent-color:#a87c18; }
.mortgage-insurance-fields { min-width:0; margin:0; border:0; padding:0; }
.mortgage-insurance-fields > legend { margin-bottom:1rem; font-size:1.25rem; font-weight:650; }
.mortgage-insurance-coverage { min-width:0; padding:1rem; border:1px solid #b7cad5; border-radius:8px; margin-block:1rem; }
.mortgage-insurance-coverage legend { padding-inline:.3rem; }
.mortgage-address { min-width:0; }
.mortgage-address-options { max-height:17rem; overflow-y:auto; border:1px solid #a1b4c0; border-radius:7px; margin-block:.35rem; }
.mortgage-address-options[hidden] { display:none; }
.mortgage-address-options button { display:block; width:100%; min-height:44px; padding:.75rem; font:inherit; text-align:start; overflow-wrap:anywhere; color:#173348; background:#fff; border:0; cursor:pointer; }
.mortgage-address-options button + button { border-top:1px solid #d5e0e5; }
.mortgage-address-options button:is(:hover,[aria-selected=true]) { background:#edf2f5; }
.mortgage-address [role=status] { color:#455b68; font-size:.875rem; line-height:1.5; }
.loan-collateral { min-width:0; margin-block:1rem; padding:1rem; border:1px solid #b7cad5; border-radius:8px; }
.loan-collateral > legend { padding-inline:.35rem; font-weight:650; }
.loan-collateral-documents { margin-top:1.25rem; padding:1rem; border:1px solid #b7cad5; border-radius:8px; }
.loan-collateral-documents summary { cursor:pointer; font-size:1.1rem; font-weight:650; }
.loan-collateral :is(textarea,input),.loan-collateral-documents input { max-width:100%; box-sizing:border-box; }
:is(.bkr-loan-documents,.loan-collateral-documents) .w-file-list button { width:auto; min-width:78px; height:auto; min-height:36px; padding:.3rem .65rem; flex:0 0 auto; }
:is(.bkr-loan-documents,.loan-collateral-documents) .w-file-list li > span { min-width:0; overflow-wrap:anywhere; }
.ins-calculator .bank-field :is(input,select):disabled { color:#5b6e7c; background:#edf1f4; }
.ins-calculator .bank-field { display: grid; align-content: start; gap: 6px; margin: 0 0 13px; min-width: 0; color: #244457; font-size: 14px; }
.ins-calculator .bank-field :is(input,select) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 45px; font: inherit; font-size: 16px; line-height: 1.35; padding: 9px 10px; color: #142f41; background: #fff; border: 1px solid #b7cad5; border-radius: 7px; }
.ins-calculator .bank-field-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ins-driver { padding: 12px 14px 0; border: 1px solid #d5e0e5; border-radius: 8px; margin-bottom: 12px; }
.ins-driver-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 14px; font-weight: 650; }
.ins-driver-header button, .ins-sub-button { background: transparent; border: 0; padding: 4px 0; color: #1d556f; text-underline-offset: 4px; text-decoration: underline; font-size: 14px; }
.ins-hint { margin: 7px 0 0; color: #526574; font-size: 13px; line-height: 1.5; }
.ins-hint a { color: #285970; text-decoration: underline; }
.ins-locality { margin: -5px 0 13px; }
.ins-result { background: var(--ins-navy); color: #e7eef1; }
.ins-result h3 { color: #fff; font-size: clamp(20px,2.5vw,30px); margin: 0 0 18px; line-height: 1.15; }
.ins-result h4 { color: #fff; margin-top: 24px; margin-bottom: 6px; }
.ins-range { display: grid; gap: 6px; }
.ins-range span { color: #ccdade; }
.ins-range b, .ins-price { color: var(--ins-gold); font-size: clamp(22px,2.4vw,34px); letter-spacing: -.04em; font-weight: 590; line-height: 1.2; }
.ins-price, .ins-range { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ins-result p { color: #c8d7df; font-size: 14px; line-height: 1.55; margin: 16px 0; }
.ins-result details { border-top: 1px solid #435767; padding-top: 14px; margin-top: 22px; }
.ins-result summary { cursor: pointer; font-size: 15px; font-weight: 550; }
.ins-result a { color: #ffdf86; text-decoration: underline; font-size: 13px; }
.ins-breakdown { margin: 10px 0; }
.ins-breakdown div { padding: 7px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 12px; border-bottom: 1px solid #314b5b; font-size: 14px; }
.ins-breakdown dd { margin: 0; }
.ins-calculator :is(a,button,select,input,summary):focus-visible { outline: 2px solid #ae7912; outline-offset: 3px; }
@media(max-width: 800px) { .ins-layout { grid-template-columns: 1fr; } }
@media(max-width: 520px) { .ins-calculator .bank-field-pair { grid-template-columns: 1fr; gap: 0; } .ins-mode button { padding: 8px 12px; } }
.ins-offers { display:grid; gap:1rem; margin-block:1rem; }
.ins-offer { padding:1rem; background:#fff; color:#17394d; border:1px solid #bdcbd4; border-radius:12px; min-width:0; }
.ins-offer header { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem; }
.ins-calculator .ins-offer :is(strong,b,p,small,summary) { color:#17394d!important; }
.ins-offer strong { font-size:1.05rem; }
.ins-offer p { font-size:.875rem; line-height:1.5; }
.ins-offer summary { cursor:pointer; font-weight:600; }
.ins-calculator .ins-offer a { color:#174b68!important; text-decoration:underline; }
.ins-offer > small { display:block; margin-block:.8rem; }
.ins-offer .button { width:100%; white-space:normal; }
.ins-offers-note { line-height:1.5; font-size:.875rem; }
.ins-own-rate { padding:1rem; border:1px solid #bdcbd4; border-radius:10px; }
.ins-own-rate summary { cursor:pointer; font-weight:600; color:#17394d; }
.rate-admin { margin-top:2rem; padding-top:2rem; border-top:1px solid #b9c7d0; color:#17394d; }
.rate-tabs,.rate-actions { display:flex; flex-wrap:wrap; gap:.6rem; margin-block:1rem; }
.rate-tabs button { padding:.7rem 1rem; border:1px solid #768c9c; border-radius:8px; background:#fff; color:#17394d; cursor:pointer; }
.rate-tabs button[aria-pressed=true] { background:#17394d; color:#fff; }
.rate-program { background:#fff; border:1px solid #c0ccd4; padding:1rem; margin-block:.6rem; border-radius:10px; }
.rate-program summary { cursor:pointer; font-weight:650; color:#17394d; line-height:1.5; }
.rate-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; margin-block:1rem; }
.rate-field { display:grid; gap:.35rem; font-size:.875rem; color:#17394d; min-width:0; }
.rate-field :is(input,select,textarea) { width:100%; min-width:0; padding:.65rem; border:1px solid #8298a8; background:#fff; color:#17394d; border-radius:6px; font:inherit; }
.rate-check { display:inline-flex; gap:.5rem; align-items:center; margin:.65rem 1rem .65rem 0; color:#17394d; font-size:.875rem; }
.rate-check-group { padding:.8rem; border:1px solid #b9c7d0; border-radius:6px; margin-block:.8rem; }
.rate-admin [data-rate-form] { border:0; padding:0; margin:0; min-width:0; }
.rate-admin button:hover { filter:brightness(.95); }
.rate-admin :is(button,input,textarea,select):focus-visible { outline:2px solid #a87c18; outline-offset:3px; }
.rate-admin button:active { transform:translateY(1px); }
@media(max-width:640px) { .rate-fields { grid-template-columns:minmax(0,1fr); } }
