/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --blue: #1d4ed8;
  --bg: #f1f5f9;
  --white: #ffffff;
  --text: #0f172a;
  --text-mid: #374151;
  --text-light: #6b7280;
  --border: #e2e8f0;
  --radius: 10px;
  --radius-sm: 6px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  font-size: 14px;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ===== HEADER ===== */
header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
}

.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  color: white;
}

.logo-mark {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 900; color: white;
}

.logo-text { line-height: 1.2; }
.logo-text strong { display: block; font-size: 16px; font-weight: 700; color: white; }
.logo-text span { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.5px; }

nav { display: flex; align-items: center; gap: 4px; }

nav a {
  color: rgba(255,255,255,0.65);
  font-size: 14px; padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  font-weight: 500;
}

nav a:hover { color: white; background: rgba(255,255,255,0.08); }

.nav-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.12); margin: 0 4px; }

.btn-nav-outline {
  border: 1px solid rgba(255,255,255,0.25);
  color: white !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-sm) !important;
}

.btn-nav-outline:hover { border-color: rgba(255,255,255,0.5) !important; background: transparent !important; }

.btn-nav-primary {
  background: var(--blue) !important;
  color: white !important;
  padding: 7px 18px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.btn-nav-primary:hover { background: #1e40af !important; }

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  padding: 56px 32px 72px;
}

.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 64px; align-items: center;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(29,78,216,0.2);
  border: 1px solid rgba(29,78,216,0.4);
  color: #93c5fd;
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 20px; letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 42px; font-weight: 800;
  color: white; line-height: 1.2;
  letter-spacing: -1px; margin-bottom: 16px;
}

.hero h1 em { color: #60a5fa; font-style: normal; }

.hero p {
  color: rgba(255,255,255,0.55);
  font-size: 15px; line-height: 1.7;
  margin-bottom: 32px; max-width: 460px;
}

.hero-features {
  display: flex; gap: 24px; flex-wrap: wrap;
}

.hero-feature {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); font-size: 13px;
}

.hero-feature-dot {
  width: 6px; height: 6px;
  background: #60a5fa; border-radius: 50%;
  flex-shrink: 0;
}

/* Search Card */
.search-card {
  background: white;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.search-card h3 {
  font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 20px;
}

.search-form { display: flex; flex-direction: column; gap: 14px; }

.field label {
  display: block; font-size: 11px;
  font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.7px;
  margin-bottom: 6px;
}

.field input, .field select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text);
  background: #fafafa;
  transition: border-color 0.15s;
  appearance: none;
}

.field input:focus, .field select:focus {
  outline: none; border-color: var(--blue);
  background: white;
}

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

.btn-search {
  width: 100%; padding: 12px;
  background: var(--navy); color: white;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  transition: background 0.15s; margin-top: 4px;
}

.btn-search:hover { background: var(--navy-light); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: white;
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  display: flex;
}

.stat {
  flex: 1; padding: 18px 0;
  display: flex; align-items: center; gap: 12px;
  border-right: 1px solid var(--border);
  padding-left: 32px;
}

.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; }

.stat-num { font-size: 24px; font-weight: 800; color: var(--navy); }
.stat-num small { font-size: 14px; color: var(--blue); }
.stat-label { font-size: 13px; color: var(--text-light); font-weight: 500; }

/* ===== MAIN CONTENT ===== */
.main {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 32px;
}

.section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap; gap: 12px;
}

.section-head h2 {
  font-size: 26px; font-weight: 800;
  color: var(--navy); letter-spacing: -0.5px;
}

.section-head p {
  color: var(--text-light); font-size: 14px; margin-top: 4px;
}

.section-link {
  font-size: 13px; font-weight: 600;
  color: var(--blue); white-space: nowrap;
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab {
  padding: 7px 18px;
  border: 1.5px solid var(--border);
  background: white; color: var(--text-mid);
  border-radius: 20px;
  font-size: 13px; font-weight: 600;
  transition: all 0.15s;
}

.tab:hover { border-color: var(--navy); color: var(--navy); }
.tab.active { background: var(--navy); border-color: var(--navy); color: white; }

/* ===== VEHICLE GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ===== VEHICLE CARD ===== */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.card-img {
  position: relative;
  background: #f8fafc;
  height: 190px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s;
}

.card:hover .card-img img { transform: scale(1.04); }

.card-cat {
  position: absolute; top: 14px; left: 14px;
  background: white;
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.8px;
}

.card-body { padding: 20px; }

.card-name {
  font-size: 18px; font-weight: 800;
  color: var(--navy); margin-bottom: 16px;
}

/* Specs */
.specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 0;
  margin-bottom: 20px;
}

