.lp-captcha-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.lp-captcha-modal-open {
  overflow: hidden;
}

.lp-captcha-modal[hidden] {
  display: none !important;
}

.lp-captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lp-captcha-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(2px);
}

.lp-captcha-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.28);
  animation: lpCaptchaIn 0.18s ease-out;
}

@keyframes lpCaptchaIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.lp-captcha-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #78716c;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
}

.lp-captcha-modal-title {
  margin: 0 1.5rem 0.35rem 0;
  font-family: Outfit, Inter, system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1C1917;
}

.lp-captcha-modal-sub {
  margin: 0 0 1rem;
  color: #57534e;
  font-size: 0.95rem;
  line-height: 1.4;
}

.lp-captcha--modal .lp-captcha-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lp-captcha-visual {
  position: relative;
  align-self: center;
  border: 1px solid rgba(28, 25, 23, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: #f8f5f0;
}

.lp-captcha-visual img {
  display: block;
  width: 220px;
  height: 70px;
}

.lp-captcha-refresh {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #8C5724;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.12);
}

.lp-captcha-refresh:hover {
  background: #fff;
}

.lp-captcha-refresh:disabled {
  opacity: 0.6;
  cursor: wait;
}

.lp-captcha.is-loading img {
  opacity: 0.55;
}

.lp-captcha-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1C1917;
  font-family: Outfit, Inter, system-ui, sans-serif;
}

.lp-captcha-input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(28, 25, 23, 0.16);
  border-radius: 12px;
  padding: 0 0.9rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #1C1917;
  background: #fff;
  box-sizing: border-box;
}

.lp-captcha-input:focus {
  outline: none;
  border-color: #8C5724;
  box-shadow: 0 0 0 3px rgba(140, 87, 36, 0.15);
}

.lp-captcha-modal-error {
  margin: 0.75rem 0 0;
  color: #e11d48;
  font-size: 0.9rem;
  font-weight: 600;
}

.lp-captcha-modal-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.lp-captcha-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: Outfit, Inter, system-ui, sans-serif;
}

.lp-captcha-btn-ghost {
  background: #f5f5f4;
  color: #44403c;
}

.lp-captcha-btn-ghost:hover {
  background: #e7e5e4;
}

.lp-captcha-btn-primary {
  background: #8C5724;
  color: #fff;
}

.lp-captcha-btn-primary:hover {
  background: #74471d;
}
