/* global React, ReactDOM, Nav, Footer, Icon, SectionHead */ const { useState } = React; const SERVICE_OPTIONS = [ { id: "panel", label: "Panel upgrade", icon: , from: "From $1,890" }, { id: "ev", label: "EV charger install", icon: , from: "From $640" }, { id: "rewire", label: "Whole-home rewire", icon: , from: "Custom quote" }, { id: "lighting", label: "Lighting design / install", icon: , from: "From $320" }, { id: "ac", label: "AC / HVAC wiring", icon: , from: "From $420" }, { id: "hottub", label: "Hot tub circuit", icon: , from: "From $780" }, { id: "outlet", label: "Outlet / switch work", icon: , from: "From $180" }, { id: "emergency", label: "Emergency repair", icon: , from: "$240 call-out" }, { id: "other", label: "Something else", icon: , from: "We'll figure it out" }, ]; const TIME_SLOTS = ["Today (urgent)", "Tomorrow morning", "Tomorrow afternoon", "This week", "Next week", "Flexible"]; const PROPERTY = ["Single-family home", "Condo / townhome", "Apartment / rental", "Commercial property", "New construction"]; const ScheduleHero = () => (
Free estimate · No obligation

Book in
60 seconds.

Tell us what you need, where you are, and when you'd like us. We'll text you a confirmation with the truck's ETA — usually within an hour.

PREFER TO CALL?
(737) 444-0405
Mon–Sat 7am–8pm · 24/7 emergency
EMAIL
hello@kwalityelectric.com
Replies within 2 business hours
); const BookingFlow = () => { const [step, setStep] = useState(1); const [data, setData] = useState({ service: "", property: "", urgency: "", name: "", phone: "", email: "", zip: "", address: "", notes: "", }); const set = (k, v) => setData(d => ({ ...d, [k]: v })); const canNext1 = data.service && data.property; const canNext2 = data.urgency && data.zip; const canSubmit = data.name && data.phone; return (
{["What", "When", "Who"].map((s, i) => (
i + 1 ? "done" : ""}`}> {step > i + 1 ? "✓" : i + 1} {s}
))}
Done
{step === 1 && (
Step 1 of 3

What do you need done?

{SERVICE_OPTIONS.map(s => (
set("service", s.id)}>
{s.icon}
{s.label}
{s.from}
{data.service === s.id && }
))}
Property type
{PROPERTY.map(p => ( ))}
)} {step === 2 && (
Step 2 of 3

When works for you?

{TIME_SLOTS.map(t => (
set("urgency", t)}>
{t}
{data.urgency === t && }
))}
set("zip", e.target.value)} placeholder="78704"/>
set("address", e.target.value)} placeholder="2400 E 6th St"/>
)} {step === 3 && (
Step 3 of 3

How do we reach you?

set("name", e.target.value)} placeholder="Jane Doe"/>
set("phone", e.target.value)} placeholder="(512) 555-0123"/>
set("email", e.target.value)} placeholder="jane@example.com"/>