/* Scoped + higher specificity so Orbital / theme-reset does not wipe the UI. */

.gform_wrapper .ginput_container_pow_captcha .pow-captcha,
.ginput_container_pow_captcha .pow-captcha {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.gform_wrapper .ginput_container_pow_captcha .pow-captcha__label,
.ginput_container_pow_captcha .pow-captcha__label {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  margin: 16px 0 !important;
  padding: 16px !important;
  border-radius: 4px !important;
  border: 1px solid #00778a !important;
  background-color: #ebf4fa !important;
  width: fit-content !important;
  max-width: 100%;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: inherit !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.gform_wrapper .ginput_container_pow_captcha .pow-captcha__label::before,
.ginput_container_pow_captcha .pow-captcha__label::before {
  content: "" !important;
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  border: 1px solid #b8b8b9 !important;
  border-radius: 0 !important;
  background-color: #fff !important;
  box-sizing: border-box !important;
  animation: none !important;
}

.gform_wrapper .ginput_container_pow_captcha .pow-captcha__text,
.ginput_container_pow_captcha .pow-captcha__text {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font: inherit !important;
  color: inherit !important;
}

.gform_wrapper .ginput_container_pow_captcha .pow-captcha__checkbox,
.ginput_container_pow_captcha .pow-captcha__checkbox {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
}

/* Belt-and-suspenders if a theme still renders a text solution field. */
.gform_wrapper .ginput_container_pow_captcha .pow-captcha__solution,
.ginput_container_pow_captcha .pow-captcha__solution {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gform_wrapper .ginput_container_pow_captcha .pow-captcha--working .pow-captcha__label,
.ginput_container_pow_captcha .pow-captcha--working .pow-captcha__label {
  pointer-events: none !important;
}

.gform_wrapper .ginput_container_pow_captcha .pow-captcha--working .pow-captcha__label::before,
.ginput_container_pow_captcha .pow-captcha--working .pow-captcha__label::before {
  border: 4px solid #00778a !important;
  border-bottom-color: transparent !important;
  border-radius: 50% !important;
  background: none !important;
  animation: pow-captcha-rotation 1s linear infinite !important;
}

.gform_wrapper .ginput_container_pow_captcha .pow-captcha--success .pow-captcha__label,
.ginput_container_pow_captcha .pow-captcha--success .pow-captcha__label {
  pointer-events: none !important;
  background: rgba(0, 138, 19, 0.2) !important;
  border-color: #008a13 !important;
}

.gform_wrapper .ginput_container_pow_captcha .pow-captcha--success .pow-captcha__label::before,
.ginput_container_pow_captcha .pow-captcha--success .pow-captcha__label::before {
  content: "✔" !important;
  color: #008a13 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  line-height: 20px !important;
  padding-left: 3px !important;
  animation: none !important;
  text-align: center;
}

.gform_wrapper .ginput_container_pow_captcha .pow-captcha--failure .pow-captcha__label,
.ginput_container_pow_captcha .pow-captcha--failure .pow-captcha__label {
  background: rgba(255, 17, 51, 0.2) !important;
  border-color: #ff1133 !important;
}

.gform_wrapper .ginput_container_pow_captcha .pow-captcha--failure .pow-captcha__label::before,
.ginput_container_pow_captcha .pow-captcha--failure .pow-captcha__label::before {
  content: "✖" !important;
  color: #ff1133 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  line-height: 20px !important;
  padding-left: 3px !important;
  animation: none !important;
  text-align: center;
}

@keyframes pow-captcha-rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
