@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); }

:root {
  --green: #299999;      /* Elevate-groen, voor accenten */
  --green-dark: #1E7F7F; /* knoppen en tekst op wit (goed leesbaar) */
  --green-soft: #E8F4F4;
  --grey: #ADADAD;
  --line: #E6E6E6;
  --text: #1A1A1A;
  --muted: #5F5F5F;
  --bg: #F6F7F7;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-dark); }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.top { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px; display: flex; justify-content: center; }
.top img { display: block; height: 34px; width: auto; }

main { max-width: 560px; margin: 0 auto; padding: 20px 16px calc(40px + env(safe-area-inset-bottom)); }

h1 { font-size: 26px; line-height: 1.2; font-weight: 700; margin: 4px 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 16px 0 4px; }
h3:first-child { margin-top: 0; }
p { margin: 0 0 8px; }
.mt { margin-top: 22px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dark); margin: 0; }
.lead { color: var(--muted); margin-top: 12px; }
.hint { font-size: 14px; color: var(--muted); margin-top: 16px; }
.center { text-align: center; }

.intro { padding: 4px 4px 16px; }
.meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.meta li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.meta svg { color: var(--green-dark); margin-top: 2px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; margin-bottom: 16px; }
.card.empty { text-align: center; }

.notice { background: #FFF4E5; border: 1px solid #F2C98B; color: #6B4300; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-weight: 500; }

/* Dagen: horizontaal te swipen */
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; scroll-snap-align: start; width: 64px; min-height: 76px; padding: 8px 4px;
  display: grid; place-items: center; gap: 0; background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
}
.day .dw { font-size: 12px; text-transform: capitalize; color: var(--muted); }
.day .dn { font-size: 20px; font-weight: 700; line-height: 1.2; }
.day .dm { font-size: 12px; color: var(--muted); }
.day.on { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.day.on .dw, .day.on .dm { color: #fff; }

/* Tijden: grote knoppen */
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.time {
  min-height: 52px; border: 1.5px solid var(--green-dark); background: #fff; color: var(--green-dark);
  border-radius: 12px; font-size: 17px; font-weight: 600;
}
.time:active, .day:active { transform: scale(.97); }
@media (hover: hover) {
  .time:hover { background: var(--green-soft); }
  .day:not(.on):hover { border-color: var(--green); }
}

/* Formulier */
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--green-dark); font-weight: 600; padding: 8px 0; margin-bottom: 8px; min-height: 44px; }
.summary { background: var(--green-dark); color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.summary .eyebrow { color: #CDEAEA; }
.summary .when { font-size: 20px; font-weight: 700; margin: 4px 0 0; }
.summary .when-time { margin: 0; opacity: .95; }

.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff;
  border: 1.5px solid #CFCFCF; border-radius: 10px; padding: 12px 14px; min-height: 50px;
}
textarea { resize: vertical; min-height: 84px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7F7F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(41,153,153,.2); }
.error { background: #FDECEC; color: #8A1C1C; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: 15px; }

.primary {
  width: 100%; min-height: 56px; border: 0; border-radius: 12px; background: var(--green-dark); color: #fff;
  font-size: 17px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.primary:disabled { opacity: .7; }
.primary:focus-visible, .time:focus-visible, .day:focus-visible, .back:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.privacy { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* Bevestiging */
.done-head { text-align: center; padding: 12px 8px 20px; }
.done-head h1 { margin-top: 14px; }
.done-head p { color: var(--muted); }
.badge { width: 64px; height: 64px; border-radius: 50%; background: var(--green-dark); color: #fff; display: grid; place-items: center; margin: 0 auto; }
.badge svg { width: 34px; height: 34px; stroke-width: 2.5; }
.details .meta { margin-bottom: 18px; }
.details .meta span { color: var(--text); }
.demo-note { font-size: 13px; text-align: center; color: var(--grey); margin-top: 12px; }

/* Demo-overzicht */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.links a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; }
.links a span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.linkbtn { background: none; border: 0; color: var(--green-dark); text-decoration: underline; padding: 8px; }

@media (min-width: 600px) {
  main { padding-top: 32px; }
  .card { padding: 24px; }
  .times { grid-template-columns: repeat(4, 1fr); }
  .days { margin: 0; padding: 2px 0 6px; }
}

/* Annuleren en verplaatsen */
.ghost-wide { width: 100%; min-height: 52px; margin-top: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 600; color: #A12626; }
.danger-btn { background: #A12626; }
