import{r as n,j as e,s as r,P as d,S as m}from"./index-BFpjkRLY.js";import{C as u}from"./check-circle-BfIwUvMB.js";function p(){const[o,t]=n.useState(!1),[s,a]=n.useState(!1),i=async l=>{l.preventDefault(),a(!0);const c=new FormData(l.target);try{await fetch("/",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(c).toString()}),t(!0)}catch{t(!0)}finally{a(!1)}};return o?e.jsxs("div",{className:"bg-teal-50 border border-teal-200 rounded-xl p-6 text-center",children:[e.jsx(u,{size:36,className:"text-teal mx-auto mb-3"}),e.jsx("h4",{className:"text-lg font-bold text-navy mb-2",children:"We will call you back!"}),e.jsx("p",{className:"text-sm text-slate-600 mb-3",children:"Expect a call within 1 hour during business hours."}),e.jsxs("a",{href:r.phoneHref,className:"text-teal font-semibold text-sm hover:underline inline-flex items-center gap-1",children:[e.jsx(d,{size:14}),"Need help now? Call ",r.phone]})]}):e.jsxs("div",{className:"bg-sand rounded-xl p-6 border border-sand-300",children:[e.jsx("h4",{className:"text-lg font-bold text-navy mb-1",children:"Need Help? We will Call You Back."}),e.jsx("p",{className:"text-sm text-slate-500 mb-4",children:"Quick response during business hours."}),e.jsxs("form",{name:"quick-contact",method:"POST","data-netlify":"true",onSubmit:i,className:"space-y-3",children:[e.jsx("input",{type:"hidden",name:"form-name",value:"quick-contact"}),e.jsx("p",{className:"hidden",children:e.jsxs("label",{children:["Do not fill this out: ",e.jsx("input",{name:"bot-field"})]})}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"qc-name",className:"sr-only",children:"Name"}),e.jsx("input",{type:"text",id:"qc-name",name:"name",required:!0,placeholder:"Your name",className:"w-full px-4 py-2.5 rounded-lg border border-gray-200 focus:border-teal focus:ring-2 focus:ring-teal-100 outline-none transition-all text-sm"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"qc-phone",className:"sr-only",children:"Phone"}),e.jsx("input",{type:"tel",id:"qc-phone",name:"phone",required:!0,placeholder:"Your phone number",className:"w-full px-4 py-2.5 rounded-lg border border-gray-200 focus:border-teal focus:ring-2 focus:ring-teal-100 outline-none transition-all text-sm"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"qc-message",className:"sr-only",children:"How can we help?"}),e.jsx("input",{type:"text",id:"qc-message",name:"message",placeholder:"How can we help? (optional)",className:"w-full px-4 py-2.5 rounded-lg border border-gray-200 focus:border-teal focus:ring-2 focus:ring-teal-100 outline-none transition-all text-sm"})]}),e.jsxs("button",{type:"submit",disabled:s,className:"btn-coral w-full text-sm gap-2 py-2.5 disabled:opacity-60",children:[e.jsx(m,{size:14}),s?"Sending...":"Get a Call Back"]})]})]})}export{p as Q};