:root {
  --q-bg: #0b1018;
  --q-panel: #111827;
  --q-card: #ffffff;
  --q-line: rgba(148, 163, 184, .22);
  --q-text: #0f172a;
  --q-muted: #64748b;
  --q-primary: #1677ff;
  --q-primary-2: #4f6df5;
  --q-ok: #16a34a;
  --q-warn: #f59e0b;
}
* { box-sizing: border-box; }
body.quote-page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--q-bg);
  color: #e5eefc;
  min-height: 100vh;
}
.quote-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 16, 24, .92);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.quote-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.quote-logo { display: inline-flex; align-items: center; text-decoration: none; }
.quote-logo img { height: 40px; display: block; }
.quote-menu { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.quote-menu a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: .92rem;
}
.quote-menu a.active, .quote-menu a:hover { color: #fff; }
.quote-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px 64px;
}
.quote-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.quote-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.quote-hero p {
  margin: 0;
  color: #b6c3d7;
  max-width: 720px;
  line-height: 1.65;
}
.quote-page-trust {
  margin: 22px 0 0;
  max-width: 1180px;
}
.quote-page-trust h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  color: #fff;
}
.quote-page-trust .quote-trust-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.quote-page-trust p {
  margin: 0;
  color: #cbd5e1;
  font-size: .92rem;
  line-height: 1.55;
}
.quote-page-trust strong { color: #fff; }
.quote-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.quote-step {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #93a4bb;
  background: rgba(255,255,255,.03);
}
.quote-step.active {
  color: #fff;
  border-color: rgba(22,119,255,.75);
  background: rgba(22,119,255,.16);
}
.quote-card {
  background: var(--q-card);
  color: var(--q-text);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.32);
}
.quote-panel { display: none; }
.quote-panel.active { display: block; }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.quote-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.quote-field.full { grid-column: 1 / -1; }
.quote-field label {
  font-size: .86rem;
  color: #475569;
  font-weight: 600;
}
.quote-field input, .quote-field textarea, .quote-field select {
  width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  padding: 12px 13px;
  font-size: .95rem;
  outline: none;
  background: #fff;
  color: #111827;
}
.quote-field textarea { min-height: 108px; resize: vertical; }
.quote-field input:focus, .quote-field textarea:focus, .quote-field select:focus {
  border-color: var(--q-primary);
  box-shadow: 0 0 0 3px rgba(22,119,255,.12);
}
.quote-upload {
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 18px;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #f8fafc;
}
.quote-upload input { display: none; }
.quote-upload strong { display: block; margin-bottom: 6px; }
.quote-upload span { color: var(--q-muted); font-size: .88rem; }
.quote-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.quote-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
  min-width: 180px;
}
.quote-btn.primary {
  color: #fff;
  background: linear-gradient(90deg, var(--q-primary), var(--q-primary-2));
  box-shadow: 0 12px 30px rgba(22,119,255,.28);
}
.quote-btn.ghost { background: #eef2f7; color: #334155; }
.quote-btn:disabled { opacity: .55; cursor: not-allowed; }
.quote-hint {
  margin-top: 12px;
  color: var(--q-muted);
  font-size: .9rem;
  line-height: 1.55;
}
.quote-hint.ok { color: var(--q-ok); }
.quote-hint.err { color: #dc2626; }
.quote-detected {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.quote-detected h3 { margin: 0 0 10px; font-size: 1rem; }
.quote-price {
  display: none;
  margin: 0 0 20px;
  padding: 20px;
  border-radius: 14px;
  color: #082f49;
  background: linear-gradient(135deg, #e0f2fe, #fef3c7);
  border: 1px solid rgba(14,165,233,.25);
}
.quote-price strong { display: block; font-size: 1.7rem; margin-top: 6px; }
.quote-done {
  text-align: center;
  padding: 20px 0;
}
.quote-done h2 { margin: 0 0 10px; font-size: 1.7rem; }
.quote-done p { color: var(--q-muted); line-height: 1.7; margin: 0 auto; max-width: 720px; }
.quote-chat-link { color: var(--q-primary); font-weight: 700; text-decoration: none; }
.quote-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  background: #080d14;
  color: #94a3b8;
}
.quote-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.quote-footer-brand img { height: 40px; display: block; margin-bottom: 10px; }
.quote-footer-brand p { margin: 0; color: #cbd5e1; }
.quote-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}
.quote-footer-links a,
.quote-footer-bottom a {
  color: #cbd5e1;
  text-decoration: none;
}
.quote-footer-links a:hover,
.quote-footer-bottom a:hover { color: #fff; }
.quote-footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 24px;
  font-size: .86rem;
}
.quote-footer-bottom p { margin: 0; }
@media (max-width: 800px) {
  .quote-hero { grid-template-columns: 1fr; }
  .quote-page-trust .quote-trust-items { grid-template-columns: 1fr; gap: 10px; }
  .quote-steps { grid-template-columns: 1fr; }
  .quote-grid, .quote-grid.three { grid-template-columns: 1fr; }
  .quote-card { padding: 20px; }
  .quote-upload { align-items: flex-start; flex-direction: column; }
  .quote-nav-inner { align-items: flex-start; flex-direction: column; }
  .quote-menu { gap: 14px; }
  .quote-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .quote-footer-links { justify-content: flex-start; }
  .quote-actions {
    display: flex;
    flex-direction: column;
  }
  .quote-btn.primary { order: 1; }
  .quote-btn.ghost { order: 2; }
  .quote-btn {
    width: 100%;
    min-width: 0;
  }
}
