function turnstileError(){if(!document.getElementById("turnstile-error-message")){let e=document.createElement("div");e.id="turnstile-error-message",e.style.color="red",e.style.fontWeight="bold",e.style.marginTop="10px",e.textContent="⚠️ Turnstile CAPTCHA failed to load. Possible incorrect Site Key, Secret Key, or domain.";let t=document.querySelector(".cf-turnstile");t?t.parentNode.insertBefore(e,t):document.body.prepend(e);}}
document.addEventListener("DOMContentLoaded",function(){let e=document.querySelector("form.jpb-addon-form-builder-form,form.jpb-ajaxt-contact-form,form.jpb-optin-form");e&&e.addEventListener("submit",function(){setTimeout(()=>{"undefined"!=typeof turnstile&&turnstile.reset()},1e3)})});