:root {
  --teal-dark: #363636;
  --teal: #55595c;
  --teal-light: #767a7d;
  --red: #d32f2f;
  --blue: #1f3c88;
  --ink: #14201f;
  --paper: #f6f8f7;
  --card: #ffffff;
  --border: #dbe4e2;
  --muted: #5b6b69;
  --ok: #1e8e5a;
  --warn: #b8860b;
  --danger: #c0392b;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--teal); }

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ---------- Hero / brand header ---------- */
.brand-hero {
  background: #ffffff;
  color: var(--ink);
  padding: 28px 16px 34px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(10,61,56,.08);

}
.brand-hero img { width: 320px; max-width: 80%; margin-bottom: 8px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.brand-hero h1 { font-size: 20px; margin: 8px 0 2px; letter-spacing: .3px; color: var(--teal-dark); text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.brand-hero p { margin: 0; opacity: .8; font-size: 14px; color: var(--muted); }

/* ---------- Cards / sections ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 16px;
  box-shadow: 0 1px 3px rgba(10,61,56,.06);
}
.card h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--teal-dark);
  margin: 0 0 12px;
  border-left: 4px solid var(--red);
  padding-left: 10px;
}

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 5px; color: var(--ink); }
label .req { color: var(--red); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=time], select, textarea {
  width: 100%;
  padding: 12px 12px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-light); border-color: var(--teal-light); }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.tier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
.tier-option { position: relative; }
.tier-option input { position: absolute; opacity: 0; }
.tier-option label.tier-card {
  display: block; margin: 0; padding: 12px 10px; border: 1.5px solid var(--border);
  border-radius: 10px; text-align: center; cursor: pointer; font-weight: 600; font-size: 14px;
  background: #fff;
}
.tier-option label.tier-card small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.tier-option input:checked + label.tier-card { border-color: var(--teal); background: #eeeeee; color: var(--teal-dark); }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; }
.checkbox-row input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.checkbox-row span { font-size: 13.5px; line-height: 1.45; }

.legal-block {
  background: #fbfbfa; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; font-size: 13px; line-height: 1.55; color: #2a3a38; max-height: 260px; overflow-y: auto;
}
.legal-block h3 { font-size: 13px; margin: 14px 0 4px; color: var(--teal-dark); }
.legal-block h3:first-child { margin-top: 0; }
.legal-block ol { padding-left: 18px; margin: 4px 0; }
.legal-block li { margin-bottom: 6px; }
.legal-block .no-refund {
  margin-top: 10px; background: var(--ink); color: #fff; padding: 10px 12px; border-radius: 8px;
  font-weight: 700; font-size: 12.5px; text-align: center;
}

.price-summary {
  display: flex; justify-content: space-between; align-items: center;
  background: #eeeeee; border-radius: 10px; padding: 12px 14px; margin-top: 16px;
  font-weight: 700; color: var(--teal-dark);
}
.price-summary span.amount { font-size: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; width: 100%; text-align: center; padding: 14px 16px;
  border-radius: 12px; font-weight: 700; font-size: 16px; border: none; cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:active { background: var(--teal-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--teal); color: var(--teal); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: 13.5px; width: auto; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.error-banner { background: #fdecea; border: 1px solid #f4b8b0; color: var(--danger); padding: 12px 14px; border-radius: 10px; margin-top: 16px; font-size: 13.5px; }
.ok-banner { background: #e8f6ee; border: 1px solid #a9dfc0; color: var(--ok); padding: 12px 14px; border-radius: 10px; margin-top: 16px; font-size: 13.5px; }

footer.site-footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 26px; }

/* ---------- Staff dashboard ---------- */
.staff-body { background: var(--paper); }
.staff-topbar {
  background: var(--teal-dark); color: #fff; padding: 14px 16px; display: flex;
  align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  flex-wrap: wrap; row-gap: 6px; column-gap: 12px;
}
.staff-topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; text-shadow: 0 2px 4px rgba(0,0,0,.55); white-space: nowrap; }
.staff-topbar img { height: 34px; flex-shrink: 0; background: #fff; border-radius: 6px; padding: 3px; }
.staff-topbar a.logout { color: #cfcfcf; font-size: 12px; text-decoration: none; white-space: nowrap; margin-left: auto; }

.fleet-counter {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff;
  border-radius: var(--radius); padding: 18px; margin: 16px; display: flex;
  align-items: center; justify-content: space-between;
}
.fleet-counter .big { font-size: 34px; font-weight: 800; line-height: 1; }
.fleet-counter .label { font-size: 12px; text-transform: uppercase; opacity: .85; letter-spacing: .5px; }
.fleet-counter button { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 12px; }

.section-title { margin: 20px 16px 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--teal-dark); font-weight: 700; border-left: 4px solid var(--red); padding-left: 10px; text-shadow: 0 1px 2px rgba(0,0,0,.15); box-shadow: -3px 0 8px -2px rgba(211,47,47,.4); border-radius: 8px; }
.section-title .count { color: var(--red); text-shadow: 0 1px 3px rgba(211,47,47,.5); }

.booking-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin: 0 16px 12px; padding: 14px; }
.booking-card .row1 { display: flex; justify-content: space-between; align-items: center; }
.booking-card .name { font-weight: 700; font-size: 15px; }
.booking-card .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.booking-card .badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.badge-pending { background: #fdf3d8; color: var(--warn); }
.badge-active { background: #e6e6e6; color: var(--teal-dark); }
.badge-overdue { background: #fdecea; color: var(--danger); }
.booking-card .actions { margin-top: 10px; display: flex; gap: 8px; }
.empty-state { margin: 0 16px; padding: 24px; text-align: center; color: var(--muted); font-size: 13.5px; background: #fff; border: 1px dashed var(--border); border-radius: 12px; }

.login-wrap { max-width: 360px; margin: 60px auto; padding: 0 16px; }

@media (max-width: 380px) {
  .tier-grid { grid-template-columns: 1fr 1fr; }
}