/*
 * TaskForm proefaccount — alles onder .tf-proef, zodat het thema van de site
 * niets van deze stijl merkt. Lettertype en tekstkleur komen van het thema.
 */
.tf-proef {
  max-width: 32rem;
  margin: 0 auto;
  padding: 1.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #1f2937;
  box-sizing: border-box;
}

.tf-proef *,
.tf-proef *::before,
.tf-proef *::after {
  box-sizing: inherit;
}

.tf-proef--notice {
  border-color: #f59e0b;
  background: #fffbeb;
}

.tf-proef__title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

.tf-proef__intro {
  margin: 0 0 1.25rem;
  color: #4b5563;
}

.tf-proef__field,
.tf-proef__check,
.tf-proef__actions {
  margin: 0 0 1rem;
}

.tf-proef__field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.tf-proef__optional {
  font-weight: 400;
  color: #6b7280;
}

.tf-proef__field input {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.tf-proef__field input:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  border-color: #2563eb;
}

.tf-proef__field input[aria-invalid="true"] {
  border-color: #dc2626;
}

.tf-proef__hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.tf-proef__field-error,
.tf-proef__error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #b91c1c;
}

.tf-proef__field-error:empty {
  display: none;
}

.tf-proef__error[hidden],
.tf-proef__sent[hidden],
.tf-proef form[hidden] {
  display: none;
}

.tf-proef__check {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.6rem;
  align-items: start;
  font-size: 0.9rem;
}

.tf-proef__check input {
  margin-top: 0.25rem;
}

/* De controle "ben je een mens": de dienst tekent zelf; alleen ruimte eromheen. */
.tf-proef__captcha {
  margin: 0 0 1rem;
  min-height: 65px;
}

.tf-proef__captcha[hidden] {
  display: none;
}

.tf-proef__check .tf-proef__field-error {
  grid-column: 2;
}

.tf-proef__submit {
  background: #2563eb;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tf-proef__submit:hover {
  background: #1d4ed8;
}

.tf-proef__submit:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.tf-proef__submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.tf-proef__footnote {
  margin: 0;
  font-size: 0.8rem;
  text-align: center;
  color: #6b7280;
}

.tf-proef__sent {
  padding: 1rem;
  border: 1px solid #bbf7d0;
  border-radius: 0.375rem;
  background: #f0fdf4;
  color: #166534;
}

.tf-proef__sent-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.tf-proef__sent-body {
  margin: 0;
}

/* Honeypot: buiten beeld, niet display:none — sommige bots slaan dat over. */
.tf-proef__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Stappen ─────────────────────────────────────────────────────────────── */

.tf-proef__steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.tf-proef__step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

/* De lijn tussen twee stappen. */
.tf-proef__step-item:not(:last-child) {
  flex: 1;
}

.tf-proef__step-item:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.tf-proef__step-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 600;
}

.tf-proef__step-item.is-current {
  color: #111827;
  font-weight: 600;
}

.tf-proef__step-item.is-current .tf-proef__step-mark {
  background: #2563eb;
  color: #ffffff;
}

.tf-proef__step-item.is-done .tf-proef__step-mark {
  background: #16a34a;
  color: #ffffff;
}

.tf-proef__step-item.is-skipped .tf-proef__step-mark {
  border: 1px dashed #9ca3af;
  background: #ffffff;
  color: #6b7280;
}

/* Weinig ruimte: alleen de naam van de huidige stap. */
@media (max-width: 30rem) {
  .tf-proef__step-item:not(.is-current) .tf-proef__step-label {
    display: none;
  }
}

.tf-proef__step {
  display: none;
}

.tf-proef__step.is-active {
  display: block;
}

.tf-proef__step-title {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.tf-proef__step-title:focus {
  outline: none;
}

.tf-proef__step-hint {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.tf-proef__badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 400;
  vertical-align: middle;
}

/* ── Controleren ─────────────────────────────────────────────────────────── */

.tf-proef__summary {
  margin: 0 0 1.25rem;
  padding: 0 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #f9fafb;
}

.tf-proef__summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.tf-proef__summary > div + div {
  border-top: 1px solid #e5e7eb;
}

.tf-proef__summary dt {
  margin: 0;
  color: #6b7280;
}

.tf-proef__summary dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
  color: #111827;
}

.tf-proef__summary dd.is-later {
  font-weight: 400;
  color: #6b7280;
}

/* ── Knoppen ─────────────────────────────────────────────────────────────── */

.tf-proef__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.tf-proef__actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.tf-proef__button {
  display: inline-block;
  width: auto;
  padding: 0.6rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tf-proef__button[hidden] {
  display: none;
}

.tf-proef__button--secondary {
  border-color: #d1d5db;
  background: #ffffff;
  color: #374151;
}

.tf-proef__button--secondary:hover {
  background: #f9fafb;
}

.tf-proef__button--ghost {
  background: transparent;
  color: #4b5563;
  font-weight: 400;
}

.tf-proef__button--ghost:hover {
  background: #f3f4f6;
  color: #111827;
}

.tf-proef__button:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.tf-proef__button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

@media (max-width: 30rem) {
  .tf-proef__actions,
  .tf-proef__actions-right {
    flex-direction: column-reverse;
    align-items: stretch;
    margin-left: 0;
  }

  .tf-proef__button {
    width: 100%;
    text-align: center;
  }
}

/* ── Land en niveau ──────────────────────────────────────────────────────── */

.tf-proef__field[hidden],
.tf-proef__step-item[hidden],
.tf-proef__level[hidden],
.tf-proef__summary > div[hidden],
.tf-proef__closed[hidden] {
  display: none;
}

.tf-proef__field select {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.tf-proef__field select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  border-color: #2563eb;
}

.tf-proef__levels {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.tf-proef__level {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #ffffff;
  cursor: pointer;
}

.tf-proef__level:hover {
  background: #f9fafb;
}

/* De gekozen kaart; waar :has() niet bestaat blijft het rondje het teken. */
.tf-proef__level:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
}

.tf-proef__level:focus-within {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.tf-proef__level input {
  margin-top: 0.25rem;
}

.tf-proef__level-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
}

.tf-proef__level-name {
  font-weight: 600;
  color: #111827;
}

.tf-proef__level-price {
  font-size: 0.875rem;
  color: #4b5563;
}

.tf-proef__level-description {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.tf-proef__sent-hint {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

.tf-proef__sent-hint:empty {
  display: none;
}

.tf-proef__closed {
  padding: 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  background: #eff6ff;
  color: #1e3a8a;
}

.tf-proef__closed-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.tf-proef__closed-body {
  margin: 0;
}
