module.exports=[56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},95393,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(95182),e=a.i(90730);function f({title:a,subtitle:c,bgImage:d}){return(0,b.jsxs)("header",{className:"relative w-full py-20 px-4 bg-center bg-cover",style:{backgroundImage:d?`url(${d})`:void 0},children:[d&&(0,b.jsx)("div",{className:"absolute inset-0 bg-black/50"}),(0,b.jsxs)("div",{className:"relative max-w-7xl mx-auto text-center text-white",children:[(0,b.jsx)("h1",{className:"text-4xl md:text-5xl font-bold",children:a}),c&&(0,b.jsx)("p",{className:"text-lg mt-3 max-w-2xl mx-auto text-gray-200",children:c})]})]})}function g(){let[a,g]=(0,c.useState)({name:"",email:"",phone:"",message:""}),[h,i]=(0,c.useState)(!1),[j,k]=(0,c.useState)(null),l=b=>{g({...a,[b.target.name]:b.target.value})},m=async b=>{b.preventDefault(),i(!0),k(null);try{(await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok?(k("success"),g({name:"",email:"",phone:"",message:""})):k("error")}catch(a){console.error("Submit error:",a),k("error")}i(!1)};return(0,b.jsxs)(e.default,{children:[(0,b.jsx)(f,{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,b.jsx)("section",{className:"py-16 max-w-6xl mx-auto px-4",children:(0,b.jsxs)("div",{className:"grid md:grid-cols-2 gap-12",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h3",{className:"text-xl font-semibold mb-4",children:"Get in Touch"}),(0,b.jsxs)("p",{className:"mb-3",children:[(0,b.jsx)("strong",{children:"Phone:"})," ",d.contactInfo.phone]}),(0,b.jsxs)("p",{className:"mb-3",children:[(0,b.jsx)("strong",{children:"Email:"})," ",d.contactInfo.email]}),(0,b.jsxs)("p",{className:"mb-3",children:[(0,b.jsx)("strong",{children:"Address:"})," ",d.contactInfo.address]}),(0,b.jsxs)("p",{className:"mb-6",children:[(0,b.jsx)("strong",{children:"Working Hours:"})," ",d.contactInfo.workingHours]})]}),(0,b.jsxs)("form",{onSubmit:m,className:"space-y-5",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block mb-1 font-medium",children:"Full Name"}),(0,b.jsx)("input",{type:"text",name:"name",value:a.name,required:!0,onChange:l,className:"w-full border rounded px-3 py-2 focus:ring focus:ring-gray-200"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block mb-1 font-medium",children:"Email Address"}),(0,b.jsx)("input",{type:"email",name:"email",required:!0,value:a.email,onChange:l,className:"w-full border rounded px-3 py-2 focus:ring focus:ring-gray-200"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block mb-1 font-medium",children:"Phone Number"}),(0,b.jsx)("input",{type:"text",name:"phone",value:a.phone,onChange:l,className:"w-full border rounded px-3 py-2 focus:ring focus:ring-gray-200"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block mb-1 font-medium",children:"Message"}),(0,b.jsx)("textarea",{name:"message",rows:4,required:!0,value:a.message,onChange:l,className:"w-full border rounded px-3 py-2 focus:ring focus:ring-gray-200"})]}),(0,b.jsx)("button",{type:"submit",disabled:h,className:"bg-black text-white px-6 py-2 rounded hover:bg-gray-800 transition disabled:opacity-60",children:h?"Sending...":"Send Message"}),"success"===j&&(0,b.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"===j&&(0,b.jsx)("p",{className:"text-red-600 text-sm mt-2",children:"⚠ Failed to send message. Please try again."})]})]})})]})}a.s(["default",()=>g],95393)}];

//# sourceMappingURL=%5Broot-of-the-server%5D__5e35d4a5._.js.map