/* Moof Care identity, taken from the moofcare.nl Odoo theme (o-color-1…5, Inter, pill buttons). */
:root {
  --teal: #46c9ca;        /* o-color-1, primary */
  --teal-dark: #207070;   /* link colour */
  --rose: #dbb4ac;        /* o-color-2, secondary */
  --mist: #f0f4f5;        /* o-color-3 */
  --ink: #142a2e;         /* o-color-5 */
  --text: #212529;
  --muted: #5c6b6e;
  --line: rgba(33, 37, 41, 0.15);
  --teal-soft: #e8f7f7;
  --error: #c0392b;
  --radius: 0.4rem;
  --pill: 10rem;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--mist); color: var(--text);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body.embedded { background: #fff; } /* same as the moofcare.nl page around it */
body.embedded .top { display: none; }
body.embedded main { padding-top: 8px; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 16px; max-width: 640px; margin: 0 auto; }
.brand { display: inline-flex; }
.brand img { height: 40px; width: auto; display: block; }
main { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.muted { color: var(--muted); margin: 0 0 20px; }
.small { font-size: 14px; margin: 10px 0; }
.fine { color: var(--muted); font-size: 13px; margin: 16px 0 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) * 2); padding: 24px; }
.center { text-align: center; }

/* Progress */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; counter-reset: s; }
.steps li { flex: 1; font-size: 13px; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; counter-increment: s; }
.steps li::before { content: counter(s) ". "; }
.steps li.active { color: var(--ink); border-color: var(--teal); font-weight: 600; }
.steps li.done { border-color: var(--teal-dark); }

/* Fields */
label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
label > span { display: block; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; font-weight: 400; color: var(--text); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; border-color: transparent; }
input.prefilled { background: var(--teal-soft); }
.invalid { border-color: var(--error); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 600; font-size: 16px; color: var(--ink); margin-bottom: 10px; padding: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.grid .wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } .card { padding: 18px; } }

/* Buttons — pill shaped like moofcare.nl */
button { font: inherit; cursor: pointer; border-radius: var(--pill); padding: 11px 22px; border: 1px solid transparent; }
button:disabled { opacity: 0.6; cursor: progress; }
.primary { background: var(--teal); color: var(--text); font-weight: 600; width: 100%; }
.primary:hover { background: #3bb5b6; }
.ghost { background: transparent; border-color: var(--teal-dark); color: var(--teal-dark); }
.ghost:hover { background: var(--teal-soft); }
.link { background: none; border: 0; border-radius: 0; padding: 4px 0; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
a { color: var(--teal-dark); }
.row { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 8px; }
.row .primary { width: auto; flex: 1; }
.error { color: var(--error); font-size: 14px; margin: 0 0 12px; }

/* Bike picker */
.search { margin-bottom: 12px; }
.bikes { display: grid; gap: 10px; margin-bottom: 16px; }
.bike { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; background: #fff;
  border: 1px solid var(--line); border-radius: calc(var(--radius) * 2); color: var(--text); padding: 14px; }
.bike:hover, .bike:focus-visible { border-color: var(--teal); background: var(--teal-soft); }
.swatch { flex: none; width: 84px; height: 56px; border-radius: calc(var(--radius) * 2); background: var(--mist) center / cover no-repeat;
  display: grid; place-items: center; padding: 4px 6px; }
.swatch svg { width: 100%; height: 100%; display: block; }
.bike-text { display: flex; flex-direction: column; min-width: 0; }
.bike-text strong { color: var(--ink); }
.bike-text .muted { margin: 0; font-size: 14px; }
.bike-text code { font-size: 13px; color: var(--muted); }
.badge { align-self: flex-start; margin-top: 4px; font-size: 12px; color: var(--error); border: 1px solid var(--error); border-radius: var(--pill); padding: 0 8px; }
.bikes.extra { margin-top: -6px; }
.bikes.extra .bike { border-style: dashed; }
#other-icon { font-size: 28px; font-weight: 600; color: var(--teal-dark); }
.summary { background: var(--teal-soft); border-left: 3px solid var(--teal); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }

/* Location + slots */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; border-radius: var(--pill); }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: block; text-align: center; padding: 11px; border: 1px solid var(--line); border-radius: var(--pill); cursor: pointer; font-weight: 600; margin: 0; }
.segmented input:checked + span { border-color: var(--teal); background: var(--teal); color: var(--text); }
.segmented input:focus-visible + span { outline: 2px solid var(--teal-dark); }
.segmented.invalid { outline: 1px solid var(--error); outline-offset: 3px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 6px; scrollbar-width: thin; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; padding: 6px 0; max-height: 220px; overflow-y: auto; }
.chip { background: #fff; color: var(--text); border: 1px solid var(--line); padding: 8px 10px; border-radius: var(--pill); font-variant-numeric: tabular-nums; }
.chip.day { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 68px; line-height: 1.2; border-radius: calc(var(--radius) * 2); }
.chip.day small { color: var(--muted); font-size: 12px; }
.chip:hover { border-color: var(--teal); }
.chip[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: var(--text); font-weight: 600; }
.chip.day[aria-selected="true"] small { color: inherit; }
.chosen { font-weight: 600; color: var(--ink); margin: 8px 0 0; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check-row input { width: auto; margin-top: 4px; accent-color: var(--teal-dark); }
.check-row.invalid { color: var(--error); }
#service-form.manual .vm-only, #service-form:not(.manual) .manual-only { display: none; }

/* Done */
.check { width: 64px; height: 64px; margin: 8px auto 16px; border-radius: 50%; background: var(--teal); color: var(--ink);
  display: grid; place-items: center; font-size: 30px; font-weight: 800; box-shadow: 0 0 0 6px var(--teal-soft); }
