/* ============================================================
   PROMPT TELECOM — demo-afspraak
   Vervangt de HubSpot Meetings-widget door een boekingsstap in
   de eigen huisstijl. Tokens uit tokens.css, geen eigen kleuren.
   ============================================================ */

/* Twee contrastvarianten, alleen voor deze pagina. De merkkleuren
   zelf blijven ongemoeid; dit zijn tekstveilige tinten in dezelfde
   familie, net zoals --sage-tekst dat sitebreed al is.
   Wit op --sage haalt 4,2:1 en dat is te weinig voor de kleine
   dagnummers; #3D6B7C haalt 5,9:1. Voor de kleine labels haalt
   --muted-2 maar 2,9:1 op wit; #5F6D73 haalt 5,4:1. */
.afs-kaart {
  --afs-gekozen: #3D6B7C;
  --afs-label: #5F6D73;
}

.afs-hero { padding: 76px 0 52px; }
.afs-hero h1 { max-width: 20ch; }
.afs-sub {
  max-width: 48ch; font-size: 1.06rem;
  color: rgba(255, 255, 255, .78); margin-bottom: 0;
}

/* -- De kaart ------------------------------------------------- */
.afs-kaart {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; margin: 32px 0 0;
  display: grid; grid-template-columns: 340px 1fr;
}

/* Linkerkolom: waarom dit half uur de moeite waard is */
.afs-zij {
  background: var(--grad-pitch); color: #fff;
  padding: 36px 32px; display: flex; flex-direction: column; gap: 24px;
}
.afs-merk {
  width: 56px; height: 56px; border-radius: 18px 18px 18px 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center;
}
.afs-merk img { width: 30px; height: auto; }
.afs-zij h2 {
  font-family: var(--font-head); font-size: 1.44rem; font-weight: 800;
  line-height: 1.2; margin: 0; color: #fff;
}
.afs-meta { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }
.afs-meta li {
  display: flex; align-items: center; gap: 10px;
  font-size: .93rem; color: rgba(255,255,255,.82);
}
.afs-meta svg { width: 17px; height: 17px; flex: none; color: var(--ping); }
.afs-krijg { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.afs-krijg li {
  display: flex; gap: 11px; font-size: .93rem; line-height: 1.5;
  color: rgba(255,255,255,.88);
}
.afs-krijg svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ping); }
.afs-zij-voet {
  margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .84rem; line-height: 1.55; color: rgba(255,255,255,.62);
}
.afs-zij-voet a { color: var(--ping); }

/* Rechterkolom: kiezen */
.afs-kies { padding: 32px 34px 34px; }
.afs-kies-kop {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.afs-kies-kop h3 {
  font-family: var(--font-head); font-size: 1.14rem; font-weight: 700;
  margin: 0; color: var(--ink);
}
.afs-zone {
  font-size: .82rem; color: var(--afs-label);
  display: inline-flex; align-items: center; gap: 6px;
}
.afs-zone svg { width: 14px; height: 14px; }

.afs-planner { display: grid; grid-template-columns: 322px 1fr; gap: 34px; align-items: start; }

/* -- Kalender ------------------------------------------------- */
.afs-maand {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.afs-maand strong {
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 700;
  color: var(--ink);
}
.afs-maand-knoppen { display: flex; gap: 6px; }
.afs-pijl {
  width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card); color: var(--baseline); cursor: pointer;
  display: grid; place-items: center; transition: border-color .15s, color .15s;
}
.afs-pijl:hover:not(:disabled) { border-color: var(--sage); color: var(--sage-tekst); }
.afs-pijl:disabled { opacity: .35; cursor: not-allowed; }
.afs-pijl svg { width: 16px; height: 16px; }

.afs-dagkoppen, .afs-rooster {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px;
}
.afs-dagkoppen {
  margin-bottom: 7px; font-family: var(--font-head);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--afs-label); text-align: center;
}
.afs-dag {
  height: 42px; border: 0; background: transparent; border-radius: 12px;
  font-family: var(--font-body); font-size: .93rem; color: var(--muted-2);
  cursor: default; position: relative; padding: 0;
  display: grid; place-items: center;
}
.afs-dag.vrij {
  color: var(--ink); font-weight: 600; cursor: pointer;
  background: var(--ping-soft);
  transition: background .15s, color .15s, transform .12s;
}
.afs-dag.vrij:hover:not([aria-pressed="true"]) {
  background: #DCF5CB; transform: translateY(-1px);
}
.afs-dag.vrij::after {
  content: ""; position: absolute; bottom: 6px;
  width: 4px; height: 4px; border-radius: 50%; background: #4E8A34;
}
.afs-dag[aria-pressed="true"] {
  background: var(--afs-gekozen); color: #fff;
}
.afs-dag[aria-pressed="true"]::after { background: var(--ping); }
.afs-dag.afs-dag-leeg { visibility: hidden; }

