const { Button, Eyebrow, Icon, Ornament, Field } = window.HennaByMasuDesignSystem_0b7f2a; const { Footer, GUTTER } = window; const WA_NUMBER = "447388905164"; const ENDPOINT = "send-enquiry.php"; function EnquiryHeader() { const iconBtn = { display: "grid", placeItems: "center", minWidth: "44px", minHeight: "44px", background: "transparent", border: "none", color: "var(--ivory-50)", cursor: "pointer", textDecoration: "none" }; return (
Back Henna Art by Masu
); } const EMPTY = { name: "", phone: "", email: "", address: "", occasion: "Bridal mehendi", date: "", notes: "" }; function EnquiryForm() { const [v, setV] = React.useState(EMPTY); const [status, setStatus] = React.useState("idle"); const [error, setError] = React.useState(""); const [company, setCompany] = React.useState(""); const set = (k) => (val) => setV((s) => ({ ...s, [k]: val })); const message = [ "HENNA ENQUIRY", `Name: ${v.name}`, `Phone: ${v.phone}`, `Email: ${v.email}`, `Address: ${v.address}`, `Occasion: ${v.occasion}`, v.date ? `Date: ${v.date}` : null, v.notes ? `Notes: ${v.notes}` : null, ].filter(Boolean).join("\n"); const waHref = `https://wa.me/${WA_NUMBER}?text=${encodeURIComponent(message)}`; const mailHref = `mailto:Masuma0205@icloud.com?subject=${encodeURIComponent("Henna enquiry")}&body=${encodeURIComponent(message)}`; const onSubmit = async (e) => { e.preventDefault(); const form = e.currentTarget; if (form && form.reportValidity && !form.reportValidity()) return; setStatus("sending"); setError(""); try { const res = await fetch(ENDPOINT, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ ...v, company }) }); const out = await res.json().catch(() => ({})); if (res.ok && out.ok) { setStatus("sent"); return; } throw new Error(out.error || `Server responded ${res.status}`); } catch (err) { setError(String(err.message || err)); setStatus("failed"); } }; if (status === "failed") { return (

We could not send that from here

Your details are still filled in. Send them straight through on WhatsApp or by email instead and we will pick it up the same way.

{error}

); } if (status === "sent") { return (

Thank you — your enquiry is with us

It has been sent to the studio and we will reply with availability and a proposal. If you would like to add anything in the meantime, message us directly.

); } return (
setCompany(e.target.value)} aria-hidden="true" style={{ position: "absolute", left: "-9999px", width: "1px", height: "1px", opacity: 0 }} />

{status === "sending" ? "Sending your enquiry" : "We reply within two days"}

); } function EnquiryPage() { return (
Enquire

Tell us about your date.

Leave your details and we will come back with availability and a proposal. Everything you write here is sent straight to the studio inbox.

Fine henna linework drawn with a fresh cone