/* /dealsubmit: the wholesaler deal form, buy box map and terms.
 * Extends the main site's system (home-od.css): DM Serif Display for the
 * page title, DM Sans for everything else, navy on warm neutrals.
 * Shape rule: buttons are pills, fields and choice buttons 12px, panels 20px. */
:root {
  --navy: #001F54; --navy-2: #0a2f73; --ink: #0B1F3A; --text: #2B3445; --muted: #5B6577;
  --line: #E7E4DE; --field: #C3C9D4; --warm: #F7F5F1; --white: #fff;
  --green: #12805C; --green-soft: #E3F2EC; --error: #B42318; --error-soft: #FDECEA; --flag: #8A4B00; --flag-soft: #FFF3DC;
  --focus: #3B82F6;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-field: 12px; --r-panel: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0, 31, 84, .12); scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.55; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; accent-color: var(--navy); caret-color: var(--navy); }
::selection { background: var(--navy); color: #fff; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 999px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.top img { display: block; height: 36px; width: auto; }
.call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.call:hover { border-color: var(--navy); }

/* ---------- intro ---------- */
.intro { padding: 28px 0 8px; }
h1 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 2.5rem; line-height: 1.06; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.intro p { margin: 0; max-width: 56ch; color: var(--muted); font-size: 1.06rem; text-wrap: pretty; }
h2 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: var(--ink); text-wrap: balance; }
h3 { margin: 0 0 4px; font-size: 1.08rem; line-height: 1.3; font-weight: 700; color: var(--ink); }
.lede { margin: 0 0 20px; color: var(--muted); max-width: 62ch; }

.layout { display: grid; gap: 28px; padding: 20px 0 56px; }
.side { display: grid; gap: 16px; align-content: start; }

/* ---------- panels ---------- */
.panel { background: var(--warm); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel > h2 { font-size: 1.25rem; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hint { display: block; margin: 2px 0 0; color: var(--muted); font-size: .9rem; font-weight: 400; }

/* ---------- fields ---------- */
.grid { display: grid; gap: 16px 12px; grid-template-columns: 1fr 1fr; }
.field, .q { grid-column: 1 / -1; min-width: 0; }
.field.half { grid-column: auto; }
a, button, label, summary, input, textarea { touch-action: manipulation; }
.q { border: 0; margin: 0; padding: 0; }
.field label, .q legend { display: block; margin: 0 0 6px; padding: 0; font-weight: 600; font-size: .95rem; color: var(--ink); }
.opt-tag { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--field); border-radius: var(--r-field);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #667085; }
.field input:hover, .field textarea:hover { border-color: #8E97A8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 31, 84, .16); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.money input { padding-left: 28px; }
.err { margin: 6px 0 0; color: var(--error); font-size: .9rem; font-weight: 500; }
.err::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.1'/%3E%3C/svg%3E") center / contain no-repeat; }
.src { margin: 6px 0 0; color: var(--green); font-size: .88rem; font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- choice buttons and cards (native radios underneath) ---------- */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts.cards { display: grid; grid-template-columns: 1fr 1fr; }
.opts.cards.stack { grid-template-columns: 1fr; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt > span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 52px; min-height: 48px; padding: 8px 14px;
  border: 1.5px solid var(--field); border-radius: var(--r-field); background: #fff; color: var(--ink); font-weight: 600; line-height: 1.25;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.opts.cards .opt > span { justify-content: flex-start; height: 100%; padding: 12px 14px; text-align: left; }
.opt small { display: block; margin-top: 2px; font-weight: 400; font-size: .86rem; color: var(--muted); }
.opt > span b { display: block; font-weight: 600; }
.opt:hover > span { border-color: var(--navy); }
.opt input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.opt input:checked + span small { color: #D5DEEE; }
/* The check mark carries the selected state without color. */
.opt input:checked + span::before { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt:active > span { transform: scale(.98); }
.q[aria-invalid="true"] .opt > span { border-color: var(--error); }
.more { margin-top: 8px; max-width: 200px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 22px; line-height: 1.2; text-align: center; border: 1.5px solid transparent; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--field); }
.btn-ghost:hover { border-color: var(--navy); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-block { width: 100%; }
.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--navy); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { text-decoration-thickness: 2px; }
.link.danger { color: var(--error); }
.actions { display: grid; gap: 10px; margin-top: 20px; align-items: stretch; }
.actions .btn { width: 100%; min-width: 0; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- welcome back, added properties ---------- */
.who { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.who > div:first-child, .added li > div:first-child { min-width: 0; }
.who p { margin: 0; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.who-actions { display: flex; gap: 12px; }
.added { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.added li { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-field); }
.added b { display: block; color: var(--ink); overflow-wrap: anywhere; }
.added span { color: var(--muted); font-size: .9rem; }
.added .row-actions { display: flex; gap: 8px; }
.notice { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-field); background: var(--error-soft); color: var(--error); font-weight: 500; }
.note.ok { background: var(--green-soft); border-color: #B9DFCF; color: #0B4F39; }
.note.near { background: var(--flag-soft); border-color: #F1D9A8; color: #5C3200; }
.note.out, .note.warn { background: var(--error-soft); border-color: #F3C2BC; color: #7A1A10; }
.note + .note { margin-top: 8px; }
#bb-note:empty { display: none; }
#bb-note .note:first-child { margin-top: 0; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.chip { min-height: 44px; padding: 6px 14px; border: 1.5px solid var(--field); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.checker { margin-top: 20px; max-width: 640px; }
.checker label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.checker-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.checker input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--field); border-radius: var(--r-field); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.checker input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 31, 84, .16); }
.checker-out .note { margin-top: 10px; }
.checker-out .hint { margin-top: 8px; }
.tc { display: grid; gap: 20px 32px; margin-top: 24px; }
.tc ul { margin: 6px 0 0; padding-left: 1.1rem; }
.tc li { margin: 3px 0; }
.note { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-field); background: #fff; border: 1px solid var(--line); font-size: .95rem; }

/* ---------- files ---------- */
.file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file input[type="file"]:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.file label.btn { display: inline-flex; margin: 0; padding: 0 20px; min-height: 44px; font-size: .95rem; color: var(--navy); }
.file-status { color: var(--muted); font-size: .9rem; }

/* ---------- result: instant offer by Compr ---------- */
.done-head { display: flex; gap: 14px; align-items: flex-start; }
.done-head::before { content: ""; flex: none; width: 36px; height: 36px; margin-top: 2px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312805C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 60% no-repeat; }
.results { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.result { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-field); }
.result > b { display: block; color: var(--ink); overflow-wrap: anywhere; }
.result > p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.by-compr { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; font-weight: 500; text-decoration: none; }
.by-compr img { display: block; height: 16px; width: auto; }
a.by-compr:hover { color: var(--ink); }
.cmp { width: 100%; margin: 12px 0 0; border-collapse: collapse; font-size: .95rem; }
.cmp caption { text-align: left; padding-bottom: 8px; }
.cmp th, .cmp td { padding: 9px 8px 9px 0; text-align: right; vertical-align: top; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cmp th:first-child, .cmp td:first-child { text-align: left; }
.cmp thead th { border-top: 0; color: var(--muted); font-weight: 500; font-size: .84rem; }
.cmp tbody th { font-weight: 600; color: var(--ink); }
.cmp small { display: block; color: var(--muted); font-size: .82rem; }
.tag { display: inline-block; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: var(--flag-soft); color: var(--flag); font-size: .78rem; font-weight: 700; }
.tag.ok { background: var(--green-soft); color: var(--green); }
.fine { margin: 10px 0 0; color: var(--muted); font-size: .86rem; }
.skel { display: grid; gap: 8px; margin-top: 12px; }
.skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #EEEBE5 25%, #F7F5F1 45%, #EEEBE5 65%) 0 0 / 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skel i:nth-child(2) { width: 82%; } .skel i:nth-child(3) { width: 64%; }
@keyframes shimmer { to { background-position: -150% 0; } }
.explain { margin-top: 14px; border-top: 1px solid var(--line); }
.explain summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; }
.explain summary::-webkit-details-marker { display: none; }
.explain summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; transition: transform .2s ease; }
.explain[open] summary::after { transform: rotate(45deg); }
.explain .grid { padding-bottom: 4px; }
.comp-row { grid-column: 1 / -1; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--warm); }
.comp-row .field { margin: 0; }

/* ---------- buy box ---------- */
.band { padding: 48px 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--warm); }
.bb { display: grid; gap: 20px; }
.bb-map { position: relative; }
.bb-map svg { display: block; width: 100%; height: auto; }
.bb-map .st { fill: #ECE9E3; stroke: #fff; stroke-width: 1; }
.bb-map .st.on { fill: #C5D2EA; cursor: pointer; transition: fill .15s ease; }
.bb-map .st.on:hover { fill: #9FB4DD; }
.bb-map .st.sel { fill: var(--navy); }
.bb-map .st.on:focus-visible { outline: none; stroke: var(--focus); stroke-width: 3; }
.bb-map .dot { fill: var(--navy); stroke: #fff; stroke-width: 1.5; pointer-events: none; }
.bb-map .dot.in { fill: #fff; stroke: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips .opt > span { min-width: 48px; min-height: 44px; padding: 6px 10px; font-size: .92rem; }
.bb-panel { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); align-self: start; }
.band.alt .bb-panel { background: #fff; }
.bb-panel .cap { margin: 0 0 14px; color: var(--muted); }
.bb-panel .cap b { color: var(--ink); font-size: 1.15rem; }
.mk { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.mk li { display: grid; gap: 2px; }
.mk b { color: var(--ink); }
.mk span { color: var(--text); font-size: .95rem; }
.mk em { font-style: normal; color: var(--muted); font-size: .86rem; }
.rules { display: grid; gap: 20px; margin-top: 28px; }
.rules ul { margin: 6px 0 0; padding-left: 1.1rem; }
.rules li { margin: 2px 0; }
.all { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-panel); background: #fff; }
.all summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; border-radius: var(--r-panel); }
.all summary::-webkit-details-marker { display: none; }
.all summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--navy); transition: transform .2s ease; }
.all[open] summary::after { transform: rotate(45deg); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
table.t th, table.t td { padding: 12px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
table.t thead th { background: var(--warm); color: var(--ink); font-weight: 600; white-space: nowrap; }
table.t tbody th { font-weight: 600; color: var(--ink); }
.framed { border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; background: #fff; }
.framed table.t thead th { border-top: 0; }

/* ---------- terms, contact ---------- */
.terms { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.terms li { position: relative; padding-left: 28px; }
.terms li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312805C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }
.person { display: flex; gap: 14px; align-items: center; }
.person img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--line); }
.person p { margin: 0; color: var(--muted); font-size: .95rem; }
.contact-lines { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.contact-lines a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }
.contact-lines address { font-style: normal; color: var(--muted); font-size: .95rem; padding: 6px 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }

/* address suggestions (js/address-autocomplete.js); same look as offer-chat.css */
.hpac-list { position: fixed; z-index: 40; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(11, 31, 58, .14); max-height: 340px; overflow-y: auto; overscroll-behavior: contain; text-align: left; }
.hpac-list[hidden] { display: none; }
.hpac-opt { display: flex; gap: 12px; align-items: flex-start; min-height: 52px; padding: 10px 12px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.hpac-opt svg { flex: none; margin-top: 2px; color: var(--muted); }
.hpac-opt span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.hpac-opt b { font-size: 1rem; font-weight: 600; }
.hpac-opt small { font-size: .88rem; color: var(--muted); }
.hpac-opt.on, .hpac-opt:hover { background: var(--warm); }
.hpac-by { padding: 6px 12px 2px; font-size: .75rem; color: var(--muted); text-align: right; }

@media (min-width: 760px) { .tc { grid-template-columns: 1fr 1fr; } }
@media (min-width: 560px) {
  .field.half-md { grid-column: auto; }
  .opts.cards.stack { grid-template-columns: 1fr 1fr; }
  .opts.cards.four { grid-template-columns: repeat(4, 1fr); }
  .opts.cards.three { grid-template-columns: repeat(3, 1fr); }
  .actions { grid-template-columns: 1fr 1fr; }
  .comp-row { grid-template-columns: 2fr 1fr 1fr; }
  .rules { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 1.85rem; }
  .intro { padding-top: 44px; }
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 28px; }
  .side { position: sticky; top: 88px; }
  .panel { padding: 28px; }
  .band { padding: 72px 0; }
  .bb { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
