import{c,j as e,P as m,M as x,C as u}from"./index-B7AB6E-B.js";import{r as o}from"./react-vendor-BmQy0M5s.js";import{M as h}from"./mail-BP9y-6TZ.js";/**
 * @license lucide-react v0.344.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p=c("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);function j(){const[s,r]=o.useState({first_name:"",last_name:"",email:"",phone:"",street_address:"",city:"",state:"FL",zip_code:"",projectType:"",message:""}),[i,l]=o.useState(!1),d=async a=>{a.preventDefault();const n=a.target;await fetch(n.action,{method:"POST",body:new FormData(n),headers:{Accept:"application/json"}}),l(!0),setTimeout(()=>{l(!1),r({first_name:"",last_name:"",email:"",phone:"",street_address:"",city:"",state:"FL",zip_code:"",projectType:"",message:""})},3e3)},t=a=>{r({...s,[a.target.name]:a.target.value})};return e.jsx("section",{id:"contact",className:"py-24 bg-slate-900 text-white pb-32 lg:pb-24",style:{scrollMarginTop:"100px"},children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-4",children:"Get In Touch"}),e.jsx("div",{className:"w-24 h-1 bg-red-600 mx-auto mb-6"}),e.jsx("p",{className:"text-xl text-gray-300 max-w-3xl mx-auto",children:"Ready to start your project? Contact us today for a free consultation"})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-3xl font-bold mb-8",children:"Let's Build Something Great Together"}),e.jsxs("div",{className:"space-y-6 mb-8",children:[e.jsxs("div",{className:"flex items-start space-x-4",children:[e.jsx("div",{className:"w-12 h-12 bg-red-600 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(m,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-1",children:"Phone"}),e.jsx("a",{href:"tel:+17542275605",className:"text-gray-300 hover:text-red-600 transition-colors",children:"(754) 227-5605"})]})]}),e.jsxs("div",{className:"flex items-start space-x-4",children:[e.jsx("div",{className:"w-12 h-12 bg-red-600 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(h,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-1",children:"Email"}),e.jsx("a",{href:"mailto:leads@allphaseusa.com",className:"text-gray-300 hover:text-red-600 transition-colors",children:"leads@allphaseusa.com"})]})]}),e.jsxs("div",{className:"flex items-start space-x-4",children:[e.jsx("div",{className:"w-12 h-12 bg-red-600 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(x,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-lg mb-1",children:"Headquarters"}),e.jsx("p",{className:"text-gray-300",children:"590 Goolsby Blvd"}),e.jsx("p",{className:"text-gray-300",children:"Deerfield Beach, FL 33442"})]})]})]}),e.jsxs("div",{className:"bg-red-600/10 border-2 border-red-600 rounded-lg p-6",children:[e.jsx("h4",{className:"font-bold text-xl mb-2",children:"24/7 Emergency Service"}),e.jsx("p",{className:"text-gray-300",children:"We're available around the clock for emergency construction needs and urgent repairs."})]})]}),e.jsxs("div",{className:"bg-slate-800 rounded-xl p-8 shadow-2xl overflow-visible relative",style:{zIndex:9999},children:[e.jsx("h3",{className:"text-2xl font-bold mb-6",children:"Request a Free Quote"}),i?e.jsxs("div",{className:"flex flex-col items-center justify-center h-96 text-center",children:[e.jsx(u,{className:"w-20 h-20 text-green-500 mb-4"}),e.jsx("h4",{className:"text-2xl font-bold mb-2",children:"Thank You!"}),e.jsx("p",{className:"text-gray-300",children:"We'll get back to you within 24 hours."})]}):e.jsxs("form",{action:"https://formspree.io/f/mzdbydvv",method:"POST",onSubmit:d,className:"space-y-6 overflow-visible",style:{scrollMarginTop:"120px"},children:[e.jsx("input",{type:"hidden",name:"_subject",value:"📧 New Contact Form Submission"}),e.jsx("input",{type:"hidden",name:"form_source",value:"Contact Us Form"}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"first-name",className:"block text-sm font-medium mb-2",children:"First Name *"}),e.jsx("input",{type:"text",id:"first-name",name:"first_name",required:!0,value:s.first_name,onChange:t,className:"w-full px-4 py-3 bg-slate-700 border border-slate-600 rounded-lg focus:ring-2 focus:ring-red-600 focus:border-transparent outline-none transition-all",placeholder:"John"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"last-name",className:"block text-sm font-medium mb-2",children:"Last Name *"}),e.jsx("input",{type:"text",id:"last-name",name:"last_name",required:!0,value:s.last_name,onChange:t,className:"w-full px-4 py-3 bg-slate-700 border border-slate-600 rounded-lg focus:ring-2 focus:ring-red-600 focus:border-transparent outline-none transition-all",placeholder:"Smith"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium mb-2",children:"Email Address *"}),e.jsx("input",{type:"email",id:"email",name:"email",required:!0,value:s.email,onChange:t,className:"w-full px-4 py-3 bg-slate-700 border border-slate-600 rounded-lg focus:ring-2 focus:ring-red-600 focus:border-transparent outline-none transition-all",placeholder:"john@example.com"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"phone",className:"block text-sm font-medium mb-2",children:"Phone Number"}),e.jsx("input",{type:"tel",id:"phone",name:"phone",value:s.phone,onChange:t,className:"w-full px-4 py-3 bg-slate-700 border border-slate-600 rounded-lg focus:ring-2 focus:ring-red-600 focus:border-transparent outline-none transition-all",placeholder:"(555) 123-4567"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"street-address",className:"block text-sm font-medium mb-2",children:"Street Address *"}),e.jsx("input",{type:"text",id:"street-address",name:"street_address",required:!0,value:s.street_address,onChange:t,className:"w-full px-4 py-3 bg-slate-700 border border-slate-600 rounded-lg focus:ring-2 focus:ring-red-600 focus:border-transparent outline-none transition-all",placeholder:"123 Main Street"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"city",className:"block text-sm font-medium mb-2",children:"City *"}),e.jsx("input",{type:"text",id:"city",name:"city",required:!0,value:s.city,onChange:t,className:"w-full px-4 py-3 bg-slate-700 border border-slate-600 rounded-lg focus:ring-2 focus:ring-red-600 focus:border-transparent outline-none transition-all",placeholder:"Miami"})]}),e.jsxs("div",{className:"grid grid-cols-[120px_1fr] gap-2",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"state",className:"block text-sm font-medium mb-2",children:"State"}),e.jsx("select",{id:"state",name:"state",value:s.state,onChange:t,className:"w-full px-4 py-3 bg-slate-700 border border-slate-600 rounded-lg focus:ring-2 focus:ring-red-600 focus:border-transparent outline-none transition-all",children:e.jsx("option",{value:"FL",children:"FL"})})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"zip-code",className:"block text-sm font-medium mb-2",children:"ZIP Code *"}),e.jsx("input",{type:"text",id:"zip-code",name:"zip_code",required:!0,pattern:"[0-9]{5}",maxLength:5,value:s.zip_code,onChange:t,className:"w-full px-4 py-3 bg-slate-700 border border-slate-600 rounded-lg focus:ring-2 focus:ring-red-600 focus:border-transparent outline-none transition-all",placeholder:"33101"})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"projectType",className:"block text-sm font-medium mb-2",children:"Project Type *"}),e.jsxs("select",{id:"projectType",name:"projectType",required:!0,value:s.projectType,onChange:t,className:"w-full px-4 py-3 bg-slate-700 border border-slate-600 rounded-lg focus:ring-2 focus:ring-red-600 focus:border-transparent outline-none transition-all",children:[e.jsx("option",{value:"",children:"Select a project type"}),e.jsx("option",{value:"commercial",children:"Commercial Construction"}),e.jsx("option",{value:"residential",children:"Residential Project"}),e.jsx("option",{value:"industrial",children:"Industrial Facility"}),e.jsx("option",{value:"renovation",children:"Renovation/Remodeling"}),e.jsx("option",{value:"other",children:"Other"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message",className:"block text-sm font-medium mb-2",children:"Project Details *"}),e.jsx("textarea",{id:"message",name:"message",required:!0,value:s.message,onChange:t,rows:4,className:"w-full px-4 py-3 bg-slate-700 border border-slate-600 rounded-lg focus:ring-2 focus:ring-red-600 focus:border-transparent outline-none transition-all resize-none",placeholder:"Tell us about your project..."})]}),e.jsxs("button",{type:"submit",className:"w-full py-4 bg-red-600 text-white rounded-lg font-semibold hover:bg-red-700 transition-all duration-300 flex items-center justify-center gap-2 shadow-lg hover:shadow-xl relative touch-manipulation active:scale-[0.98]",style:{touchAction:"manipulation",height:"64px",marginBottom:"max(60px, env(safe-area-inset-bottom))",zIndex:9999,pointerEvents:"auto"},children:[e.jsx("span",{className:"text-lg",children:"Send Message"}),e.jsx(p,{className:"w-5 h-5"})]})]})]})]})]})})}export{j as C};