/* ============================================
   Cambridge Drives – With Scooter
   Premium Vehicle Consultation Lead Generation Site
   ============================================ */

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --blue-950: #172554;
  --ford-blue: #2563eb;
  --ford-blue-light: #3b82f6;
  --ford-blue-dark: #1e3a8a;
  --white: #ffffff;
  --dark-navy: #111827;
  --light-gray: #f9fafb;
  --mid-gray: #e5e7eb;
  --charcoal: #374151;
  --text-muted: #6b7280;
  --gray-900: #111827;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xl: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  border-radius: 9999px;
}

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

.btn-hero {
  background: var(--white);
  color: var(--blue-900);
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
}

.btn-hero:hover {
  background: var(--blue-50);
  color: var(--blue-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-hero svg {
  transition: transform var(--transition);
}

.btn-hero:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

.menu-btn {
  pointer-events: auto;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1002;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--blue-600);
  color: var(--white);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: background var(--transition), transform var(--transition);
}

.menu-btn:hover {
  background: var(--blue-700);
}

.menu-btn.active {
  background: var(--blue-800);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
  z-index: 1000;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 88px 24px 32px;
  transform: translateX(100%);
  transition: transform var(--transition);
  pointer-events: auto;
  z-index: 1001;
}

.nav-drawer.active {
  transform: translateX(0);
}

.nav-link {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-600);
  background: var(--blue-50);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--blue-900), var(--blue-800), var(--blue-950));
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-image-main {
  background-image: url('../1-Ford-F-150-review.jpg');
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(23, 37, 84, 0.95),
    rgba(30, 58, 138, 0.9),
    rgba(23, 37, 84, 0.95)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 120px 24px 100px;
  max-width: 896px;
}

.hero-inner {
  max-width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 9999px;
  padding: 8px 16px;
  margin-bottom: 32px;
  color: var(--blue-200);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-badge svg {
  color: var(--blue-300);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero-title-accent {
  display: block;
  color: var(--blue-300);
  margin-top: 8px;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--blue-100);
  margin-bottom: 48px;
  font-weight: 300;
  font-style: italic;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  list-style: none;
  margin-top: 24px;
  color: var(--blue-200);
  font-size: 0.875rem;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust svg {
  flex-shrink: 0;
  color: var(--blue-300);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 48px;
  fill: var(--white);
}

@media (min-width: 768px) {
  .hero-wave svg {
    height: 64px;
  }
}

/* Animations */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s ease forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.25s; }
.animate-in:nth-child(3) { animation-delay: 0.4s; }
.animate-in:nth-child(4) { animation-delay: 0.55s; }
.animate-in:nth-child(5) { animation-delay: 0.7s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--gray-600);
  font-size: 1.25rem;
  max-width: 672px;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* Meet Scooter */
.meet-section {
  background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.meet-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}

.meet-profile {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.meet-profile-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.meet-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.meet-title {
  margin-bottom: 4px;
}

.meet-role {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.95rem;
}

.meet-quote {
  margin: 0 0 20px;
  padding: 20px 24px;
  border-left: 4px solid var(--blue-600);
  background: var(--blue-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--blue-900);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
}

.meet-bio {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.meet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meet-highlights {
  display: grid;
  gap: 16px;
}

.meet-highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.meet-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--blue-600);
  flex-shrink: 0;
}

.meet-highlight h3 {
  font-size: 1.05rem;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.meet-highlight p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--dark-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--ford-blue);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Map */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 21/9;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-details {
  list-style: none;
  margin-bottom: 32px;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--charcoal);
}

.contact-details svg {
  color: var(--ford-blue);
  flex-shrink: 0;
}

.contact-cta {
  padding: 36px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.contact-cta h3 {
  font-size: 1.25rem;
  color: var(--dark-navy);
  margin-bottom: 12px;
}

.contact-cta p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 48px 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-brand-row svg {
  color: var(--blue-400);
}

.footer-subtitle {
  color: var(--gray-400);
  margin-bottom: 24px;
}

.footer-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-400);
  font-size: 1.125rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-contact-link:hover {
  color: var(--blue-300);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-social a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--blue-400);
}

