/* C-ROY booking — public styles. Brand: maquettes/maquettes-c-roy.html (c-roy.be). Mobile-first. */
:root {
  --charcoal: #2f3440;
  --charcoal-2: #3b414e;
  --charcoal-3: #4a5160;
  --yellow: #ebb000;
  --yellow-dark: #c99400;
  --yellow-soft: #fdf4d6;
  --text: #2f3440;
  --body: #555b66;
  --muted: #6b717c; /* darker than the mock-up's #8a909b to reach WCAG AA contrast */
  --border: #d9dce1;
  --line: #eceef1;
  --bg: #f3f4f6;
  --white: #fff;
  --green: #2e8b57;
  --green-soft: #e3f3ea;
  --red: #c0392b;
  --red-soft: #fbe7e5;
  --blue: #2f6db5;
  --blue-soft: #e6eef8;
  --focus: 0 0 0 3px rgba(235, 176, 0, .45);
  --font: Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--body); background: var(--white); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--yellow-dark); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--charcoal); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / hero / footer ---------- */
.site-top { height: 6px; background: var(--charcoal); }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.logo-c { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, #d7dbe0 45%, #8a919c 100%); display: grid; place-items: center; font-weight: 900; font-size: 22px; color: #1f4f93; box-shadow: inset 0 0 0 3px #b9bec6; }
.logo-t { display: flex; flex-direction: column; line-height: 1; }
.logo-t b { font-size: 20px; font-weight: 900; color: var(--charcoal); letter-spacing: .02em; }
.logo-t i { font-style: normal; font-size: 8px; font-weight: 700; color: var(--charcoal); letter-spacing: .04em; }

.hero { position: relative; color: #fff; text-align: center; padding: 36px 16px 100px;
  background: linear-gradient(rgba(47, 52, 64, .82), rgba(47, 52, 64, .9)), repeating-linear-gradient(115deg, #3b414e 0 2px, #343a46 2px 26px); }
.hero h1 { font-size: 30px; font-weight: 500; text-transform: uppercase; letter-spacing: .01em; }
.hero .rule { width: 150px; height: 3px; background: var(--yellow); margin: 18px auto 0; }
.hero p { max-width: 720px; margin: 14px auto 0; color: #dde0e5; font-size: 16px; font-weight: 300; }

.stage { position: relative; padding: 0 16px 40px; margin-top: -70px; }
.stage::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: var(--charcoal); clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
.stage--plain { margin-top: 24px; }
.card { position: relative; max-width: 1100px; margin: 0 auto; background: #fff; box-shadow: 0 10px 40px rgba(20, 24, 32, .15); padding: 28px 20px; }
.card h2 { color: var(--text); font-size: 24px; font-weight: 500; letter-spacing: .01em; margin-bottom: 6px; line-height: 1.25; }
.card .lead { color: var(--muted); margin-bottom: 22px; }

.site-foot { background: #262a33; color: #c3c8d0; padding: 24px 16px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-foot a { color: #fff; }

/* ---------- Stepper ---------- */
.steps { list-style: none; display: flex; margin: -28px -20px 26px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.step { flex: 1; padding: 14px 8px; text-align: center; font-size: 13px; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid transparent; display: flex; align-items: center; justify-content: center; gap: 8px; }
.step b { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border); font-weight: 500; font-size: 12px; }
.step span { display: none; }
.step.done { color: var(--text); }
.step.done b { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.step.on { color: var(--text); border-bottom-color: var(--yellow); font-weight: 500; }
.step.on b { background: var(--yellow); border-color: var(--yellow); color: #fff; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label, .label-spacer { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field .error { font-size: 13px; color: var(--red); margin-top: 6px; }
.input { width: 100%; border: 1px solid var(--border); background: #fff; padding: 14px 16px; font-size: 16px; color: var(--text); border-radius: 0; }
.input::placeholder { color: #8d939c; }
.input:focus { outline: none; border-color: var(--yellow); box-shadow: var(--focus); }
.input[aria-invalid="true"] { border-color: var(--red); }
textarea.input { min-height: 110px; resize: vertical; }
.row, .row3 { display: grid; grid-template-columns: 1fr; gap: 0 18px; }

/* ---------- Buttons ---------- */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--yellow); color: var(--charcoal); text-transform: uppercase; font-weight: 500; padding: 13px 24px; border: 0; cursor: pointer; letter-spacing: .01em; text-decoration: none; white-space: nowrap; border-radius: 0; }
.cta:hover { background: var(--yellow-dark); }
.cta:focus-visible { outline: none; box-shadow: var(--focus); }
.cta[disabled] { opacity: .45; cursor: not-allowed; }
.cta.ghost { background: transparent; color: var(--charcoal); border: 1px solid var(--charcoal); }
.cta.ghost:hover { background: var(--charcoal); color: #fff; }
.cta.dark { background: var(--charcoal); color: #fff; }
.cta.sm { padding: 8px 14px; font-size: 13px; }
.cta--block { width: 100%; padding: 15px; }

/* ---------- Alerts / actions ---------- */
.alert { display: flex; gap: 14px; padding: 16px 18px; border-left: 4px solid var(--yellow); background: var(--yellow-soft); color: var(--text); margin-bottom: 22px; }
.alert.ok { border-color: var(--green); background: var(--green-soft); }
.alert.err { border-color: var(--red); background: var(--red-soft); }
.alert.info { border-color: var(--charcoal); background: #f1f2f4; }
.actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.back { color: var(--muted); text-decoration: none; font-size: 14px; text-transform: uppercase; }
.debug { white-space: pre-wrap; font-size: 12px; background: var(--bg); padding: 12px; margin-top: 12px; overflow-x: auto; }

/* ---------- Booking flow (maquettes p1–p5) ---------- */
.label-spacer { border: 0; }
fieldset.field { border: 0; min-width: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--yellow-dark); cursor: pointer; text-decoration: underline; font-size: inherit; }
.back.linklike { color: var(--muted); text-decoration: none; text-transform: uppercase; font-size: 14px; }
.hint .linklike { font-size: 13px; }
.postal-reminder { margin: 10px 0 22px; }
.postal-reminder b { color: var(--text); }
.span-all { grid-column: 1 / -1; }

.cats { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cat { border: 1px solid var(--border); padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; color: var(--text); font-weight: 500; background: #fff; position: relative; text-align: left; }
.cat svg { flex: none; width: 40px; height: 40px; stroke: var(--charcoal); fill: none; stroke-width: 1.6; }
.cat:hover { border-color: var(--charcoal); }
.cat.on { border-color: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow); background: #fffcf3; }
.cat.on::after { content: "✓"; position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; background: var(--yellow); color: var(--charcoal); font-size: 12px; display: grid; place-items: center; }

.ac { position: relative; }
.ac-list { list-style: none; position: absolute; left: 0; right: 0; top: 76px; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0, 0, 0, .1); z-index: 1000; max-height: 280px; overflow-y: auto; }
.ac-list li { padding: 11px 16px; font-size: 15px; border-top: 1px solid var(--line); cursor: pointer; }
.ac-list li.on, .ac-list li:hover { background: var(--yellow-soft); }
.ac-list li.ac-empty { color: var(--muted); cursor: default; }

.site-map { height: 220px; border: 1px solid var(--line); }
.osm { font-size: 13px; color: var(--text); margin: 6px 0 0; }

.cal-wrap { display: grid; grid-template-columns: 1fr; gap: 28px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-head h3 { font-size: 18px; color: var(--text); font-weight: 500; text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 40px; height: 40px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 18px; }
.cal-nav button:disabled { opacity: .35; cursor: not-allowed; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dow { font-size: 12px; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.cal .d { min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9aa0a9; font-size: 15px; position: relative; background: none; border: 0; }
.cal .d small { font-size: 9px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.cal button.d.ok { background: #fff; border: 1px solid var(--charcoal); color: var(--text); font-weight: 500; cursor: pointer; }
.cal button.d.ok small { color: var(--green); }
.cal button.d.ok:hover { background: var(--yellow-soft); }
.cal button.d.sel { background: var(--yellow); border-color: var(--yellow); color: var(--charcoal); }
.cal button.d.sel small { color: var(--charcoal); }
.cal .d.full { color: #8d939c; background: repeating-linear-gradient(135deg, #f3f4f6 0 6px, #e9ebee 6px 12px); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; vertical-align: -2px; margin-right: 6px; border: 1px solid var(--charcoal); }
.legend i.lg-selected { background: var(--yellow); border-color: var(--yellow); }
.legend i.lg-full { background: repeating-linear-gradient(135deg, #f3f4f6 0 3px, #e2e4e8 3px 6px); border-color: #ccc; }
.slots-title { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.grouped-note { margin: 10px 0 0; font-size: 14px; padding: 12px 14px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.slot { border: 1px solid var(--border); padding: 12px 6px; text-align: center; font-weight: 500; color: var(--text); cursor: pointer; background: #fff; font-size: 15px; }
.slot:hover { border-color: var(--charcoal); }
.slot.recommended { border-color: var(--yellow); background: var(--yellow-soft); }
.slot.on { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
.callback-hint { margin-top: 22px; font-size: 13px; }

.split { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.recap { background: var(--charcoal); color: #e7e9ec; padding: 24px; }
.recap h3 { color: #fff; text-transform: uppercase; font-weight: 500; font-size: 14px; letter-spacing: .06em; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--yellow); display: inline-block; }
.recap dl { display: grid; gap: 12px; }
.recap dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #aab1bc; }
.recap dd { color: #fff; font-size: 15px; }
.recap .linklike { color: var(--yellow); font-size: 13px; }
.radio { display: flex; gap: 10px; flex-wrap: wrap; }
.radio label { position: relative; }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio span { display: inline-block; border: 1px solid var(--border); padding: 10px 16px; font-size: 14px; cursor: pointer; color: var(--text); }
.radio input:checked + span { border-color: var(--charcoal); background: var(--charcoal); color: #fff; }
.radio input:focus-visible + span { box-shadow: var(--focus); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--body); margin: 14px 0; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--yellow-dark); }
.drop { display: block; border: 1px dashed #b8bdc5; padding: 20px; text-align: center; color: var(--muted); font-size: 14px; background: #fafbfc; cursor: pointer; }
.drop:focus-within { box-shadow: var(--focus); }
.drop b { color: var(--yellow-dark); }
.thumbs { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.thumb { width: 84px; height: 64px; background: var(--bg); position: relative; overflow: hidden; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-name { font-size: 10px; padding: 2px; word-break: break-all; }
.thumb-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; cursor: pointer; }
.counter { text-align: right; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.callback { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.callback h3 { color: var(--text); font-weight: 500; font-size: 18px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .03em; }

.done { text-align: center; }
.done-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; margin: 0 auto 18px; }
.ref { display: inline-block; background: #f1f2f4; padding: 6px 14px; font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; color: var(--text); font-weight: 600; }
.sumgrid { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); margin: 26px 0; text-align: left; }
.sumgrid > div { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sumgrid dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sumgrid dd { color: var(--text); font-weight: 500; }
.done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.done .muted { margin-top: 22px; }

/* ---------- Manage my appointment (maquette p6) ---------- */
.manage .sumgrid { margin: 18px 0; }
.manage-reschedule { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.manage-reschedule > h3 { color: var(--text); font-weight: 500; font-size: 18px; margin-bottom: 16px; }
.manage [data-cancelled] .cta { margin-left: 10px; }
dialog.modal { margin: auto; border: 0; padding: 0; width: min(520px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--body); }
dialog.modal::backdrop { background: rgba(29, 32, 41, .55); }
.modal-h { padding: 16px 22px; border-bottom: 3px solid var(--yellow); }
.modal-h h2 { color: var(--text); font-weight: 500; font-size: 18px; }
.modal-b { padding: 20px 22px; }
.modal-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #fafbfc; }

/* ---------- /embed (iframe on c-roy.be) ---------- */
html.embed, .embed-body { background: transparent; }
.embed-main { padding: 0; }
.embed-card { box-shadow: none; max-width: none; border: 1px solid var(--line); }

/* ---------- Larger screens ---------- */
@media (min-width: 900px) {
  .site-head { padding: 18px 7%; }
  .logo-c { width: 46px; height: 46px; font-size: 30px; }
  .logo-t b { font-size: 27px; }
  .logo-t i { font-size: 10px; }
  .hero { padding: 56px 16px 120px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 17px; }
  .stage { padding: 0 7% 60px; }
  .card { padding: 40px 44px; }
  .card h2 { font-size: 28px; }
  .steps { margin: -40px -44px 34px; }
  .step span { display: inline; }
  .row { grid-template-columns: 1fr 1fr; }
  .row3 { grid-template-columns: 2fr 1fr; }
  .site-foot { padding: 28px 7%; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cal-wrap { grid-template-columns: 1.25fr 1fr; gap: 34px; }
  .cal .d { min-height: 58px; }
  .split { grid-template-columns: 1.6fr 1fr; gap: 34px; }
  .sumgrid { grid-template-columns: repeat(2, 1fr); }
  .sumgrid > div:nth-child(odd) { border-right: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
