/* Ertek: request page, werkplaats board and akkoord page (on top of site.css) */
.page-head { background: var(--ink); color: var(--on-dark); padding: 40px 0 34px; }
.page-head h1 { font-size: clamp(38px, 6vw, 60px); text-transform: uppercase; }
.page-head p { color: #d6dbe1; margin: 10px 0 0; max-width: 36em; font-size: 17px; }
.book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; align-items: start; padding: 40px 20px 120px; }
.q { padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); min-width: 0; }
.q:last-of-type { border-bottom: 0; }
.q > h2 { font-size: 30px; display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.q > h2 .n { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: 21px; flex: none; }
.q > p.hint { color: var(--muted); margin: 0 0 16px 50px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; height: 100%; padding: 13px 14px 12px 46px; border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--card); transition: border-color .15s, background .15s; }
.choice span::before { content: ""; position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; border-radius: 4px;
  border: 2px solid #9aa1aa; background: #fff; }
.choice input[type=radio] + span::before { border-radius: 50%; }
.choice b { display: block; font: 700 19px/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.choice small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.choice input:checked + span { border-color: var(--ink); background: #fbfbfb; }
.choice input:checked + span::before { background: var(--red); border-color: var(--red);
  box-shadow: inset 0 0 0 3px #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.choices.one { grid-template-columns: minmax(0, 1fr); }
.sub { margin: 12px 0 0; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: none; }
.sub.on { display: block; }
.sub h3 { font-size: 19px; text-transform: uppercase; margin: 0 0 8px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; margin: 0 8px 10px 0; }
.seg button { border: 0; background: #fff; padding: 9px 14px; font: 700 16px/1 var(--head); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; }
.calc { font-size: 15px; color: var(--muted); margin: 4px 0 0; }
.calc b { color: var(--text); font: 800 21px/1 var(--head); }
label.f { display: block; font-weight: 600; margin: 14px 0 6px; }
.field { width: 100%; border: 2px solid var(--line); border-radius: var(--radius); padding: 11px 12px; background: #fff; min-height: 48px; }
.field:focus { border-color: var(--ink); outline: none; }
textarea.field { min-height: 92px; resize: vertical; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }

/* the Dutch number plate */
.plate { display: flex; align-items: stretch; width: min(330px, 100%); height: 66px; border: 3px solid var(--ink); border-radius: 8px;
  overflow: hidden; background: var(--plate); }
.plate .eu { width: 38px; background: #1f47b5; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 6px; font: 700 15px/1 var(--head); flex: none; }
.plate .eu svg { width: 22px; height: 22px; margin-bottom: auto; margin-top: 6px; }
.plate input { flex: 1; min-width: 0; border: 0; background: transparent; text-align: center; text-transform: uppercase;
  font: 800 38px/1 var(--head); letter-spacing: .06em; color: var(--ink); }
.plate input::placeholder { color: rgba(21,23,26,.32); }
.plate input:focus { outline: none; }
.plate:focus-within { box-shadow: 0 0 0 3px var(--blue); }
.plate.small { height: 34px; width: auto; border-width: 2px; border-radius: 5px; display: inline-flex; }
.plate.small .eu { width: 18px; padding-bottom: 2px; font-size: 9px; }
.plate.small .eu svg { display: none; }
.plate.small b { padding: 0 10px; font: 800 21px/30px var(--head); letter-spacing: .05em; }

/* days + times */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.days button, .times button { flex: none; border: 2px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; }
.days button { width: 70px; padding: 8px 0 7px; text-align: center; }
.days button small { display: block; font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.days button b { display: block; font: 800 26px/1 var(--head); }
.days button[aria-pressed=true], .times button[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: #fff; }
.days button[aria-pressed=true] small { color: #c9ced4; }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.times button { padding: 10px 14px; font: 700 18px/1 var(--head); font-variant-numeric: tabular-nums; }
.demo-line { font-size: 14px; color: var(--muted); background: #fff; border: 1px dashed #b9bec5; border-radius: var(--radius); padding: 9px 12px; margin-top: 16px; }

/* the werkorder (job card) */
.wo { background: #fffef8; border: 1px solid #d8d4c3; border-radius: 4px; box-shadow: 0 1px 0 #e8e4d4, 0 14px 30px rgba(0,0,0,.08);
  padding: 18px 18px 16px; font-size: 15px; position: relative; }
.wo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: conic-gradient(var(--ink) 25%, #fff 0 50%, var(--ink) 0 75%, #fff 0) 0 0 / 8px 8px; border-radius: 4px 4px 0 0; }
.wo-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin: 6px 0 12px; }
.wo-head .t { font: 800 22px/1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.wo-head .nr { font: 700 15px/1 var(--head); color: var(--muted); letter-spacing: .06em; }
.wo dl { margin: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 7px 10px; }
.wo dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.wo dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.wo dd.empty { color: #a3a8ae; font-weight: 400; font-style: italic; }
.wo .lim { margin-top: 14px; border: 2px solid var(--red); color: var(--red); border-radius: 5px; padding: 8px 10px 7px; transform: rotate(-1.5deg);
  font: 800 18px/1.1 var(--head); text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.wo .lim small { display: block; font: 600 12px/1.3 var(--body); letter-spacing: 0; text-transform: none; }
.wo .bring { margin-top: 14px; font-size: 14px; color: var(--muted); }
.wo .bring b { color: var(--text); }
.aside-note { font-size: 14px; color: var(--muted); margin-top: 12px; }

.sendbar { margin-top: 10px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sendbar .btn { min-width: 240px; }
.err { color: var(--red-dark); font-weight: 600; font-size: 15px; }
.done-box { display: none; max-width: 640px; margin: 0 auto; padding: 40px 20px 120px; }
.done-box h2 { font-size: 40px; text-transform: uppercase; margin-bottom: 8px; }
.done-box .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
body.sent .book { display: none; }
body.sent .done-box { display: block; }

@media (max-width: 900px) {
  .book { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 28px 16px 120px; }
  .book aside { order: 2; }
  .q > p.hint { margin-left: 0; }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .sendbar .btn { width: 100%; }
}

/* ---------- werkplaats board (owner) ---------- */
.board-top { background: var(--ink); color: #fff; }
.board-top .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.board-top .demo-chip { background: var(--plate); color: var(--ink); font: 700 13px/1 var(--head); letter-spacing: .08em; padding: 5px 8px 4px; border-radius: 3px; text-transform: uppercase; }
.board-top .today { margin-left: auto; color: var(--on-dark-muted); font-size: 15px; }
@media (max-width: 560px) { .board-top .today { display: none; } .board-top .wrap { gap: 10px; } .car .acts .btn { flex: 1 1 auto; } .tabs button { padding: 12px 8px; font-size: 17px; } }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 22px 0 18px; }
.tabs button { border: 0; background: none; padding: 12px 14px; font: 700 19px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button[aria-selected=true] { color: var(--ink); border-color: var(--red); }
.tabs .cnt { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font-size: 14px; margin-left: 6px; }
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.car { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.car-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.car-head .who { font-size: 14px; color: var(--muted); }
.st { margin-left: auto; font: 700 13px/1 var(--head); letter-spacing: .07em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 3px; background: var(--paper); }
.st.wacht { background: #fff1c2; color: #6b5100; }
.st.akkoord { background: #dcf3e4; color: #12663a; }
.st.bellen { background: #fde2e0; color: var(--red-dark); }
.st.klaar { background: var(--ink); color: #fff; }
.st.binnen { background: var(--blue-soft); color: var(--blue); }
.car .jobs { font-weight: 600; }
.car .meta { font-size: 14px; color: var(--muted); }
.car .lim-line { font-size: 14px; display: flex; gap: 6px; align-items: center; }
.car .lim-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }
.extras { display: grid; gap: 6px; }
.extra { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 10px; border-radius: 6px; background: var(--paper); font-size: 14px; }
.extra b { font-weight: 600; }
.extra .p { font: 800 18px/1.1 var(--head); text-align: right; }
.extra .s { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.extra.akkoord .s, .extra.direct .s { color: #12663a; }
.extra.bellen .s, .extra.nee .s { color: var(--red-dark); }
.car .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.car .acts .btn { min-height: 40px; padding: 0 12px; font-size: 15px; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(10,11,13,.55); display: none; align-items: end; justify-content: center; }
.sheet.on { display: flex; }
.sheet-in { background: #fff; width: min(520px, 100%); border-radius: 14px 14px 0 0; padding: 20px 18px 24px; max-height: 92vh; overflow: auto; }
.sheet-in h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 4px; }
.sheet-in .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.msg-preview { white-space: pre-wrap; background: #e9e4dc; border-radius: 8px; padding: 12px; font-size: 14px; margin-top: 12px; }
.demo-card { margin-top: 30px; padding: 14px 16px; border: 1px dashed #b9bec5; border-radius: 8px; font-size: 14px; color: var(--muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.demo-card button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 80; display: none; font-size: 15px; }
.toast.on { display: block; }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-in { border-radius: 14px; } }

/* ---------- akkoord page (customer) ---------- */
.ak { max-width: 520px; margin: 0 auto; padding: 28px 16px 120px; }
.ak .card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.ak .car-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ak h1 { font-size: 34px; text-transform: uppercase; margin: 6px 0 12px; }
.ak .found { font-size: 17px; margin-bottom: 14px; }
.ak .price { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 12px; margin-top: 4px; }
.ak .price b { font: 800 38px/1 var(--head); }
.ak .btns { display: grid; gap: 10px; margin-top: 18px; }
.ak .btns .btn { min-height: 54px; font-size: 19px; }
.btn-ok { background: var(--ok); color: #fff; }
.ak .answer { display: none; text-align: center; padding: 10px 0; }
.ak.answered .btns { display: none; }
.ak.answered .answer { display: block; }
.ak .small { font-size: 14px; color: var(--muted); margin-top: 14px; }