.footer-disclaimer-text {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 720px;
  margin: 0 auto 16px;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.footer-legal-links {
  margin-bottom: 16px;
}

.footer-legal-links a {
  color: var(--gray-400);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--blue-400);
}

/* Legal / Privacy Page */
.legal-page {
  padding: 120px 0 80px;
  background: var(--light-gray);
  min-height: 100vh;
}

.legal-container {
  max-width: 760px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 48px 40px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--blue-600);
  font-weight: 500;
}

.legal-container h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--gray-900);
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-size: 1.15rem;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-section ul {
  padding-left: 1.25rem;
  margin-bottom: 10px;
}

.legal-section a {
  color: var(--blue-600);
}

.form-privacy-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.form-privacy-note a {
  color: var(--blue-600);
  font-weight: 500;
}

/* Hot Deals */
.hot-deals-section {
  background: var(--light-gray);
}

.hot-deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.deal-card {
  background: var(--white);
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.deal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f97316);
  z-index: 1;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.deal-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--light-gray);
}

.deal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.deal-card:hover .deal-image img {
  transform: scale(1.05);
}

.deal-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.deal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.deal-hot-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 4px;
}

.deal-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ford-blue);
}

.deal-price-contact {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.deal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.3;
}

.deal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deal-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 52, 120, 0.08);
  color: var(--ford-blue);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.deal-btn {
  margin-top: auto;
  width: 100%;
}

.deal-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.deal-stock {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.deal-image-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

.deal-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.78);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.deal-tag-more {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-muted);
}

.hot-deals-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px dashed var(--mid-gray);
  border-radius: var(--radius);
}

.hot-deals-empty p {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Happy Customers Marquee */
.customers-section {
  background: var(--white);
  padding-bottom: 48px;
  overflow: hidden;
}

.customers-marquee-wrap {
  position: relative;
  margin-top: 8px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.customers-marquee-track {
  width: 100%;
}

.customers-marquee {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 8px 0 16px;
  animation: customers-marquee-scroll var(--marquee-duration, 60s) linear infinite;
}

.customers-marquee-wrap:hover .customers-marquee {
  animation-play-state: paused;
}

@keyframes customers-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.customer-card {
  flex: 0 0 min(360px, 82vw);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(0, 52, 120, 0.08);
}

.customer-card-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--light-gray);
}

.customer-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-card-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.customer-card-body {
  padding: 22px 24px 26px;
}

.customer-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 10px;
}

.customer-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .customers-marquee {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  .customers-marquee-wrap {
    mask-image: none;
  }
}

/* Questionnaire */
.questionnaire-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.questionnaire-overlay.active {
  opacity: 1;
  visibility: visible;
}

.questionnaire-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition);
}

.questionnaire-overlay.active .questionnaire-modal {
  transform: scale(1) translateY(0);
}

