/* Online mortgage application (apply.js). */
@font-face { font-family: 'DM Sans'; src: url(fonts/dm-sans.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Wix Madefor Display'; src: url(fonts/wix-madefor-display.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }
/* The website's look (thinkbenchmark.com, Mike 2026-11-28): navy and orange, Wix Madefor
   Display headings, DM Sans text, round navy buttons, grey page, dark footer. */
:root { color-scheme: light; --blue: #003f5f; --blue-2: #084362; --orange: #f58220; --grey: #807f83;
  --bg: #f2f3f7; --line: #dfe3ea; --soft: #f2f3f7; --warm: #fff6ec; --text: #4a4f57; --muted: #6a7079;
  --ok: #1e7b4a; --ok-bg: #e6f4ec; --warn: #9a5b00; --warn-bg: #fdf1de; --err: #b3261e;
  --f-head: 'Wix Madefor Display', 'DM Sans', system-ui, sans-serif; --f-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; font-family: var(--f-body); }
h1, h2, h3 { color: var(--blue); margin: 0; line-height: 1.2; text-wrap: balance; font-family: var(--f-head); font-weight: 600; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--blue); }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top__in { max-width: 1320px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 16px; min-height: 76px; }
.top__home { display: block; }
.top__logo { width: auto; height: 52px; display: block; }
.top__save { color: var(--muted); font-size: 13px; margin-left: auto; }
.top__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); text-decoration: none; font-weight: 500; white-space: nowrap; }
.top__save:empty + .top__phone { margin-left: auto; }
@media (max-width: 560px) { .top__logo { height: 40px; } .top__phone { font-size: 0; gap: 0; } .top__phone svg { width: 22px; height: 22px; } }
.hero { background: linear-gradient(90deg, rgba(6, 21, 37, .92) 0%, rgba(6, 21, 37, .75) 55%, rgba(0, 0, 0, 0) 100%), url(banner.jpg) center/cover no-repeat;
  color: #fff; }
.hero__in { max-width: 1320px; margin: 0 auto; padding: 56px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero__h { color: #fff; font-size: clamp(30px, 4vw, 45px); }
.hero__p { font-size: 17px; max-width: 560px; color: #e8eef2; }
.eyebrow { display: inline-flex; align-items: center; border: 1px solid #fff; border-radius: 30px; padding: 5px 18px; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; }
.accent { display: none; }
.root { max-width: 1040px; margin: -28px auto 0; position: relative; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); }
.state { padding: 40px 0; text-align: center; color: var(--muted); background: #fff; border-radius: 12px; }
.foot { background: #0f1b30; color: #c9d3dd; font-size: 14px; }
.foot__in { max-width: 1320px; margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-right, 0px)) 36px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 10px; }
.foot__logo { width: 150px; height: auto; margin-bottom: 6px; }
.foot p { max-width: 560px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__small { font-size: 12.5px; }

/* cards */
.card { background: #fff; border-radius: 12px; box-shadow: 0 10px 34px rgba(0, 30, 50, .08); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.narrow { max-width: 560px; margin: 0 auto; }
.lead { color: var(--muted); font-size: 15.5px; }
.small { font-size: 13px; color: var(--muted); }

/* layout with steps */
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 16px; }
@media (max-width: 760px) { .steps { margin-top: 0; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 6px 20px rgba(0, 30, 50, .08); position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; } }
.steps button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.steps button:focus-visible { outline: 2px solid var(--orange); }
.steps .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b9c6d0; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.steps .on button { background: #fff; color: var(--blue); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 40, 60, .08); }
.steps .on .dot { border-color: var(--orange); }
.steps .done .dot { background: var(--orange); border-color: var(--orange); color: #fff; }
@media (max-width: 760px) { .steps .lbl { display: none; } .steps .on .lbl { display: inline; } .steps button { width: auto; } }

/* fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .flabel { font-weight: 600; font-size: 14px; }
.hint { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=month], select, textarea {
  font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #c8d1d9; border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #9aa3aa; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.row--3 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* choices */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid #c8d1d9; background: #fff; color: var(--text); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.goal { font: inherit; text-align: left; padding: 14px; border-radius: 10px; border: 1px solid #c8d1d9; background: #fff; color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.goal b { font-size: 15px; } .goal span { font-size: 12.5px; color: var(--muted); }
.goal[aria-pressed="true"] { border: 2px solid var(--orange); padding: 13px; background: var(--warm); }
.goal:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* buttons */
.btn { font: inherit; font-weight: 500; font-size: 15px; min-height: 46px; padding: 11px 28px; border-radius: 30px; gap: 10px; border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn--p { background: var(--blue); color: #fff; }
.btn--p::after, .btn--b::after { content: "\2192"; }
.btn[disabled]::after { content: none; }
.btn--p:hover, .btn--b:hover { background: var(--blue-2); }
.btn--b { background: var(--blue); color: #fff; }
.btn--s { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.link { font: inherit; background: none; border: 0; padding: 4px 0; color: var(--blue); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.link--x { color: var(--err); font-weight: 400; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 4px; flex-wrap: wrap; }
.msg { font-size: 14px; color: var(--err); min-height: 1em; }
.msg.ok { color: var(--ok); }

/* blocks */
.note { background: var(--soft); border-radius: 9px; padding: 11px 13px; font-size: 14px; }
.note--warm { background: var(--warn-bg); color: #5b3a00; }
.note--ok { background: var(--ok-bg); color: #164d31; }
.block { border: 1px solid var(--line); border-radius: 11px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.block__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.block__h b { font-size: 14.5px; }
.bar { display: flex; flex-direction: column; gap: 6px; }
.bar__t { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar__track { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar__fill { height: 100%; background: var(--orange); transition: width .3s; }
.bar__fill.full { background: var(--ok); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: 14px; padding: 7px 13px; border-radius: 8px; border: 1px solid #c8d1d9; background: #fff; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.sum { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sum div { display: flex; gap: 10px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 6px 0; }
.sum div span:first-child { color: var(--muted); }
.consent { border: 1px solid var(--line); border-radius: 11px; padding: 16px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; font-size: 14px; max-height: 260px; overflow: auto; }
.problems { margin: 0; padding-left: 18px; color: var(--warn); font-size: 14px; }
.docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.docs li { border: 1px dashed #c8d1d9; border-radius: 9px; padding: 10px 12px; font-size: 14.5px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Address suggestions */
.addr { position: relative; }
.addr input { width: 100%; }
.addr__list { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 24px rgba(9, 22, 33, .16); }
.addr__list li { padding: 8px 10px; font-size: 14px; border-radius: 6px; cursor: pointer; overflow-wrap: anywhere; }
.addr__list li:hover, .addr__list li[aria-selected="true"] { background: rgba(9, 22, 33, .06); }
.addr__list .addr__by { padding: 4px 10px 2px; font-size: 11.5px; color: var(--muted); cursor: default; text-align: right; }
.addr__list .addr__by:hover { background: none; }

/* Optional section, folded */
.more { border: 1px solid var(--line); border-radius: 11px; padding: 12px 16px; }
.more summary { font-weight: 600; font-size: 14px; cursor: pointer; }
.more[open] { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 560px) { .hero__in { padding-top: 28px; padding-bottom: 48px; } .hero__h { font-size: 28px; } .hero__p { font-size: 15.5px; } }
