/* Cash For Cars San Angelo: shared brand layer */
:root {
  --paper: #f7f5f0;
  --paper-2: #ece8df;
  --card: #fffefb;
  --ink: #1c2230;
  --ink-soft: #4a5263;
  --ink-faint: #6c7282;
  --river: #2c4a7c;
  --river-deep: #1f3660;
  --river-tint: #e4eaf4;
  --marigold: #f2805a;
  --marigold-deep: #d9653f;
  --marigold-tint: #fde9e1;
  --clay: #4f7a43;
  --line: #dcd6ca;
  --line-strong: #bdb5a6;
  --error: #a3262b;
  --error-tint: #fbeceb;
  --ok: #2e6a3a;
  --radius: 6px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--river); text-underline-offset: 3px; }
a:hover { color: var(--river-deep); }
:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }
.cf-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .cf-wrap { padding: 0 28px; } }
.cf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cf-skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; border-radius: var(--radius); }
.cf-skip:focus { top: 10px; color: #fff; }

/* ---------- top strip */
.cf-strip { background: var(--river-deep); color: #e2e8f2; font-size: 14px; }
.cf-strip .cf-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.cf-strip a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.cf-strip a:hover { color: var(--marigold); }
.cf-strip__social { display: flex; align-items: center; gap: 4px; }
.cf-strip__social span { text-transform: lowercase; letter-spacing: .04em; margin-right: 6px; opacity: .85; }
.cf-strip__social a { width: 30px; height: 30px; justify-content: center; border-radius: 50%; }
.cf-strip__social svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 599px) { .cf-strip__social span { display: none; } }

/* ---------- header */
.cf-head { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.cf-head .cf-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.cf-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.cf-brand:hover { color: var(--ink); }
.cf-brand__mark { width: 48px; height: 48px; flex: none; }
.cf-brand__words { display: flex; flex-direction: column; line-height: 1; }
.cf-brand__top { font: 700 22px/1 var(--display); letter-spacing: -.01em; font-variation-settings: "SOFT" 50, "WONK" 1; }
.cf-brand__city { position: relative; font: 600 12.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--river); margin-top: 6px; padding-bottom: 6px; }
.cf-brand__city svg { position: absolute; left: -2px; bottom: -2px; width: 104%; height: 7px; overflow: visible; }
@media (max-width: 380px) {
  .cf-brand__mark { width: 40px; height: 40px; }
  .cf-brand__top { font-size: 18.5px; }
  .cf-brand__city { font-size: 11px; letter-spacing: .2em; }
}
.cf-nav { display: flex; align-items: center; gap: 6px; }
.cf-nav__links { display: flex; gap: 2px; list-style: none; margin: 0 8px 0 0; padding: 0; }
.cf-nav__links a { display: block; padding: 10px 14px; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.cf-nav__links a:hover { background: var(--paper-2); }
.cf-nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cf-menu-btn { display: none; width: 44px; height: 44px; border: 1.5px solid var(--ink); background: transparent; border-radius: var(--radius); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.cf-menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 767px) {
  .cf-menu-btn { display: inline-flex; }
  .cf-nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); flex-direction: column; margin: 0; padding: 8px 16px 14px; box-shadow: 0 12px 20px -14px rgba(28,34,48,.35); }
  .cf-nav__links.is-open { display: flex; }
  .cf-nav__links a { padding: 13px 4px; border-bottom: 1px dashed var(--line); border-radius: 0; }
}

