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

:root {
  --orange:     #e85d04;
  --orange-lt:  #f48c06;
  --dark:       #0a0a0a;
  --dark-2:     #111111;
  --dark-3:     #1a1a1a;
  --dark-4:     #222222;
  --mid:        #2e2e2e;
  --line:       rgba(255,255,255,0.08);
  --text:       #e0e0e0;
  --text-muted: #888;
  --white:      #ffffff;
  --green:      #22c55e;
  --red:        #ef4444;
  --font-head:  'Oswald', sans-serif;
  --font-body:  'Inter', sans-serif;
  --radius:     8px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── HEADER ─────────────────────────────────────────────── */
.bk-header {
  background: var(--dark-2);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.bk-header__inner {
  max-width: 680px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
}
.bk-header__brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
  white-space: nowrap;
}
.bk-header__icon { font-size: 1.3rem; }
.bk-header__title {
  color: var(--orange); font-size: 0.85rem; font-weight: 500;
  margin-left: auto; white-space: nowrap;
}
.bk-header__actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

/* ─── MAIN ────────────────────────────────────────────────── */
.bk-main {
  max-width: 680px; margin: 0 auto;
  padding: 32px 20px 80px;
  display: flex; flex-direction: column; gap: 20px;
}

/* ─── SPLASH ──────────────────────────────────────────────── */
.bk-splash { display: flex; justify-content: center; align-items: center; min-height: 240px; }
.bk-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--line); border-top-color: var(--orange);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── SIGN-IN SCREEN ─────────────────────────────────────── */
.bk-auth {
  text-align: center; padding: 48px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.bk-auth__brand { font-size: 3.5rem; margin-bottom: 20px; }
.bk-auth h1 {
  font-family: var(--font-head); font-size: 2rem; color: var(--white);
  margin-bottom: 10px; letter-spacing: 0.02em;
}
.bk-auth h1 span { color: var(--orange); }
.bk-auth p { color: var(--text-muted); max-width: 380px; margin-bottom: 32px; }
.bk-auth__btns {
  display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 340px;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 22px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  cursor: pointer; border: none; transition: background var(--transition), opacity var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn--orange { background: var(--orange); color: var(--white); width: 100%; }
.btn--orange:hover:not(:disabled) { background: var(--orange-lt); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); width: 100%; }
.btn--ghost:hover:not(:disabled) { background: var(--dark-3); }
.btn--sm { padding: 7px 16px; font-size: 0.85rem; width: auto; }
.btn--link { background: none; border: none; color: var(--orange); padding: 0; font-size: inherit; cursor: pointer; width: auto; text-decoration: underline; }

/* ─── SECTION LABEL ──────────────────────────────────────── */
.section-label {
  font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ─── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--dark-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.card h2 {
  font-family: var(--font-head); font-size: 1.25rem; color: var(--white);
  letter-spacing: 0.03em; margin-bottom: 16px;
}

/* ─── SERVICE GRID ───────────────────────────────────────── */
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.svc-card {
  background: var(--dark-4); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; cursor: pointer; transition: border-color var(--transition), background var(--transition);
  text-align: left; display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-body);
}
.svc-card:hover { border-color: var(--orange); background: rgba(232,93,4,0.06); }
.svc-card.active { border-color: var(--orange); background: rgba(232,93,4,0.12); }
.svc-card__name { font-weight: 600; font-size: 0.9rem; color: var(--white); }
.svc-card__meta { font-size: 0.78rem; color: var(--text-muted); }
.svc-card__desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ─── VEHICLE PICKER ────────────────────────────────────── */
.vehicle-grid {
  display: flex; flex-direction: column; gap: 8px;
}
.vehicle-card {
  background: var(--dark-4); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; transition: border-color var(--transition), background var(--transition);
  text-align: left; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body); width: 100%;
}
.vehicle-card:hover { border-color: var(--orange); background: rgba(232,93,4,0.06); }
.vehicle-card.active { border-color: var(--orange); background: rgba(232,93,4,0.12); }
.vehicle-card__name { font-weight: 600; font-size: 0.95rem; color: var(--white); }
.vehicle-card__vin { font-size: 0.78rem; color: var(--text-muted); font-family: monospace; }
.vehicle-card--add .vehicle-card__name { color: var(--orange-lt); font-weight: 500; }
.vehicle-card--add:not(.active) { border-style: dashed; }

