/* ================================================================================================
   QUOTEBUILDER W2 (2026-08-26) — marketing/voip/quote.css
   Styling for the self-serve "#build" quote form (marketing/voip/quote.js). Loaded on every page
   view (see index.html <head>) but paints nothing until quote.js mounts #build-host — everything
   here is scoped under .bq so it can never collide with the host page's own classes.

   Reuses the host page's CSS custom properties (--bg --ink --ink-soft --blue --blue-dark --card
   --line --green --radius), defined once in index.html's inline <style> :root block — custom
   properties are document-scoped, not stylesheet-scoped, so they resolve correctly from here.
   Also reuses the host page's own .cta-card / .cta-btn / .cta-buttons vocabulary directly on the
   final screen (see quote.js) rather than re-implementing it, per spec §E. No framework, no CDN.
   ================================================================================================ */

/* The build flow needs more room than the placeholder's 440px .lead-panel (an address row, a
   two-column handset grid) — only while it's actually mounted, so the "preparing"/404 states this
   CSS also ships on are completely unaffected. */
body.bq-active #lead-gate { align-items: flex-start; padding-top: 40px; }
body.bq-active #lead-gate .lead-panel { max-width: 640px; text-align: left; }

.bq { width: 100%; }
.bq-logo { display: block; height: 24px; width: auto; margin-bottom: 24px; }

.bq-dots { display: flex; gap: 6px; margin-bottom: 26px; }
.bq-dot { flex: 1; height: 4px; border-radius: 99px; background: var(--line); transition: background .2s ease; }
.bq-dot.on, .bq-dot.done { background: var(--blue); }

.bq-screen { animation: bq-in .18s ease; }
@keyframes bq-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.bq-q { font-size: 23px; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.bq-sub { font-size: 14px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }

.bq-body { margin-top: 22px; }
.bq-field { margin-bottom: 16px; }
.bq-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.bq-field input {
  width: 100%; font-size: 16px; padding: 14px; border-radius: 12px;
  border: 1.5px solid var(--line); font-family: inherit; background: #FAFAF8; color: var(--ink);
  appearance: none; -webkit-appearance: none;
}
.bq-field input:focus { outline: none; border-color: var(--blue); }
.bq-field input.error { border-color: #D93025; }
.bq-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bq-row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .bq-row2, .bq-row3 { grid-template-columns: 1fr; } }

.bq-err { display: none; color: #D93025; font-size: 13px; margin-top: 6px; line-height: 1.45; }
.bq-err.on { display: block; }

.bq-stepper { display: flex; align-items: center; gap: 14px; }
.bq-step-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); font-size: 20px; font-weight: 800; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.bq-step-btn:hover { border-color: var(--blue); color: var(--blue); }
.bq-step-btn:disabled { opacity: .4; cursor: default; }
.bq-step-val { min-width: 60px; text-align: center; font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.bq-step-hint { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }

.bq-yn { display: flex; gap: 12px; flex-wrap: wrap; }
.bq-yn-card {
  flex: 1; min-width: 140px; text-align: left; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-family: inherit; font-weight: 800; font-size: 15.5px; color: var(--ink);
}
.bq-yn-card:hover { border-color: var(--blue); }
.bq-yn-card.sel { border-color: var(--blue); background: rgba(43, 76, 242, .06); color: var(--blue); }
.bq-explain { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.bq-explain summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--blue); list-style: none; }
.bq-explain summary::-webkit-details-marker { display: none; }
.bq-explain summary::before { content: "+ "; }
.bq-explain[open] summary::before { content: "\2212 "; }
.bq-explain p { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; line-height: 1.55; }

.bq-hgroup { margin-bottom: 20px; }
.bq-hgroup-title { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.bq-hgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 520px) { .bq-hgrid { grid-template-columns: 1fr; } }
.bq-hcard { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.bq-hcard img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #FAFAF8; flex: none; }
.bq-hcard-body { flex: 1; min-width: 0; }
.bq-hcard-name { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.bq-hcard-cap { font-size: 10.5px; color: var(--ink-soft); margin-top: 2px; }
.bq-hcard .bq-stepper { margin-top: 10px; gap: 10px; }
.bq-hcard .bq-step-btn { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; }
.bq-hcard .bq-step-val { min-width: 26px; font-size: 15px; }

.bq-total {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(43, 76, 242, .06); border: 1px solid rgba(43, 76, 242, .22); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 18px; font-size: 13.5px; font-weight: 700; color: var(--blue);
}
.bq-total.off { background: #FDEDEC; border-color: rgba(217, 48, 37, .25); color: #D93025; }

.bq-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 26px; }
.bq-nav-left { display: flex; align-items: center; gap: 16px; }
.bq-btn {
  border: 0; border-radius: 999px; font-family: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  padding: 13px 26px; transition: background .15s ease, opacity .15s ease;
}
.bq-btn.primary { background: var(--blue); color: #fff; }
.bq-btn.primary:hover { background: var(--blue-dark); }
.bq-btn.primary:disabled { opacity: .45; cursor: default; }
.bq-btn.ghost { background: transparent; color: var(--ink-soft); font-weight: 700; padding: 13px 4px; }
.bq-btn.ghost:hover { color: var(--ink); }
.bq-back { background: transparent; border: 0; color: var(--ink-soft); font-weight: 700; font-size: 14px; cursor: pointer; padding: 8px 0; font-family: inherit; }
.bq-back:hover { color: var(--ink); }

.bq-loading { text-align: center; padding: 44px 10px; }
.bq-loading .dot3 { display: inline-flex; gap: 6px; margin-bottom: 16px; }
.bq-loading .dot3 span { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; animation: bq-pulse 1s infinite ease-in-out; }
.bq-loading .dot3 span:nth-child(2) { animation-delay: .15s; }
.bq-loading .dot3 span:nth-child(3) { animation-delay: .3s; }
@keyframes bq-pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.bq-loading p { font-size: 14.5px; color: var(--ink-soft); }

.bq-final { text-align: center; }
.bq-final .kick { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--blue); text-transform: uppercase; }
.bq-final .headline { font-size: 18.5px; font-weight: 800; letter-spacing: -.01em; margin-top: 14px; line-height: 1.55; }
.bq-final .headline b { color: var(--blue); font-size: 1.15em; }
.bq-final .counts { font-size: 13px; color: var(--ink-soft); margin-top: 18px; }
.bq-final .validity { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.bq-final .cta-buttons { margin-top: 24px; }
.bq-final .change {
  display: block; margin: 16px auto 0; font-size: 13px; color: var(--ink-soft); text-decoration: underline;
  cursor: pointer; background: none; border: 0; font-family: inherit;
}
.bq-final .change:hover { color: var(--ink); }
.bq-final .fail { font-size: 14.5px; color: #D93025; margin-top: 14px; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .bq-screen { animation: none; }
  .bq-loading .dot3 span { animation: none; }
}

/* The ROI includes list on the final screen (Alex, 2026-08-22). Deliberately quiet: the ONE number
   above it stays the loudest thing on the screen, and this reads as reassurance underneath it. */
.bq-final .includes { margin-top: 26px; text-align: left; border-top: 1px solid var(--line); padding-top: 18px; }
.bq-final .inc-head { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.bq-final .includes ul { list-style: none; margin: 0; padding: 0; }
.bq-final .includes li { position: relative; padding: 4px 0 4px 20px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.bq-final .includes li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); opacity: .55; }
.bq-final .includes li.hi { font-weight: 700; }
.bq-final .includes li.hi::before { opacity: 1; }
