/* ===== CSS Variables ===== */
:root {
  --bg: #0a0f1a;
  --bg-alt: #0d1424;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.1);
  --text: rgba(255,255,255,0.92);
  --text-muted: rgba(255,255,255,0.6);
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-soft: rgba(16,185,129,0.15);
  --secondary: #3b82f6;
  --secondary-soft: rgba(59,130,246,0.15);
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --transition: 200ms ease;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: rgba(0,0,0,0.03);
  --surface-2: rgba(0,0,0,0.06);
  --border: rgba(0,0,0,0.1);
  --text: rgba(0,0,0,0.9);
  --text-muted: rgba(0,0,0,0.55);
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* ===== Reset ===== */
*,*::before,*::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
ul,ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: none; margin: 0; padding: 0; }
button { font-family: inherit; }

/* ===== Utilities ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.skip-link:focus { left: 16px; }
.desktop-only { display: none; }
@media (min-width: 768px) { .desktop-only { display: inline-flex; } }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; font-size: 14px; font-weight: 500; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: var(--secondary-soft); border-color: var(--secondary); color: var(--secondary); }
.btn-secondary:hover { background: var(--secondary); color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; gap: 6px; }
.btn-icon .icon { width: 18px; height: 18px; }

/* Theme toggle icons */
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: block; }

/* ===== Header ===== */
.header { position: sticky; top: 0; z-index: 100; background: rgba(10,15,26,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
[data-theme="light"] .header { background: rgba(248,250,252,0.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 18px; }
.nav { display: none; gap: 8px; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav-link { padding: 8px 14px; border-radius: var(--radius); color: var(--text-muted); font-size: 14px; transition: all var(--transition); }
.nav-link:hover { color: var(--text); background: var(--surface); }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ===== Mobile CTA ===== */
.mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; padding: 12px 16px; background: rgba(10,15,26,0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
[data-theme="light"] .mobile-cta { background: rgba(248,250,252,0.95); }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* ===== Hero ===== */
.hero { padding: 48px 0 32px; }
.hero-inner { display: grid; gap: 32px; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 48px; } }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 9999px; color: var(--accent); font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.hero-title { font-size: clamp(28px, 5vw, 48px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 16px; }
.hero-subtitle { color: var(--text-muted); font-size: 17px; max-width: 540px; margin-bottom: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.trust-list { display: flex; flex-direction: column; gap: 20px; }
.trust-item { display: flex; align-items: flex-start; gap: 14px; }
.trust-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); border-radius: 10px; color: var(--accent); flex-shrink: 0; }
.trust-icon svg { width: 22px; height: 22px; }
.trust-text { display: flex; flex-direction: column; gap: 2px; }
.trust-text strong { font-size: 15px; font-weight: 600; }
.trust-text span { font-size: 13px; color: var(--text-muted); }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-header h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 16px; }

/* ===== Fleet ===== */
.category-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.category-tab { padding: 10px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 9999px; color: var(--text-muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: all var(--transition); }
.category-tab:hover { background: var(--surface-2); color: var(--text); }
.category-tab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.fleet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.car-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); cursor: pointer; }
.car-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.car-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.car-image { aspect-ratio: 16/10; background: var(--surface-2); position: relative; overflow: hidden; }
.car-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); object-position: center 60%; }
.car-image.loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.car-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 8px; color: var(--text-muted); }
.car-placeholder svg { width: 48px; height: 48px; opacity: 0.5; }

.car-thumbs { display: flex; gap: 6px; padding: 8px; background: var(--bg); overflow-x: auto; }
.car-thumb { width: 48px; height: 32px; border-radius: 6px; object-fit: cover; cursor: pointer; opacity: 0.6; transition: opacity var(--transition); flex-shrink: 0; border: 2px solid transparent; }
.car-thumb:hover, .car-thumb.active { opacity: 1; }
.car-thumb.active { border-color: var(--accent); }

.car-info { padding: 16px; }
.car-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.car-category { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.car-tag { display: inline-block; padding: 4px 10px; background: var(--surface-2); border-radius: 6px; font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.car-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.car-spec { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); padding: 4px 8px; background: var(--surface); border-radius: var(--radius); }
.car-spec .icon { width: 14px; height: 14px; }

.fleet-actions { text-align: center; margin-top: 32px; }
.fleet-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 32px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); font-size: 14px; }
.fleet-note .icon { flex-shrink: 0; color: var(--accent); }

