/* ==========================================================================
   Pristine Auto Care — Design Tokens
   Palette: deep navy + royal blue + ice white (per brief: blue & white, clean/simple)
   Display face: Space Grotesk (precise, geometric — automotive feel)
   Body face: Inter
   Signature element: the "wash line" progress track — a slim rail with a
   car glyph that rides the fill edge as the customer moves through the quote.
   ========================================================================== */

:root {
  --navy: #0a1e3f;
  --navy-soft: #12294f;
  --blue: #1857f0;
  --blue-light: #4c86ff;
  --ice: #eef3fb;
  --ice-deep: #dee9fb;
  --white: #ffffff;
  --slate: #5b6b84;
  --slate-light: #8a97ab;
  --success: #1aa35c;
  --line: #d7e2f3;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 30px -12px rgba(10, 30, 63, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(10, 30, 63, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--navy);
}

a { color: inherit; }

button { font-family: var(--font-body); }

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   LANDING PAGE
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  position: relative;
  padding: 96px 24px 120px;
  background:
    radial-gradient(1100px 500px at 15% -10%, #dfeaff 0%, rgba(223,234,255,0) 60%),
    var(--white);
  overflow: hidden;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--slate);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--slate-light);
}

/* Hero visual: stylised "wash line" scene made of shapes, no stock photo */
.hero-visual {
  position: relative;
  height: 380px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 55%, var(--blue) 130%);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual .sheen {
  position: absolute;
  inset: -40% -10%;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  animation: sheen 5s ease-in-out infinite;
}

@keyframes sheen {
  0%, 100% { transform: translateX(-15%); }
  50% { transform: translateX(15%); }
}

.hero-visual .track {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 70px;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
}

.hero-visual .track-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 62%;
  background: linear-gradient(90deg, var(--blue-light), #9fc1ff);
  border-radius: 2px;
}

.hero-visual .car-glyph {
  position: absolute;
  bottom: 62px;
  left: calc(62% - 20px);
  width: 44px; height: 44px;
  animation: drive 3.2s ease-in-out infinite;
}

@keyframes drive {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.hero-visual .stat-card {
  position: absolute;
  top: 28px;
  left: 28px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--white);
  backdrop-filter: blur(6px);
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-card .label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

/* ---------- Services strip ---------- */

.section {
  padding: 88px 24px;
}

.section-ice {
  background: var(--ice);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.6;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.vehicle-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.vehicle-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--blue-light);
}

.vehicle-tile .icon {
  width: 40px; height: 40px;
  margin-bottom: 14px;
  color: var(--blue);
}

.vehicle-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.vehicle-tile p {
  font-size: 0.9rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}

/* ---------- How it works ---------- */

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.step-card {
  position: relative;
  padding: 28px 20px;
}

.step-card .step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Final CTA ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft) 60%, var(--blue) 140%);
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 30px; }

.footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--slate-light);
  font-size: 0.85rem;
}

/* ==========================================================================
   BOOKING WIZARD
   ========================================================================== */

.wizard-shell {
  min-height: 100vh;
  background: var(--ice);
}

.wizard-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.wizard-top-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px;
}

.wizard-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.wizard-brand .logo { font-size: 1rem; }

.back-link {
  font-size: 0.85rem;
  color: var(--slate);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Signature progress rail with riding car glyph */
.rail {
  position: relative;
  height: 8px;
  background: var(--ice-deep);
  border-radius: 999px;
  overflow: visible;
}

.rail-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width 0.45s cubic-bezier(.4,0,.2,1);
  width: 4%;
  position: relative;
}

.rail-car {
  position: absolute;
  top: 50%;
  right: -13px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  transition: right 0.45s cubic-bezier(.4,0,.2,1);
}

.rail-label {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--slate-light);
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.wizard-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}

.step-panel {
  display: none;
  animation: rise 0.35s ease;
}

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

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 8px;
}

.step-sub {
  color: var(--slate);
  margin-bottom: 32px;
  font-size: 1rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.option-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  font-family: var(--font-body);
  color: var(--navy);
}

.option-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-sm);
}

.option-card:active { transform: scale(0.98); }

.option-card.selected {
  border-color: var(--blue);
  background: #f2f7ff;
  box-shadow: 0 0 0 3px rgba(24,87,240,0.12);
}

.option-card .oc-icon {
  width: 30px; height: 30px;
  color: var(--blue);
  margin-bottom: 12px;
}

.option-card .oc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.option-card .oc-sub {
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.4;
}

.wizard-nav {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Quote summary ---------- */

.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.quote-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.96rem;
}

.quote-line:last-of-type { border-bottom: none; }

.quote-line .ql-label { color: var(--navy); }
.quote-line .ql-sub { color: var(--slate-light); font-size: 0.8rem; display: block; margin-top: 2px; }
.quote-line .ql-amount { font-family: var(--font-display); font-weight: 600; }

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

.quote-total .qt-label { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.quote-total .qt-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--blue); }

/* ---------- Form fields ---------- */

.field {
  margin-bottom: 18px;
}

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

.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--white);
}

.field input:focus, .field textarea:focus {
  border-color: var(--blue);
}

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

/* ---------- Calendar ---------- */

.calendar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-head .cal-month {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.cal-nav-btn {
  background: var(--ice);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}

.cal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-dow {
  text-align: center;
  font-size: 0.72rem;
  color: var(--slate-light);
  font-weight: 600;
  padding-bottom: 6px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--navy);
}

.cal-day:hover:not(:disabled) { background: var(--ice); }

.cal-day:disabled {
  color: var(--line);
  cursor: not-allowed;
}

.cal-day.selected {
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.time-slot {
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 0.88rem;
  text-align: center;
}

.time-slot:hover { border-color: var(--blue-light); }

.time-slot.selected {
  border-color: var(--blue);
  background: #f2f7ff;
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Confirmation ---------- */

.confirm-wrap {
  text-align: center;
  padding: 20px 0;
}

.confirm-badge {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #e6f7ee;
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
}

.error-text {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 1.2em;
}

.sending-note {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-top: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 260px; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .option-grid { grid-template-columns: 1fr 1fr; }
  .option-grid.cols-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .sheen, .hero-visual .car-glyph { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
