/* gp-planner-v1.css — afsprakenplanner, Merlin-layout in Group Protect-stijl.
   Alles zit onder .gpp zodat niets lekt naar of van de Webflow-pagina. */

.gpp {
  --gpp-ink: #174285;          /* navy: tekst, koppen, outline-knoppen */
  --gpp-cta: #ff6300;          /* oranje: primaire actie */
  --gpp-cta-ink: #ffffff;
  --gpp-soft: #99ccff;         /* lichtblauw: accenten */
  --gpp-text: #1d2a44;
  --gpp-muted: #6b7690;
  --gpp-line: #e3e8f2;
  --gpp-bg-card: #ffffff;
  --gpp-bg-soft: #f6f8fc;
  --gpp-bg-tint: #eef4fc;
  --gpp-radius: 16px;
  --gpp-radius-sm: 12px;
  font-family: inherit;
  color: var(--gpp-text);
  line-height: 1.45;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  /* De layout volgt de breedte van het vak waarin de planner staat (bv. het formulierpaneel van 435 px),
     niet die van het scherm. Zie de @container-regels onderaan. */
  container-type: inline-size;
  container-name: gpp;
  /* VERPLICHT naast container-type: een container telt zijn eigen inhoud als 0 breed. In een ouder die
     zich naar zijn inhoud schikt — zoals .st-content-div in stap 4, een gecentreerde flex-rij — krimpt de
     planner anders tot 0 px (gemeten 24 sep 2026, FR-testpagina). Daarom altijd de volle breedte van de ouder. */
  width: 100%;
  flex: 1 1 100%;
  min-width: 0;
  align-self: stretch;
}
.gpp *, .gpp *::before, .gpp *::after { box-sizing: border-box; }
.gpp p { margin: 0; }
.gpp button { font: inherit; }

.gpp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gpp-body { display: flex; flex-direction: column; gap: 16px; }

.gpp-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Kop ─────────────────────────────────────────────────────────────── */
.gpp-head { display: flex; flex-direction: column; gap: 6px; }
.gpp-h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); line-height: 1.1; font-weight: 700; color: var(--gpp-ink); letter-spacing: -0.01em; }
.gpp-h1:focus { outline: none; }
.gpp-h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--gpp-ink); }
.gpp-sub { color: var(--gpp-muted); font-size: 17px; }
.gpp-note { color: var(--gpp-ink); font-size: 15px; background: var(--gpp-bg-tint); border-radius: var(--gpp-radius-sm); padding: 10px 14px; }
.gpp-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gpp-muted); }
.gpp-muted { color: var(--gpp-muted); }
.gpp-strong { font-weight: 600; color: var(--gpp-ink); }
.gpp-center { text-align: center; }

