/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --navy-mid: #0f3460;
  --blue-accent: #4361ee;
  --blue-hover: #3a56d4;
  --blue-light: #e8ecff;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --green: #2ecc71;
  --green-dark: #27ae60;
  --orange: #f39c12;
  --red: #e74c3c;
  --gold: #f1c40f;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-xs {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header / Nav ===== */
.site-header {
  background: var(--navy);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--blue-accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--gray-300);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 80px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero .subhead {
  font-size: 1.2rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--blue-accent);
  border: 2px solid var(--blue-accent);
}

.btn-secondary:hover {
  background: var(--blue-accent);
  color: var(--white);
}

.btn-success {
  background: var(--green);
  color: var(--white);
}

.btn-success:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.15rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}

.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ===== Section Styling ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-title p {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== How It Works (Steps) ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--blue-accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 2px solid var(--gray-200);
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-accent);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  margin: 16px 0;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-500);
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin: 24px 0 32px;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.pricing-card li::before {
  content: "\2713";
  color: var(--green);
  font-weight: 700;
  margin-right: 10px;
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group .hint {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="range"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23868e96' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Checkbox / Radio groups */
.checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-item input,
.radio-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-accent);
  cursor: pointer;
}

/* Range slider */
input[type="range"] {
  padding: 0;
  border: none;
  height: 6px;
  background: var(--gray-300);
  border-radius: 3px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--blue-accent);
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]:focus {
  box-shadow: none;
}

.range-display {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
}

/* ===== Wizard / Multi-step Form ===== */
.wizard-wrapper {
  min-height: 100vh;
  background: var(--gray-50);
  padding: 40px 0 80px;
}

.wizard-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 36px;
  margin-top: 24px;
}

.progress-bar-wrapper {
  margin-bottom: 32px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 8px;
}

.progress-steps::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gray-300);
  z-index: 0;
}

.progress-fill {
  position: absolute;
  top: 16px;
  left: 0;
  height: 3px;
  background: var(--blue-accent);
  transition: width 0.4s ease;
  z-index: 1;
}

.progress-step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-300);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  transition: background var(--transition);
}

.progress-step.active {
  background: var(--blue-accent);
}

.progress-step.completed {
  background: var(--green);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-step h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.wizard-step .step-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* ===== Review Summary ===== */
.review-section {
  margin-bottom: 24px;
}

.review-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.review-label {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.review-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  max-width: 60%;
}

/* ===== Status Page ===== */
.status-wrapper {
  min-height: 100vh;
  background: var(--gray-50);
  padding: 40px 0 80px;
}

.status-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 40px 0;
  margin-bottom: 32px;
}

.status-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.status-header p {
  color: var(--gray-400);
  font-size: 0.95rem;
}

/* Pipeline */
.pipeline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.pipeline-stage {
  flex: 1;
  text-align: center;
  position: relative;
}

.pipeline-stage::after {
  content: "";
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 3px;
  background: var(--gray-300);
  z-index: 0;
}

.pipeline-stage:last-child::after {
  display: none;
}

.pipeline-stage.completed::after {
  background: var(--green);
}

.pipeline-stage.active::after {
  background: linear-gradient(to right, var(--blue-accent) 50%, var(--gray-300) 50%);
}

.pipeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-300);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  transition: background var(--transition);
}

.pipeline-stage.completed .pipeline-dot {
  background: var(--green);
}

.pipeline-stage.active .pipeline-dot {
  background: var(--blue-accent);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
}

.pipeline-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}

.pipeline-stage.active .pipeline-label {
  color: var(--blue-accent);
}

.pipeline-stage.completed .pipeline-label {
  color: var(--green);
}

/* Vehicle listings */
.listing-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 16px;
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.listing-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.listing-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
}

.listing-details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.listing-detail {
  display: flex;
  align-items: center;
  gap: 4px;
}

.deal-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.deal-badge.great {
  background: rgba(46, 204, 113, 0.15);
  color: var(--green-dark);
}

.deal-badge.good {
  background: rgba(243, 156, 18, 0.15);
  color: var(--orange);
}

.deal-badge.fair {
  background: rgba(231, 76, 60, 0.15);
  color: var(--red);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-300);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-accent);
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.timeline-content {
  font-size: 0.95rem;
  color: var(--gray-700);
}

.timeline-content strong {
  color: var(--navy);
}

/* ===== Feedback Page ===== */
.star-rating {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.star-rating .star {
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-300);
  transition: color var(--transition);
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.star-rating .star.active {
  color: var(--gold);
}

.star-rating .star:hover,
.star-rating .star:hover ~ .star {
  color: var(--gold);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 40px 0;
  text-align: center;
}

.site-footer .logo {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-top: 16px;
}

.footer-links a {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--white);
}

/* ===== Alerts ===== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.alert-info {
  background: var(--blue-light);
  color: var(--navy-mid);
  border: 1px solid rgba(67, 97, 238, 0.2);
}

.alert-success {
  background: rgba(46, 204, 113, 0.1);
  color: var(--green-dark);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.alert-error {
  background: rgba(231, 76, 60, 0.1);
  color: var(--red);
  border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ===== Loading ===== */
.loading {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-300);
  border-top-color: var(--blue-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Empty States ===== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .pipeline {
    flex-wrap: wrap;
    gap: 16px;
  }
  .pipeline-stage::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 60px 0 70px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero .subhead {
    font-size: 1rem;
  }
  .section {
    padding: 48px 0;
  }
  .wizard-card {
    padding: 28px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 16px;
  }
  .listing-header {
    flex-direction: column;
    gap: 8px;
  }
}