/* ===== Stepper ===== */
.stepper-wrap { max-width: 720px; margin: 0 auto; }
.stepper-progress { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; }
.step-indicator { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-indicator span { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 2px solid var(--border); border-radius: 50%; font-weight: 600; font-size: 14px; transition: all var(--transition); }
.step-indicator small { font-size: 12px; color: var(--text-muted); display: none; }
@media (min-width: 500px) { .step-indicator small { display: block; } }
.step-indicator.active span, .step-indicator.completed span { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-indicator.completed span { background: var(--accent-hover); }
.step-line { width: 40px; height: 2px; background: var(--border); margin: 0 8px; margin-bottom: 20px; }
@media (min-width: 500px) { .step-line { width: 60px; } }

.stepper-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; }
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-panel h3 { font-size: 18px; margin-bottom: 24px; }

.form-grid { display: grid; gap: 20px; }
@media (min-width: 500px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field-checkbox { flex-direction: row; align-items: center; gap: 8px; grid-column: 1 / -1; padding: 8px 0; }
.field-align-checkbox { display: flex; align-items: center; padding-top: 28px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.field input, .field select, .field textarea { padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition); width: 100%; box-sizing: border-box; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.error, .field select.error { border-color: var(--danger); }
.field input[readonly] { cursor: pointer; }
.field-error { font-size: 12px; color: var(--danger); min-height: 18px; }
.field textarea { resize: vertical; min-height: 80px; }

.contact-hint { grid-column: 1 / -1; font-size: 13px; color: var(--text-muted); margin-top: -12px; }
.contact-hint.error-text { color: var(--danger); }

/* Flatpickr customization */
.flatpickr-calendar { font-family: inherit; border-radius: var(--radius); box-shadow: var(--shadow); }
.flatpickr-day.selected { background: var(--accent) !important; border-color: var(--accent) !important; }

.selected-vehicle { text-align: center; padding: 24px; background: var(--bg); border-radius: var(--radius); }
.selected-vehicle .no-vehicle { color: var(--text-muted); margin-bottom: 16px; }
.selected-vehicle.has-vehicle { display: flex; align-items: center; gap: 16px; text-align: left; }
.selected-vehicle.has-vehicle .vehicle-thumb { width: 100px; height: 66px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.selected-vehicle.has-vehicle .vehicle-info { flex: 1; }
.selected-vehicle.has-vehicle .vehicle-name { font-weight: 600; font-size: 16px; }
.selected-vehicle.has-vehicle .vehicle-cat { font-size: 13px; color: var(--text-muted); }
.selected-vehicle.has-vehicle .change-btn { font-size: 13px; color: var(--accent); cursor: pointer; }
.selected-vehicle.has-vehicle .change-btn:hover { text-decoration: underline; }

.review-summary { margin-top: 24px; padding: 20px; background: var(--bg); border-radius: var(--radius); }
.review-summary h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text-muted); }
.review-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.review-row:last-child { border-bottom: none; }
.review-row span:first-child { color: var(--text-muted); }

.stepper-nav { display: flex; justify-content: space-between; margin-top: 32px; gap: 16px; }

/* ===== How It Works ===== */
.steps-list { display: grid; gap: 20px; }
@media (min-width: 768px) { .steps-list { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step-card { display: flex; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step-num { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 18px; font-weight: 700; border-radius: 50%; flex-shrink: 0; }
.step-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step-body p { font-size: 14px; color: var(--text-muted); }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.7); padding: 20px; }
.modal[hidden] { display: none; }
.modal-content { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; max-width: 400px; text-align: center; }
.modal-icon { width: 64px; height: 64px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.modal-icon.success { background: var(--accent-soft); color: var(--accent); }
.modal-icon svg { width: 32px; height: 32px; }
.modal-content h2 { font-size: 24px; margin-bottom: 12px; }
.modal-content > p { color: var(--text-muted); margin-bottom: 24px; }

/* ===== WhatsApp Float ===== */
.whatsapp-float { position: fixed; bottom: 80px; right: 20px; z-index: 95; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: #25d366; color: #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(37,211,102,0.4); transition: all var(--transition); }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; }
@media (min-width: 768px) { .whatsapp-float { bottom: 24px; right: 24px; } }

/* ===== Footer ===== */
.footer { padding: 40px 0; border-top: 1px solid var(--border); margin-bottom: 72px; }
@media (min-width: 768px) { .footer { margin-bottom: 0; } }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 40px; height: 40px; border-radius: 8px; }
.footer-brand strong { font-size: 16px; }
.footer-brand span { display: block; font-size: 13px; color: var(--text-muted); }
.footer-contact { text-align: center; }
.footer-contact p { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.footer-contact a { color: var(--accent); transition: color var(--transition); }
.footer-contact a:hover { color: var(--accent-hover); }
.footer-copy { font-size: 13px; color: var(--text-muted); }
