/* A Better View: quote / ballpark widget styles (SIS draft, 2026-10-28)
 * Theme from the page by setting any of these on :root, body or the [data-quote] element:
 *   --qt-bg  --qt-ink  --qt-muted  --qt-line  --qt-accent  --qt-accent-ink  --qt-blue  --qt-radius
 * Optional: --qt-error, --qt-scroll-offset (sticky header height).
 * The widget loads no fonts; it inherits font-family from the page.
 * The [data-quote] element needs a definite width (block-level, or a sized grid/flex column),
 * because it is a size container (container-type: inline-size).
 */

[data-quote] { display: block; width: 100%; }

.qt {
  --_bg: var(--qt-bg, #0A1A33);
  --_ink: var(--qt-ink, #F3EFE6);
  --_muted: var(--qt-muted, #A9B5C7);
  --_line: var(--qt-line, rgba(169, 181, 199, .24));
  --_accent: var(--qt-accent, #B98647);
  --_accent-ink: var(--qt-accent-ink, #071226);
  --_blue: var(--qt-blue, #4A8AE0);
  --_radius: var(--qt-radius, 16px);
  --_err: var(--qt-error, #FF9F8E);
  --_tile: rgba(255, 255, 255, .035);
  --_tile-on: rgba(185, 134, 71, .15);
  container-type: inline-size;
  container-name: qt;
  scroll-margin-top: var(--qt-scroll-offset, 16px);
  box-sizing: border-box;
}
.qt *, .qt *::before, .qt *::after { box-sizing: border-box; }
.qt [hidden] { display: none !important; }

.qt .qt-card {
  background: var(--_bg);
  color: var(--_ink);
  border: 1px solid var(--_line);
  border-radius: var(--_radius);
  padding: 18px 16px 18px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .75);
  font: inherit;
  line-height: 1.45;
  margin: 0;
}
.qt .qt-ic { width: 28px; height: 28px; flex: none; display: block; }
.qt :focus-visible { outline: 3px solid var(--_blue); outline-offset: 2px; }
.qt .qt-title:focus, .qt .qt-title:focus-visible { outline: none; }
.qt a { color: var(--_accent); text-underline-offset: 2px; }
.qt a:hover { color: var(--_ink); }

/* --- progress --- */
.qt .qt-top { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.qt .qt-progress { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.qt .qt-progress-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--_accent); transition: width .35s ease; }
.qt .qt-steplabel { margin: 0; font-size: .8rem; color: var(--_muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --- headings & text --- */
.qt .qt-eyebrow { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--_accent); }
.qt .qt-title { margin: 0 0 6px; font-size: 1.3rem; line-height: 1.2; font-weight: 750; letter-spacing: -.01em; color: var(--_ink); }
.qt .qt-title--hero { font-size: 1.4rem; }
.qt .qt-q { margin: 0 0 14px; font-size: 1rem; font-weight: 600; color: var(--_ink); }
.qt .qt-hint { margin: 0 0 16px; color: var(--_muted); font-size: .95rem; }
.qt .qt-opt { font-weight: 500; color: var(--_muted); font-size: .8em; }
.qt .qt-sub { margin: 18px 0 10px; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--_muted); }
.qt .qt-step > .qt-sub:first-of-type { margin-top: 4px; }

/* --- step 1 head/aside --- */
.qt .qt-step--service { display: flex; flex-direction: column; }
.qt .qt-step--service .qt-aside { order: 3; margin-top: 14px; }
.qt .qt-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.qt .qt-chips li { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(185, 134, 71, .4); background: rgba(185, 134, 71, .1); color: var(--_ink); }
.qt .qt-call { margin: 0; font-size: .88rem; color: var(--_muted); }
.qt .qt-call a { font-weight: 700; white-space: nowrap; }

/* --- tiles --- */
.qt .qt-grid, .qt .qt-list, .qt .qt-doors { display: grid; gap: 10px; }
.qt .qt-grid--svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qt .qt-grid--count { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qt .qt-list { grid-template-columns: 1fr; }
.qt .qt-doors { grid-template-columns: 1fr; align-items: start; }

.qt .qt-tile {
  appearance: none; -webkit-appearance: none;
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 108px; margin: 0; padding: 16px 10px;
  font: inherit; color: var(--_ink); text-align: center;
  background: var(--_tile);
  border: 1.5px solid var(--_line);
  border-radius: calc(var(--_radius) - 4px);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.qt .qt-tile:hover { border-color: var(--_accent); }
.qt .qt-tile:active { transform: scale(.985); }
.qt .qt-tile[aria-pressed="true"] { border-color: var(--_accent); background: var(--_tile-on); }
.qt .qt-tile .qt-ic { width: 34px; height: 34px; color: var(--_accent); }
.qt .qt-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qt .qt-tile-label { font-weight: 650; font-size: .95rem; line-height: 1.25; }
.qt .qt-tile-desc { font-size: .82rem; color: var(--_muted); line-height: 1.3; }
.qt .qt-check {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--_accent); color: var(--_accent-ink);
  opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .15s ease;
}
.qt .qt-tile .qt-check .qt-ic, .qt .qt-list .qt-tile .qt-check .qt-ic { width: 14px; height: 14px; color: var(--_accent-ink); stroke-width: 3.2; }
.qt .qt-tile[aria-pressed="true"] .qt-check { opacity: 1; transform: none; }

/* row-style tiles (icon left) */
.qt .qt-list .qt-tile, .qt .qt-tile--row {
  flex-direction: row; justify-content: flex-start; text-align: left;
  min-height: 64px; padding: 14px 44px 14px 14px; gap: 14px;
}
.qt .qt-list .qt-tile .qt-ic, .qt .qt-tile--row .qt-ic { width: 30px; height: 30px; }
.qt .qt-list .qt-check, .qt .qt-tile--row .qt-check { top: 50%; margin-top: -11px; right: 14px; }

/* count tiles */
.qt .qt-grid--count .qt-tile { min-height: 76px; gap: 2px; padding: 12px 6px; }
.qt .qt-grid--count .qt-check { top: 5px; right: 5px; width: 18px; height: 18px; }
.qt .qt-grid--count .qt-tile .qt-check .qt-ic { width: 12px; height: 12px; }
.qt .qt-count { font-size: 1.35rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* doors */
.qt .qt-door { border: 1.5px solid var(--_line); border-radius: calc(var(--_radius) - 4px); background: var(--_tile); transition: border-color .15s ease, background-color .15s ease; }
.qt .qt-door:hover { border-color: var(--_accent); }
.qt .qt-door.is-on { border-color: var(--_accent); background: var(--_tile-on); }
.qt .qt-door .qt-tile { border: 0; background: transparent; }
.qt .qt-door .qt-tile[aria-pressed="true"] { background: transparent; }
.qt .qt-qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 12px 58px; }
.qt .qt-qty-label { font-size: .85rem; color: var(--_muted); }
.qt .qt-stepper { display: inline-flex; align-items: center; gap: 6px; }
.qt .qt-qty-n { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.qt .qt-round {
  appearance: none; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .06); color: var(--_ink); border: 1.5px solid var(--_line);
}
.qt .qt-round:hover { border-color: var(--_accent); }
.qt .qt-round .qt-ic { width: 18px; height: 18px; stroke-width: 2.4; }
.qt .qt-clear { margin: 8px 0 0; }

/* --- links / buttons --- */
.qt .qt-link {
  appearance: none; background: none; border: 0; padding: 6px 2px; margin: 0;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--_accent);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.qt .qt-link:hover { color: var(--_ink); }
.qt .qt-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; margin: 0;
  font: inherit; font-weight: 750; font-size: 1rem; line-height: 1.15; text-align: center; text-decoration: none;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.qt .qt-btn .qt-ic { width: 20px; height: 20px; stroke-width: 2.2; }
.qt .qt-btn--primary { background: var(--_accent); color: var(--_accent-ink); }
.qt a.qt-btn--primary { color: var(--_accent-ink); }
.qt .qt-btn--primary:hover { filter: brightness(1.08); }
.qt .qt-btn--ghost, .qt a.qt-btn--ghost { background: transparent; color: var(--_ink); border-color: var(--_line); }
.qt .qt-btn--ghost:hover { border-color: var(--_accent); }

.qt .qt-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.qt .qt-back {
  appearance: none; display: inline-flex; align-items: center; gap: 4px;
  min-height: 48px; padding: 0 14px 0 8px; margin: 0;
  font: inherit; font-weight: 650; color: var(--_muted);
  background: transparent; border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
}
.qt .qt-back:hover { color: var(--_ink); border-color: var(--_line); }
.qt .qt-back .qt-ic { width: 20px; height: 20px; stroke-width: 2.2; }
.qt .qt-next { margin-left: auto; }

.qt .qt-err { margin: 12px 0 0; color: var(--_err); font-weight: 600; font-size: .92rem; }
.qt .qt-err:empty { margin: 0; }
.qt .qt-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- photos --- */
.qt .qt-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.qt .qt-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 140px; padding: 22px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(185, 134, 71, .55); border-radius: calc(var(--_radius) - 4px);
  background: var(--_tile); transition: border-color .15s ease, background-color .15s ease;
}
.qt .qt-drop .qt-ic { width: 38px; height: 38px; color: var(--_accent); }
.qt .qt-drop:hover, .qt .qt-drop.is-over { border-color: var(--_accent); background: var(--_tile-on); }
.qt .qt-file:focus-visible + .qt-drop { outline: 3px solid var(--_blue); outline-offset: 2px; }
.qt .qt-drop-label { font-weight: 700; font-size: 1.02rem; }
.qt .qt-thumbs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; }
.qt .qt-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid var(--_line); }
.qt .qt-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qt .qt-thumb-name { display: none; }
.qt .qt-thumb.is-noprev img { display: none; }
.qt .qt-thumb.is-noprev .qt-thumb-name { display: block; padding: 8px; font-size: .72rem; color: var(--_muted); word-break: break-all; }
.qt .qt-thumb-rm {
  position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(3, 15, 35, .82); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
}
.qt .qt-thumb-rm:hover { background: #030F23; border-color: var(--_accent); }
.qt .qt-thumb-rm .qt-ic { width: 16px; height: 16px; stroke-width: 2.6; }
.qt .qt-photo-msg { margin: 10px 0 0; font-size: .88rem; color: var(--_muted); }
.qt .qt-photo-msg:empty { margin: 0; }

/* --- contact --- */
.qt .qt-fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.qt .qt-field label { display: block; margin: 0 0 6px; font-weight: 650; font-size: .9rem; }
.qt .qt-input {
  display: block; width: 100%; min-height: 50px; margin: 0; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--_ink);
  background: rgba(255, 255, 255, .05); border: 1.5px solid var(--_line); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.qt .qt-input::placeholder { color: var(--_muted); opacity: .8; }
.qt .qt-input:focus { outline: none; border-color: var(--_blue); box-shadow: 0 0 0 3px rgba(74, 138, 224, .35); }
.qt .qt-input[aria-invalid="true"] { border-color: var(--_err); }
.qt .qt-ferr { margin: 6px 0 0; font-size: .84rem; font-weight: 600; color: var(--_err); }
.qt .qt-ferr:empty { margin: 0; }
.qt .qt-consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; }
.qt .qt-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--_accent); cursor: pointer; }
.qt .qt-consent label { font-size: .84rem; color: var(--_muted); line-height: 1.45; cursor: pointer; }
.qt .qt-legal { margin: 6px 0 0 32px; font-size: .84rem; }

/* --- ballpark --- */
.qt .qt-range-label { margin: 2px 0 2px; font-size: .9rem; color: var(--_muted); }
.qt .qt-range { margin: 0 0 12px; font-size: 2rem; font-size: clamp(1.8rem, 7.5cqi, 2.7rem); font-weight: 800; line-height: 1.1; color: var(--_accent); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.qt .qt-disclaimer { margin: 0 0 8px; font-weight: 650; font-size: .95rem; }
.qt .qt-draftnote { display: inline-block; margin: 0 0 4px; padding: 5px 10px; font-size: .8rem; color: #C3D8F6; background: rgba(74, 138, 224, .12); border: 1px dashed rgba(74, 138, 224, .6); border-radius: 8px; }
.qt .qt-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--_line); }
.qt .qt-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--_line); font-size: .92rem; }
.qt .qt-rows b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.qt .qt-recap { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.qt .qt-recap div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--_line); font-size: .9rem; }
.qt .qt-recap dt { color: var(--_muted); }
.qt .qt-recap dd { margin: 0; overflow-wrap: anywhere; }
.qt .qt-fin { margin: 14px 0 0; }

