/* ✅ MK Created 2026-10-22: Get Quotes lead mode styles. Scoped under .lq so the rest of the site is untouched.
   Uses the site's own color tokens (green/orange accent toggle keeps working). Flat, no shadows, 34/40/46 buttons. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@600;700&display=swap");

.lq {
  --lq-head: "Archivo", "Inter", ui-sans-serif, system-ui, sans-serif;
  --lq-blue: #1d4ed8; --lq-blue-soft: #eaf1fe; --lq-blue-line: #cddcfb;
  --lq-orange: #ea6a16; --lq-orange-dark: #c8510c; --lq-orange-soft: #fff1e7; --lq-orange-line: #f8d4bb;
  --lq-text: #2b2824; --lq-muted: #6b6862;
  --lq-hdr: 65px;
  color: var(--lq-text);
  font-size: 16px;
  line-height: 1.55;
}
.lq h1, .lq h2, .lq h3, .lq h4 { font-family: var(--lq-head); color: var(--ink); font-weight: 700; letter-spacing: 0; line-height: 1.18; margin: 0; }
.lq p { margin: 0; }
.lq .num, .lq .lq-num { font-variant-numeric: tabular-nums; }
.lq-muted { color: var(--lq-muted); }
.lq-wrap { max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; }

/* ---------- buttons ---------- */
.lq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 600 15px/1 "Inter", sans-serif; text-decoration: none;
  white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, transform .1s, opacity .15s; box-shadow: none; }
