/* RHMDC instructie-player — vervangt de VideoAsk-embed. */
:root {
  --ip-primary: #7D00FE;
  --ip-primary-fg: #ffffff;
  --ip-goodbye-bg: #1F8080;
  --ip-radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; }
body {
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.ip { position: relative; width: 100%; height: 100%; overflow: hidden; background: #000; }
.ip video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000; cursor: pointer;
}

/* Stap-label bovenaan */
.ip-label {
  position: absolute; top: 14px; left: 14px; right: 60px; z-index: 3;
  pointer-events: none;
}
.ip-label span {
  display: inline-block; padding: 6px 12px; border-radius: 10px;
  background: rgba(0,0,0,.55); font-weight: 500; font-size: clamp(15px, 2.4vw, 22px);
  line-height: 1.3;
}

/* Knoppen rechtsboven */
.ip-tools { position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; gap: 8px; }
.ip-icon {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; padding: 0;
}
.ip-icon svg { width: 20px; height: 20px; fill: currentColor; }
.ip-icon:focus-visible, .ip-opt:focus-visible, .ip-start:focus-visible, .ip-btn:focus-visible {
  outline: 3px solid #fff; outline-offset: 2px;
}

/* Voortgangsbalk */
.ip-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.2); z-index: 3; }
.ip-progress i { display: block; height: 100%; width: 0; background: var(--ip-primary); }

/* Startscherm / pauze */
.ip-start {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 5;
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ip-primary); color: var(--ip-primary-fg);
  display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.ip-start svg { width: 38px; height: 38px; fill: currentColor; margin-left: 5px; }
.ip-start[hidden] { display: none; }

/* Antwoordopties */
.ip-options {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 48px 16px 20px; max-height: 100%; overflow-y: auto;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.7) 65%, rgba(0,0,0,0) 100%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.ip-options.show { opacity: 1; transform: none; pointer-events: auto; }
.ip-opt {
  width: 100%; max-width: 560px; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 0; border-radius: var(--ip-radius); cursor: pointer;
  background: var(--ip-primary); color: var(--ip-primary-fg);
  font: inherit; font-size: clamp(14px, 1.9vw, 17px); line-height: 1.35; text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: filter .15s;
}
.ip-opt:hover { filter: brightness(1.12); }
.ip-opt b {
  flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(255,255,255,.22); font-size: 14px;
}

/* Eindscherm */
.ip-end {
  position: absolute; inset: 0; z-index: 6; background: var(--ip-goodbye-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 28px; text-align: center;
}
.ip-end[hidden], .ip-error[hidden] { display: none; }
.ip-end p { margin: 0; max-width: 620px; font-size: clamp(17px, 2.6vw, 24px); line-height: 1.45; }
.ip-end a { color: #fff; }
.ip-btn {
  border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer;
  padding: 10px 20px; border-radius: var(--ip-radius); font: inherit; font-size: 16px;
}

/* Foutmelding */
.ip-error {
  position: absolute; inset: 0; z-index: 7; background: rgba(0,0,0,.85);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px; text-align: center;
}
.ip-icon[hidden], .ip-label[hidden] { display: none; }
