import{c as x,r as l,j as e,s,P as h,b as u,M as g,C as b}from"./index-B5zQMA8I.js";import{B as p}from"./Breadcrumb-CVo4_-RZ.js";import{S as f}from"./SEOHead-QKDdyRHo.js";import{B as j}from"./SchemaMarkup-DjRiKSt-.js";import{C as y}from"./check-circle-Bp-CYy8q.js";import{G as N}from"./GoogleMap-w-tOW9Vy.js";import"./home-bpN861Pw.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 v=x("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]),w=["Electrical Panel Upgrade","EV Charger Installation","Emergency Service","Residential Repair","Commercial Electrical","Lighting Installation","Smart Home Integration","Surge Protection","Generator Installation","Other"];function S(){const[n,c]=l.useState(!1),[r,a]=l.useState(""),o=async t=>{t.preventDefault(),a("");const d=t.target,m=new FormData(d);try{await fetch("/",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(m).toString()}),c(!0)}catch{a("Something went wrong. Please call us directly or try again.")}};return n?e.jsxs("div",{className:"bg-green-50 border border-green-200 rounded-xl p-8 text-center",children:[e.jsx(y,{className:"w-12 h-12 text-green-500 mx-auto mb-4"}),e.jsx("h3",{className:"text-xl font-bold text-navy-900 mb-2",children:"Request Received"}),e.jsxs("p",{className:"text-gray-600",children:["We have received your estimate request and will be in touch shortly. For immediate assistance, call us at"," ",e.jsx("a",{href:"tel:+18723354677",className:"text-electric-500 font-semibold",children:"(872) 335-4677"}),"."]})]}):e.jsxs("form",{name:"quote-request",method:"POST","data-netlify":"true",onSubmit:o,className:"space-y-5",children:[e.jsx("input",{type:"hidden",name:"form-name",value:"quote-request"}),e.jsx("input",{type:"hidden",name:"bot-field"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-navy-900 mb-1.5",children:"Full Name *"}),e.jsx("input",{type:"text",id:"name",name:"name",required:!0,className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:border-electric-500 focus:ring-2 focus:ring-electric-200 outline-none transition-all text-sm",placeholder:"Your full name"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"phone",className:"block text-sm font-medium text-navy-900 mb-1.5",children:"Phone Number *"}),e.jsx("input",{type:"tel",id:"phone",name:"phone",required:!0,className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:border-electric-500 focus:ring-2 focus:ring-electric-200 outline-none transition-all text-sm",placeholder:"(555) 123-4567"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-navy-900 mb-1.5",children:"Email Address *"}),e.jsx("input",{type:"email",id:"email",name:"email",required:!0,className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:border-electric-500 focus:ring-2 focus:ring-electric-200 outline-none transition-all text-sm",placeholder:"you@example.com"})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"service",className:"block text-sm font-medium text-navy-900 mb-1.5",children:"Service Needed *"}),e.jsxs("select",{id:"service",name:"service",required:!0,className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:border-electric-500 focus:ring-2 focus:ring-electric-200 outline-none transition-all text-sm bg-white",children:[e.jsx("option",{value:"",children:"Select a service"}),w.map(t=>e.jsx("option",{value:t,children:t},t))]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"date",className:"block text-sm font-medium text-navy-900 mb-1.5",children:"Preferred Date"}),e.jsx("input",{type:"date",id:"date",name:"preferred-date",className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:border-electric-500 focus:ring-2 focus:ring-electric-200 outline-none transition-all text-sm"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"neighborhood",className:"block text-sm font-medium text-navy-900 mb-1.5",children:"Your Neighborhood"}),e.jsx("input",{type:"text",id:"neighborhood",name:"neighborhood",className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:border-electric-500 focus:ring-2 focus:ring-electric-200 outline-none transition-all text-sm",placeholder:"e.g., Brighton Park, Bridgeport"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"message",className:"block text-sm font-medium text-navy-900 mb-1.5",children:"Message / Describe Your Project"}),e.jsx("textarea",{id:"message",name:"message",rows:"4",className:"w-full px-4 py-3 rounded-lg border border-gray-300 focus:border-electric-500 focus:ring-2 focus:ring-electric-200 outline-none transition-all text-sm resize-y",placeholder:"Tell us about your electrical project or issue..."})]}),r&&e.jsx("div",{className:"bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded-lg text-sm",children:r}),e.jsxs("button",{type:"submit",className:"btn-primary w-full sm:w-auto flex items-center gap-2",children:[e.jsx(v,{className:"w-4 h-4"}),"Submit Request"]})]})}const i=[{label:"Contact"}];function R(){return e.jsxs(e.Fragment,{children:[e.jsx(f,{title:"Contact MidWest Electrical Services - Free Estimates in Chicago",description:"Contact MidWest Electrical Services for a free electrical estimate in Chicago. Call (872) 335-4677 or fill out our online form. Open 7 days, 7AM-10PM.",canonical:"/contact"}),e.jsx(j,{items:i}),e.jsx(p,{items:i}),e.jsx("section",{className:"section-padding bg-white",children:e.jsxs("div",{className:"container-main",children:[e.jsx("h1",{className:"text-3xl sm:text-4xl lg:text-5xl font-bold text-navy-900 mb-5",children:"Contact MidWest Electrical Services"}),e.jsx("p",{className:"text-gray-600 text-lg max-w-2xl mb-12",children:"Ready for a free estimate? Fill out the form below, give us a call, or send an email. We respond to all inquiries within one business day."}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-10 lg:gap-12",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsx("h2",{className:"text-xl font-bold text-navy-900 mb-6",children:"Request a Free Estimate"}),e.jsx(S,{})]}),e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{className:"bg-navy-900 rounded-xl p-6 sm:p-8 text-white",children:[e.jsx("h2",{className:"text-lg font-bold mb-5",children:"Contact Information"}),e.jsxs("ul",{className:"space-y-4",children:[e.jsx("li",{children:e.jsxs("a",{href:s.phoneHref,className:"flex items-center gap-3 hover:text-amber-400 transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-electric-500/20 flex items-center justify-center shrink-0",children:e.jsx(h,{className:"w-5 h-5 text-amber-400"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-gray-400 text-xs block",children:"Phone"}),e.jsx("span",{className:"font-semibold text-lg",children:s.phone})]})]})}),e.jsx("li",{children:e.jsxs("a",{href:`mailto:${s.email}`,className:"flex items-center gap-3 hover:text-amber-400 transition-colors",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-electric-500/20 flex items-center justify-center shrink-0",children:e.jsx(u,{className:"w-5 h-5 text-amber-400"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-gray-400 text-xs block",children:"Email"}),e.jsx("span",{className:"font-medium text-sm break-all",children:s.email})]})]})}),e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-electric-500/20 flex items-center justify-center shrink-0",children:e.jsx(g,{className:"w-5 h-5 text-amber-400"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-gray-400 text-xs block",children:"Address"}),e.jsx("span",{className:"font-medium text-sm",children:s.address.full})]})]}),e.jsxs("li",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-electric-500/20 flex items-center justify-center shrink-0",children:e.jsx(b,{className:"w-5 h-5 text-amber-400"})}),e.jsxs("div",{children:[e.jsx("span",{className:"text-gray-400 text-xs block",children:"Hours"}),e.jsx("span",{className:"font-medium text-sm",children:s.hoursDetailed.days}),e.jsxs("span",{className:"text-gray-300 text-sm block",children:[s.hoursDetailed.open," - ",s.hoursDetailed.close]})]})]})]})]})})]}),e.jsxs("div",{className:"mt-12",children:[e.jsx("h2",{className:"text-xl font-bold text-navy-900 mb-4",children:"Our Location"}),e.jsx(N,{lat:41.8298,lng:-87.6923,title:"MidWest Electrical Services - 2700 W 36th Pl, Chicago, IL",zoom:15})]})]})})]})}export{R as default};