/* Quote flow — immersive, step-auto UI */
.is-quote {
  --q-bg: #f3f4f7;
  --q-card: #ffffff;
  --q-ink: #1c2230;
  --q-muted: #6b7280;
  --q-line: #e4e7ee;
  --q-radius: 16px;
}
.is-quote .site-header,
.is-quote .site-footer,
.is-quote .mobile-dock,
.is-quote .skip-link {
  display: none !important;
}
.is-quote body,
body.is-quote {
  background: var(--q-bg);
}

.quote-app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--q-bg);
}

.quote-chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem 0.75rem;
  background: rgb(243 244 247 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(63 71 95 / 0.08);
}
.quote-chrome-back {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--slate-dark);
}
.quote-chrome-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--slate-dark);
  line-height: 1.2;
}
.quote-chrome-sub {
  margin: 0.1rem 0 0;
  font-size: 0.86rem;
  color: var(--q-muted);
}
.quote-progress {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.3rem;
}
.quote-progress span {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: #d5d9e2;
  transition: background 0.25s;
}
.quote-progress span.is-done { background: color-mix(in srgb, var(--slate) 55%, #86efac); }
.quote-progress span.is-active { background: var(--accent); }

.quote-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.quote-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: quoteIn 0.28s ease;
}
.quote-view[hidden] { display: none !important; }
@keyframes quoteIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.quote-pad {
  width: min(560px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}
.quote-section-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.quote-vehicle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 420px) {
  .quote-vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 720px) {
  .quote-vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.quote-vehicle {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  padding: 0.85rem 0.95rem;
  border: 1.5px solid var(--q-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  box-shadow: 0 1px 2px rgb(28 34 48 / 0.04), 0 8px 20px rgb(63 71 95 / 0.04);
  cursor: pointer;
  color: var(--q-ink);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s, background 0.18s;
}
.quote-vehicle:hover {
  border-color: color-mix(in srgb, var(--slate) 28%, white);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgb(28 34 48 / 0.05), 0 12px 24px rgb(63 71 95 / 0.08);
}
.quote-vehicle.is-selected {
  border-color: var(--slate);
  background: linear-gradient(
    135deg,
    #fff 0%,
    color-mix(in srgb, var(--slate) 7%, white) 100%
  );
  box-shadow:
    0 0 0 1px var(--slate),
    0 10px 24px rgb(63 71 95 / 0.14);
}
.quote-vehicle-ico {
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, #fff 0%, transparent 55%),
    linear-gradient(160deg, #eef2f8 0%, #e3e8f1 100%);
  color: var(--slate);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
}
.quote-vehicle-ico svg {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
}
.quote-vehicle.is-selected .quote-vehicle-ico {
  background:
    radial-gradient(circle at 30% 25%, rgb(255 255 255 / 0.22) 0%, transparent 55%),
    linear-gradient(160deg, var(--slate) 0%, var(--slate-dark, #1c2230) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18);
}
.quote-vehicle-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.quote-vehicle-label {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.quote-vehicle-hint {
  font-size: 0.76rem;
  color: var(--q-muted);
  font-weight: 600;
  line-height: 1.3;
}
.quote-vehicle.is-selected .quote-vehicle-hint {
  color: color-mix(in srgb, var(--slate) 70%, var(--q-muted));
}
.quote-foot-note {
  margin: 1.1rem 0 0;
  font-size: 0.84rem;
  color: var(--q-muted);
  line-height: 1.4;
}
.quote-foot-note a { color: var(--wa-dark); font-weight: 700; }

.quote-selected-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgb(63 71 95 / 0.25);
}
.quote-selected-bar button {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: rgb(255 255 255 / 0.18);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
}

.quote-q-card {
  background: var(--q-card);
  border: 1px solid var(--q-line);
  border-radius: var(--q-radius);
  padding: 1rem;
  box-shadow: 0 8px 20px rgb(63 71 95 / 0.05);
  margin-bottom: 0.85rem;
}
.quote-q-text {
  margin: 0 0 0.85rem;
  font-weight: 800;
  color: var(--slate-dark);
  font-size: 1.02rem;
}
.quote-q-card .quote-foot-note {
  margin: -0.35rem 0 0.85rem;
}
.quote-field--inline {
  display: block;
  margin-bottom: 0.85rem;
}
.quote-field--inline input {
  width: 100%;
  border: 1.5px solid var(--q-line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  font: inherit;
  font-weight: 600;
  color: var(--q-ink);
  background: #fff;
}
.quote-field--inline input:focus {
  outline: none;
  border-color: var(--brand, #1f6feb);
}
.quote-q-card [data-dimensions-next] {
  width: 100%;
}
.quote-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.quote-seg--stack {
  grid-template-columns: 1fr;
}
.quote-seg--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.quote-seg--stack button {
  text-align: left;
  padding: 0.8rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.35;
}
.quote-seg button {
  padding: 0.85rem 0.6rem;
  border-radius: 12px;
  border: 1.5px solid var(--q-line);
  background: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--q-ink);
  transition: 0.15s ease;
}
.quote-seg button.is-selected {
  background: var(--slate-dark);
  border-color: var(--slate-dark);
  color: #fff;
}
.quote-care-note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border-left: 3px solid #16a34a;
  background: #ecfdf5;
  color: #166534;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}
.quote-care-note[hidden] {
  display: none !important;
}

/* Map step: card + map + dock in column so buttons stay on screen */
.quote-view--map {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.quote-float-card {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  margin: 0.65rem 0.75rem 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
  border: 1px solid rgb(63 71 95 / 0.08);
}
.quote-float-card--static {
  position: static;
  margin: 0 0 1rem;
  box-shadow: 0 6px 16px rgb(63 71 95 / 0.06);
}
.quote-loc-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.35rem 0;
}
.quote-loc-row + .quote-loc-row {
  border-top: 1px dashed var(--q-line);
  margin-top: 0.25rem;
  padding-top: 0.6rem;
}
.quote-loc-grow { min-width: 0; }
.quote-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  margin-top: 0.35rem;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgb(63 71 95 / 0.12);
}
.quote-dot--from { background: var(--slate); }
.quote-dot--to { background: var(--accent); }
.quote-loc-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
}
.quote-loc-text {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--q-ink);
}
.quote-link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.15rem 0;
}

.quote-search {
  position: relative;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--q-line);
}
.quote-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.quote-search-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem 0.65rem 2.35rem;
  border: 1.5px solid var(--q-line);
  border-radius: 12px;
  background:
    #f8f9fb
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='5.5'/%3E%3Cpath d='M12.5 12.5 16 16'/%3E%3C/svg%3E")
    0.75rem 50% / 1.05rem no-repeat;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--q-ink);
}
.quote-search-input::placeholder {
  color: #9ca3af;
  font-weight: 600;
}
.quote-search-input:focus {
  outline: 2px solid color-mix(in srgb, var(--slate) 28%, white);
  border-color: var(--slate);
  background-color: #fff;
}
.quote-search-results {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.25rem;
  max-height: min(42vh, 220px);
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--q-line);
  background: #fff;
  box-shadow: 0 12px 28px rgb(63 71 95 / 0.12);
}
.quote-search-results[hidden] {
  display: none !important;
}
.quote-search-results li button {
  width: 100%;
  display: grid;
  gap: 0.15rem;
  text-align: left;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  background: transparent;
  cursor: pointer;
  color: var(--q-ink);
}
.quote-search-results li button:hover,
.quote-search-results li button:focus-visible {
  background: #eef0f5;
  outline: none;
}
.quote-search-results strong {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}
.quote-search-results span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--q-muted);
  line-height: 1.3;
}
.quote-search-empty {
  padding: 0.75rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--q-muted);
}