/* ─── DATE / SLOT PICKER ─────────────────────────────────── */
.date-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.date-input {
  background: var(--dark-4); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--white); padding: 8px 12px; font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color var(--transition);
}
.date-input:focus { border-color: var(--orange); }
.slot-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.slot-btn {
  background: var(--dark-4); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); padding: 7px 14px; font-family: var(--font-body); font-size: 0.85rem;
  cursor: pointer; transition: border-color var(--transition), background var(--transition);
}
.slot-btn:hover { border-color: var(--orange); }
.slot-btn.selected { background: var(--orange); border-color: var(--orange); color: var(--white); font-weight: 600; }
.no-slots { color: var(--text-muted); font-size: 0.88rem; }

/* ─── FORM FIELDS ────────────────────────────────────────── */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.field input,
.field textarea,
.field select {
  background: var(--dark-4); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--white); padding: 10px 14px; font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color var(--transition);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }

/* ─── VIN ROW ────────────────────────────────────────────── */
.vin-row { display: flex; gap: 8px; align-items: stretch; }
.vin-row input { flex: 1; }
.vin-camera {
  flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--dark-4); transition: background var(--transition);
  user-select: none;
}
.vin-camera:hover { background: var(--mid); }
.vin-hint { font-size: 0.8rem; color: var(--orange-lt); margin-top: 4px; min-height: 1.2em; }

/* ─── SELECTED SLOT CHIP ─────────────────────────────────── */
.selected-slot {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,93,4,0.12); border: 1px solid rgba(232,93,4,0.35);
  border-radius: 20px; padding: 5px 14px; font-size: 0.88rem; color: var(--orange-lt);
}
.selected-slot button {
  background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem;
  line-height: 1; padding: 0; transition: color var(--transition);
}
.selected-slot button:hover { color: var(--white); }

/* ─── REVIEW BOX ─────────────────────────────────────────── */
.review-box {
  background: var(--dark-4); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; font-size: 0.88rem; display: flex; flex-direction: column; gap: 8px;
}
.review-row { display: flex; gap: 8px; }
.review-row .lbl { color: var(--text-muted); min-width: 90px; }
.review-row .val { color: var(--white); font-weight: 500; }

/* ─── STATUS / ERROR ─────────────────────────────────────── */
.status-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius); padding: 12px 16px; color: var(--red); font-size: 0.9rem;
}
.status-success {
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius); padding: 12px 16px; color: var(--green); font-size: 0.9rem;
}

/* ─── BOOKING AS (contact summary) ──────────────────────── */
.booking-as {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.booking-as__label {
  font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; font-weight: 500;
}
.booking-as__info {
  font-size: 0.9rem; color: var(--text); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline;
}
.booking-as__info strong { color: var(--white); }

/* ─── CONFIRM SCREEN ─────────────────────────────────────── */
.confirm-screen {
  text-align: center; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.confirm-screen__icon { font-size: 3rem; }
.confirm-screen h2 {
  font-family: var(--font-head); font-size: 1.8rem; color: var(--white); letter-spacing: 0.03em;
}
.confirm-screen h2 span { color: var(--orange); }
.confirm-screen p { color: var(--text-muted); max-width: 400px; }
.confirm-screen__actions {
  display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px;
}

@media (max-width: 600px) {
  .bk-main  { padding: 16px 12px 60px; gap: 14px; }
  .card     { padding: 16px; }
  .card h2  { font-size: 1.1rem; margin-bottom: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 10px; }
  .svc-grid  { grid-template-columns: 1fr 1fr; }
  .bk-auth h1 { font-size: 1.6rem; }
  .bk-auth p  { font-size: 0.9rem; }
  .slot-grid  { gap: 6px; }
  .slot-btn   { padding: 10px 12px; font-size: 0.9rem; min-height: 44px; }
  .vehicle-card { padding: 14px; min-height: 56px; }
  .date-input   { min-height: 44px; }
  .field input, .field textarea, .field select { min-height: 44px; font-size: 1rem; }
  .btn { min-height: 48px; font-size: 1rem; }
  .bk-header__inner { padding: 12px 14px; gap: 8px; }
  .bk-header__title { font-size: 0.75rem; }
}
