',s.classList.remove("text-red-600"),s.classList.add("text-green-600")):(t.classList.add("bg-gradient-to-r","from-[#320000]","to-[#141414]","border-l","border-red-600","flex"),a.classList.remove("border-green-600","border"),a.classList.add("border-red-600","border"),s.innerHTML='',s.classList.remove("text-green-600"),s.classList.add("text-red-600")),d?(t.classList.remove("animate-fade-in-up","animate-shake"),t.offsetWidth,t.classList.add("animate-shake")):(t.classList.add("animate-fade-in-up"),d=!0),t.classList.remove("animate-fade-out-down","opacity-0","invisible"),setTimeout((()=>{t.classList.add("animate-fade-out-down"),d=!1,t.classList.remove("animate-fade-in-up","animate-shake")}),3e3)}e.addEventListener("submit",(async e=>{e.preventDefault();const t=document.getElementById("email"),a=t.value;if(o&&o.email===a&&409===o.status)return void n("Email already exists.","red");const s=await fetch("https://form.eggzenith.com/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a})});s.ok?(n("Email saved successfully!","green"),o={email:a,status:200}):409===s.status?(n("Email already exists.","red"),o={email:a,status:409}):(n("Failed to save email.","red"),o={email:a,status:s.status}),t.value=""}))}))