/* The customer waiver, and the portal's application, which loads it too. Its
   own sheet: the desk's styles never load here. In the portal's new look since
   round 3 (Tyler, 13 October 2026: "Waiver should match the portal") — the
   navy and blue of public/customer/portal-look.css, under the same top bar
   (portal-top.css); the names below are the waiver's own, so the waiver's and
   the application's scripts did not change. */
:root {
  --bg: #f6f8fc; --card: #ffffff; --ink: #202e43; --muted: #6f7d90;
  --line: #e2e8f0; --brand: #244e89; --brand-dark: #172b47; --brand-soft: #edf4fd;
  --danger: #b3261e; --accent: #244e89; --radius: 16px; --green: #177454;
  --shadow: 0 3px 16px #233d6110;
}
* { box-sizing: border-box; }
/* Hidden means hidden, whatever display a rule below gives it: the sent
   application's step heading is an h2 (display: flex) and stayed on screen
   over the receipt its script had hidden it from (13 October 2026). */
[hidden] { display: none !important; }
html, body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%;
}
:focus-visible { outline: 3px solid #76a8ed; outline-offset: 2px; }
.wrap { max-width: 660px; margin: 0 auto; padding: 30px 16px 48px; }
.head { padding: 0 2px 18px; }
.head h1 { margin: 6px 0 6px; font-size: 29px; line-height: 1.2; letter-spacing: -1px; color: var(--brand-dark); }
.head p { margin: 0; font-size: 16px; color: var(--muted); }
.head .eyebrow { color: var(--muted); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 800; }
.notice {
  background: #fff7e6; border: 1px solid #f1d9a6; color: #5c4210; border-radius: 12px;
  padding: 12px 14px; margin: 0 0 14px; font-size: 16.5px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; margin: 0 0 14px;
}
.card h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.35px; margin: 0 0 14px; font-weight: 800; color: var(--brand-dark); }
.sn {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; flex: none;
}
label { display: block; font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--brand-dark); }
.field { margin-top: 13px; }
.hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; font-weight: 400; }
.hint-tight { margin: 0 0 6px; }
.hint-lead { margin: -8px 0 12px; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: 12px 13px; border: 1px solid #cfd8e3; border-radius: 10px; font-size: 16px;
  background: #fbfcfe; color: var(--ink); font-family: inherit;
}
input[readonly] { background: #f1f4f6; color: var(--muted); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px #244e8924;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 150px; }
.row > .age { flex: 0 0 88px; min-width: 88px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 14px 18px; border-radius: 10px; border: none; font-size: 16.5px; font-weight: 800; cursor: pointer; min-height: 48px;
  font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:disabled { background: #b9c4d3; cursor: default; }
.legal {
  font-size: 15.5px; line-height: 1.55; color: #28313c; max-height: 340px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfcfd;
}
.legal p { margin: 0 0 11px; }
.legal p:last-child { margin-bottom: 0; }
.legal b { color: var(--ink); }
.agree { display: flex; gap: 11px; align-items: flex-start; font-size: 16.5px; font-weight: 600; cursor: pointer; margin-top: 14px; }
.agree input { width: 21px; height: 21px; flex: none; margin-top: 1px; accent-color: var(--brand); }
.agree-flush { margin-top: 0; }
.pill {
  display: inline-block; background: #eef2f6; color: #425263; border-radius: 999px;
  padding: 2px 9px; font-size: 13px; font-weight: 700; margin-left: 6px; vertical-align: middle;
}
.search-wrap { position: relative; }
.results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; z-index: 20; display: none;
}
.results.open { display: block; }
.results div { padding: 11px 13px; cursor: pointer; font-size: 16.5px; border-bottom: 1px solid #f2f4f6; }
.results div:hover { background: var(--brand-soft); }
.results small, .picked small { display: block; color: var(--muted); font-size: 14px; }
.results .result-empty { color: var(--muted); cursor: default; }
.results .result-empty:hover { background: #fff; }
.picked {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border: 1px solid #d3dce5; border-radius: 11px; padding: 11px 13px; margin-top: 9px; background: #fff;
}
.picked b { font-size: 16px; }
.yn { display: flex; gap: 9px; margin-top: 2px; }
.yn button {
  flex: 1; padding: 12px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff;
  font-size: 16.5px; font-weight: 700; cursor: pointer; color: var(--ink); font-family: inherit;
}
.yn button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip {
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: 15.5px;
  font-weight: 600; cursor: pointer; background: #fff; color: var(--ink); font-family: inherit;
}
.chip.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.minor-row { border: 1px solid #d3dce5; border-radius: 11px; padding: 11px; margin-bottom: 9px; background: #fff; }
.minor-label { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 7px; }
.county-block { margin-top: 13px; }
.signer { border: 1px solid #d3dce5; border-radius: 12px; margin: 0 0 13px; overflow: hidden; background: #fff; }
.signer-head {
  padding: 10px 13px; background: #eaf0f6; border-bottom: 1px solid #dae3ec; font-size: 13.5px;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.signer.done { border-color: #c9d9ef; }
.signer.done .signer-head { background: var(--brand-soft); color: var(--brand-dark); }
.signer-body { padding: 13px; }
.sigpad {
  border: 1.5px dashed #c4ced8; border-radius: 11px; background: #fbfcfd; touch-action: none;
  width: 100%; height: 150px; display: block;
}
.sigrow { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.link { color: var(--accent); font-weight: 700; cursor: pointer; background: none; border: none; font-size: 15.5px; padding: 0; font-family: inherit; }
.link-danger { color: var(--danger); }
.err { color: var(--danger); font-size: 15.5px; margin-top: 9px; font-weight: 600; }
.consent-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfcfd; }
.consent-box + .consent-box { margin-top: 12px; }
.fine { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 9px; }
.robot-check { min-height: 66px; margin: 0 0 14px; }
.spin {
  width: 16px; height: 16px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  border-radius: 50%; display: inline-block; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.done-card { text-align: center; }
.done-mark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 29px; margin: 6px auto 14px;
}
.done-title { justify-content: center; }
.done-company { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; margin-top: 14px; background: #fbfcfd; }
.done-head { font-size: 13.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.done-company ul { margin: 0; padding-left: 18px; }
.done-company li { margin: 6px 0; }
.lockbox { margin-top: 4px; font-size: 16.5px; }
.hide { display: none !important; }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* Names, required and optional, and what is wrong. */
.seller-names { font-weight: 700; }
.optional-tag, .required-tag {
  display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 8px;
  text-transform: none; letter-spacing: 0; vertical-align: middle;
}
.optional-tag { background: #eef2f6; color: #425263; }
.required-tag { background: #fdecea; color: #8a1c12; }
.field-error { color: var(--danger); font-size: 15px; font-weight: 600; margin: 5px 0 0; }
.field-error:empty { display: none; }
.has-error input[type=text], .has-error input[type=tel], .has-error input[type=email], .has-error select,
.has-error .sigpad, .has-error .id-drop, .has-error .yn button { border-color: var(--danger); }
.agree.has-error { color: var(--danger); }
.adult-block { border: 1px solid #d3dce5; border-radius: 12px; padding: 13px; margin-top: 13px; background: #fff; }
.adult-head, .id-head {
  display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.row > .middle { flex: 1; min-width: 190px; }
/* A label in a row keeps to one line, and one line height, so a box under a
   longer one ("Middle Name Optional", with its pill) does not start lower than
   its neighbours. */
.row > .field > label { white-space: nowrap; line-height: 20px; height: 22px; display: flex; align-items: center; gap: 6px; }
.row > .field > label .optional-tag { line-height: 14px; }
.suggest { margin-top: 6px; font-size: 15.5px; color: #5c4210; }
.suggest:empty { display: none; }
/* Adult 1's "Have You Purchased A Property From Us Before?" — its three
   answers side by side, stacked on a phone, where "Yes, I Still Own It" would
   otherwise wrap inside its button. */
.bought { border-top: 1px solid #e3e9ef; margin-top: 14px; padding-top: 2px; }
.bought textarea { min-height: 64px; resize: vertical; }
.bought-then { margin-top: 14px; }
@media (max-width: 520px) { .yn-three { flex-direction: column; } }
.id-box { border: 1px solid #d3dce5; border-radius: 12px; padding: 13px; margin-top: 12px; background: #fff; }
.id-drop {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1.5px dashed #c4ced8; border-radius: 11px; padding: 18px; cursor: pointer; background: #fbfcfd;
  font-weight: 700; color: var(--accent); margin: 0;
}
.id-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.id-status { font-size: 15.5px; margin: 6px 0 0; color: var(--brand-dark); font-weight: 600; }
.id-status:empty { display: none; }
.id-status.is-bad { color: var(--danger); }
.minor-actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.problems { margin-top: 12px; border: 1px solid #f3c1bb; background: #fdecea; border-radius: 12px; padding: 12px 14px; color: #5f140c; }
.problems-title { margin: 0 0 6px; font-weight: 700; }
.problems ul { margin: 0; padding-left: 18px; }
.problems li { margin: 3px 0; }
.problems li button {
  background: none; border: none; padding: 0; color: inherit; text-decoration: underline;
  cursor: pointer; font: inherit; text-align: left;
}

/* No signal, and what this phone kept. */
.offline {
  position: sticky; top: 8px; z-index: 5; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px;
  background: #fff4d6; border: 1px solid #f0d58a; color: #5c4210; font-size: 16px; font-weight: 600;
}

/* Reading to the end before agreeing or signing. */
.legal:focus-visible { outline: 3px solid rgba(37, 99, 168, .35); outline-offset: 2px; }
.read-hint { margin: 8px 0 0; font-size: 15px; font-weight: 700; color: var(--accent); }
.agree input:disabled { cursor: not-allowed; opacity: .5; }
.sig-wrap { position: relative; }
.sig-lock {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 12px; border: 1px dashed #c4ced8; border-radius: 10px; background: rgba(244, 246, 248, .94);
  color: var(--muted); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.signer:not(.locked) .sig-lock { display: none; }

/* The license they added, shown back to them. */
.id-preview { margin: 0 0 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #eef2f6; }
.id-preview img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.id-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.id-actions .id-drop { flex: 1 1 200px; }

/* States as a list to tick, and a panel per state picked. */
.state-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.state-option, .county-option {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #d3dce5; border-radius: 10px;
  background: #fff; color: var(--ink); font-size: 16.5px; font-weight: 600; cursor: pointer;
}
.state-option input, .county-option input, .area-mode input {
  width: 19px; height: 19px; flex: none; margin: 0; accent-color: var(--brand);
}
.state-option:has(input:checked), .county-option:has(input:checked) {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark);
}
.area-panel { margin-top: 13px; padding: 14px; border: 1.5px solid #c9d9ef; border-radius: 12px; background: #fff; }
.area-title { margin: 0 0 9px; font-size: 16px; font-weight: 800; color: var(--ink); }
.area-modes { display: flex; flex-direction: column; gap: 9px; }
.area-mode { display: flex; gap: 10px; align-items: center; font-size: 16.5px; font-weight: 600; cursor: pointer; }
.county-picker { margin-top: 11px; }
.county-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; margin-top: 8px; padding: 2px; }
.county-option { padding: 8px 10px; font-weight: 500; }
.county-summary { margin: 9px 0 0; font-size: 15.5px; font-weight: 600; color: var(--brand-dark); }
.county-summary:empty { display: none; }
@media (max-width: 360px) { .state-grid { grid-template-columns: 1fr; } }

/* The done screen: what happens next, and who to call. */
.done-email { max-width: 46ch; margin: 8px auto 14px; font-size: 16.5px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.done-rep { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; text-align: left; }
.done-rep-name { margin-bottom: 4px; font-size: 16px; font-weight: 800; color: var(--ink); }
.done-rep a { display: block; margin-top: 3px; font-size: 16.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.done-next { margin-top: 16px; }
.done-next .portal-button { display: block; box-sizing: border-box; text-align: center; text-decoration: none; }

/* Said next to the boxes, not only inside the agreement: one phone goes round
   the room, and this is the moment somebody could sign for somebody else. */
.sign-warning { margin: 0 0 12px; padding: 12px 14px; border-left: 4px solid #b4711a;
  border-radius: 8px; background: #fdf4e6; color: #5a3c0d; font-size: 15.5px; line-height: 1.55; }
/* What the ID reader saw: a warning under the photo, never a refusal. */
.id-warn { margin: 6px 0 0; padding: 9px 12px; border-radius: 10px; background: #fff4e5; border: 1px solid #f1d29b; color: #6b4300; font-size: 15.5px; font-weight: 600; line-height: 1.45; }

/* Signing electronically (signing/waiver-sign.js, 20 October 2026): the
   agreement's words under the signatures, and a box for each adult. */
.esign-read { margin: 0 0 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; padding: 10px 14px; }
.esign-read summary { cursor: pointer; font-weight: 700; color: #172b47; }
.esign-words { max-height: 260px; overflow: auto; font-size: 15.5px; line-height: 1.55; margin-top: 8px; }
.esign-words h3, .esign-words h4 { font-size: 16px; margin: 10px 0 2px; color: #172b47; }
.esign-words p { margin: 0 0 6px; }
.esign-box { display: flex; gap: 9px; align-items: flex-start; font-weight: 600; font-size: 16px; margin: 0 0 10px; }
.esign-box input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

/* Sign Up For Property Alerts (alerts.ejs): its two boxes, email and text,
   each under its own title and divided by a line (Tyler, 20 October 2026). */
.alerts-choices .alerts-choice + .alerts-choice { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.alerts-choice-title { margin: 0 0 6px; font-weight: 700; font-size: 16.5px; }
.alerts-choice-title span { margin-right: 4px; font-size: 17px; line-height: 1; }
.alerts-choices .fine { margin-top: 12px; }

/* READABILITY (the owner, 22 October 2026): about 16px reading text, nothing
   under 13px, and buttons a thumb can't miss — for every customer, on every
   phone. Sizes above were raised one step; these keep the controls comfortable. */
.btn, button.btn, a.btn { min-height: 48px; }
input, select, textarea { font-size: 16px; }
