.moroc-enquiry-captcha-widget {
  display: block;
  width: 100%;
}

.moroc-enquiry-captcha-widget .altcha {
  --altcha-color-base: color-mix(in srgb, var(--moroc-bg, #0a0a0a) 96%, var(--moroc-fg, #ffffff) 4%);
  --altcha-color-border: color-mix(in srgb, var(--moroc-fg, #ffffff) 22%, transparent);
  --altcha-color-border-focus: color-mix(in srgb, var(--moroc-focus-ring, #60a5fa) 68%, transparent);
  --altcha-color-text: color-mix(in srgb, var(--moroc-fg, #ffffff) 80%, transparent);
  --altcha-color-error-text: #fca5a5;
  --altcha-color-active: var(--moroc-link, #60a5fa);
  --altcha-border-radius: 0.625rem;
  --altcha-border-width: 1px;
  --altcha-max-width: 100%;
  width: 100%;
  min-height: 3rem;
  overflow: hidden;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.moroc-enquiry-captcha-widget .altcha:hover {
  border-color: color-mix(in srgb, var(--moroc-fg, #ffffff) 32%, transparent);
  background: color-mix(in srgb, var(--moroc-bg, #0a0a0a) 92%, var(--moroc-fg, #ffffff) 8%);
}

.moroc-enquiry-captcha-widget .altcha:focus-within {
  border-color: color-mix(in srgb, var(--moroc-focus-ring, #60a5fa) 72%, transparent);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--moroc-focus-ring, #60a5fa) 24%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--moroc-fg, #ffffff) 6%, transparent);
}

.moroc-enquiry-captcha-widget .altcha-main {
  min-height: 3rem;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
}

.moroc-enquiry-captcha-widget .altcha-checkbox {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  flex: 0 0 auto;
}

.moroc-enquiry-captcha-widget .altcha-checkbox input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid color-mix(in srgb, var(--moroc-fg, #ffffff) 42%, transparent);
  border-radius: 0.3125rem;
  background: color-mix(in srgb, var(--moroc-fg, #ffffff) 8%, transparent);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.moroc-enquiry-captcha-widget .altcha-checkbox input:hover {
  border-color: color-mix(in srgb, var(--moroc-fg, #ffffff) 58%, transparent);
  background: color-mix(in srgb, var(--moroc-fg, #ffffff) 12%, transparent);
}

.moroc-enquiry-captcha-widget .altcha-checkbox input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--moroc-focus-ring, #60a5fa) 28%, transparent);
}

.moroc-enquiry-captcha-widget .altcha-checkbox input:checked {
  border-color: color-mix(in srgb, var(--moroc-fg, #ffffff) 64%, transparent);
  background:
    linear-gradient(135deg, var(--moroc-fg, #ffffff), color-mix(in srgb, var(--moroc-fg, #ffffff) 78%, var(--moroc-link, #60a5fa) 22%));
}

.moroc-enquiry-captcha-widget .altcha-checkbox input:checked::after {
  content: "";
  display: block;
  width: 0.35rem;
  height: 0.6rem;
  margin: 0.16rem auto 0;
  border: solid var(--moroc-bg, #0a0a0a);
  border-width: 0 0.125rem 0.125rem 0;
  transform: rotate(45deg);
}

.moroc-enquiry-captcha-widget .altcha-checkbox input:disabled {
  cursor: wait;
  opacity: 0.7;
}

.moroc-enquiry-captcha-widget .altcha-label {
  min-width: 0;
  color: color-mix(in srgb, var(--moroc-fg, #ffffff) 80%, transparent);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2rem;
  overflow-wrap: anywhere;
}

.moroc-enquiry-captcha-widget .altcha[data-state="verifying"] .altcha-checkbox input {
  border-color: color-mix(in srgb, var(--moroc-link, #60a5fa) 62%, transparent);
  background: color-mix(in srgb, var(--moroc-link, #60a5fa) 20%, transparent);
}

.moroc-enquiry-captcha-widget .altcha[data-state="verified"] {
  border-color: color-mix(in srgb, var(--moroc-fg, #ffffff) 30%, transparent);
  background: color-mix(in srgb, var(--moroc-bg, #0a0a0a) 94%, var(--moroc-fg, #ffffff) 6%);
}

.moroc-enquiry-captcha-widget .altcha[data-state="verified"] .altcha-label {
  color: color-mix(in srgb, var(--moroc-fg, #ffffff) 82%, transparent);
}

.moroc-enquiry-captcha-widget .altcha[data-state="error"],
.moroc-enquiry-captcha-widget .altcha[data-state="expired"] {
  border-color: color-mix(in srgb, #fca5a5 52%, transparent);
  background: color-mix(in srgb, #ef4444 14%, transparent);
}

.moroc-enquiry-captcha-widget .altcha[data-state="error"] .altcha-label,
.moroc-enquiry-captcha-widget .altcha[data-state="expired"] .altcha-label {
  color: #fca5a5;
}

.moroc-enquiry-captcha-widget .altcha-error {
  padding: 0 0.875rem 0.65rem;
  color: #fca5a5;
  font-size: 0.75rem;
  line-height: 1;
}

.moroc-enquiry-captcha-widget .altcha-code-challenge {
  background: color-mix(in srgb, var(--moroc-bg, #0a0a0a) 94%, var(--moroc-fg, #ffffff) 6%);
  border-color: color-mix(in srgb, var(--moroc-fg, #ffffff) 18%, transparent);
  color: var(--moroc-fg, #ffffff);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

@media (max-width: 480px) {
  .moroc-enquiry-captcha-widget .altcha-main {
    min-height: 2.875rem;
    padding: 0.65rem 0.75rem;
  }

  .moroc-enquiry-captcha-widget .altcha-label {
    font-size: 0.78125rem;
  }
}