/* ── Kaarten ─────────────────────────────────────────────────────────── */
.gpp-card {
  background: var(--gpp-bg-card);
  border: 1px solid var(--gpp-line);
  border-radius: var(--gpp-radius);
  box-shadow: 0 6px 24px rgba(23, 66, 133, 0.06);
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.gpp-list { display: flex; flex-direction: column; gap: 10px; }

/* ── Slotkaart (Merlin: uur-badge · dag · adviseur · pijl) ──────────── */
.gpp-slot {
  display: flex; align-items: center; gap: 16px;
  width: 100%; min-height: 64px; padding: 12px 16px;
  background: var(--gpp-bg-soft); border: 1px solid var(--gpp-line); border-radius: var(--gpp-radius-sm);
  color: var(--gpp-text); text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .15s;
}
.gpp-slot:hover { border-color: var(--gpp-ink); background: #fff; }
.gpp-slot:hover > .gpp-icon:last-child { transform: translateX(2px); color: var(--gpp-ink); }
.gpp-slot:focus-visible, .gpp-btn:focus-visible, .gpp-day:focus-visible, .gpp-nav:focus-visible { outline: 3px solid var(--gpp-soft); outline-offset: 2px; }
.gpp-slot > .gpp-icon:last-child { color: #a8b2c6; transition: transform .15s; }
.gpp-slot--new { border-color: var(--gpp-soft); background: var(--gpp-bg-tint); }
.gpp-slot-time {
  flex: none; min-width: 74px; padding: 8px 12px; border-radius: 999px;
  background: #e6ebf4; color: var(--gpp-ink); font-weight: 700; font-size: 20px; text-align: center; font-variant-numeric: tabular-nums;
}
.gpp-slot-clock { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gpp-bg-tint); color: var(--gpp-ink); }
.gpp-slot-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gpp-slot-title { font-weight: 600; font-size: 17px; color: var(--gpp-text); }
.gpp-slot-sub { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--gpp-muted); }
.gpp-slot-sub .gpp-icon { width: 14px; height: 14px; }

/* ── Knoppen ─────────────────────────────────────────────────────────── */
.gpp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px; border-radius: var(--gpp-radius-sm);
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.gpp-btn[disabled] { opacity: .6; cursor: default; }
.gpp-btn--primary { background: var(--gpp-cta); color: var(--gpp-cta-ink); border-color: var(--gpp-cta); }
.gpp-btn--primary:hover:not([disabled]) { background: #e65a00; border-color: #e65a00; }
.gpp-btn--outline { background: #fff; color: var(--gpp-ink); border-color: var(--gpp-ink); }
.gpp-btn--outline:hover:not([disabled]) { background: var(--gpp-bg-tint); }
.gpp-btn--ghost { background: transparent; color: var(--gpp-ink); border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.gpp-btn--wide { width: 100%; }
.gpp-btn--small { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.gpp-btn--center { align-self: center; }
.gpp-lead-q { text-align: center; color: var(--gpp-muted); margin-top: 4px; }
.gpp-row { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.gpp-row--stack { flex-direction: column; align-items: stretch; }
.gpp-row--wrap { flex-wrap: wrap; justify-content: flex-start; }

/* ── Bereik + banners ────────────────────────────────────────────────── */
.gpp-rangebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gpp-range, .gpp-hint { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--gpp-muted); }
.gpp-range strong { color: var(--gpp-text); font-weight: 600; }
.gpp-range .gpp-icon, .gpp-hint .gpp-icon { width: 16px; height: 16px; }
.gpp-banner {
  display: flex; gap: 14px; align-items: center;
  background: var(--gpp-bg-tint); border: 1px solid #c9dcf3; border-radius: var(--gpp-radius-sm); padding: 14px 16px; color: var(--gpp-text);
}
.gpp-banner > .gpp-icon { width: 22px; height: 22px; color: var(--gpp-ink); }
.gpp-banner--warn { background: #fff4ec; border-color: #ffc9a3; }
.gpp-banner--warn > .gpp-icon { color: var(--gpp-cta); }

.gpp-range-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gpp-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gpp-muted); }
.gpp-input { min-height: 48px; padding: 10px 12px; border: 1px solid var(--gpp-line); border-radius: var(--gpp-radius-sm); font: inherit; color: var(--gpp-text); background: #fff; }
.gpp-error { color: #b42318; font-size: 15px; }

/* ── Kalender (twee kolommen) ────────────────────────────────────────── */
.gpp-cal { flex-direction: row; padding: 0; gap: 0; overflow: hidden; }
.gpp-cal-left { flex: 1 1 50%; padding: 20px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--gpp-line); }
.gpp-cal-right { flex: 1 1 50%; display: flex; flex-direction: column; }
.gpp-month { display: flex; align-items: center; justify-content: space-between; }
.gpp-month-label { font-weight: 700; font-size: 17px; color: var(--gpp-text); text-transform: lowercase; white-space: nowrap; }
.gpp-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gpp-line); background: #fff; color: var(--gpp-text); display: grid; place-items: center; cursor: pointer; }
.gpp-nav:hover { border-color: var(--gpp-ink); }
.gpp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.gpp-dow { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--gpp-muted); padding: 4px 0; }
.gpp-day {
  position: relative; display: grid; place-items: center; height: 44px; border-radius: 12px;
  font-size: 15px; color: #c3c9d6; border: 0; background: transparent;
  width: 100%; max-width: 44px; justify-self: center; padding: 0;   /* vierkant, nooit een smalle capsule */
}
.gpp-day--out { visibility: hidden; }
.gpp-day--has { color: var(--gpp-text); font-weight: 600; cursor: pointer; }
.gpp-day--has::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gpp-cta); }
.gpp-day--has:hover { background: var(--gpp-bg-tint); }
.gpp-day--new { box-shadow: inset 0 0 0 2px var(--gpp-soft); }
.gpp-day--sel { background: var(--gpp-ink); color: #fff; }
.gpp-day--sel::after { background: #fff; }
.gpp-day--sel:hover { background: var(--gpp-ink); }
.gpp-legend { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gpp-muted); }
.gpp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gpp-cta); }
.gpp-dayhead { padding: 20px; border-bottom: 1px solid var(--gpp-line); }
.gpp-count { color: var(--gpp-ink); font-size: 15px; margin-top: 2px; }
.gpp-daylist { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.gpp-daylist .gpp-slot { background: #fff; }
.gpp-empty { padding: 40px 20px; text-align: center; color: var(--gpp-muted); }

/* ── Bevestigen / berichten ──────────────────────────────────────────── */
.gpp-confirm { gap: 10px; }
.gpp-when { display: flex; gap: 10px; align-items: center; font-size: 19px; font-weight: 700; color: var(--gpp-ink); }
.gpp-with, .gpp-addr { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.gpp-addr { padding-left: 28px; }
.gpp-phone { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--gpp-muted); }
.gpp-phone > .gpp-icon { margin-top: 2px; }
.gpp-phone > span { flex: 1; min-width: 0; }
.gpp-phone a { color: var(--gpp-ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.gpp-phone a:hover { text-decoration: underline; }
.gpp-message { align-items: flex-start; gap: 12px; padding: 24px; }
.gpp-badge-ok { width: 48px; height: 48px; border-radius: 50%; background: #e7f6ec; color: #1b7a3d; display: grid; place-items: center; }
.gpp-badge-ok .gpp-icon { width: 26px; height: 26px; stroke-width: 2.5; }
.gpp-addcal { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; width: 100%; }

/* ── Laden ───────────────────────────────────────────────────────────── */
.gpp-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 16px; color: var(--gpp-muted); }
.gpp-spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--gpp-line); border-top-color: var(--gpp-ink); animation: gpp-spin .8s linear infinite; }
@keyframes gpp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gpp-spinner { animation-duration: 2s; } .gpp-slot, .gpp-btn { transition: none; } }

/* ── Smal vak (formulierpaneel) of mobiel ────────────────────────────── */
/* Eerst op de breedte van het vak zelf (container query). De @media-kopie eronder is enkel
   een vangnet voor browsers zonder container queries (Safari < 16). */
@container gpp (max-width: 640px) {
  .gpp-card { padding: 14px; }
  .gpp-cal { flex-direction: column; }
  .gpp-cal-left { border-right: 0; border-bottom: 1px solid var(--gpp-line); padding: 14px; }
  .gpp-dayhead { padding: 14px; }
  .gpp-daylist { padding: 12px 14px 14px; }
  .gpp-slot { gap: 12px; padding: 10px 12px; }
  .gpp-slot-time { min-width: 64px; font-size: 18px; padding: 6px 10px; }
  .gpp-slot-title { font-size: 16px; }
  .gpp-range-fields { grid-template-columns: 1fr; }
}
@container gpp (max-width: 420px) {
  .gpp-rangebar .gpp-btn { width: 100%; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 640px) {
    .gpp-card { padding: 14px; }
    .gpp-cal { flex-direction: column; }
    .gpp-cal-left { border-right: 0; border-bottom: 1px solid var(--gpp-line); padding: 14px; }
    .gpp-dayhead { padding: 14px; }
    .gpp-daylist { padding: 12px 14px 14px; }
    .gpp-slot { gap: 12px; padding: 10px 12px; }
    .gpp-slot-time { min-width: 64px; font-size: 18px; padding: 6px 10px; }
    .gpp-slot-title { font-size: 16px; }
    .gpp-range-fields { grid-template-columns: 1fr; }
    .gpp-rangebar .gpp-btn { width: 100%; }
  }
}

/* ── Ingebed in stap 4 (embedded:true) ───────────────────────────────── */
/* Het formulier is al een witte kaart met schaduw: binnenin geen tweede laag schaduw. */
.gpp--embedded .gpp-body { gap: 12px; }
.gpp--embedded .gpp-card { box-shadow: none; }
.gpp--embedded .gpp-sub { font-size: 16px; }
.gpp--embedded .gpp-h1 { font-size: clamp(22px, 4vw, 28px); }
