/* Feedback voor testkantoren (feedback.js). Alleen zichtbaar met een testlink. */

.fb-zwevend { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: min(340px, calc(100vw - 40px)); }
.fb-knop { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 20px; background: var(--paars); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 24px rgba(38, 50, 114, .28); }
.fb-knop:hover { background: var(--paars-2); }
.fb-knop:focus-visible, .fb-welkom button:focus-visible, .fb-lukte button:focus-visible, .fb-x:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }
.fb-welkom { background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--schaduw); border: 1px solid rgba(38, 50, 114, .08); position: relative; }
.fb-welkom::after { content: ''; position: absolute; right: 38px; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-right: 1px solid rgba(38, 50, 114, .08); border-bottom: 1px solid rgba(38, 50, 114, .08); }
.fb-welkom p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; }
.fb-welkom button { border: 0; background: var(--roze); color: var(--magenta-tekst); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }

/* In het stappaneel */
.fb-paneel { margin-top: 16px; }
.fb-stap-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--magenta-tekst); text-decoration: none; }
.fb-stap-link .ic { width: 18px; height: 18px; }
.fb-stap-link:hover { text-decoration: underline; }
.fb-lukte-vraag { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.fb-lukte { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-lukte button { border: 1px solid rgba(38, 50, 114, .18); background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; }
.fb-lukte button:hover { border-color: var(--magenta); color: var(--magenta-tekst); }
.fb-lukte-dank { margin: 0; font-size: 14px; color: var(--zacht); }
.fb-lukte-dank a { color: var(--magenta-tekst); font-weight: 700; }

/* Venster */
.fb-venster { border: 0; padding: 0; border-radius: 28px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: #fff; color: var(--paars); box-shadow: 0 30px 80px rgba(38, 50, 114, .35); }
.fb-venster::backdrop { background: rgba(38, 50, 114, .45); }
.fb-vorm { padding: 24px 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.fb-kop { display: flex; align-items: center; justify-content: space-between; }
.fb-kop h2 { font-family: 'Sofia Sans Condensed'; font-weight: 700; font-size: 26px; margin: 0; }
.fb-x { border: 0; background: rgba(38, 50, 114, .07); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; }
.fb-tabs { display: flex; gap: 2px; background: rgba(38, 50, 114, .06); border-radius: 999px; padding: 3px; }
.fb-tabs[hidden] { display: none; }
.fb-tabs button { flex: 1; border: 0; background: none; padding: 9px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--zacht); }
.fb-tabs button[aria-selected="true"] { background: var(--paars); color: #fff; }
.fb-waar { margin: 0; font-size: 14px; color: var(--zacht); background: var(--grijs); border-radius: 12px; padding: 10px 14px; }
.fb-inhoud { display: flex; flex-direction: column; gap: 16px; }
.fb-vraag { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fb-vraag legend, .fb-label { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 8px; }
.fb-label { margin-bottom: 0; }
.fb-vraag textarea, .fb-vraag input:not([type=radio]) { font: inherit; font-size: 15px; color: var(--paars); border: 1px solid rgba(38, 50, 114, .2); border-radius: 14px; padding: 11px 13px; width: 100%; resize: vertical; background: #fff; }
.fb-vraag textarea:focus, .fb-vraag input:focus { outline: 2px solid var(--magenta); outline-offset: 1px; border-color: transparent; }
.fb-vraag textarea::placeholder { color: #8a8fb0; }
.fb-keuzes, .fb-schaal, .fb-duimen { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-keuze, .fb-duim { position: relative; cursor: pointer; }
.fb-keuze input, .fb-duim input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-keuze span { display: inline-block; border: 1px solid rgba(38, 50, 114, .18); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; }
.fb-cijfer span { width: 46px; text-align: center; padding: 10px 0; }
.fb-duim { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(38, 50, 114, .18); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px; }
.fb-keuze input:checked + span, .fb-duim:has(input:checked) { background: var(--paars); border-color: var(--paars); color: #fff; }
.fb-keuze input:focus-visible + span, .fb-duim:has(input:focus-visible) { outline: 3px solid var(--magenta); outline-offset: 2px; }
.fb-schaal-uitleg { display: flex; justify-content: space-between; width: 270px; max-width: 100%; font-size: 12px; color: var(--zacht); }
.fb-contact legend { font-weight: 400; font-size: 14px; color: var(--zacht); line-height: 1.4; }
.fb-twee { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-twee label { display: flex; flex-direction: column; gap: 6px; }
.fb-melding { margin: 0; min-height: 0; font-size: 14px; color: var(--magenta-tekst); font-weight: 700; }
.fb-melding:empty { display: none; }
.fb-dank { margin: 8px 0; font-size: 17px; line-height: 1.5; }
.fb-knoppen { display: flex; gap: 10px; }
.fb-knoppen .knop-twee { flex: none; }

/* Op de telefoon staat in een onderwerp een vaste stapbalk onderin. De knop gaat daarboven staan. */
@media (max-width: 919px) {
  body:has(.speler) .fb-zwevend { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 600px) {
  .fb-zwevend { right: 12px; bottom: 12px; }
  body:has(.speler) .fb-zwevend { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .fb-knop { padding: 12px 16px; }
  .fb-vorm { padding: 20px 18px 18px; }
  .fb-twee { grid-template-columns: 1fr; }
  .fb-venster { max-height: calc(100vh - 16px); }
}
/* In een artikel van het helpcentrum geen zwevende knop: daar is de ruimte te klein. */
.is-artikel .fb-zwevend { display: none; }