.lq-btn:hover { background: var(--soft); }
.lq-btn:active { transform: scale(.98); }
.lq-btn:focus-visible, .lq-opt:focus-visible, .lq-icon-btn:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .3); outline-offset: 2px; }
.lq-btn[disabled] { opacity: .45; pointer-events: none; }
.lq-btn-sm { height: 34px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.lq-btn-lg { height: 46px; padding: 0 22px; font-size: 16px; border-radius: 11px; }
.lq-btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.lq-btn-green:hover { background: var(--green-dark); }
.lq-btn-orange { background: var(--lq-orange); border-color: var(--lq-orange); color: #fff; }
.lq-btn-orange:hover { background: var(--lq-orange-dark); }
.lq-btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.lq-btn-ink:hover { background: #000; }
.lq-btn-ghost { border-color: transparent; background: transparent; }
.lq-btn-ghost:hover { background: var(--soft); }
.lq-btn-block { width: 100%; }
.lq-btn.is-busy { pointer-events: none; color: transparent !important; position: relative; }
.lq-btn.is-busy::after { content: ""; position: absolute; inset: 0; margin: auto; width: 34px; height: 8px;
  background: radial-gradient(circle closest-side, #fff 90%, transparent) 0 50% / 8px 8px no-repeat,
              radial-gradient(circle closest-side, #fff 90%, transparent) 50% 50% / 8px 8px no-repeat,
              radial-gradient(circle closest-side, #fff 90%, transparent) 100% 50% / 8px 8px no-repeat; animation: lqDots 1s infinite steps(3); }
.lq-btn:not(.lq-btn-green):not(.lq-btn-orange):not(.lq-btn-ink).is-busy::after { filter: invert(1); }
@keyframes lqDots { 0% { opacity: .35 } 50% { opacity: 1 } 100% { opacity: .35 } }

.lq-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--soft);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--lq-text); white-space: nowrap; }
.lq-chip-green { background: var(--green-soft); border-color: rgba(var(--accent-rgb), .25); color: var(--green-dark); }
.lq-chip-blue { background: var(--lq-blue-soft); border-color: var(--lq-blue-line); color: var(--lq-blue); }
.lq-chip-orange { background: var(--lq-orange-soft); border-color: var(--lq-orange-line); color: var(--lq-orange-dark); }
.lq-chip-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.lq-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.lq-kicker { font-size: 14px; font-weight: 600; color: var(--green-dark); }
.lq-field { width: 100%; height: 50px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; padding: 0 14px;
  font: 500 16px/1.2 "Inter", sans-serif; color: var(--ink); box-shadow: none; }
.lq-field:focus { outline: 3px solid rgba(var(--accent-rgb), .2); border-color: var(--green); }
textarea.lq-field { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.lq-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.lq-flash { padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; margin-bottom: 16px; }
.lq-flash-ok { background: var(--green-soft); color: var(--green-dark); border: 1px solid rgba(var(--accent-rgb), .25); }
.lq-flash-err { background: #fdecec; color: #a12a2a; border: 1px solid #f5c9c9; }
.lq-empty { text-align: center; padding: 44px 20px; }
.lq-empty h3 { font-size: 20px; margin-top: 12px; }
.lq-empty p { color: var(--lq-muted); margin-top: 6px; }
.lq-empty .lq-ic { margin: 0 auto; }
.lq-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--green-soft); color: var(--green); }
.lq-ic svg { width: 22px; height: 22px; }

/* ---------- flow (one question per screen, always-visible action bar) ---------- */
body:has(.lq-flow) .site-footer, body:has(.lq-flow) .mobile-tabbar { display: none !important; }
body:has(.lq-flow) { background: var(--paper); padding-bottom: 0 !important; margin-bottom: 0 !important; }
body:has(.lq-flow) main.lq-flow { margin: 0; animation: lqFade .3s ease both; }
@keyframes lqFade { from { opacity: 0; } to { opacity: 1; } }
.lq-flow { padding: 24px; min-height: calc(100dvh - var(--lq-hdr)); }
.lq-flow-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.lq-stage { display: flex; flex-direction: column; height: min(680px, calc(100dvh - var(--lq-hdr) - 48px)); min-height: 460px; overflow: hidden; }
.lq-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex: none; }
.lq-icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; display: grid; place-items: center;
  color: var(--ink); cursor: pointer; text-decoration: none; flex: none; transition: background .15s; }
.lq-icon-btn:hover { background: var(--soft); }
.lq-icon-btn svg { width: 20px; height: 20px; }
.lq-icon-btn[disabled] { opacity: .3; pointer-events: none; }
.lq-progress { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.lq-progress i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 99px; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.lq-step-label { font-size: 13px; font-weight: 600; color: var(--lq-muted); white-space: nowrap; min-width: 52px; text-align: right; }
.lq-body { flex: 1; overflow-y: auto; padding: 28px 32px 20px; overscroll-behavior: contain; }
.lq-body.is-in > * { animation: lqIn .26s cubic-bezier(.2,.8,.2,1) both; }
.lq-body.is-back > * { animation: lqBack .26s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lqIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes lqBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.lq-q-kicker { font-size: 14px; font-weight: 600; color: var(--green-dark); }
.lq-q-title { font-size: 28px; margin: 6px 0 6px; }
.lq-q-sub { color: var(--lq-muted); font-size: 15px; }
.lq-opts { display: grid; gap: 10px; margin-top: 20px; }
.lq-opts.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lq-opt { display: flex; align-items: center; justify-content: flex-start !important; gap: 14px; min-height: 56px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff; text-align: left; font: 600 16px/1.3 "Inter", sans-serif; color: var(--ink); cursor: pointer; width: 100%;
  transition: border-color .15s, background .15s, transform .1s; }
@media (hover: hover) { .lq-opt:not(.is-sel):hover { border-color: #b9b3a8; background: var(--soft); } }
.lq-opt:active { transform: scale(.99); }
.lq-opt .lq-mark { width: 22px; height: 22px; flex: none; border: 2px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; background: #fff; transition: all .15s; }
.lq-opt.is-multi .lq-mark { border-radius: 7px; }
.lq-opt.is-sel { border-color: var(--green); background: var(--green-soft); }
.lq-opt.is-sel .lq-mark { border-color: var(--green); background: var(--green); }
.lq-opt.is-sel .lq-mark::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.lq-opt small { display: block; font-weight: 400; font-size: 14px; color: var(--lq-muted); margin-top: 2px; }
.lq-key { margin-left: auto; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--lq-muted);
  font-size: 12px; font-weight: 600; display: none; place-items: center; }
.lq-opt .lq-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--thumb); display: grid; place-items: center; flex: none; color: var(--ink); }
.lq-opt .lq-ico svg { width: 19px; height: 19px; }
.lq-search { position: relative; margin-top: 18px; }
.lq-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--lq-muted); pointer-events: none; }
.lq-search .lq-field { padding-left: 42px; }
.lq-group-label { font-size: 13px; font-weight: 600; color: var(--lq-muted); margin: 18px 0 8px; }
.lq-zip { max-width: 260px; margin-top: 22px; }
.lq-zip .lq-field { font-size: 22px; height: 58px; letter-spacing: .08em; font-family: var(--lq-head); font-weight: 700; }
.lq-zip-note { font-size: 14px; color: var(--lq-muted); margin-top: 10px; min-height: 22px; }
.lq-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.lq-form-grid .lq-full { grid-column: 1 / -1; }
.lq-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.lq-seg button { height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; font: 600 15px "Inter", sans-serif; color: var(--ink); cursor: pointer; }
.lq-seg button:not(.is-on):hover { background: var(--soft); }
.lq-seg button.is-on { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.lq-consent { font-size: 13px; color: var(--lq-muted); margin-top: 16px; line-height: 1.5; }
.lq-consent a { color: var(--green-dark); }
.lq-photos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.lq-photo-add { width: 84px; height: 84px; border-radius: 12px; border: 1.5px dashed var(--line-strong); display: grid; place-items: center; cursor: pointer; color: var(--lq-muted); font-size: 13px; font-weight: 600; text-align: center; background: #fff; }
.lq-photo-add:hover { background: var(--soft); }
.lq-photo { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.lq-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lq-photo button { position: absolute; top: 5px; right: 5px; width: 26px !important; height: 26px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(24,21,18,.78); color: #fff; cursor: pointer; font: 600 15px/1 "Inter", sans-serif; box-shadow: none; }
.lq-code { display: flex; gap: 8px; margin-top: 22px; }
.lq-code input { width: 52px; height: 62px; text-align: center; font: 700 26px var(--lq-head); border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: #fff; }
.lq-code input:focus { outline: 3px solid rgba(var(--accent-rgb), .2); border-color: var(--green); }
.lq-code.is-wrong input { border-color: #d64545; animation: lqShake .35s; }
@keyframes lqShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.lq-error { margin-top: 14px; color: #a12a2a; font-size: 15px; font-weight: 500; min-height: 22px; }
.lq-actions { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.lq-actions-btns { display: flex; gap: 8px; margin-left: auto; }
.lq-opt > span:not(.lq-mark):not(.lq-key) { flex: 1; text-align: left; }
.lq-hint { font-size: 14px; color: var(--lq-muted); }
/* ✅ MK 2026-10-23: consent line under the send button (contact step): small and muted, the bar wraps to fit it */
.lq-actions.has-consent { flex-wrap: wrap; row-gap: 8px; }
.lq-consent-under { flex: 0 0 100%; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--lq-muted); text-align: right; }
.lq-consent-under a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lq-consent-under a:hover { color: var(--ink); }
.lq-hint kbd { font: 600 12px "Inter", sans-serif; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--ink); background: #fff; }
.lq-resume { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: var(--lq-blue-soft); border: 1px solid var(--lq-blue-line); margin-bottom: 18px; font-size: 15px; }
.lq-resume b { color: var(--ink); }
.lq-resume .lq-btns { display: flex; gap: 8px; margin-left: auto; }
.lq-loading { display: flex; gap: 6px; justify-content: center; padding: 60px 0; }
.lq-loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); animation: lqDots 1s infinite; }
.lq-loading span:nth-child(2) { animation-delay: .15s; } .lq-loading span:nth-child(3) { animation-delay: .3s; }
.lq-side { padding: 22px; position: sticky; top: calc(var(--lq-hdr) + 24px); }
.lq-side h3 { font-size: 18px; margin-bottom: 14px; }
.lq-side dl { margin: 0; display: grid; gap: 12px; }
.lq-side dt { font-size: 13px; color: var(--lq-muted); }
.lq-side dd { margin: 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.lq-trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.lq-trust li { display: flex; gap: 9px; align-items: flex-start; }
.lq-trust svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 3px; }
.lq-side-alt { font-size: 14px; color: var(--lq-muted); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.lq-side-alt a { color: var(--green-dark); font-weight: 600; }
@media (hover: hover) and (min-width: 900px) { .lq-key { display: grid; } }
@media (max-width: 1060px) {
  .lq-flow-grid { grid-template-columns: minmax(0, 680px); justify-content: center; }
  .lq-side { display: none; }
}
@media (max-width: 640px) {
  .lq-flow { padding: 0; }
  .lq-stage { height: calc(100dvh - var(--lq-hdr)); min-height: 0; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
  .lq-body { padding: 22px 18px 16px; }
  .lq-q-title { font-size: 23px; }
  .lq-opts.is-grid { grid-template-columns: 1fr; }
  .lq-form-grid { grid-template-columns: 1fr; }
  .lq-code { gap: 6px; }
  .lq-code input { width: auto; flex: 1 1 0; min-width: 0; height: 56px; }
  .lq-actions .lq-btn { height: 46px; }
  .lq-actions-btns { flex: 1; }
  .lq-actions-btns .lq-btn-green { flex: 1; }
  .lq-hint { display: none; }
  .lq-actions.is-empty { display: none; }
  .lq-actions.has-consent { row-gap: 6px; }
  .lq-consent-under { font-size: 12px; text-align: left; }
}

/* ---------- page heads ---------- */
.lq-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.lq-head h1 { font-size: 32px; margin-top: 6px; }
.lq-head p { color: var(--lq-muted); margin-top: 6px; }
.lq-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0; }
.lq-tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: 600 15px "Inter", sans-serif; color: var(--ink); text-decoration: none; transition: background .15s; }
.lq-tab:not(.is-on):hover { background: var(--soft); }
.lq-tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.lq-tab .lq-n { background: var(--lq-orange); color: #fff; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 1px 7px; }
.lq-tab svg { width: 16px; height: 16px; color: var(--lq-orange); }
.lq-two { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.lq-pane { padding: 22px; }
.lq-pane + .lq-pane { margin-top: 14px; }
.lq-pane h3 { font-size: 18px; }
.lq-pane .lq-desc { font-size: 15px; color: var(--lq-muted); margin-top: 4px; }
.lq-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lq-kv:last-child { border-bottom: 0; }
.lq-kv span:first-child { color: var(--lq-muted); }
.lq-kv b { font-weight: 600; color: var(--ink); text-align: right; }
.lq-answers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lq-answers span { font-size: 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--lq-text); }
.lq-meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 12px 0 8px; }
.lq-meter i { display: block; height: 100%; background: var(--green); }
.lq-steps { list-style: none; margin: 16px 0 0; padding: 0; }
.lq-steps li { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; position: relative; }
.lq-steps li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.lq-steps .lq-dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--line-strong); background: #fff; }
.lq-steps .is-done .lq-dot { background: var(--green); border-color: var(--green); }
.lq-steps .is-done .lq-dot::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.lq-steps .is-now .lq-dot { border-color: var(--lq-orange); }
.lq-steps .is-now .lq-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lq-orange); }
.lq-steps b { display: block; font-weight: 600; color: var(--ink); }
.lq-steps span { font-size: 14px; color: var(--lq-muted); }

/* ---------- request page ---------- */
.lq-done { display: flex; gap: 16px; align-items: flex-start; padding: 24px; margin-bottom: 18px; }
.lq-done h1 { font-size: 28px; }
.lq-done p { color: var(--lq-muted); margin-top: 6px; }
.lq-quote { padding: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.lq-quote + .lq-quote { margin-top: 12px; }
.lq-quote.is-hired { border-color: var(--green); background: #fbfefc; }
.lq-av { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font: 700 16px var(--lq-head); color: #fff; flex: none; background: #1f6f8b; }
.lq-quote h3 { font-size: 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lq-quote .lq-meta { font-size: 14px; color: var(--lq-muted); margin-top: 3px; }
.lq-quote .lq-note { margin-top: 10px; font-size: 15px; background: var(--soft); border-radius: 10px; padding: 10px 12px; white-space: pre-line; }
.lq-quote .lq-price { text-align: right; }
.lq-amt { font: 700 24px var(--lq-head); color: var(--ink); }
.lq-quote .lq-price small { display: block; font-size: 13px; color: var(--lq-muted); margin-bottom: 10px; }
.lq-quote .lq-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.lq-waiting { padding: 16px 18px; display: flex; gap: 12px; align-items: center; border-style: dashed; margin-top: 12px; color: var(--lq-muted); font-size: 15px; }
.lq-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--lq-orange); flex: none; animation: lqPulse 1.6s ease-in-out infinite; }
@keyframes lqPulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
.lq-toggle-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); margin-top: 14px; }
.lq-toggle-row b { display: block; color: var(--ink); font-weight: 600; }
.lq-toggle-row span { font-size: 14px; color: var(--lq-muted); }
.lq-photos-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lq-photos-row a { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); display: block; }
.lq-photos-row img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* chat */
.lq-chat { display: flex; flex-direction: column; margin-top: 16px; }
.lq-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.lq-chat-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: #fbfbf9; max-height: 420px; overflow-y: auto; }
.lq-msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.lq-msg.is-them { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.lq-msg.is-me { background: var(--green); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.lq-msg small { display: block; font-size: 12px; opacity: .75; margin-top: 3px; }
.lq-chat-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.lq-chat-foot textarea { min-height: 46px; height: 46px; resize: none; }

/* ---------- pro leads ---------- */
.lq-lead { padding: 20px 22px; }
.lq-lead + .lq-lead { margin-top: 12px; }
.lq-lead-top { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.lq-lead h3 { font-size: 18px; }
.lq-lead .lq-sub { font-size: 14px; color: var(--lq-muted); margin-top: 4px; }
.lq-who { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--lq-muted); align-items: center; }
.lq-who span { display: inline-flex; gap: 6px; align-items: center; }
.lq-who svg { width: 15px; height: 15px; }
.lq-who .is-ok { color: var(--green-dark); }
.lq-who .is-warn { color: var(--lq-orange-dark); }
.lq-who .lq-masked { color: var(--ink); font-weight: 600; letter-spacing: .03em; }
.lq-lead-foot { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.lq-lead-foot form { margin: 0; }
.lq-price-tag { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lq-price-tag b { font: 700 22px var(--lq-head); color: var(--ink); }
.lq-price-tag span { font-size: 14px; color: var(--lq-muted); }
.lq-spots { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; color: var(--lq-muted); font-weight: 600; }
.lq-spots i { width: 16px; height: 6px; border-radius: 3px; background: var(--line); }
.lq-spots i.is-t { background: var(--lq-orange); }
.lq-lead-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lq-lead.is-mine { border-color: rgba(var(--accent-rgb), .3); }

/* settings */
.lq-svc-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.lq-svc-pick label { cursor: pointer; }
.lq-svc-pick input { position: absolute; opacity: 0; pointer-events: none; }
.lq-svc-pick span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; font-size: 15px; color: var(--ink); transition: background .15s; }
.lq-svc-pick span small { font-weight: 500; color: var(--lq-muted); font-size: 13px; }
.lq-svc-pick input:checked + span { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }
.lq-svc-pick input:checked + span small { color: var(--green-dark); }
.lq-svc-pick input:focus-visible + span { outline: 3px solid rgba(var(--accent-rgb), .3); outline-offset: 2px; }
.lq-svc-pick label:hover input:not(:checked) + span { background: var(--soft); }
.lq-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.lq-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.lq-switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: background .18s; cursor: pointer; }
.lq-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s; }
.lq-switch input:checked + i { background: var(--green); }
.lq-switch input:checked + i::after { transform: translateX(18px); }
.lq-switch input:focus-visible + i { outline: 3px solid rgba(var(--accent-rgb), .3); outline-offset: 2px; }
.lq-opt-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lq-opt-row:last-child { border-bottom: 0; }
.lq-opt-row b { display: block; color: var(--ink); font-weight: 600; }
.lq-opt-row span { font-size: 14px; color: var(--lq-muted); }
.lq-inline-fields { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; margin-top: 14px; align-items: end; }
.lq-price-in { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; height: 46px; overflow: hidden; background: #fff; max-width: 260px; }
.lq-price-in span { padding: 0 6px 0 12px; color: var(--lq-muted); font-weight: 600; }
.lq-price-in input { border: 0; font: 600 17px "Inter", sans-serif; color: var(--ink); width: 100%; outline: 0; min-width: 0; height: 100%; background: transparent; box-shadow: none; }
.lq-price-in em { font-style: normal; font-size: 13px; color: var(--lq-muted); padding: 0 12px; white-space: nowrap; }
.lq-range { width: 100%; accent-color: var(--green); }
.lq-hint-sm { font-size: 13px; color: var(--lq-muted); margin-top: 8px; }
.lq-hint-sm b { color: var(--ink); font-weight: 600; }
.lq-save-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.lq-sticky-save { position: sticky; bottom: 0; z-index: 3; background: rgba(246,246,244,.94); backdrop-filter: blur(8px); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 16px; }

/* ---------- admin ---------- */
.lq-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.lq-kpi { padding: 18px 20px; border-right: 1px solid var(--line); }
.lq-kpi:last-child { border-right: 0; }
.lq-kpi small { font-size: 13px; color: var(--lq-muted); font-weight: 600; }
.lq-kpi b { display: block; font: 700 28px var(--lq-head); color: var(--ink); margin-top: 2px; }
.lq-kpi span { font-size: 13px; color: var(--lq-muted); }
.lq-kpi.is-warn b { color: var(--lq-orange-dark); }
.lq-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.lq-filters a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.lq-filters a:not(.is-on):hover { background: var(--soft); }
.lq-filters a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lq-table-wrap { overflow-x: auto; }
.lq-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lq-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--lq-muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lq-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--lq-text); }
.lq-table tr:last-child td { border-bottom: 0; }
.lq-table td b { color: var(--ink); font-weight: 600; }
.lq-table .lq-right { text-align: right; }
.lq-table .lq-btns { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.lq-table form { margin: 0; display: inline; }
.lq-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.lq-st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lq-st-green { color: var(--green-dark); } .lq-st-blue { color: var(--lq-blue); } .lq-st-orange { color: var(--lq-orange-dark); } .lq-st-muted { color: var(--lq-muted); }
.lq-ad-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.lq-svc-table input[type=number] { width: 84px; height: 38px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 10px; font: 600 15px "Inter", sans-serif; }
.lq-qrow { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; display: grid; gap: 10px; }
.lq-qrow + .lq-qrow { margin-top: 10px; }
.lq-qrow-top { display: flex; gap: 10px; align-items: center; }
.lq-qrow-top .lq-field { height: 44px; }
.lq-qrow select { height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; font: 600 14px "Inter", sans-serif; background: #fff; }

@media (max-width: 1020px) {
  .lq-two { grid-template-columns: 1fr; }
  .lq-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lq-kpi:nth-child(3) { border-right: 0; }
  .lq-kpi:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .lq-ad-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lq-wrap { padding: 22px 16px 90px; }
  .lq-head h1 { font-size: 26px; }
  .lq-done { padding: 18px; }
  .lq-done h1 { font-size: 23px; }
  .lq-quote { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .lq-quote .lq-price { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
  .lq-quote .lq-price small { margin: 0; }
  .lq-lead { padding: 16px; }
  .lq-lead-foot .lq-lead-btns { width: 100%; }
  .lq-lead-foot .lq-lead-btns .lq-btn { flex: 1; }
  .lq-lead-foot .lq-lead-btns form { flex: 1; display: flex; }
  .lq-lead-foot .lq-lead-btns form .lq-btn { flex: 1; }
  .lq-kpis { grid-template-columns: 1fr 1fr; }
  .lq-kpi { border-right: 0; border-bottom: 1px solid var(--line); }
  .lq-kpi:nth-child(odd) { border-right: 1px solid var(--line); }
  .lq-kpi:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .lq-inline-fields { grid-template-columns: 1fr; }
  .lq-msg { max-width: 90%; }
}

/* ✅ MK 2026-10-22: "Your request" card at the top of the request page */
.lq .lq-mine { padding: 0; margin-bottom: 14px; overflow: hidden; }
.lq .lq-mine summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.lq .lq-mine summary::-webkit-details-marker { display: none; }
.lq .lq-mine summary b { display: block; color: var(--ink); font-size: 16px; }
.lq .lq-mine summary small { display: block; color: var(--muted); font-size: 13px; }
.lq .lq-mine-ic { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: var(--soft); color: var(--ink); }
.lq .lq-mine-ic svg { width: 19px; height: 19px; }
.lq .lq-mine-toggle { margin-left: auto; font-size: 13.5px; font-weight: 700; color: var(--green-dark); }
.lq .lq-mine[open] .lq-mine-toggle { font-size: 0; }
.lq .lq-mine[open] .lq-mine-toggle::after { content: "Hide"; font-size: 13.5px; }
.lq .lq-mine:not([open]) .lq-mine-toggle { font-size: 0; }
.lq .lq-mine:not([open]) .lq-mine-toggle::after { content: "Show"; font-size: 13.5px; }
.lq .lq-mine-body { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.lq .lq-mine-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; margin-top: 6px; }
.lq .lq-mine-details { margin-top: 12px; font-size: 15px; background: var(--soft); border-radius: 10px; padding: 10px 12px; white-space: pre-line; }
.lq .lq-mine-empty { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .lq .lq-mine-grid { grid-template-columns: minmax(0, 1fr); }
}
/* MK 2026-10-22: "if they need to fill a field next then ripple or highlight it so they know their next step".
   The next field to fill pulses a few times (orange ring); when the step is complete, the Continue button pulses. */
@keyframes bh-next-ring {
  0% { box-shadow: 0 0 0 0 rgba(234, 106, 22, .5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(234, 106, 22, 0); }
}
.lq .lq-field.is-next-step { border-color: #ea6a16 !important; animation: bh-next-ring 1.5s ease-out 0s 3; }
.lq .lq-btn.is-next-step { animation: bh-next-ring 2.2s ease-out .3s infinite; }
@media (prefers-reduced-motion: reduce) { .lq .lq-field.is-next-step, .lq .lq-btn.is-next-step { animation: none; } }

/* ✅ MK 2026-10-22: quote cards + chat in the look from the videos (pv- helpers live in app.css) */
.lq-quote .pv-av { margin-top: 2px; }
.lq-quote h3.pv-name { font-size: 18px; flex-wrap: wrap; }
.lq-quote .lq-stars { margin-top: 4px; }
.lq-quote.is-hired { border: 2px solid #138a55; background: #fff; }
.lq-btn.lq-btn-out { background: #fff; color: #181512; border: 2px solid #181512; }
.lq-btn.lq-btn-out:hover { background: #f6f5f1; }
.lq-msg.is-me { background: #ea6a16; color: #fff; border-radius: 20px; border-bottom-right-radius: 6px; font-weight: 600; }
.lq-msg.is-them { background: #efebe3; border: 0; border-radius: 20px; border-bottom-left-radius: 6px; font-weight: 600; }
.lq-chat-body { background: #fff; }
.lq-chat-head .pv-name { font-size: 16px; }

/* MK 2026-10-24: "Your project" on the request page: one request with several jobs, each its own lead and page */
.lq .lq-project { margin-top: 18px; padding: 18px; }
.lq .lq-project-head h2 { font-size: 18px; }
.lq .lq-project-head p { font-size: 14px; color: var(--lq-muted); margin-top: 3px; }
.lq .lq-project-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.lq .lq-project-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, background-color .15s, transform .12s; }
@media (hover: hover) { .lq .lq-project-row:not(.is-here):hover { border-color: var(--line-strong); background: var(--soft); transform: translateY(-1px); } }
.lq .lq-project-row:active { transform: scale(.98); }
.lq .lq-project-row:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .25); outline-offset: 2px; }
.lq .lq-project-row.is-here { border: 2px solid var(--green); background: var(--green-soft); padding: 9px 11px; }
.lq .lq-project-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--ink); }
.lq .lq-project-row.is-here .lq-project-ic { background: #fff; color: var(--green-dark); }
.lq .lq-project-ic svg { width: 19px; height: 19px; }
.lq .lq-project-t { flex: 1; min-width: 0; }
.lq .lq-project-t b { display: block; color: var(--ink); font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lq .lq-project-t small { display: block; color: var(--lq-muted); font-size: 13px; }
.lq .lq-project-st { display: none; }
.lq .lq-project-here { flex: none; font-size: 12.5px; font-weight: 700; color: var(--green-dark); }
.lq .lq-project-go { flex: none; display: grid; color: var(--lq-muted); }
.lq .lq-project-go svg { width: 18px; height: 18px; }
.lq .lq-project-note { font-size: 13.5px; color: var(--lq-muted); margin-top: 10px; }
@media (max-width: 640px) {
  .lq .lq-project { padding: 14px; }
  .lq .lq-project-row .lq-chip { display: none; }
  .lq .lq-project-st { display: inline; }
}
