PageSourceSearch

https://stackhaus.co/assets/AgentReferral-mN9dwhNL.js

js stackhaus.co collected 2026-10-07 17:44:15 UTC 14,579 bytes, 1 lines download raw bytes

1import{r,j as e,S as y,m as n,A as d,P as m,n as w,i as j,U as N,l as v,a as k,h as _,o as S,C,s as x}from"./index-BLHHgiEd.js";import{a as h,P as R}from"./constants-B5Bdv2n5.js";const Y=[{q:"When do I get paid my referral commission?",a:"You receive your full referral fee at the time the client's full-build contract is signed — not at feasibility, not at close. It's clean and simple."},{q:"Does the client need to tell StackHaus I referred them?",a:"No. You register the referral here first, and we track it on our end. Your commission is protected from the moment you submit this form."},{q:"What if the client already called StackHaus directly?",a:"If you submit this form before a contract is signed, your referral is valid. We honor agent relationships."},{q:"Do you work with agents outside California?",a:"Yes. StackHaus operates nationally. Referral terms are the same in all states."},{q:"Can I refer multiple clients?",a:"Absolutely. There's no cap. Some of our top agent partners refer 3–5 clients per quarter."}],A=[{num:"01",title:"Submit the Referral",desc:"Fill out the form below with your client's basic info. Takes 60 seconds."},{num:"02",title:"We Handle Everything",desc:"StackHaus contacts your client, runs their feasibility, manages insurance, permits, and build. You do nothing else."},{num:"03",title:"Get Paid at Contract",desc:"When the client signs their full-build contract, your commission is issued. No chasing. No surprises."}];function H(){const[a,l]=r.useState({agent_name:"",agent_email:"",agent_phone:"",client_name:"",client_email:"",client_phone:"",client_city:"",disaster_type:"",notes:""}),[p,b]=r.useState(!1),[o,c]=r.useState(!1),[i,u]=r.useState(null),g=async t=>{if(t.preventDefault(),!(!a.agent_name||!a.agent_email||!a.client_name||!a.client_email)){c(!0);try{await x.entities.Referral.create({agent_name:a.agent_name,agent_email:a.agent_email,agent_phone:a.agent_phone,referred_name:a.client_name,referred_email:a.client_email,referred_phone:a.client_phone,city:a.client_city,notes:a.notes,status:"pending"}),x.functions.invoke("syncToHubSpot",{lead:{first_name:a.client_name.split(" ")[0],last_name:a.client_name.split(" ").slice(1).join(" "),email:a.client_email,phone:a.client_phone,city:a.client_city,source:"Agent Referral",notes:`Referred by: ${a.agent_name} (${a.agent_email})${a.notes?" — "+a.notes:""}`}}).catch(()=>{}),b(!0)}catch{alert("Something went wrong. Please email [email protected] directly.")}c(!1)}};return e.jsxs("div",{className:"min-h-screen bg-white",children:[e.jsx(y,{pageName:"AgentReferral"}),e.jsxs("section",{className:"pt-28 pb-20 px-6 bg-gradient-to-br from-[#1a1d2e] to-[#293468] text-white text-center relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 opacity-10 pointer-events-none",style:{backgroundImage:"radial-gradient(circle at 20% 50%, #3390ce 0%, transparent 50%), radial-gradient(circle at 80% 20%, #c8ab71 0%, transparent 50%)"}}),e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"relative z-10 max-w-3xl mx-auto",children:[e.jsx("p",{className:"text-[#c8ab71] text-[11px] tracking-[0.4em] uppercase font-bold mb-4",children:"For Real Estate Agents"}),e.jsxs("h1",{className:"text-[38px] sm:text-[52px] font-bold mb-5 tracking-tight leading-tight",children:["Refer Your Clients.",e.jsx("br",{}),e.jsxs("span",{className:"text-[#c8ab71]",children:["Protect Your Commission.",e.jsx("br",{}),"We Handle Everything."]})]}),e.jsx("p",{className:"text-[16px] text-white/70 max-w-2xl mx-auto mb-8 leading-relaxed",children:"Your client lost their home. You want to help — but rebuilding isn't your lane. Refer them to StackHaus and we'll take it from here: insurance recovery, financing, design, permits, and construction. One contract. Fixed price. 12 months."}),e.jsxs("div",{className:"flex flex-wrap gap-4 justify-center",children:[e.jsxs("a",{href:"#refer",className:"inline-flex items-center gap-2 bg-[#c8ab71] hover:bg-[#b8995d] text-white px-10 py-4 rounded-xl font-bold text-[15px] transition-all shadow-lg hover:scale-105",children:["Submit a Referral ",e.jsx(d,{className:"w-5 h-5"})]}),e.jsxs("a",{href:h,className:"inline-flex items-center gap-2 border-2 border-white/30 hover:border-white/60 text-white px-8 py-4 rounded-xl font-semibold text-[14px] transition-all",children:[e.jsx(m,{className:"w-4 h-4"})," Talk to Our Agent Team"]})]})]})]}),e.jsx("section",{className:"py-8 px-6 bg-[#c8ab71]",children:e.jsx("div",{className:"max-w-5xl mx-auto grid grid-cols-2 md:grid-cols-4 gap-6 text-center",children:[{stat:"Commission",sub:"Paid at contract signing"},{stat:"12–18 mo",sub:"Average build timeline"},{stat:"1 call",sub:"All you need to refer"},{stat:"All 50 states",sub:"We operate nationwide"}].map((t,s)=>e.jsxs("div",{children:[e.jsx("p",{className:"text-[24px] font-bold text-white",children:t.stat}),e.jsx("p",{className:"text-[12px] text-white/80 font-semibold mt-0.5",children:t.sub})]},s))})}),e.jsx("section",{className:"py-20 px-6 bg-white",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("p",{className:"text-[#3390ce] text-[11px] tracking-[0.35em] uppercase font-bold mb-3",children:"Why Partner With StackHaus"}),e.jsx("h2",{className:"text-[32px] sm:text-[40px] font-bold text-[#1a1d2e] mb-4",children:"Your clients get the best outcome. You stay the trusted advisor."})]}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:[{icon:w,color:"#10b981",bg:"#f0fdf4",border:"#6ee7b7",title:"Your Commission is Protected",desc:"Register the referral first and your fee is secured from day one — regardless of how the client found us later."},{icon:j,color:"#3390ce",bg:"#eff8ff",border:"#93c5fd",title:"We Do the Heavy Lifting",desc:"Insurance disputes, FEMA coordination, permits, contractors — none of this lands on you. You refer; we deliver."},{icon:N,color:"#8b5cf6",bg:"#f5f3ff",border:"#c4b5fd",title:"You Stay the Trusted Agent",desc:"We operate behind the scenes. Your relationship with the client remains yours. We're your specialist partner, not a replacement."},{icon:v,color:"#f59e0b",bg:"#fffbeb",border:"#fcd34d",title:"Fastest Rebuild Timeline",desc:"12–18 months vs. 3–5 years. Your client gets into their new home faster, which reflects well on you."},{icon:k,color:"#293468",bg:"#eff0f9",border:"#a5b4fc",title:"Fixed Price — No Surprises",desc:"Your client signs one contract and the price is locked. No awkward calls about cost overruns or contractor drama."},{icon:_,color:"#ef4444",bg:"#fef2f2",border:"#fca5a5",title:"Referral Program, Not a Lead Form",desc:"This is a formal agent partnership. Your name is attached to every client you send us, and we acknowledge that in writing."}].map((t,s)=>{const f=t.icon;return e.jsxs(n.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:s*.07},className:"rounded-2xl p-6 border",style:{background:t.bg,borderColor:t.border},children:[e.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center mb-4",style:{background:"rgba(255,255,255,0.7)"},children:e.jsx(f,{className:"w-5 h-5",style:{color:t.color}})}),e.jsx("h3",{className:"text-[15px] font-bold text-[#1a1d2e] mb-2",children:t.title}),e.jsx("p",{className:"text-[13px] text-gray-600 leading-relaxed",children:t.desc})]},s)})})]})}),e.jsx("section",{className:"py-16 px-6 bg-[#f7f5f2]",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("p",{className:"text-[#c8ab71] text-[11px] tracking-[0.35em] uppercase font-bold mb-3",children:"Simple Process"}),e.jsx("h2",{className:"text-[28px] sm:text-[36px] font-bold text-[#1a1d2e]",children:"Three Steps. Then You're Done."})]}),e.jsx("div",{className:"grid sm:grid-cols-3 gap-6",children:A.map((t,s)=>e.jsxs("div",{className:"bg-white rounded-2xl p-7 border border-gray-100 text-center shadow-sm",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-[#293468] text-white flex items-center justify-center text-[14px] font-black mx-auto mb-4",children:t.num}),e.jsx("h3",{className:"text-[16px] font-bold text-[#1a1d2e] mb-2",children:t.title}),e.jsx("p",{className:"text-[13px] text-gray-500 leading-relaxed",children:t.desc})]},s))})]})}),e.jsxs("section",{id:"refer",className:"py-20 px-6 bg-gradient-to-br from-[#0f1220] via-[#1a1d2e] to-[#293468] relative overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0 opacity-15 pointer-events-none",children:[e.jsx("div",{className:"absolute top-1/4 left-1/4 w-96 h-96 bg-[#3390ce] rounded-full blur-[120px]"}),e.jsx("div",{className:"absolute bottom-1/4 right-1/4 w-72 h-72 bg-[#c8ab71] rounded-full blur-[100px]"})]}),e.jsxs("div",{className:"max-w-2xl mx-auto relative z-10",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("p",{className:"text-[#c8ab71] text-[11px] tracking-[0.4em] uppercase font-bold mb-3",children:"Submit a Referral"}),e.jsx("h2",{className:"text-[32px] font-bold text-white mb-3",children:"Register Your Client Now"}),e.jsx("p",{className:"text-white/60 text-[14px]",children:"Takes 60 seconds. Secures your commission from day one."})]}),p?e.jsxs(n.div,{initial:{opacity:0,scale:.95}
1,animate:{opacity:1,scale:1},className:"bg-green-500/20 border border-green-400/40 rounded-2xl p-10 text-center",children:[e.jsx("div",{className:"text-5xl mb-4",children:"🎉"}),e.jsx("h3",{className:"text-[22px] font-bold text-white mb-2",children:"Referral Registered!"}),e.jsxs("p",{className:"text-green-300 text-[14px] leading-relaxed",children:["We'll reach out to your client within 24 hours. Your commission is protected from this moment forward. We'll send a confirmation to ",e.jsx("strong",{children:a.agent_email}),"."]})]}):e.jsxs("form",{onSubmit:g,className:"bg-white/10 backdrop-blur-md rounded-2xl border border-white/20 p-8 space-y-5",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[#c8ab71] text-[11px] font-bold uppercase tracking-wider mb-3",children:"Your Information"}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:[{key:"agent_name",label:"Your Full Name *",placeholder:"Jane Smith"},{key:"agent_email",label:"Your Email *",placeholder:"[email protected]"},{key:"agent_phone",label:"Your Phone",placeholder:"(555) 123-4567"}].map(t=>e.jsxs("div",{className:t.key==="agent_phone"?"sm:col-span-2":"",children:[e.jsx("label",{className:"text-[11px] font-semibold text-white/60 block mb-1",children:t.label}),e.jsx("input",{value:a[t.key],onChange:s=>l({...a,[t.key]:s.target.value}),placeholder:t.placeholder,className:"w-full bg-white/10 border border-white/20 focus:border-[#c8ab71] text-white placeholder-white/30 rounded-lg px-4 py-3 text-[13px] focus:outline-none transition-all"})]},t.key))})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[#c8ab71] text-[11px] font-bold uppercase tracking-wider mb-3",children:"Client Information"}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:[{key:"client_name",label:"Client Full Name *",placeholder:"John Homeowner"},{key:"client_email",label:"Client Email *",placeholder:"[email protected]"},{key:"client_phone",label:"Client Phone",placeholder:"(555) 987-6543"},{key:"client_city",label:"Property City / Location",placeholder:"Malibu, CA"}].map(t=>e.jsxs("div",{children:[e.jsx("label",{className:"text-[11px] font-semibold text-white/60 block mb-1",children:t.label}),e.jsx("input",{value:a[t.key],onChange:s=>l({...a,[t.key]:s.target.value}),placeholder:t.placeholder,className:"w-full bg-white/10 border border-white/20 focus:border-[#c8ab71] text-white placeholder-white/30 rounded-lg px-4 py-3 text-[13px] focus:outline-none transition-all"})]},t.key))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"text-[11px] font-semibold text-white/60 block mb-1",children:"Notes (optional)"}),e.jsx("textarea",{value:a.notes,onChange:t=>l({...a,notes:t.target.value}),rows:2,placeholder:"Any context about the client's situation — disaster type, timeline urgency, etc.",className:"w-full bg-white/10 border border-white/20 focus:border-[#c8ab71] text-white placeholder-white/30 rounded-lg px-4 py-3 text-[13px] focus:outline-none transition-all resize-none"})]}),e.jsxs("button",{type:"submit",disabled:o||!a.agent_name||!a.agent_email||!a.client_name||!a.client_email,className:"w-full flex items-center justify-center gap-2 bg-gradient-to-r from-[#c8ab71] to-[#b8995d] hover:from-[#b8995d] hover:to-[#a88847] disabled:opacity-50 text-white py-4 rounded-xl font-bold text-[15px] transition-all shadow-xl",children:[o?e.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}):e.jsx(d,{className:"w-5 h-5"}),"Register Referral & Protect My Commission"]}),e.jsx("p",{className:"text-center text-[11px] text-white/40",children:"By submitting, you agree to StackHaus referral terms. Commission structure confirmed at contract signing."})]})]})]}),e.jsx("section",{className:"py-16 px-6 bg-white",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsx("h2",{className:"text-[26px] font-bold text-[#1a1d2e] text-center mb-10",children:"Agent FAQ"}),e.jsx("div",{className:"space-y-3",children:Y.map((t,s)=>e.jsxs("div",{className:"border-2 border-gray-100 rounded-xl overflow-hidden hover:border-[#c8ab71]/40 transition-all",children:[e.jsxs("button",{onClick:()=>u(i===s?null:s),className:"w-full flex items-center justify-between px-6 py-4 text-left",children:[e.jsx("span",{className:"text-[14px] font-semibold text-[#1a1d2e] pr-4",children:t.q}),i===s?e.jsx(S,{className:"w-5 h-5 text-gray-400 flex-shrink-0"}):e.jsx(C,{className:"w-5 h-5 text-gray-400 flex-shrink-0"})]}),i===s&&e.jsx("div",{className:"px-6 pb-5 text-[13px] text-gray-600 leading-relaxed border-t border-gray-100 pt-4",children:t.a})]},s))})]})}),e.jsxs("section",{className:"py-16 px-6 bg-[#1a1d2e] text-center",children:[e.jsx("h2",{className:"text-[26px] sm:text-[32px] font-bold text-white mb-4",children:"Questions before you refer?"}),e.jsx("p",{className:"text-white/60 text-[14px] mb-6 max-w-xl mx-auto",children:"Call our agent partnership team directly. We're happy to walk through the referral structure, commission timeline, and how the process works end-to-e
1nd."}),e.jsxs("a",{href:h,className:"inline-flex items-center gap-2 bg-[#c8ab71] hover:bg-[#b8995d] text-white px-10 py-4 rounded-xl font-bold text-[15px] transition-all shadow-lg",children:[e.jsx(m,{className:"w-5 h-5"})," Call ",R]})]})]})}export{H as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.