/* Post-submit human check: compact, accessible modal shared by all journal forms. */
.lead-captcha-dialog {
  width: min(480px, calc(100vw - 28px));
  max-width: 480px;
  max-height: min(720px, calc(100dvh - 28px));
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  color: #172f47;
  background: transparent;
  box-shadow: 0 28px 90px rgba(6, 31, 56, .30);
}
.lead-captcha-dialog::backdrop {
  background: rgba(7, 24, 42, .62);
  backdrop-filter: blur(6px);
}
.lead-captcha-modal {
  position: relative;
  box-sizing: border-box;
  max-height: min(720px, calc(100dvh - 28px));
  overflow-y: auto;
  padding: 34px 34px 27px;
  border: 1px solid rgba(197, 216, 236, .95);
  border-radius: 24px;
  background: linear-gradient(155deg, #fff 0%, #f4f8fd 100%);
}
.lead-captcha-close {
  position: absolute;
  top: 14px;
  right: 15px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d7e3ef;
  border-radius: 50%;
  background: #fff;
  color: #294761;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.lead-captcha-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: #0860b8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
}
.lead-captcha-modal h2 {
  max-width: 360px;
  margin: 0 38px 10px 0;
  color: #132d46;
  font-size: clamp(23px, 4vw, 29px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -.035em;
}
.lead-captcha-description {
  margin: 0 0 22px;
  color: #536a80;
  font-size: 14px;
  line-height: 1.58;
}
.lead-captcha-modal-form {
  display: grid;
  gap: 13px;
}
.lead-captcha-question {
  padding: 19px 18px;
  border: 1px solid #c9dcee;
  border-radius: 16px;
  background: #eaf3fc;
  color: #103c64;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}
.lead-captcha-answer-label {
  display: grid;
  gap: 7px;
  color: #27445f;
  font-size: 13px;
  font-weight: 750;
}
.lead-captcha-answer-label input {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c7d6e5;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #172f47;
  font: inherit;
  font-size: 17px;
}
.lead-captcha-answer-label input:focus {
  border-color: #1168bf;
  box-shadow: 0 0 0 3px rgba(17, 104, 191, .13);
}
.lead-captcha-answer-label input[aria-invalid="true"] {
  border-color: #bd3f3f;
  box-shadow: 0 0 0 3px rgba(189, 63, 63, .10);
}
.lead-captcha-modal-status {
  min-height: 18px;
  color: #536b82;
  font-size: 12px;
  line-height: 1.45;
}
.lead-captcha-modal-status.is-error { color: #a52d2d; }
.lead-captcha-modal-status.is-success { color: #17643e; }
.lead-captcha-refresh {
  justify-self: start;
  padding: 2px 0;
  border: 0;
  background: none;
  color: #075bb6;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.lead-captcha-actions {
  display: grid;
  grid-template-columns: minmax(105px, .75fr) minmax(0, 1.4fr);
  gap: 10px;
  margin-top: 3px;
}
.lead-captcha-actions button {
  min-height: 49px;
  padding: 11px 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}
.lead-captcha-cancel {
  border: 1px solid #cbd9e7;
  background: #fff;
  color: #34516d;
}
.lead-captcha-confirm {
  border: 1px solid #075bb6;
  background: linear-gradient(135deg, #0870cf, #064fa4);
  color: #fff;
  box-shadow: 0 8px 18px rgba(7, 91, 182, .18);
}
.lead-captcha-actions button:hover:not(:disabled) { transform: translateY(-1px); }
.lead-captcha-actions button:disabled { opacity: .48; cursor: wait; }
@media(max-width: 520px) {
  .lead-captcha-dialog { width: calc(100vw - 22px); }
  .lead-captcha-modal { padding: 28px 20px 21px; border-radius: 20px; }
  .lead-captcha-modal h2 { font-size: 24px; }
  .lead-captcha-description { font-size: 13px; }
  .lead-captcha-actions { grid-template-columns: 1fr; }
  .lead-captcha-cancel { order: 2; }
  .lead-captcha-confirm { order: 1; }
}
@media(prefers-reduced-motion:reduce) {
  .lead-captcha-actions button { transition: none; }
}
