(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33525,(e,s,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"warnOnce",{enumerable:!0,get:function(){return t}});let t=e=>{}},78299,e=>{"use strict";var s=e.i(43476),a=e.i(71645),t=e.i(98505),n=e.i(40517);function r({title:e,subtitle:a,bgImage:t}){return(0,s.jsxs)("header",{className:"relative w-full py-20 px-4 bg-center bg-cover",style:{backgroundImage:t?`url(${t})`:void 0},children:[t&&(0,s.jsx)("div",{className:"absolute inset-0 bg-black/50"}),(0,s.jsxs)("div",{className:"relative max-w-7xl mx-auto text-center text-white",children:[(0,s.jsx)("h1",{className:"text-4xl md:text-5xl font-bold",children:e}),a&&(0,s.jsx)("p",{className:"text-lg mt-3 max-w-2xl mx-auto text-gray-200",children:a})]})]})}function l(){let[e,l]=(0,a.useState)({name:"",email:"",phone:"",message:""}),[o,c]=(0,a.useState)(!1),[i,d]=(0,a.useState)(null),m=s=>{l({...e,[s.target.name]:s.target.value})},u=async s=>{s.preventDefault(),c(!0),d(null);try{(await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok?(d("success"),l({name:"",email:"",phone:"",message:""})):d("error")}catch(e){console.error("Submit error:",e),d("error")}c(!1)};return(0,s.jsxs)(n.default,{children:[(0,s.jsx)(r,{title:"Contact Us",subtitle:"Have questions or need a quote? Reach out to our team and we’ll get back to you.",bgImage:"/images/services/civil-contractors.jpg"}),(0,s.jsx)("section",{className:"py-16 max-w-6xl mx-auto px-4",children:(0,s.jsxs)("div",{className:"grid md:grid-cols-2 gap-12",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"text-xl font-semibold mb-4",children:"Get in Touch"}),(0,s.jsxs)("p",{className:"mb-3",children:[(0,s.jsx)("strong",{children:"Phone:"})," ",t.contactInfo.phone]}),(0,s.jsxs)("p",{className:"mb-3",children:[(0,s.jsx)("strong",{children:"Email:"})," ",t.contactInfo.email]}),(0,s.jsxs)("p",{className:"mb-3",children:[(0,s.jsx)("strong",{children:"Address:"})," ",t.contactInfo.address]}),(0,s.jsxs)("p",{className:"mb-6",children:[(0,s.jsx)("strong",{children:"Working Hours:"})," ",t.contactInfo.workingHours]})]}),(0,s.jsxs)("form",{onSubmit:u,className:"space-y-5",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block mb-1 font-medium",children:"Full Name"}),(0,s.jsx)("input",{type:"text",name:"name",value:e.name,required:!0,onChange:m,className:"w-full border rounded px-3 py-2 focus:ring focus:ring-gray-200"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block mb-1 font-medium",children:"Email Address"}),(0,s.jsx)("input",{type:"email",name:"email",required:!0,value:e.email,onChange:m,className:"w-full border rounded px-3 py-2 focus:ring focus:ring-gray-200"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block mb-1 font-medium",children:"Phone Number"}),(0,s.jsx)("input",{type:"text",name:"phone",value:e.phone,onChange:m,className:"w-full border rounded px-3 py-2 focus:ring focus:ring-gray-200"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block mb-1 font-medium",children:"Message"}),(0,s.jsx)("textarea",{name:"message",rows:4,required:!0,value:e.message,onChange:m,className:"w-full border rounded px-3 py-2 focus:ring focus:ring-gray-200"})]}),(0,s.jsx)("button",{type:"submit",disabled:o,className:"bg-black text-white px-6 py-2 rounded hover:bg-gray-800 transition disabled:opacity-60",children:o?"Sending...":"Send Message"}),"success"===i&&(0,s.jsx)("p",{className:"text-green-600 text-sm mt-2",children:"Thank you for reaching out. We’ve received your message and will be in touch soon."}),"error"===i&&(0,s.jsx)("p",{className:"text-red-600 text-sm mt-2",children:"⚠ Failed to send message. Please try again."})]})]})})]})}e.s(["default",()=>l],78299)}]);