@import url('/quotefleet-color-system.css');

/* Phase BW: remove teal/cyan leftovers from auth pages. */
body.qf-auth-wft {
  --accent: #6E8BFF !important; /* on-dark TEXT/glyph accent (accentOnDark); was cobalt #0D3CFC → failed WCAG (~2.2:1) on dark card. Solid cobalt button fills below stay hardcoded. */
  --accent-ink: #FFFFFF !important;
  --accent-soft: rgba(13,60,252,.14) !important;
  --primary: #0D3CFC !important;
  --surface: #22282A !important;
  --surface-2: #E4EDF1 !important;
  --ink: #FFFFFF !important;
  --ink-soft: #FFFFFF !important;
  --muted: #B1C5CE !important;
  --border: rgba(255,255,255,.12) !important;
  --border-strong: rgba(255,255,255,.20) !important;
  --radius: 8px !important;
  --radius-lg: 8px !important;
  --radius-xl: 8px !important;
  --radius-btn: 4px !important;
  background: #181D1F !important;
  color: #FFFFFF !important;
}

body.qf-auth-wft .topnav {
  background: #22282A !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: none !important;
}

body.qf-auth-wft .brand-mark,
body.qf-auth-wft .nav-link {
  color: #FFFFFF !important;
}

body.qf-auth-wft .logo {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.30) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

body.qf-auth-wft .card.elevated {
  background: #22282A !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  box-shadow: 0 28px 70px -55px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

body.qf-auth-wft h1 {
  color: #FFFFFF !important;
  letter-spacing: -.045em !important;
}

body.qf-auth-wft .muted-small,
body.qf-auth-wft .field-hint,
body.qf-auth-wft .field-label {
  color: #B1C5CE !important;
}

body.qf-auth-wft .notice {
  background: rgba(13,60,252,.14) !important;
  border: 1px solid rgba(13,60,252,.40) !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
}

body.qf-auth-wft .notice.error,
body.qf-auth-wft .field-hint.error {
  color: #ffd7d7 !important;
  border-color: rgba(255,105,105,.38) !important;
  background: rgba(255,105,105,.10) !important;
}

body.qf-auth-wft .field-hint.ok {
  color: #FFFFFF !important;
}

body.qf-auth-wft .input,
body.qf-auth-wft .select,
body.qf-auth-wft .url-builder-preview {
  background: #E4EDF1 !important;
  border-color: rgba(13,60,252,.22) !important;
  color: #181D1F !important;
  border-radius: 6px !important;
}

body.qf-auth-wft .input:focus,
body.qf-auth-wft .select:focus {
  border-color: #0D3CFC !important;
  box-shadow: 0 0 0 3px rgba(13,60,252,.22) !important;
}

body.qf-auth-wft a {
  color: #FFFFFF !important;
}
/* Slug preview sits on the LIGHT #E4EDF1 chip — must NOT be white. */
body.qf-auth-wft .url-builder-preview .live {
  color: #0D3CFC !important;
}

body.qf-auth-wft .tabs {
  display: flex !important;
  gap: 4px !important;
  padding: 4px !important;
  background: #E4EDF1 !important;
  border: 0 !important;
  border-radius: 10px !important;
  align-items: stretch !important;
}

/* Each segment fills half the pill (no empty grey on the right) with centered
   text; border:0 removes the base underline-tab `border-bottom`, so the active
   blue pill has an equal grey inset on ALL sides (no line at the bottom only). */
body.qf-auth-wft .tab {
  flex: 1 1 0 !important;
  text-align: center !important;
  color: #181D1F !important;
  border: 0 !important;
  border-radius: 6px !important;
}

body.qf-auth-wft .tab.active {
  background: #0D3CFC !important;
  color: #FFFFFF !important;
}

body.qf-auth-wft .btn-primary,
body.qf-auth-wft .btn-primary:disabled {
  background: #0D3CFC !important;
  border: 1px solid #0D3CFC !important;
  color: #FFFFFF !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

body.qf-auth-wft .btn-primary:hover {
  border-color: #FFFFFF !important;
}

body.qf-auth-wft .btn-primary:disabled {
  opacity: .46 !important;
}

/* Plan selection cards: force the dark surface so the light title/price/desc
   text reads. (Target the .plan-opt class directly — the old
   [style*="background:var(--surface-2)"] selector failed because browsers
   normalize the inline style attribute, leaving light text on a light card.) */
body.qf-auth-wft .plan-opt {
  background: #22282A !important;
  border-color: rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
}
body.qf-auth-wft .plan-opt strong { color: #FFFFFF !important; }
body.qf-auth-wft .plan-opt .muted { color: #B1C5CE !important; }

body.qf-auth-wft .qf-mc-bubble,
body.qf-auth-wft .qf-mc-send {
  background: #0D3CFC !important;
  color: #FFFFFF !important;
}

body.qf-auth-wft .qf-mc-bubble.open {
  background: #22282A !important;
  color: #FFFFFF !important;
}

/* Legal-consent (DPA/Security) checkbox row: same dark-surface treatment as
   .plan-opt. The inline background:var(--surface-2) resolves to the LIGHT
   chip (#E4EDF1); with white ink that was ~1.19:1 (unreadable). Forcing the
   dark card surface restores the site's white-on-dark text/link contrast. */
body.qf-auth-wft .consent-opt {
  background: #22282A !important;
  border-color: rgba(255,255,255,.14) !important;
  color: var(--ink) !important;
}
body.qf-auth-wft .consent-opt a { color: var(--ink) !important; text-decoration: underline; }

/* Selected plan card: DS = 1–2px accent outline + faint tint, never a bright
   fill. The :has() rule out-specifies the base .plan-opt (dark surface) above,
   and its !important beats the cosmetic inline styles set by paintPlan(). The
   accent-soft tint is translucent, so it composites over the dark card. */
body.qf-auth-wft .plan-opt:has(input:checked) {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  box-shadow: 0 0 0 1px var(--accent) !important;
}

/* Inline "Compare plans" expander — keeps form momentum (no modal). Compact,
   token-driven, theme-aware; the scroll wrapper guarantees no page overflow at
   375px. Closed by default. */
body.qf-auth-wft .qf-plan-compare {
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
body.qf-auth-wft .qf-plan-compare > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
body.qf-auth-wft .qf-plan-compare > summary::-webkit-details-marker { display: none; }
body.qf-auth-wft .qf-cmp-caret {
  transition: transform .15s ease;
  font-size: 12px;
  color: var(--muted);
}
body.qf-auth-wft .qf-plan-compare[open] > summary .qf-cmp-caret { transform: rotate(180deg); }
body.qf-auth-wft .qf-cmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border);
}
body.qf-auth-wft .qf-cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.4;
}
body.qf-auth-wft .qf-cmp-table th,
body.qf-auth-wft .qf-cmp-table td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
body.qf-auth-wft .qf-cmp-table thead th {
  color: var(--ink);
  font-weight: 700;
  vertical-align: top;
}
body.qf-auth-wft .qf-cmp-price {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
body.qf-auth-wft .qf-cmp-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: normal;
  width: 100%;
}
body.qf-auth-wft .qf-cmp-table td.yes { color: var(--accent); font-weight: 700; }
body.qf-auth-wft .qf-cmp-table td.no { color: var(--muted); }
body.qf-auth-wft .qf-cmp-table tbody tr:last-child th,
body.qf-auth-wft .qf-cmp-table tbody tr:last-child td { border-bottom: 0; }