/* Captcha (includes/captcha.php). Neemt kleur en lettertype over van het
   formulier eromheen, zodat hij op elke pagina past: console, portaal,
   portfolio en visitekaartje. Zonder vinkje neemt hij geen ruimte in. */

.captcha__hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 1rem;
}

.captcha__check {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, currentColor 6%, transparent);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.captcha__check:hover { border-color: color-mix(in srgb, currentColor 50%, transparent); }
.captcha__check:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.captcha__tick {
  position: relative;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid color-mix(in srgb, currentColor 55%, transparent);
  border-radius: 4px;
}

.captcha__check.is-busy .captcha__tick {
  width: 1.6rem;
  border: 0;
  border-radius: 0;
  background: currentColor;
  -webkit-mask: url('/assets/brand/aethium/aethium-loader.svg') center / contain no-repeat;
  mask: url('/assets/brand/aethium/aethium-loader.svg') center / contain no-repeat;
}

.captcha__check[aria-checked="true"] .captcha__tick {
  border-color: #2fa66a;
  background: #2fa66a;
}

.captcha__check[aria-checked="true"] .captcha__tick::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.08rem;
  width: 0.3rem;
  height: 0.62rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.captcha__status {
  font-size: 0.85em;
  opacity: 0.8;
}

.captcha__noscript {
  margin: 0.5rem 0;
  font-size: 0.85em;
}

.captcha .cf-turnstile:not(:empty) { margin: 0.75rem 0; }


@media (prefers-reduced-motion: reduce) {
  .captcha__check.is-busy .captcha__tick { animation-duration: 2.4s; }
}
