/* ── The Valet Van — Public Stylesheet ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a2744;
  --navy2:  #243660;
  --green:  #00c853;
  --green2: #00b248;
  --white:  #ffffff;
  --light:  #f0f4f8;
  --border: #e2e8f0;
  --text:   #1a202c;
  --muted:  #64748b;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a  { color: var(--navy); }

/* ── Navigation ────────────────────────────────────────────────────────── */
.site-nav {
  background: var(--navy);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--green); }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .95rem;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-book-btn {
  background: var(--green);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: .9rem;
}
.nav-book-btn:hover { background: var(--green2) !important; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #1e3a5f 100%);
  color: #fff;
  padding: 80px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1 em {
  color: var(--green);
  font-style: normal;
}
.hero p {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 520px;
  margin: 0 auto 32px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green2);
  border-color: var(--green2);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy2); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ── Section wrapper ────────────────────────────────────────────────────── */
.section {
  padding: 72px 20px;
}
.section-alt { background: var(--light); }
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 10px;
}
.section-title p { color: var(--muted); font-size: 1.05rem; }

/* ── Services grid ──────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--green), var(--navy));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.service-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.1rem; }
.service-card p  { color: var(--muted); font-size: .9rem; margin-bottom: 16px; line-height: 1.5; }
.service-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}
.service-price span { font-size: .85rem; font-weight: 400; color: var(--muted); }

/* ── How it works ───────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step {
  text-align: center;
  counter-increment: step;
}
.step-num {
  width: 52px; height: 52px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.step h3 { color: var(--navy); margin-bottom: 8px; }
.step p   { color: var(--muted); font-size: .9rem; }

/* ── Testimonials ───────────────────────────────────────────────────────── */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}
.testimonial p   { color: var(--text); margin-bottom: 16px; font-style: italic; }
.testimonial cite { font-weight: 600; color: var(--navy); font-style: normal; font-size: .9rem; }
.stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; font-size: .95rem; }

/* ── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: #fff;
  padding: 72px 20px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-banner p  { opacity: .85; margin-bottom: 28px; font-size: 1.05rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: #0f1929;
  color: rgba(255,255,255,.7);
  padding: 48px 20px 24px;
  font-size: .9rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 { color: #fff; margin-bottom: 12px; }
.footer-col p  { line-height: 1.8; }
.footer-col a  { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .82rem;
}

/* ── Booking form (multi-step) ──────────────────────────────────────────── */
.book-page {
  background: var(--light);
  min-height: 100vh;
  padding: 40px 20px 80px;
}
.book-container { max-width: 720px; margin: 0 auto; }
.book-header { text-align: center; margin-bottom: 32px; }
.book-header h1 { color: var(--navy); font-size: 1.8rem; }
.book-header p  { color: var(--muted); margin-top: 6px; }

/* Progress bar */
.progress-bar {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  gap: 0;
}
.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.progress-step.completed::after { background: var(--green); }
.progress-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  z-index: 1;
  position: relative;
  transition: all .3s;
}
.progress-step.active   .progress-dot { background: var(--navy); color: #fff; }
.progress-step.completed .progress-dot { background: var(--green); color: #fff; }
.progress-label { font-size: .72rem; color: var(--muted); text-align: center; font-weight: 500; }
.progress-step.active .progress-label { color: var(--navy); font-weight: 600; }

/* Step panels */
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 20px;
}
.step-card h2 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* Form fields */
.form-group { margin-bottom: 20px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: .9rem;
  color: var(--navy);
}
.form-control {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color .2s;
  background: var(--white);
  color: var(--text);
}
.form-control:focus {
  outline: none;
  border-color: var(--navy);
}
.form-control.error { border-color: #dc2626; }
.form-hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.form-error { font-size: .82rem; color: #dc2626; margin-top: 4px; display: none; }
.form-error.show { display: block; }

/* Vehicle size badge */
.size-badge {
  background: var(--light);
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.size-badge-label { font-weight: 600; color: var(--navy); }
.size-badge-edit  { color: var(--green); font-size: .85rem; cursor: pointer; text-decoration: underline; }

/* Service cards (step 2) */
.service-select-grid {
  display: grid;
  gap: 14px;
}
.service-select-card {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 16px;
}
.service-select-card:hover  { border-color: var(--navy); }
.service-select-card.selected { border-color: var(--green); background: #f0fff4; }
.service-select-card input[type=radio] { display: none; }
.service-select-info { flex: 1; }
.service-select-info h4 { color: var(--navy); margin-bottom: 4px; }
.service-select-info p  { color: var(--muted); font-size: .85rem; }
.service-select-price { font-size: 1.2rem; font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Calendar (step 3) */
.calendar-wrap {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.calendar-header {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.calendar-header h3 { font-size: 1rem; font-weight: 600; }
.cal-nav {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 8px;
  opacity: .8;
}
.cal-nav:hover { opacity: 1; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-day-header {
  text-align: center;
  padding: 8px 4px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  background: var(--light);
}
.cal-day {
  text-align: center;
  padding: 10px 4px;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s;
  border-top: 1px solid var(--border);
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-day:hover:not(.disabled):not(.empty) { background: var(--light); }
.cal-day.empty    { background: transparent; cursor: default; }
.cal-day.disabled { color: var(--border); cursor: not-allowed; background: #fafafa; }
.cal-day.selected { background: var(--navy); color: #fff; border-radius: 50%; font-weight: 700; }
.cal-day.today    { font-weight: 700; color: var(--green); }
.cal-day.has-slots::after {
  content: '';
  display: block;
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  margin: 2px auto 0;
}

.time-slots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.time-slot-btn {
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  transition: all .2s;
}
.time-slot-btn:hover    { border-color: var(--navy); }
.time-slot-btn.selected { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Price breakdown */
.price-breakdown {
  background: var(--light);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: .95rem;
}
.price-row.total {
  border-top: 2px solid var(--navy);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

/* Review step */
.review-section { margin-bottom: 24px; }
.review-section h3 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.review-item label {
  font-size: .8rem;
  color: var(--muted);
  display: block;
}
.review-item value { font-weight: 600; color: var(--navy); }

/* Stripe */
#stripe-card-element {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: border-color .2s;
}
#stripe-card-element.StripeElement--focus { border-color: var(--navy); }

/* Step nav */
.step-nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 8px;
}

/* Confirmation page */
.confirm-page {
  background: var(--light);
  min-height: 100vh;
  padding: 60px 20px;
}
.confirm-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.confirm-card-header {
  background: var(--navy);
  color: #fff;
  padding: 28px;
  text-align: center;
}
.confirm-icon { font-size: 2.5rem; margin-bottom: 8px; }
.confirm-card-body { padding: 32px; }
.confirm-table { width: 100%; border-collapse: collapse; }
.confirm-table tr td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.confirm-table tr:last-child td { border-bottom: none; }
.confirm-table td:first-child { font-weight: 600; color: var(--navy); width: 40%; }

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: .95rem;
}
.alert-success { background: #f0fff4; border-left: 4px solid var(--green); color: #166534; }
.alert-error   { background: #fff5f5; border-left: 4px solid #dc2626; color: #991b1b; }
.alert-info    { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e40af; }
.alert-warning { background: #fffbeb; border-left: 4px solid #f59e0b; color: #92400e; }

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.checkbox-group input[type=checkbox] {
  width: 18px; height: 18px;
  cursor: pointer;
  accent-color: var(--green);
}
.checkbox-group label { font-size: .95rem; cursor: pointer; }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .progress-label { display: none; }
  .step-card { padding: 20px; }
}
