/* Intentionally scoped: no existing theme, Elementor or form selector is changed. */
.ck-captcha {
  box-sizing: border-box;
  display: block;
  flex: 0 0 100%;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 16px 0;
  color: #24364b;
  text-align: left;
  overflow-wrap: anywhere;
}
.ck-captcha[hidden], .ck-captcha .ck-captcha__retry[hidden] { display: none !important; }
.ck-captcha .ck-captcha__widget, .ck-captcha altcha-widget {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 340px;
  font: 400 14px/1.4 system-ui, sans-serif;
  --altcha-max-width: 100%;
  --altcha-border-radius: 8px;
  --altcha-color-primary: #143b63;
}
.ck-captcha .ck-captcha__status {
  margin: 6px 0 0;
  padding: 0;
  font: 400 12px/1.45 system-ui, sans-serif;
  color: #455569;
}
/* ALTCHA 3 uses light DOM. Keep existing form-wide input/label rules from
   turning its checkbox into a text field or changing its verified state. */
html body .ck-captcha altcha-widget .altcha-checkbox input[type="checkbox"] {
  appearance: none !important;
  box-sizing: border-box !important;
  width: var(--altcha-checkbox-size) !important;
  height: var(--altcha-checkbox-size) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: var(--altcha-checkbox-border-width, 2px) solid var(--altcha-checkbox-border-color) !important;
  border-radius: var(--altcha-checkbox-border-radius) !important;
  background: var(--altcha-input-background-color) !important;
  box-shadow: none !important;
}
html body .ck-captcha altcha-widget .altcha-checkbox input[type="checkbox"]:checked {
  background-color: var(--altcha-color-success) !important;
  border-color: var(--altcha-color-success) !important;
}
html body .ck-captcha altcha-widget label {
  margin: 0 !important;
  font: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.ck-captcha[data-state="error"] .ck-captcha__status { color: #8f1f1f; }
.ck-captcha .ck-captcha__retry {
  box-sizing: border-box;
  display: inline-block;
  width: auto;
  max-width: 100%;
  min-height: 40px;
  height: auto;
  margin: 6px 0 0;
  padding: 8px 12px;
  border: 1px solid #8b99a7;
  border-radius: 6px;
  background: #fff;
  color: #173954;
  font: 600 13px/1.35 system-ui, sans-serif;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
}
.ck-captcha .ck-captcha__retry:focus-visible, .ck-captcha altcha-widget:focus-visible {
  outline: 2px solid #175d91;
  outline-offset: 3px;
}