.questionnaire-close {
  position: static;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.questionnaire-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.questionnaire-modal-actions .questionnaire-close {
  margin-left: auto;
}

.questionnaire-header {
  margin-bottom: 32px;
}

.questionnaire-cancel-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.questionnaire-header h2 {
  font-size: 1.5rem;
  color: var(--dark-navy);
  margin-bottom: 16px;
}

.progress-bar {
  height: 6px;
  background: var(--mid-gray);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ford-blue), var(--ford-blue-light));
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 16.67%;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-step {
  display: none;
  animation: stepIn 0.4s ease;
}

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

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-step h3 {
  font-size: 1.2rem;
  color: var(--dark-navy);
  margin-bottom: 24px;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.radio-card,
.checkbox-card {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 2px solid var(--mid-gray);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.radio-card:hover,
.checkbox-card:hover {
  border-color: var(--ford-blue);
  background: rgba(0, 52, 120, 0.03);
}

.radio-card input,
.checkbox-card input {
  margin-right: 12px;
  accent-color: var(--ford-blue);
  width: 18px;
  height: 18px;
}

.radio-card:has(input:checked),
.checkbox-card:has(input:checked) {
  border-color: var(--ford-blue);
  background: rgba(0, 52, 120, 0.06);
}

.input-group {
  margin-bottom: 16px;
}

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

.required {
  color: #ef4444;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--mid-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--ford-blue);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.conditional-field {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--mid-gray);
  animation: stepIn 0.3s ease;
}

.conditional-field.hidden {
  display: none;
}

.form-error {
  color: #ef4444;
  font-size: 0.82rem;
  margin-top: 4px;
  min-height: 0;
}

.form-error:not(:empty) {
  min-height: 20px;
  margin-bottom: 8px;
}

.form-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.form-nav .btn-secondary {
  color: var(--charcoal);
  border-color: var(--mid-gray);
}

.form-nav .btn-secondary:hover {
  border-color: var(--ford-blue);
  color: var(--ford-blue);
  background: transparent;
}

.hidden {
  display: none !important;
}

/* Deal Match View */
.match-content {
  padding: 8px 0 0;
}

.match-section {
  margin-bottom: 28px;
}

.match-section h2 {
  font-size: 1.45rem;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.match-intro {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.match-deal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.match-deal-card {
  border: 2px solid var(--mid-gray);
  border-radius: var(--radius-xl);
  padding: 18px;
  background: var(--light-gray);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.match-deal-card.selected {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.match-deal-card.perfect-match {
  border-color: #86efac;
}

.match-deal-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.match-deal-card-header input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-600);
}

.match-deal-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 4px;
}

.match-deal-card-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.match-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.match-badge.perfect {
  background: #dcfce7;
  color: #166534;
}

.match-badge.close {
  background: #fef9c3;
  color: #854d0e;
}

.match-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.match-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.match-feature.match {
  background: #dcfce7;
  color: #166534;
}

.match-feature.no-match {
  background: #fee2e2;
  color: #991b1b;
}

.match-feature.unsure,
.match-feature.not-selected {
  background: #fef9c3;
  color: #854d0e;
}

.match-feature-note {
  font-weight: 500;
  opacity: 0.9;
}

.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.match-actions .btn {
  flex: 1 1 180px;
}

/* Success View */
.success-content {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 52, 120, 0.08);
  border-radius: 50%;
  color: var(--ford-blue);
  animation: successPop 0.6s ease;
}

@keyframes successPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.success-content h2 {
  font-size: 2rem;
  color: var(--dark-navy);
  margin-bottom: 12px;
}

.success-content p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.success-content .btn {
  margin-top: 28px;
}

/* Submit Loader */
.submit-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.submit-loader.active {
  opacity: 1;
  visibility: visible;
}

.loader-content {
  text-align: center;
  color: var(--white);
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--white);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

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

/* Vehicle Detail Modal */
.vehicle-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 22, 40, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.vehicle-detail-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vehicle-detail-modal {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.vehicle-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.vehicle-detail-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
}

.vehicle-detail-gallery {
  background: var(--light-gray);
  padding: 24px;
}

.vehicle-detail-main-image {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mid-gray);
}

.vehicle-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-detail-main-image img.placeholder {
  object-fit: contain;
  padding: 48px;
  opacity: 0.45;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.vehicle-detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.vehicle-detail-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 66px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.vehicle-detail-thumb.active {
  border-color: var(--ford-blue);
}

.vehicle-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-detail-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vehicle-detail-info h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--dark-navy);
  line-height: 1.2;
}

.vehicle-detail-stock {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.vehicle-detail-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ford-blue);
}

.vehicle-detail-section h3 {
  font-size: 0.95rem;
  color: var(--dark-navy);
  margin-bottom: 10px;
}

.vehicle-detail-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.vehicle-detail-actions {
  margin-top: auto;
  padding-top: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .meet-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .meet-profile {
    padding: 28px 24px;
  }

  .meet-profile-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .meet-actions {
    flex-direction: column;
  }

  .meet-actions .btn {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 100px;
  }

  .section-desc {
    font-size: 1.1rem;
  }

  .section {
    padding: 72px 0;
  }

  .questionnaire-modal {
    padding: 32px 24px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .map-wrapper {
    aspect-ratio: 4/3;
  }

  .legal-container {
    padding: 32px 24px;
  }

  .vehicle-detail-content {
    grid-template-columns: 1fr;
  }

  .vehicle-detail-info {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .form-nav {
    flex-direction: column;
  }

  .form-nav .btn {
    width: 100%;
  }
}
