// Contact form — submits via FormSubmit.co AJAX to admin@scalemediallc.com function HpContact() { const params = new URLSearchParams(window.location.search); const isOffer = params.get("type") === "offer"; const initiallySubmitted = params.get("submitted") === "1"; const [submitted, setSubmitted] = React.useState(initiallySubmitted); const [pending, setPending] = React.useState(false); const [error, setError] = React.useState(null); const onSubmit = async (e) => { e.preventDefault(); setError(null); setPending(true); const fd = new FormData(e.target); const obj = {}; fd.forEach((v, k) => { obj[k] = v; }); obj._subject = isOffer ? "New offer brief — scalemediallc.com" : "New inquiry — scalemediallc.com"; obj._template = "table"; obj._captcha = "false"; try { const r = await fetch("https://formsubmit.co/ajax/admin@scalemediallc.com", { method: "POST", headers: { "Content-Type": "application/json", "Accept": "application/json" }, body: JSON.stringify(obj), }); const data = await r.json().catch(() => ({})); if (data && (data.success === "true" || data.success === true)) { setSubmitted(true); try { window.history.replaceState(null, "", "?submitted=1"); } catch (_) {} window.scrollTo({ top: 0, behavior: "smooth" }); } else { setError(data.message || "Could not send right now. Please email admin@scalemediallc.com directly."); } } catch (_) { setError("Network error. Please email admin@scalemediallc.com directly."); } finally { setPending(false); } }; if (submitted) { return (
Thank you Reply within 1 business day

Got it.{" "} We'll be in touch.

Your brief is on its way to admin@scalemediallc.com. We typically reply within one business day. If it's urgent, email us directly.

← Back to home Email us instead
); } return (
{isOffer ? "Submit your offer" : "Get in touch"} Reply within 1 business day · admin@scalemediallc.com

{isOffer ? ( <>Got an offer?{" "} Tell us. ) : ( <>Let's{" "} talk. )}

{isOffer ? "Share your offer details. We'll review the math — EPCs, refund profile, funnel — and tell you straight whether we'll run it." : "Tell us about you and the offer you're working on. We'll come back with a candid take and next steps."}

{/* Honeypot — bots fill this, humans don't */}