/* -- Tijden --------------------------------------------------- */
.afs-tijden-kop {
  font-family: var(--font-head); font-size: .88rem; font-weight: 700;
  color: var(--ink); margin: 0 0 11px;
}
.afs-tijden {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  max-height: 306px; overflow-y: auto; padding-right: 5px;
  align-content: start; scrollbar-width: thin;
}
.afs-tijd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); cursor: pointer;
  font-family: var(--font-body); font-size: .95rem; font-weight: 500;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.afs-tijd:hover:not([aria-pressed="true"]) {
  border-color: var(--sage); background: #F4F9FA;
}
.afs-tijd[aria-pressed="true"] {
  border-color: var(--afs-gekozen); background: var(--afs-gekozen); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(61,107,124,.6);
}
.afs-tijd span.duur { font-size: .8rem; opacity: .62; }
.afs-leeg {
  display: grid; place-items: center; align-content: center; gap: 10px;
  min-height: 286px; text-align: center; color: var(--muted-2);
  font-size: .9rem; line-height: 1.5; padding: 0 6px;
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.afs-leeg svg { width: 30px; height: 30px; color: var(--static); }

.afs-verder { margin-top: 18px; }
.afs-verder .btn { width: 100%; justify-content: center; }
.afs-verder .btn:disabled { opacity: .45; cursor: not-allowed; }

/* -- Laden en storingen --------------------------------------- */
.afs-melding {
  grid-column: 1 / -1; text-align: center; padding: 44px 24px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted);
}
.afs-melding svg { width: 32px; height: 32px; color: var(--static); margin-bottom: 12px; }
.afs-melding h4 {
  font-family: var(--font-head); font-size: 1.04rem; font-weight: 700;
  color: var(--ink); margin: 0 0 7px;
}
.afs-melding p { margin: 0 auto; max-width: 42ch; font-size: .92rem; line-height: 1.6; }
.afs-melding-uit { margin-top: 14px; font-size: .88rem; }
.afs-kaart.afs-laadt .afs-rooster { opacity: .45; }

/* -- Stap 2: gegevens ---------------------------------------- */
.afs-gegevens { display: none; }
.afs-kaart[data-stap="2"] .afs-planner { display: none; }
.afs-kaart[data-stap="2"] .afs-gegevens { display: block; }
.afs-gekozen {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--ping-soft); border: 1px solid #D4EEC2;
  margin-bottom: 22px;
}
.afs-gekozen svg { width: 19px; height: 19px; color: var(--ping-ink); flex: none; }
.afs-gekozen strong { font-family: var(--font-head); color: var(--ink); }
.afs-gekozen button {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: .85rem; color: var(--sage-tekst);
  text-decoration: underline; text-underline-offset: 3px;
}
.afs-velden { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.afs-veld { display: flex; flex-direction: column; gap: 6px; }
.afs-veld.breed { grid-column: 1 / -1; }
.afs-veld label {
  font-family: var(--font-head); font-size: .85rem; font-weight: 600; color: var(--ink);
}
.afs-veld label span { font-weight: 400; color: var(--muted-2); }
.afs-veld input, .afs-veld select, .afs-veld textarea {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--card); transition: border-color .15s, box-shadow .15s;
}
.afs-veld input:focus, .afs-veld select:focus, .afs-veld textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(76,131,150,.15);
}
.afs-veld textarea { resize: vertical; min-height: 78px; }
.afs-honing { position: absolute; left: -9999px; }
.afs-klein {
  grid-column: 1 / -1; font-size: .82rem; line-height: 1.55; color: var(--muted-2); margin: 2px 0 0;
}
.afs-fout {
  margin: 16px 0 0; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--hotline-soft); color: var(--hotline-tekst);
  font-size: .9rem; line-height: 1.5;
}
.afs-knoppen { display: flex; gap: 11px; margin-top: 16px; }
.afs-knoppen .btn-primary { flex: 1; justify-content: center; }

/* -- Stap 3: bevestiging -------------------------------------- */
.afs-klaar { display: none; text-align: center; padding: 34px 20px 24px; }
.afs-kaart[data-stap="3"] .afs-planner,
.afs-kaart[data-stap="3"] .afs-kies-kop,
.afs-kaart[data-stap="3"] .afs-gegevens { display: none; }
.afs-kaart[data-stap="3"] .afs-klaar { display: block; }
.afs-vink {
  width: 58px; height: 58px; border-radius: 50%; background: var(--ping-soft);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.afs-vink svg { width: 28px; height: 28px; color: var(--ping-ink); }
.afs-klaar h3 {
  font-family: var(--font-head); font-size: 1.36rem; font-weight: 800;
  margin: 0 0 9px; color: var(--ink);
}
.afs-klaar > p { color: var(--muted); max-width: 42ch; margin: 0 auto 22px; line-height: 1.6; }
.afs-bon {
  display: inline-flex; flex-direction: column; gap: 7px; text-align: left;
  padding: 17px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); font-size: .93rem; color: var(--baseline);
}
.afs-bon strong { font-family: var(--font-head); color: var(--ink); }

/* -- Onder de kaart ------------------------------------------- */
.afs-onder {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px;
}
.afs-onder-item {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
}
.afs-onder-item h4 {
  font-family: var(--font-head); font-size: .97rem; font-weight: 700;
  margin: 0 0 6px; color: var(--ink);
}
.afs-onder-item p { margin: 0; font-size: .89rem; line-height: 1.6; color: var(--muted); }

/* -- Smal scherm ---------------------------------------------- */
@media (max-width: 960px) {
  .afs-kaart { grid-template-columns: 1fr; }
  .afs-zij { padding: 28px 24px; }
  .afs-zij-voet { margin-top: 4px; }
  .afs-kies { padding: 26px 22px 28px; min-height: 0; }
  .afs-planner { grid-template-columns: 1fr; gap: 24px; }
  .afs-tijden { max-height: none; }
  .afs-leeg { min-height: 150px; }
  .afs-kies-kop h3 { flex: 1 1 100%; }
  .afs-tijd span.duur { display: none; }
  .afs-velden { grid-template-columns: 1fr; }
  .afs-onder { grid-template-columns: 1fr; }
  .afs-hero { padding: 54px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .afs-dag.vrij:hover { transform: none; }
  .afs-dag, .afs-tijd, .afs-pijl { transition: none; }
}
