.wa-demo-captcha-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  pointer-events: none;
  visibility: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(59, 130, 246, 0.22) 0%, transparent 58%),
    rgba(6, 11, 22, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.wa-demo-captcha-overlay[hidden],
.wa-demo-captcha-overlay:not(.is-open) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.wa-demo-captcha-overlay.is-open {
  display: flex !important;
  pointer-events: auto;
  visibility: visible;
}
.wa-demo-captcha-dialog {
  position: relative;
  width: min(100%, 460px);
  margin: auto;
  padding: 36px 32px 28px;
  overflow: visible;
  color: #e2e8f0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(59, 130, 246, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #121c30 0%, #0a1220 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.55);
  animation: wa-demo-captcha-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.wa-demo-captcha-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), rgba(59, 130, 246, 0.7), transparent);
  pointer-events: none;
}
@keyframes wa-demo-captcha-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wa-demo-captcha-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.wa-demo-captcha-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(148, 163, 184, 0.35);
}
.wa-demo-captcha-close svg {
  width: 14px;
  height: 14px;
  display: block;
}
.wa-demo-captcha-brand {
  display: flex;
  align-items: center;
  margin: 0 0 22px;
}
.wa-demo-captcha-brand img {
  width: 138px;
  height: auto;
}
.wa-demo-captcha-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wa-demo-captcha-eyebrow svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}
.wa-demo-captcha-dialog h3#wa-demo-captcha-title {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.wa-demo-captcha-lead {
  margin: 0 0 22px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.55;
  color: #94a3b8;
}
.wa-demo-captcha-panel {
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
  padding: 16px 12px;
  overflow: visible;
  background: #fff;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.wa-demo-captcha-widget {
  width: calc(304px * 1.22);
  height: calc(78px * 1.22);
}
#wa-demo-recaptcha {
  width: 304px;
  height: 78px;
  transform: scale(1.22);
  transform-origin: 0 0;
}
.wa-demo-captcha-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.wa-demo-captcha-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}
.wa-demo-captcha-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}
.wa-demo-captcha-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}
.wa-demo-captcha-status {
  display: none;
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #86efac;
}
.wa-demo-captcha-status.is-visible { display: block; }
.wa-demo-captcha-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, #4f8ef7 0%, #2563eb 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.wa-demo-captcha-fallback.is-visible { display: flex; }
@media screen and (max-width: 767px) {
  .wa-demo-captcha-overlay.is-open {
    align-items: flex-start;
    padding-top: max(20px, env(safe-area-inset-top));
  }
  .wa-demo-captcha-dialog {
    padding: 28px 18px 22px;
    border-radius: 20px;
  }
  .wa-demo-captcha-brand { margin-bottom: 16px; }
  .wa-demo-captcha-brand img { width: 118px; }
  .wa-demo-captcha-dialog h3#wa-demo-captcha-title { font-size: 22px; }
  .wa-demo-captcha-lead { font-size: 14px; margin-bottom: 16px; }
  .wa-demo-captcha-panel { padding: 12px 8px; }
  .wa-demo-captcha-widget {
    width: 304px;
    height: 78px;
    max-width: 100%;
  }
  #wa-demo-recaptcha { transform: none; }
  .wa-demo-captcha-trust {
    gap: 8px 12px;
    margin-top: 14px;
  }
}
@media screen and (max-width: 380px) {
  .wa-demo-captcha-overlay { padding-left: 10px; padding-right: 10px; }
  .wa-demo-captcha-dialog { padding: 24px 14px 18px; }
  .wa-demo-captcha-dialog h3#wa-demo-captcha-title { font-size: 20px; padding-right: 36px; }
  .wa-demo-captcha-widget {
    width: calc(304px * 0.86);
    height: calc(78px * 0.86);
  }
  #wa-demo-recaptcha {
    transform: scale(0.86);
    transform-origin: 0 0;
  }
}
@media screen and (max-height: 640px) {
  .wa-demo-captcha-overlay.is-open { align-items: flex-start; }
  .wa-demo-captcha-lead { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-demo-captcha-dialog { animation: none; }
}