/* --- done --- */
.qt .qt-step--done { text-align: center; padding: 8px 0 4px; }
.qt .qt-done-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; margin: 0 0 12px; border-radius: 50%; background: var(--_tile-on); border: 1.5px solid var(--_accent); color: var(--_accent); }
.qt .qt-done-ic .qt-ic { width: 28px; height: 28px; stroke-width: 2.4; }
.qt .qt-done-msg { max-width: 34em; margin: 0 auto 18px; color: var(--_ink); }
.qt .qt-done-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin: 0 auto 10px; max-width: 360px; }

/* --- motion --- */
.qt .qt-step { animation: qt-in .22s ease both; }
@keyframes qt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .qt *, .qt *::before, .qt *::after { animation: none !important; transition: none !important; }
}

/* ================= container-width layouts ================= */
@container qt (max-width: 479px) {
  .qt .qt-nav { flex-direction: column-reverse; align-items: stretch; }
  .qt .qt-next { width: 100%; margin-left: 0; }
  .qt .qt-back { align-self: flex-start; }
}
@container qt (min-width: 480px) {
  .qt .qt-card { padding: 22px 22px; }
  .qt .qt-grid--count { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .qt .qt-fields { grid-template-columns: 1fr 1fr; }
  .qt .qt-done-actions { flex-direction: row; justify-content: center; max-width: none; }
  .qt .qt-recap { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
@container qt (min-width: 560px) {
  .qt .qt-card { padding: 28px 28px; }
  .qt .qt-title { font-size: 1.55rem; }
  .qt .qt-title--hero { font-size: 1.6rem; }
  .qt .qt-grid--svc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qt .qt-list--2, .qt .qt-doors { grid-template-columns: 1fr 1fr; }
  .qt .qt-grid--svc .qt-tile { min-height: 116px; }
}

/* hero band: wide container, MLWG-style strip under the hero */
@container qt (min-width: 900px) {
  .qt--hero .qt-card { padding: 26px 32px 28px; }
  .qt--hero .qt-step--service {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "head aside" "grid grid";
    align-items: end; column-gap: 28px;
  }
  .qt--hero .qt-step--service .qt-head { grid-area: head; }
  .qt--hero .qt-step--service .qt-aside { grid-area: aside; order: 0; margin: 0 0 14px; text-align: right; }
  .qt--hero .qt-step--service .qt-chips { justify-content: flex-end; }
  .qt--hero .qt-step--service .qt-grid { grid-area: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .qt--hero .qt-step--service .qt-tile { min-height: 132px; padding: 18px 10px; }
  .qt--hero .qt-title--hero { font-size: 1.85rem; }
  .qt--hero .qt-q { margin-bottom: 14px; }
  .qt--hero:not([data-step="service"]) .qt-top,
  .qt--hero:not([data-step="service"]) .qt-body,
  .qt--hero:not([data-step="service"]) .qt-err,
  .qt--hero:not([data-step="service"]) .qt-nav { max-width: 720px; margin-left: auto; margin-right: auto; }
}