.spec {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-mid); font-size: 13px;
}

.spec svg {
  width: 16px; height: 16px;
  color: var(--text-light); flex-shrink: 0;
}

/* Price section */
.card-price-wrap {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.price-label {
  font-size: 10px; font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 6px;
}

.price-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; flex-wrap: wrap;
}

.price-amount {
  font-size: 26px; font-weight: 800;
  color: var(--navy); letter-spacing: -0.5px;
}

.payment-logos {
  display: flex; align-items: center; gap: 5px;
}

.visa-logo {
  background: #1a1f71; color: #fff;
  font-size: 9px; font-weight: 900;
  font-style: italic; padding: 3px 6px;
  border-radius: 3px; letter-spacing: -0.5px;
}

.mc-logo {
  width: 24px; height: 15px;
  position: relative; display: inline-block;
}

.mc-logo::before, .mc-logo::after {
  content: ''; position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px;
  border-radius: 50%;
}

.mc-logo::before { background: #eb001b; left: 0; }
.mc-logo::after { background: #f79e1b; right: 0; mix-blend-mode: normal; opacity: 0.85; }

.discount-badge {
  background: #dcfce7; color: #15803d;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  white-space: nowrap;
}

.btn-reserve {
  width: 100%;
  background: var(--navy); color: white;
  border: none; padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.15s;
}

.btn-reserve:hover { background: var(--navy-light); }

.btn-reserve svg {
  width: 16px; height: 16px;
}

/* ===== WHY US ===== */
.why {
  background: var(--navy);
  margin-top: 16px;
}

.why-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 56px 32px;
}

.why-title {
  text-align: center; font-size: 28px;
  font-weight: 800; color: white;
  margin-bottom: 40px; letter-spacing: -0.5px;
}

.why-title span { color: #60a5fa; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.why-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: background 0.15s;
}

.why-item:hover { background: rgba(255,255,255,0.08); }

.why-icon {
  font-size: 24px; margin-bottom: 12px;
}

.why-item h4 {
  font-size: 14px; font-weight: 700;
  color: white; margin-bottom: 6px;
}

.why-item p {
  font-size: 13px; color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
  background: #060d1a;
  color: rgba(255,255,255,0.4);
}

.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 48px 32px 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,0.35);
  margin-top: 14px; max-width: 280px;
}

.footer-col h5 {
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px; letter-spacing: 0.3px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  font-size: 13px; color: rgba(255,255,255,0.35);
  transition: color 0.15s;
}
.footer-col a:hover { color: rgba(255,255,255,0.7); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; font-size: 12px;
  flex-wrap: wrap; gap: 8px;
}

/* ===== AUTH PAGES ===== */
.page-bg {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  justify-content: center; padding: 40px 24px;
  background: var(--bg);
}

.auth-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  width: 100%; max-width: 460px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.auth-top {
  background: var(--navy);
  padding: 32px 36px; text-align: center;
}

.auth-top h2 { color: white; font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.auth-top p { color: rgba(255,255,255,0.5); font-size: 13px; }

.auth-body { padding: 32px 36px; }

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

.field-group label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-mid); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

.field-group input, .field-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text);
  background: #fafafa; transition: border-color 0.15s;
  appearance: none; font-family: inherit;
}

.field-group input:focus, .field-group select:focus {
  outline: none; border-color: var(--blue); background: white;
}

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

.btn-main {
  width: 100%; padding: 13px;
  background: var(--navy); color: white;
  border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  transition: background 0.15s; margin-top: 6px;
}

.btn-main:hover { background: var(--navy-light); }

.auth-note {
  text-align: center; margin-top: 20px;
  font-size: 13px; color: var(--text-light);
}

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

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--text-light); font-size: 12px;
}

.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.checkbox-wrap {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 14px;
}

.checkbox-wrap input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px;
  accent-color: var(--navy); flex-shrink: 0;
}

.checkbox-wrap label { font-size: 13px; color: var(--text-light); line-height: 1.5; }
.checkbox-wrap label a { color: var(--blue); }

/* ===== PAYMENT PAGE ===== */
.payment-layout {
  max-width: 1000px; margin: 0 auto;
  padding: 40px 24px;
  display: grid; grid-template-columns: 1fr 340px;
  gap: 24px; align-items: start;
}