/* ---------- buttons */
.cf-btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 700 17px/1.15 var(--sans); letter-spacing: .005em;
  border-radius: var(--radius); border: 2px solid var(--b); cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.cf-btn--go { background: var(--marigold); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.cf-btn--go:hover { background: #f4936f; color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.cf-btn--go:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.cf-btn--go[aria-busy="true"] { cursor: progress; transform: none; box-shadow: 2px 2px 0 var(--ink); background: var(--marigold-tint); }
.cf-btn--line { background: transparent; color: var(--ink); }
.cf-btn--line:hover { background: var(--ink); color: var(--paper); }
.cf-btn--river { --b: var(--river); background: var(--river); color: #fff; }
.cf-btn--river:hover { background: var(--river-deep); color: #fff; }
.cf-btn--wide { width: 100%; }
.cf-btn--sm { min-height: 44px; padding: 8px 14px; font-size: 15.5px; }
.cf-btn svg { width: 18px; height: 18px; flex: none; }
.cf-link-btn { background: none; border: 0; padding: 6px 2px; min-height: 44px; font: 600 16px/1.3 var(--sans); color: var(--river); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cf-link-btn:hover { color: var(--river-deep); }
.cf-spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cf-spin .8s linear infinite; }
@keyframes cf-spin { to { transform: rotate(360deg); } }

/* ---------- fields */
.cf-field { margin: 0 0 16px; }
.cf-label { display: block; font: 600 15px/1.3 var(--sans); margin: 0 0 6px; color: var(--ink); }
.cf-label__aside { font-weight: 400; color: var(--ink-faint); }
.cf-input {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 17px/1.3 var(--sans); color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .12s ease, box-shadow .12s ease;
  -webkit-appearance: none; appearance: none;
}
.cf-input::placeholder { color: #8a8f99; }
.cf-input:focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 3px rgba(44,74,124,.22); }
.cf-input:disabled { background: var(--paper-2); color: var(--ink-faint); cursor: not-allowed; }
.cf-input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.cf-input[readonly] { background: var(--paper-2); }
.cf-hint { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.cf-err { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--error); }
.cf-err[hidden] { display: none; }
.cf-err::before { content: ""; flex: none; width: 4px; align-self: stretch; background: var(--error); border-radius: 2px; }

/* ---------- combobox */
.cf-combo { position: relative; }
.cf-combo .cf-input { padding-right: 42px; }
.cf-combo__caret { position: absolute; right: 8px; top: 25px; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none; color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.cf-combo__caret svg { width: 14px; height: 14px; }
.cf-combo__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  max-height: 264px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 4px 6px 0 rgba(28,34,48,.12);
}
.cf-combo__list[hidden] { display: none; }
.cf-combo__opt { padding: 11px 12px; border-radius: 4px; cursor: pointer; font-size: 16.5px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cf-combo__opt small { color: var(--ink-faint); font-size: 14px; }
.cf-combo__opt[aria-selected="true"] { font-weight: 700; }
.cf-combo__opt.is-active { background: var(--marigold-tint); outline: 1.5px solid var(--marigold-deep); }
.cf-combo__empty { padding: 12px; color: var(--ink-soft); font-size: 15px; }

/* ---------- dialogs */
.cf-dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.cf-dialog::backdrop { background: rgba(28,34,48,.55); }
.cf-dialog__scrim { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.cf-dialog__panel {
  position: relative; width: 100%; max-height: 88vh; overflow-y: auto;
  background: var(--card); color: var(--ink); border-radius: 14px 14px 0 0; padding: 26px 20px 22px;
  border-top: 3px solid var(--ink);
}
@media (min-width: 768px) {
  .cf-dialog__scrim { align-items: center; padding: 24px; }
  .cf-dialog__panel { max-width: 560px; border-radius: 10px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 rgba(28,34,48,.25); padding: 30px 30px 26px; }
  .cf-dialog__panel--wide { max-width: 680px; }
}
.cf-dialog__title { font: 700 26px/1.15 var(--display); margin: 0 34px 10px 0; }
.cf-dialog__x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.cf-dialog__x svg { width: 18px; height: 18px; }
.cf-dialog__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
@media (min-width: 768px) { .cf-dialog__actions { flex-direction: row-reverse; justify-content: flex-start; align-items: center; } }

/* ---------- hand-drawn helpers */
.cf-hand { font-family: var(--hand); font-weight: 600; color: var(--clay); line-height: 1.05; }
.cf-sketch { stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cf-rule { display: block; width: 100%; height: 14px; color: var(--line-strong); }

/* ---------- footer */
.cf-foot { background: var(--ink); color: #c9cdd6; padding: 26px 0 30px; font-size: 15px; }
.cf-foot .cf-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.cf-foot p { margin: 0; }
.cf-foot a { color: #fff; }
.cf-foot__brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 17px/1.2 var(--display); }
.cf-foot__brand svg { width: 34px; height: 34px; }

/* VIN help dialog content */
.cf-vin-sample { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--paper); border: 1.5px dashed var(--line-strong); border-radius: 6px; }
.cf-vin-sample code { font: 700 20px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; }
.cf-vin-sample span { font-size: 15px; color: var(--ink-soft); }
.cf-vin-places { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-vin-places h3 { font: 700 17px/1.2 var(--sans); margin: 8px 0 6px; }
.cf-vin-places ul { margin: 0; padding-left: 20px; font-size: 16px; }
@media (max-width: 559px) { .cf-vin-places { grid-template-columns: 1fr; gap: 4px; } }
.cf-input--vin { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.cf-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cf-label-row .cf-link-btn { min-height: 0; padding: 0 0 6px; font-size: 15px; }
