/* Venbeck Transport — one-page quote site.
   Mobile-first: most visitors will be on a phone at a loading bay. */

:root {
  --ink: #14181d;
  --ink-soft: #5b6672;
  --line: #e2e6ea;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --accent: #c8461e;
  --accent-dark: #a5380f;
  --ok: #17694a;
  --err: #b3261e;
  --radius: 12px;
  --wrap: 640px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* --- hero ---------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, #1c2430 0%, #10151c 100%);
  color: #fff;
  padding: 32px 0 40px;
}
.brand {
  font-size: 15px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; margin-bottom: 28px;
}
.brand span { color: var(--accent); }
.hero h1 {
  margin: 0 0 12px; font-size: 30px; line-height: 1.2;
  letter-spacing: -.02em; font-weight: 700;
}
.lede { margin: 0; color: #b9c2cc; font-size: 16px; max-width: 34em; }

/* --- cards --------------------------------------------------------------- */
main { padding: 28px 0 56px; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 18px;
}
.card h2 {
  margin: 0 0 18px; font-size: 18px; font-weight: 650;
  display: flex; align-items: center; gap: 10px;
}
.step {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; flex: 0 0 26px;
  background: var(--accent); color: #fff;
  border-radius: 50%; font-size: 14px; font-weight: 700;
}

/* --- form ---------------------------------------------------------------- */
label {
  display: block; font-size: 14px; font-weight: 600;
  margin: 16px 0 6px; color: var(--ink);
}
label:first-of-type { margin-top: 0; }
.opt { font-weight: 400; color: var(--ink-soft); }

select {
  width: 100%; padding: 12px 13px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 9px;
}
select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.truck-hint { margin: 8px 0 0; }

input, textarea {
  width: 100%; padding: 12px 13px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 9px;
}
input:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
textarea { resize: vertical; }

/* Google's autocomplete web component drops into these slots. The tag name has
   changed across API versions, so match any custom element rather than one name
   — a missed selector renders a zero-width box that looks like a broken API. */
.place-slot > * { width: 100%; display: block; box-sizing: border-box; }
.place-slot gmp-place-autocomplete,
.place-slot gmp-placeautocomplete { width: 100%; display: block; }
.place-slot { width: 100%; min-height: 46px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: block; width: 100%; margin-top: 20px;
  padding: 14px 18px; font: inherit; font-size: 16px; font-weight: 650;
  border: 0; border-radius: 9px; cursor: pointer;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-dark); }
.btn:disabled { background: #c9ced4; cursor: not-allowed; }
.btn.busy { opacity: .7; cursor: progress; }

.hint { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-soft); }

/* --- quote --------------------------------------------------------------- */
.quote-card { background: var(--bg-soft); }
.quote-figure {
  display: flex; align-items: baseline; gap: 3px;
  font-size: 44px; font-weight: 700; letter-spacing: -.03em;
  color: var(--ink); margin-bottom: 18px;
}
.quote-figure .currency { font-size: 26px; font-weight: 600; color: var(--ink-soft); }

.quote-detail { margin: 0 0 14px; display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.quote-detail > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 13px; background: var(--bg); font-size: 14.5px;
}
.quote-detail .total-row { background: #eef2f6; font-weight: 600; }
.quote-detail .total-row dt { color: var(--ink); }
.quote-detail dt { color: var(--ink-soft); margin: 0; }
.quote-detail dd { margin: 0; font-weight: 600; text-align: right; }

.note {
  margin: 0 0 12px; padding: 10px 12px; font-size: 14px;
  background: #fff5e6; border-left: 3px solid #d38b00; border-radius: 4px;
}
.fineprint { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* --- states -------------------------------------------------------------- */
.alert {
  margin: 0 0 18px; padding: 13px 15px; border-radius: 9px;
  background: #fdecea; color: var(--err); border: 1px solid #f5c6c2;
  font-size: 15px;
}
.success { border-color: #b9e0cd; background: #f2fbf7; }
.success h2 { color: var(--ok); }
.contact { border-color: #ffd9a8; background: #fffaf2; }

footer {
  border-top: 1px solid var(--line); padding: 22px 0;
  font-size: 13.5px; color: var(--ink-soft);
}
footer p { margin: 0; }

@media (min-width: 620px) {
  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 38px; }
  .card { padding: 26px 24px; }
  .btn { width: auto; min-width: 240px; }
}
