import{j as e}from"./jsx-runtime.D_zvdyIk.js";import{r as n}from"./index.C5BVv2q5.js";const i=()=>{const[s,r]=n.useState("idle"),t=async l=>{l.preventDefault(),r("sending"),setTimeout(()=>{r("success")},1500)};return s==="success"?e.jsxs("div",{className:"bg-green-50 border border-green-200 p-8 rounded-2xl text-center",children:[e.jsx("h3",{className:"text-2xl font-bold text-green-800 mb-2",children:"Message Sent!"}),e.jsx("p",{className:"text-green-700",children:"Thank you for reaching out. Our team will get back to you shortly."}),e.jsx("button",{onClick:()=>r("idle"),className:"mt-6 text-green-800 font-semibold underline",children:"Send another message"})]}):e.jsxs("form",{onSubmit:t,className:"space-y-6 bg-white p-8 rounded-2xl shadow-sm border border-slate-100",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-semibold text-slate-700 mb-2",children:"Full Name"}),e.jsx("input",{required:!0,type:"text",id:"name",className:"w-full px-4 py-3 rounded-xl border border-slate-200 focus:ring-2 focus:ring-primary focus:border-transparent outline-none transition-all",placeholder:"Jane Doe"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-semibold text-slate-700 mb-2",children:"Email Address"}),e.jsx("input",{required:!0,type:"email",id:"email",className:"w-full px-4 py-3 rounded-xl border border-slate-200 focus:ring-2 focus:ring-primary focus:border-transparent outline-none transition-all",placeholder:"jane@example.com"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"subject",className:"block text-sm font-semibold text-slate-700 mb-2",children:"Subject"}),e.jsxs("select",{id:"subject",className:"w-full px-4 py-3 rounded-xl border border-slate-200 focus:ring-2 focus:ring-primary outline-none",children:[e.jsx("option",{children:"General Inquiry"}),e.jsx("option",{children:"Volunteer Opportunities"}),e.jsx("option",{children:"Partnership Proposal"}),e.jsx("option",{children:"Donation Question"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message",className:"block text-sm font-semibold text-slate-700 mb-2",children:"Message"}),e.jsx("textarea",{required:!0,id:"message",rows:5,className:"w-full px-4 py-3 rounded-xl border border-slate-200 focus:ring-2 focus:ring-primary outline-none resize-none",placeholder:"How can we help you?"})]}),e.jsx("button",{type:"submit",disabled:s==="sending",className:"w-full bg-primary text-white font-bold py-4 rounded-xl hover:bg-primary/90 transition-all disabled:opacity-50",children:s==="sending"?"Sending...":"Send Message"})]})};export{i as default};