.pcard {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.pcard-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.pcard-head h3 { font-size: 15px; font-weight: 700; color: var(--navy); }
.pcard-head p { font-size: 12px; color: var(--text-light); margin-top: 2px; }

.pcard-body { padding: 24px; }

.iban-display {
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 24px; text-align: center;
  margin-bottom: 20px;
}

.iban-display .bank { color: rgba(255,255,255,0.5); font-size: 12px; margin-bottom: 8px; }
.iban-display .holder { color: white; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.iban-display .iban { color: white; font-size: 18px; font-weight: 800; letter-spacing: 2px; font-family: monospace; }

.copy-btn {
  margin-top: 14px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; padding: 7px 18px; border-radius: 4px;
  font-size: 12px; font-weight: 600;
}

.copy-btn:hover { background: rgba(255,255,255,0.18); }

.step-list { margin-bottom: 20px; }

.step {
  display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start;
}

.step-n {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: white;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.step-text strong { font-size: 13px; display: block; color: var(--text); }
.step-text span { font-size: 12px; color: var(--text-light); }

.info-box {
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 13px; line-height: 1.6; margin-bottom: 16px;
  display: flex; gap: 8px;
}

.info-box.blue { background: #eff6ff; color: #1e40af; }
.info-box.yellow { background: #fefce8; color: #a16207; border-left: 3px solid #facc15; }
.info-box.green { background: #f0fdf4; color: #15803d; }

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px; text-align: center;
  cursor: pointer; background: #fafafa;
  transition: all 0.15s;
}

.upload-zone:hover { border-color: var(--blue); background: #eff6ff; }
.upload-zone input { display: none; }
.upload-zone p { font-size: 13px; color: var(--text-light); margin-top: 6px; }
.upload-zone strong { color: var(--blue); }

/* Summary sidebar */
.summary-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  position: sticky; top: 80px;
}

.summary-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.summary-head h3 { font-size: 14px; font-weight: 700; color: var(--navy); }

.summary-body { padding: 20px; }

.summary-vehicle {
  display: flex; gap: 12px; align-items: center;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.summary-vehicle-img {
  width: 64px; height: 48px;
  background: #f1f5f9; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}

.summary-vehicle-name { font-weight: 700; font-size: 14px; color: var(--navy); }
.summary-vehicle-cat { font-size: 12px; color: var(--text-light); }

.summary-row {
  display: flex; justify-content: space-between;
  margin-bottom: 10px; font-size: 13px;
}

.summary-row .lbl { color: var(--text-light); }
.summary-row .val { font-weight: 600; color: var(--text); }

.summary-total {
  border-top: 2px solid var(--navy);
  padding-top: 14px; margin-top: 6px;
  display: flex; justify-content: space-between; align-items: baseline;
}

.summary-total .lbl { font-weight: 700; color: var(--navy); font-size: 14px; }
.summary-total .val { font-weight: 900; color: var(--navy); font-size: 22px; }

/* ===== SUCCESS ===== */
.success-wrap {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  justify-content: center; padding: 40px 24px;
}

.success-box {
  background: white; border: 1px solid var(--border);
  border-radius: 14px; padding: 48px 40px;
  text-align: center; max-width: 460px; width: 100%;
}

.success-icon { font-size: 52px; margin-bottom: 16px; }
.success-box h2 { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.success-box p { color: var(--text-light); font-size: 14px; margin-bottom: 24px; }

.res-code {
  background: var(--bg); border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm); padding: 16px; margin-bottom: 24px;
}

.res-code .code-label {
  font-size: 11px; color: var(--text-light);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}

.res-code .code {
  font-size: 26px; font-weight: 900; color: var(--navy);
  letter-spacing: 4px; margin-top: 4px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--navy); color: white;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  z-index: 9999; opacity: 0; transform: translateY(12px);
  transition: all 0.25s; pointer-events: none;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok { background: #166534; }
.toast.err { background: #991b1b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .search-card { max-width: 560px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .payment-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  nav .desktop-nav { display: none; }
  .hero { padding: 40px 20px 56px; }
  .hero h1 { font-size: 30px; }
  .stats-inner { flex-wrap: wrap; }
  .stat { flex: 1 1 40%; }
  .main { padding: 32px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .auth-body { padding: 24px 20px; }
  .auth-top { padding: 24px 20px; }
  .field-row-2 { grid-template-columns: 1fr; }
}
