import{n as o,j as e,o as d,s as t,p as u}from"./index-8c6g9roX.js";function x(){const[l,n]=o.useState(!1),[s,a]=o.useState(!1),i=async r=>{r.preventDefault(),a(!0);const c=new FormData(r.target);try{(await fetch("/",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(c).toString()})).ok&&n(!0)}catch{}finally{a(!1)}};return l?e.jsxs("div",{className:"bg-white rounded-xl p-6 shadow-sm border-t-4 border-t-leaf text-center",children:[e.jsx(d,{size:36,className:"text-leaf mx-auto mb-3"}),e.jsx("h3",{className:"text-lg font-bold text-forest mb-2",children:"We Got Your Info"}),e.jsx("p",{className:"text-sm text-charcoal/70 mb-2",children:"We will call you back shortly — usually within 1 hour during business hours."}),e.jsxs("p",{className:"text-sm text-charcoal/70",children:["Need faster help?"," ",e.jsxs("a",{href:t.phoneHref,className:"font-semibold text-forest hover:text-leaf",children:["Call ",t.phone]})]})]}):e.jsxs("form",{name:"quick-quote",method:"POST","data-netlify":"true",onSubmit:i,className:"bg-white rounded-xl p-6 shadow-sm border-t-4 border-t-leaf",children:[e.jsx("input",{type:"hidden",name:"form-name",value:"quick-quote"}),e.jsx("h3",{className:"text-lg font-bold text-forest mb-1",children:"Get a Free Quote"}),e.jsx("p",{className:"text-sm text-charcoal/50 mb-5",children:"We Call You Back"}),e.jsxs("div",{className:"space-y-3 mb-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"quick-name",className:"sr-only",children:"Name"}),e.jsx("input",{type:"text",id:"quick-name",name:"name",required:!0,className:"w-full px-4 py-3 border border-gray-200 rounded-lg text-charcoal text-sm focus:outline-none focus:ring-2 focus:ring-leaf/40 focus:border-leaf transition-all",placeholder:"Your name *"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"quick-phone",className:"sr-only",children:"Phone"}),e.jsx("input",{type:"tel",id:"quick-phone",name:"phone",required:!0,className:"w-full px-4 py-3 border border-gray-200 rounded-lg text-charcoal text-sm focus:outline-none focus:ring-2 focus:ring-leaf/40 focus:border-leaf transition-all",placeholder:"Phone number *"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"quick-items",className:"sr-only",children:"What do you need removed"}),e.jsx("input",{type:"text",id:"quick-items",name:"items",className:"w-full px-4 py-3 border border-gray-200 rounded-lg text-charcoal text-sm focus:outline-none focus:ring-2 focus:ring-leaf/40 focus:border-leaf transition-all",placeholder:"What do you need removed?"})]})]}),e.jsxs("button",{type:"submit",disabled:s,className:"btn-primary w-full text-sm disabled:opacity-60",children:[e.jsx(u,{size:16}),s?"Sending...":"Get My Free Quote"]}),e.jsxs("p",{className:"text-center text-xs text-charcoal/40 mt-3",children:["Or call directly:"," ",e.jsx("a",{href:t.phoneHref,className:"text-forest font-semibold hover:text-leaf",children:t.phone})]})]})}export{x as I};