.quote-map-frame {
  position: relative;
  flex: 1 1 0;
  min-height: 160px;
  margin: 0.65rem 0.75rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgb(63 71 95 / 0.12);
  background: #d9dee8;
}
.quote-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #d9dee8;
}
.quote-map-status {
  position: absolute;
  z-index: 500;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--slate-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.2);
  white-space: nowrap;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  pointer-events: none;
}
.quote-map-status--to { background: var(--accent); }
.quote-leaflet-pin { background: transparent !important; border: 0 !important; }

.quote-dock {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--q-line);
  box-shadow: 0 -8px 24px rgb(63 71 95 / 0.06);
}
.quote-dock-btn {
  flex: 1;
  min-height: 3.15rem;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.quote-dock-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.quote-dock-btn--primary {
  background: var(--slate-dark);
  color: #fff;
}
.quote-dock-btn--ghost {
  flex: 0 1 auto;
  padding-inline: 1rem;
  background: #eef0f5;
  color: var(--slate-dark);
}
.quote-dock-btn--wa {
  width: 100%;
  margin-top: 1rem;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 24px rgb(37 211 102 / 0.28);
}
.quote-dock-btn--wa:hover { background: var(--wa-dark); }

.quote-price-card {
  background: var(--q-card);
  border-radius: 18px;
  padding: 1.15rem;
  border: 1px solid var(--q-line);
  box-shadow: 0 12px 28px rgb(63 71 95 / 0.08);
}
.quote-price-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.quote-price-stats > div {
  padding: 0.8rem;
  border-radius: 12px;
  background: #f5f6f9;
}
.quote-price-stats span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--q-muted);
  margin-bottom: 0.2rem;
}
.quote-price-stats strong {
  font-size: 1.05rem;
  color: var(--slate-dark);
}
.quote-eta-note {
  margin: -0.35rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--q-muted);
  line-height: 1.35;
}
.quote-tip {
  margin: 0.85rem 0 0.55rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, white);
  color: var(--slate-dark);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}
