/* Autobedrijf BVS: afspraak + werkbon */
.booking .top .tel { margin-left: auto; }
.book { max-width: 760px; padding: 40px 0 140px; }
.book-head h1 { font-size: clamp(32px, 4.4vw, 48px); }
.book-head p { color: var(--muted); margin: 10px 0 24px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0 0 30px; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); }
.steps li b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--line); color: var(--text); flex: none; }
.steps li.on { color: var(--ink); border-color: var(--red); }
.steps li.on b { background: var(--red); color: #fff; }
.steps li.ok { color: var(--ink); border-color: var(--ink); }
.steps li.ok b { background: var(--ink); color: #fff; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 30px; }
.step h2 { font-size: 26px; margin-bottom: 18px; }
.step h3 { font-size: 18px; margin-bottom: 12px; }
.step h3.mt, .sub h3 { margin-top: 26px; }
.hint { color: var(--muted); font-size: 15px; margin: -8px 0 16px; }
.link { background: none; border: 0; padding: 0; margin-top: 16px; color: var(--ink); font-weight: 600; text-decoration: underline; cursor: pointer; }
.field { margin-top: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field label small, .field small { font-weight: 400; color: var(--muted); }
.field small.err[hidden] { display: none; }
.field small.err { display: block; color: var(--red); margin-top: 6px; }
.field textarea { resize: vertical; }
.tip { background: #eef4fb; border-left: 4px solid var(--t1); padding: 12px 14px; border-radius: var(--radius); font-size: 15px; margin: 16px 0 0; }

.tiles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile, .opt { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 1px solid #c8ced4; border-radius: var(--radius); padding: 14px 14px; cursor: pointer; background: #fff; }
.tile input, .opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.tile b, .opt b { display: block; color: var(--ink); }
.tile small, .opt small { display: block; color: var(--muted); font-size: 14px; }
.tile:has(input:checked), .opt:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #fdf7f7; }
.opts { display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .c { border: 1px solid #c8ced4; background: #fff; border-radius: 20px; padding: 9px 14px; font-size: 15px; cursor: pointer; }
.chips .c.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; min-width: 0; }
.day { flex: 0 0 72px; scroll-snap-align: start; border: 1px solid #c8ced4; border-radius: var(--radius); background: #fff; padding: 10px 4px; cursor: pointer; display: grid; justify-items: center; gap: 2px; }
.day small { font-size: 12px; color: var(--muted); }
.day b { font-size: 22px; font-stretch: 112%; font-style: italic; color: var(--ink); }
.day.on { background: var(--ink); border-color: var(--ink); }
.day.on b, .day.on small { color: #fff; }
.demo-line { font-size: 13px; color: var(--muted); margin: 22px 0 0; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(0,0,0,.35); }
.bar { display: flex; align-items: center; gap: 14px; padding: 12px max(16px, calc((100vw - 760px) / 2)); }
.bar[hidden] { display: none; }
.bar-sum { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.bar .btn { min-height: 48px; }
.bar .btn:disabled { opacity: .45; cursor: not-allowed; }

/* the werkbon: a counter printout */
.werkbon { position: relative; background: #fffdf6; border: 1px solid #d9d4c4; padding: 30px 30px 24px; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); font-variant-numeric: tabular-nums; animation: print .7s ease-out; }
.werkbon::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 10px; background: radial-gradient(circle at 8px 0, var(--concrete) 6px, transparent 6.5px) 0 0 / 16px 10px repeat-x; }
@keyframes print { from { transform: translateY(-18px); opacity: 0; } to { transform: none; opacity: 1; } }
.wb-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.wb-head div { text-align: right; }
.wb-head b { display: block; font-stretch: 120%; font-style: italic; font-weight: 800; font-size: 26px; color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }
.wb-head span { font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--muted); }
.wb-plate { display: inline-flex; align-items: stretch; height: 46px; margin: 20px 0 6px; border: 2px solid #111; border-radius: 5px; background: var(--plate); overflow: hidden; }
.wb-plate .eu { width: 28px; background: var(--eu); color: #fff; font: 700 11px/1 Arial, sans-serif; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.wb-plate span:last-child { padding: 0 18px; display: flex; align-items: center; font-stretch: 72%; font-weight: 800; font-size: 28px; letter-spacing: .06em; color: #111; }
.wb-rows { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 16px; margin: 16px 0 6px; }
.wb-rows dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.wb-rows dd { margin: 0; font-weight: 600; padding-bottom: 8px; border-bottom: 1px dotted #cfc9b8; }
.werkbon h3 { font-size: 17px; margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.wb-jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wb-jobs li { display: flex; gap: 12px; align-items: flex-start; }
.wb-jobs .box { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 3px; display: grid; place-items: center; color: var(--red); flex: none; }
.wb-jobs b { display: block; }
.wb-jobs small { display: block; color: var(--muted); font-size: 14px; }
.wb-note { margin: 16px 0 0; padding: 10px 12px; background: #f6f2e4; border-radius: 3px; font-size: 15px; }
.wb-bring { margin-top: 20px; padding: 14px 16px; border: 2px dashed #cfc9b8; border-radius: 4px; }
.wb-bring ul { margin: 6px 0 0; padding-left: 18px; }
.wb-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 14px; border-top: 1px solid #cfc9b8; font-size: 14px; color: var(--muted); }
.wb-foot span:first-child { color: var(--ink); font-weight: 700; }
.done-title { font-size: 26px; margin: 0 0 16px; }
.done-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.done-acts [hidden] { display: none; }

@media (max-width: 900px) {
  .booking .top .tel span { display: none; }
  .book { padding: 26px 0 140px; }
  .step { padding: 22px 16px 24px; }
  .tiles-grid { grid-template-columns: minmax(0, 1fr); }
  .steps li { font-size: 12px; gap: 5px; }
  .bar { padding-bottom: 46px; }
  .bar-sum { display: none; }
  .bar .btn.red { flex: 1; }
  .werkbon { padding: 24px 16px 20px; }
  .wb-rows { grid-template-columns: 86px minmax(0, 1fr); }
  .wb-head b { font-size: 21px; }
  .done-acts .btn { flex: 1 1 100%; }
}
@media print {
  .top, .pill, .done-acts, .bar, .book-head { display: none !important; }
  body { background: #fff; }
  .werkbon { box-shadow: none; border: 0; animation: none; }
  .werkbon::before { display: none; }
}
