/* Quote estimator prototype. Loaded only by quote-estimator.html.
   Colours: charcoal #111417, cream #E9ECEF, slate #565B63, red #C8102E.
   On dark surfaces the eyebrow uses a lighter red (#FF5C6C) for 4.5:1 contrast. */

.qe-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.qe-wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .qe-wrap { padding: 0 1.5rem; } }

/* Hero strip */
.qe-hero { background: #111417; color: #fff; padding: 7.5rem 0 2.75rem; }
@media (min-width: 768px) { .qe-hero { padding: 8.5rem 0 3.5rem; } }
.qe-hero-top { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.qe-eyebrow {
  margin: 0; color: #ff5c6c; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
}
.qe-proto {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0.2rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
}
.qe-h1 {
  margin: 0.9rem 0 1rem; font-family: Oswald, system-ui, sans-serif; font-weight: 600;
  font-size: clamp(2rem, 7vw, 3.5rem); line-height: 1.05; letter-spacing: -0.005em;
  text-transform: uppercase; color: #fff; max-width: 20ch;
}
.qe-lead { margin: 0; max-width: 40rem; font-size: 1rem; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.qe-steps-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.75rem 0 0; padding: 0;
}
.qe-steps-nav a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  padding: 0.5rem 0.95rem; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
  color: #fff; font-size: 0.875rem; text-decoration: none;
}
.qe-n {
  display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 999px;
  background: #C8102E; color: #fff; font-size: 0.75rem; font-weight: 700;
}

/* Layout */
.qe-body { background: #E9ECEF; padding: 2.25rem 0 6.5rem; color: #111417; }
@media (min-width: 768px) { .qe-body { padding: 3rem 0 4rem; } }
.qe-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.qe-steps, .qe-aside { min-width: 0; }
#summary, #step-car, #step-need, #svc, #rep { scroll-margin-top: 6.5rem; }
@media (min-width: 1024px) {
  .qe-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .qe-aside { position: sticky; top: 6.5rem; }
}

/* Cards and headings */
.qe-card {
  background: #fff; border: 1px solid rgba(17, 20, 23, 0.1); border-radius: 16px;
  padding: 1.25rem; margin-bottom: 1.25rem; min-width: 0;
}
@media (min-width: 768px) { .qe-card { padding: 1.75rem; } }
.qe-card-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.qe-num {
  flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px;
  background: #C8102E; color: #fff; font-family: Oswald, system-ui, sans-serif; font-size: 1.25rem; font-weight: 600;
}
.qe-h2 {
  margin: 0 0 0.25rem; font-family: Oswald, system-ui, sans-serif; font-weight: 600;
  font-size: 1.5rem; line-height: 1.2; text-transform: uppercase; color: #111417;
}
.qe-small { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: #565B63; }
.qe-opt { font-weight: 400; color: #565B63; }

/* Fields */
.qe-fields { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .qe-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qe-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.qe-field > label { font-size: 0.875rem; font-weight: 600; color: #111417; }
.qe-field select,
.qe-field input[type="search"] {
  width: 100%; min-height: 48px; padding: 0.6rem 0.85rem; border: 1px solid rgba(17, 20, 23, 0.3);
  border-radius: 10px; background: #fff; color: #111417; font: inherit; font-size: 1rem;
}
.qe-field select:disabled { background: #f1f2f4; color: #565B63; cursor: not-allowed; }
.qe-field select:focus-visible,
.qe-field input:focus-visible {
  outline: 2px solid #C8102E; outline-offset: 2px; border-color: #C8102E;
}

/* Sub headings and tags */
.qe-sub {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 0.5rem 0.75rem; margin: 1.75rem 0 0.75rem; scroll-margin-top: 6.5rem;
}
.qe-sub h3 {
  margin: 0; font-family: Oswald, system-ui, sans-serif; font-weight: 600; font-size: 1.25rem;
  text-transform: uppercase; color: #111417;
}
.qe-tag {
  display: inline-block; padding: 0.3rem 0.65rem; border-radius: 999px; background: #111417; color: #fff;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.qe-tag-est { background: #fff; color: #111417; border: 1px solid rgba(17, 20, 23, 0.35); }
.qe-fieldset { border: 0; margin: 0 0 1rem; padding: 0; min-width: 0; }
.qe-legend { font-size: 0.875rem; font-weight: 600; color: #111417; margin-bottom: 0.6rem; padding: 0; }

/* Option cards (real inputs, styled) */
.qe-grid-2 { display: grid; gap: 0.6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .qe-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qe-opt-card {
  position: relative; display: flex; align-items: flex-start; gap: 0.75rem;
  min-height: 56px; padding: 0.8rem 0.9rem; border: 1px solid rgba(17, 20, 23, 0.18);
  border-radius: 12px; background: #fff; cursor: pointer; min-width: 0;
  transition: border-color 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.qe-opt-card input[type="radio"],
.qe-opt-card input[type="checkbox"] {
  flex: none; width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: #C8102E; cursor: pointer;
}
.qe-opt-card:focus-within { outline: 2px solid #C8102E; outline-offset: 2px; }
.qe-opt-card.is-checked { border-color: #C8102E; background: #fdf3f5; box-shadow: inset 0 0 0 1px #C8102E; }
.qe-opt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.qe-opt-name { font-weight: 600; color: #111417; font-size: 0.975rem; line-height: 1.35; }
.qe-opt-meta { font-size: 0.875rem; color: #565B63; line-height: 1.4; }
.qe-opt-price {
  flex: none; margin-left: auto; padding-left: 0.5rem; font-family: Oswald, system-ui, sans-serif;
  font-size: 1.125rem; font-weight: 600; color: #111417; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.qe-opt-price small { font-size: 0.8125rem; font-family: Manrope, system-ui, sans-serif; font-weight: 500; color: #565B63; }
@media (hover: hover) and (pointer: fine) {
  .qe-opt-card:hover { border-color: rgba(200, 16, 46, 0.55); }
}

/* Repairs filter */
.qe-filter { display: grid; gap: 0.75rem; }
.qe-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qe-chip {
  min-height: 44px; padding: 0.5rem 1rem; border: 1px solid rgba(17, 20, 23, 0.3); border-radius: 999px;
  background: #fff; color: #111417; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.qe-chip[aria-pressed="true"] { background: #111417; border-color: #111417; color: #fff; }
.qe-chip:focus-visible { outline: 2px solid #C8102E; outline-offset: 2px; }
.qe-chip:active, .qe-btn:active, .qe-pill a:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .qe-chip:hover { border-color: #111417; }
}

.qe-group { margin-top: 1.25rem; }
.qe-group h4 {
  margin: 0 0 0.6rem; font-family: Oswald, system-ui, sans-serif; font-size: 1rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #111417;
}
.qe-group-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .qe-group-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qe-group-list li[hidden] { display: none; }

/* Add-on cards need no extra styling beyond .qe-opt-card. */

/* Summary */
.qe-sum { padding: 1.25rem; border-top: 4px solid #C8102E; }
.qe-sum-empty {
  margin: 1rem 0 0; padding: 1.25rem; border: 1px dashed rgba(17, 20, 23, 0.3); border-radius: 12px;
  font-size: 0.975rem; line-height: 1.55; color: #565B63; text-align: left;
}
.qe-car { margin: 1rem 0 0; font-size: 0.875rem; color: #565B63; line-height: 1.45; }
.qe-car strong { display: block; font-size: 1.0625rem; color: #111417; }
.qe-sum-h {
  margin: 1.25rem 0 0.25rem; font-family: Oswald, system-ui, sans-serif; font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #565B63;
}
.qe-list { list-style: none; margin: 0; padding: 0; }
.qe-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(17, 20, 23, 0.1); font-size: 0.9375rem; line-height: 1.4;
}
.qe-list li span:first-child { min-width: 0; }
.qe-list .qe-amt { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; color: #111417; font-weight: 600; }
.qe-list .qe-amt-pending { font-weight: 500; color: #565B63; font-size: 0.875rem; }
.qe-subtotal {
  display: flex; justify-content: space-between; gap: 0.75rem; padding-top: 0.5rem;
  font-size: 0.9375rem; font-weight: 600; color: #111417; font-variant-numeric: tabular-nums;
}
.qe-adjust { margin: 0.5rem 0 0; font-size: 0.8125rem; color: #565B63; line-height: 1.45; }

.qe-total {
  margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 12px; background: #111417; color: #fff;
}
.qe-total-label {
  margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.qe-total-val {
  margin: 0.25rem 0 0; font-family: Oswald, system-ui, sans-serif; font-size: 2.25rem; font-weight: 600;
  line-height: 1.15; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap;
}
.qe-total-sub { margin: 0.25rem 0 0; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.85); line-height: 1.4; }
.qe-note { margin: 1rem 0; font-size: 0.875rem; line-height: 1.55; color: #565B63; }
.qe-actions { display: grid; gap: 0.6rem; }
.qe-btn {
  display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center;
  padding: 0.7rem 1rem; border: 1px solid; border-radius: 999px; font: inherit; font-size: 0.8125rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.qe-btn:focus-visible { outline: 2px solid #C8102E; outline-offset: 2px; }
.qe-btn-primary { background: #C8102E; border-color: #C8102E; color: #fff; }
.qe-btn-ghost { background: #fff; border-color: rgba(17, 20, 23, 0.35); color: #111417; }
@media (hover: hover) and (pointer: fine) {
  .qe-btn-primary:hover { background: rgba(200, 16, 46, 0.9); }
  .qe-btn-ghost:hover { border-color: #111417; }
}

/* Sticky pill above the mobile bottom bar (bar is about 56px plus safe area) */
.qe-pill {
  position: fixed; left: 0; right: 0; bottom: calc(72px + env(safe-area-inset-bottom));
  margin: 0 auto; width: max-content; z-index: 45; display: none;
}
.qe-pill.is-on { display: flex; }
.qe-pill a {
  display: flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.6rem 1.2rem;
  border-radius: 999px; background: #111417; color: #fff; text-decoration: none;
  font-size: 0.9375rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(17, 20, 23, 0.28);
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.qe-pill a:focus-visible { outline: 2px solid #C8102E; outline-offset: 2px; }
.qe-pill-val { font-family: Oswald, system-ui, sans-serif; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .qe-pill { display: none !important; } }

/* Number change animation: opacity and translate only */
@keyframes qe-tick {
  from { opacity: 0.35; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.qe-tick { animation: qe-tick 180ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .qe-tick { animation: none; }
  .qe-btn, .qe-chip, .qe-pill a, .qe-opt-card { transition: none; }
}

/* Header: one more nav item on this page, so keep labels on one line. */
header nav[aria-label="Primary"] { gap: 1.1rem; }
header nav[aria-label="Primary"] a,
header a[href="https://app.otokagarage.com/book/otoka-garage"] { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) {
  header nav[aria-label="Primary"] { gap: 0.8rem; }
  header nav[aria-label="Primary"] a { font-size: 12px; letter-spacing: 0.08em; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  /* The header CTA button already says Book Appointment, so drop the duplicate nav link here. */
  header nav[aria-label="Primary"] a[href="https://app.otokagarage.com/book/otoka-garage"] { display: none; }
}