.quote-photo-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--q-muted);
}
.quote-photo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.quote-photo-actions .quote-dock-btn {
  min-height: 2.85rem;
  width: 100%;
  flex: 1 1 auto;
  font-size: 0.92rem;
  margin: 0;
}
.quote-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.quote-photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #e8ebf1;
  border: 1px solid var(--q-line);
}
.quote-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.quote-photo-item button {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 999px;
  background: rgb(28 34 48 / 0.82);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.quote-photo-count {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--slate);
}
.quote-share-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--q-muted);
  line-height: 1.4;
}
.quote-price-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.quote-price-range {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(1.7rem, 5vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--slate-dark);
}
.quote-price-note {
  margin: 0 0 0.85rem;
  color: var(--q-muted);
  font-size: 0.86rem;
}
.quote-price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.quote-price-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--q-line);
  font-size: 0.9rem;
}
.quote-price-list span { color: var(--q-muted); }
.quote-price-list strong {
  text-align: right;
  max-width: 62%;
  color: var(--q-ink);
}

.quote-form {
  display: grid;
  gap: 0.75rem;
}
.quote-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--slate-dark);
}
.quote-field input,
.quote-field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1.5px solid var(--q-line);
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  background: #fff;
  color: var(--q-ink);
}
.quote-field input:focus,
.quote-field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--slate) 30%, white);
  border-color: var(--slate);
}
.quote-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.75fr;
  gap: 0.55rem;
}
@media (max-width: 520px) {
  .quote-field-row { grid-template-columns: 1fr; }
}
.quote-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.86rem;
  font-weight: 600;
  color: #4b5563;
  line-height: 1.4;
}
.quote-consent a { color: var(--accent); font-weight: 800; }
.quote-consent.is-invalid {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1.5px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, white);
}
.quote-field-error {
  margin: 0.15rem 0 0.35rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}
.quote-field-error[hidden] {
  display: none !important;
}
.quote-dock-btn--wa.is-blocked-hint {
  outline: 2px solid #fecaca;
  outline-offset: 2px;
  animation: quotePulse 0.45s ease;
}
@keyframes quotePulse {
  0%, 100% { transform: none; }
  30% { transform: translateY(1px); }
  60% { transform: translateY(-1px); }
}

@media (min-width: 900px) {
  .quote-map-frame { min-height: 360px; }
}
