:root {
  --vf-blue: #0067B7;
  --vf-blue-dark: #00538F;
  --vf-blue-darker: #003D6E;
  --vf-blue-soft: #E6F0FA;
  --vf-navy: #0A2540;
  --vf-yellow: #FFD43B;
  --vf-yellow-soft: #FFF4D1;
  --vf-text: #0F172A;
  --vf-text-muted: #475569;
  --vf-border: #E2E8F0;
  --vf-bg: #FFFFFF;
  --vf-bg-soft: #F8FAFC;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--vf-text);
  background: var(--vf-bg);
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.btn-primary {
  background: var(--vf-blue);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-primary:hover { background: var(--vf-blue-dark); box-shadow: 0 8px 24px -8px rgba(0, 103, 183, 0.5); }
.btn-primary:active { background: var(--vf-blue-darker); }

.btn-outline {
  background: transparent;
  color: var(--vf-blue);
  border: 2px solid var(--vf-blue);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  transition: all 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-outline:hover { background: var(--vf-blue); color: white; }

.btn-dark {
  background: var(--vf-navy);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: background 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-dark:hover { background: #15355C; }

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--vf-text);
  transition: color 200ms ease;
  padding: 0.5rem 0;
}
.nav-link:hover { color: var(--vf-blue); }
.nav-link.active { color: var(--vf-blue); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--vf-blue);
}

.car-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
  border: 1px solid var(--vf-border);
  cursor: pointer;
}
.car-card:hover {
  box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.18);
  border-color: var(--vf-blue);
}

.tab-link {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--vf-text-muted);
  border-bottom: 2px solid transparent;
  transition: all 200ms ease;
  cursor: pointer;
}
.tab-link.active {
  color: var(--vf-blue);
  border-bottom-color: var(--vf-blue);
}

.color-swatch {
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: all 200ms ease;
}
.color-swatch:hover { transform: translateY(-2px); }
.color-swatch.active {
  border-color: var(--vf-blue);
  box-shadow: 0 0 0 4px rgba(0, 103, 183, 0.18);
}
.color-swatch.active::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  pointer-events: none;
}

.version-card {
  border: 2px solid var(--vf-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.version-card:hover { border-color: var(--vf-blue); background: var(--vf-blue-soft); }
.version-card.active { border-color: var(--vf-blue); background: var(--vf-blue-soft); }
.version-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  flex-shrink: 0;
  position: relative;
  transition: all 200ms ease;
}
.version-card.active .version-radio { border-color: var(--vf-blue); }
.version-card.active .version-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--vf-blue);
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-weight: 600;
  color: var(--vf-text-muted);
  border-bottom: 2px solid transparent;
}
.step-indicator.active {
  color: var(--vf-blue);
  border-bottom-color: var(--vf-blue);
}
.step-number {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--vf-border);
  color: var(--vf-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}
.step-indicator.active .step-number {
  background: var(--vf-blue);
  color: white;
}
.step-indicator.completed .step-number {
  background: #22C55E;
  color: white;
}

.promo-ribbon {
  background: linear-gradient(135deg, #FFE6A1 0%, #FFD43B 50%, #FFE6A1 100%);
  color: var(--vf-navy);
  font-weight: 700;
  clip-path: polygon(2% 0, 100% 0, 98% 100%, 0% 100%);
}

.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--vf-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(0, 103, 183, 0.5);
  cursor: pointer;
  z-index: 50;
  transition: transform 200ms ease, background 200ms ease;
}
.chat-fab:hover { background: var(--vf-blue-dark); }

.scroll-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--vf-blue);
  border: 1px solid var(--vf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  z-index: 49;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { color: white; background: var(--vf-blue); }

.specs-pill {
  background: #F1F5F9;
  color: var(--vf-text);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 600ms ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--vf-blue);
  outline-offset: 2px;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--vf-border);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  background: white;
}
.form-input:focus {
  border-color: var(--vf-blue);
  box-shadow: 0 0 0 3px rgba(0, 103, 183, 0.15);
  outline: none;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vf-text);
  margin-bottom: 0.4rem;
  display: block;
}
.form-label .required { color: #EF4444; }

/* Car-choice radio (tabbed selector inside forms) */
.car-radio {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 150ms ease;
  user-select: none;
}
.car-radio:hover { background: var(--vf-bg-soft); }
.car-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.car-radio .radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  position: relative;
  flex-shrink: 0;
  transition: border-color 200ms;
  background: white;
}
.car-radio input[type="radio"]:checked + .radio-dot {
  border-color: var(--vf-blue);
}
.car-radio input[type="radio"]:checked + .radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--vf-blue);
}
.car-radio span:last-child {
  font-size: 0.9rem;
  color: var(--vf-text);
  font-weight: 500;
}
