/* elementor-form-antispam.css
   HumanToggle styles — translated from Tailwind classes used in the React
   reference component (elementor-form-antispam.js / HumanToggle).
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Overlay — centered over the form ──────────────────────────────────────── */
.zb-human-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 3px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.zb-human-overlay--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Prompt text inside overlay */
.zb-human-prompt {
  font-size: 16px;
  font-weight: 500;
  color: #1d2129;
  text-align: center;
  margin: 0;
}

.zb-footer-contact_form .zb-human-prompt {
  color: #fff;
}

/* Toggle wrapper inside the overlay */
.zb-human-wrap {
  width: 100%;
  max-width: 320px;
}

/* Required-highlight state */
.zb-human-wrap--required .zb-human-toggle {
  border-color: #ef4444;
  animation: zb-shake 0.3s ease;
}

@keyframes zb-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

/* ── Toggle button ──────────────────────────────────────────────────────────── */
/* Tailwind: flex items-center gap-3 self-stretch px-4 py-3 rounded-lg border-2
             transition-all cursor-pointer select-none text-left w-full */
.zb-human-toggle {
  display: flex;
  align-items: center;
  gap: 12px;                      /* gap-3 = 0.75rem = 12px */
  width: 100%;
  padding: 12px 16px;             /* py-3 px-4 */
  border-radius: 8px;             /* rounded-lg */
  border: 2px solid;
  border-color: var(--tokens-border-2, #d1d5db);
  background-color: var(--color-light-white, #ffffff);
  cursor: pointer;
  user-select: none;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.zb-human-toggle:hover {
  border-color: #9ca3af;          /* hover:border-gray-300 */
}

/* Checked state */
/* Tailwind: border-[#25c582] bg-[#e9f8f3] */
.zb-human-toggle--checked {
  border-color: #25c582;
  background-color: #e9f8f3;
}

/* ── Checkbox box ───────────────────────────────────────────────────────────── */
/* Tailwind: w-6 h-6 rounded flex items-center justify-center border-2
             transition-all flex-shrink-0 */
.zb-human-box {
  width: 24px;                    /* w-6 */
  height: 24px;                   /* h-6 */
  border-radius: 4px;             /* rounded */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #9ca3af;     /* border-gray-300 */
  background-color: #ffffff;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

/* Tailwind checked: bg-[#25c582] border-[#25c582] */
.zb-human-box--checked {
  background-color: #25c582;
  border-color: #25c582;
}


/* ── Label text ─────────────────────────────────────────────────────────────── */
/* Tailwind: font-16-EN-regular text-text-1 flex-1 */
.zb-human-label {
  flex: 1;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-1, #1d2129);
}

/* ── Shield icon ────────────────────────────────────────────────────────────── */
/* Tailwind: flex-shrink-0 opacity-30 */
.zb-human-shield {
  flex-shrink: 0;
  opacity: 0.3;
  color: currentColor;
}

.zb-human-toggle[type="button"] {
	color: #575757;
}

.zb-human-toggle[type="button"]:focus, .zb-human-toggle[type="button"]:hover, .zb-human-toggle[type="submit"]:focus, .zb-human-toggle[type="submit"]:hover, .zb-human-toggle:focus, .zb-human-toggle:hover {
	background-color: #fff;
}
