:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --border: #e2e6ec;
  --text-primary: #1a1d29;
  --text-secondary: #6b7280;
  --accent: #2f6fed;
  --accent-hover: #2559c7;
  --danger: #d64545;
  --success: #1f9d55;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,24,43,0.06), 0 4px 16px rgba(20,24,43,0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
}

.qf-wrap {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
}

.qf-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 520px;
  padding: 36px 32px 28px;
}

.qf-progress {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
}
.qf-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.25s ease;
}

.qf-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
}
.qf-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.qf-field { margin-bottom: 18px; }

.qf-field label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.qf-field label .req { color: var(--danger); }

.qf-field input[type=text],
.qf-field input[type=tel],
.qf-field input[type=number],
.qf-field select,
.qf-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: #fafbfc;
  font-family: inherit;
}
.qf-field input:focus,
.qf-field select:focus,
.qf-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.qf-field.error input,
.qf-field.error select,
.qf-field.error textarea {
  border-color: var(--danger);
}
.qf-field .error-msg {
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 4px;
}
.qf-field textarea { min-height: 80px; resize: vertical; }
.qf-readonly { background: #f0f2f5 !important; color: var(--text-secondary); }

.qf-vin-status {
  font-size: 13px;
  font-weight: 600;
  margin-top: -10px;
  margin-bottom: 14px;
}
.qf-vin-status.valid { color: var(--success); }
.qf-vin-status.invalid { color: var(--danger); }
.qf-vin-help {
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  margin: -10px 0 14px;
  display: inline-block;
}

.qf-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.qf-btn {
  flex: 1;
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.qf-btn-primary { background: var(--accent); color: #fff; }
.qf-btn-primary:hover { background: var(--accent-hover); }
.qf-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.qf-btn-secondary { background: #eef1f6; color: var(--text-primary); flex: 0 0 auto; padding: 12px 20px; }

.qf-step { display: none; }
.qf-step.active { display: block; }

.qf-done {
  text-align: center;
  padding: 20px 0;
}
.qf-done .qf-check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #e9f8ee;
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.qf-done h2 { font-size: 22px; margin: 0 0 10px; }
.qf-done p { color: var(--text-secondary); margin: 0 0 18px; }
.qf-done .qf-phone { font-size: 20px; font-weight: 700; margin: 16px 0 4px; }

.qf-server-error {
  background: #fdecec;
  color: var(--danger);
  border: 1px solid #f6c9c9;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
