1import{r as i,j as e,S as N,N as y,a8 as u,b as l,f as v,B as h,L as g,F as k,p as w,m as C,Q as p}from"./index-B4yPwh20.js";import{I as n}from"./input-DMMFFPJ2.js";import{T as S}from"./textarea-Dqtwy7ym.js";import{s as f}from"./client-DRXzjcq-.js";import{C as M}from"./clock-B_IxYlME.js";import{M as F}from"./mail-BV-ybOr7.js";const A=[{icon:w,title:"Book a demo",description:"A walkthrough of the platform on your own book and product lines.",action:"Pick a time",href:"https://calendly.com/unlockedcrm/bookdemo"},{icon:C,title:"Call us",description:"Talk to the team on US business hours.",action:"(877) 761-4369",href:"tel:+18777614369"},{icon:F,title:"Email us",description:"Questions, support, partnerships, and press. We reply within 24 hours.",action:"[email protected]",href:"mailto:[email protected]"}],E=[{title:"We read it the same day",description:"A person reads your message, not a ticket queue. You hear back within 24 hours on business days."},{title:"We match you to the right conversation",description:"A producer gets a walkthrough of quoting and the AI. An agency or IMO gets the Agency/IMO plan conversation with hierarchies, overrides, and onboarding."},{title:"You decide",description:"Start the 14-day free trial on any plan, or book a demo first. No contracts either way."}],T=["How quickly can I get started?","Can I import my contacts and policies?","Which carriers do you integrate with?","Do you offer training and onboarding?"];function D(){const[a,o]=i.useState({firstName:"",lastName:"",email:"",phone:"",company:"",agentCount:"",message:""}),[m,d]=i.useState(!1),[b,c]=i.useState(!1),j=async t=>{t.preventDefault(),d(!0);try{const{error:s}=await f.from("contact_inquiries").insert({first_name:a.firstName.trim(),last_name:a.lastName.trim(),email:a.email.trim(),phone:a.phone.trim()||null,company:a.company.trim()||null,agent_count:a.agentCount||null,message:a.message.trim()});if(s)throw s;const{error:x}=await f.functions.invoke("send-contact-emails",{body:{firstName:a.firstName.trim(),lastName:a.lastName.trim(),email:a.email.trim(),phone:a.phone.trim()||null,company:a.company.trim()||null,agentCount:a.agentCount||null,message:a.message.trim()}});x&&console.error("Email error (non-blocking):",x),u.contactFormSubmit(),c(!0),o({firstName:"",lastName:"",email:"",phone:"",company:"",agentCount:"",message:""}),p.success("Message sent! We'll be in touch within 24 hours.")}catch(s){console.error("Error submitting form:",s),p.error("Something went wrong. Please try again.")}finally{d(!1)}},r=t=>{o(s=>({...s,[t.target.name]:t.target.value}))};return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(N,{title:"Contact unLocked CRM | Book a Demo, Call, or Email",description:"Book a demo, call (877) 761-4369, or email [email protected]. Replies within 24 hours on business days.",path:"/contact"}),e.jsx(y,{}),e.jsxs("main",{children:[e.jsx("section",{"data-ai-block":"contact-hero",className:"overflow-hidden pt-40 pb-8 sm:pt-44 sm:pb-10",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"mx-auto max-w-4xl text-center",children:[e.jsxs("h1",{className:"mb-6 text-balance text-4xl font-extrabold leading-tight tracking-tight text-foreground sm:text-5xl lg:text-6xl",children:["Get in ",e.jsx("span",{className:"gradient-text",children:"Touch."})]}),e.jsx("p",{className:"mx-auto mb-8 max-w-2xl text-balance text-[15px] leading-relaxed text-muted-foreground sm:text-lg",children:"Questions about the platform, a plan, or moving your book over. A person replies within 24 hours on business days."})]}),e.jsx("div",{className:"mx-auto mt-4 grid max-w-6xl gap-3 md:grid-cols-3",children:A.map(t=>e.jsxs("a",{href:t.href,target:t.href.startsWith("http")?"_blank":void 0,rel:t.href.startsWith("http")?"noopener noreferrer":void 0,onClick:()=>u.contactMethodClick(t.title),className:"group rounded-md border border-border bg-card p-6 transition-colors hover:border-primary/40",children:[e.jsx("div",{className:"mb-5 flex h-11 w-11 items-center justify-center rounded-xl bg-primary/10 text-primary",children:e.jsx(t.icon,{className:"h-5 w-5"})}),e.jsx("h3",{className:"text-lg font-semibold text-foreground",children:t.title}),e.jsx("p",{className:"mt-3 text-sm leading-6 text-muted-foreground",children:t.description}),e.jsxs("span",{className:"mt-4 inline-flex items-center gap-1 text-sm font-medium text-primary",children:[t.action,e.jsx(l,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]},t.title))})]})}),e.jsx("section",{"data-ai-block":"contact-form",className:"py-12 lg:py-16",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"mx-auto grid max-w-6xl gap-8 lg:grid-cols-[3fr_2fr] lg:gap-10",children:[e.jsx("div",{className:"rounded-md border border-border bg-card p-6 sm:p-8",children:b?e.jsxs("div",{className:"py-12 text-center",children:[e.jsx("div",{className:"mx-auto mb-5 flex h-11 w-11 items-center justify-center rounded-xl bg-primary/10 text-primary",children:e.jsx(v,{className:"h-5 w-5"})}),e.jsx("h2",{className:"text-2xl font-bold tracking-tight text-foreground",children:"Message Sent."}),e.jsx("p",{className:"mx-auto mt-3 max-w-md text-sm leading-6 text-muted-foreground",children:"Thanks for reaching out. You will hear from us within 24 hours on business days."}),e.jsx(h,{onClick:()=>c(!1),variant:"heroOutline",size:"hero",className:"mt-6",children:"Send Another Message"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("h2",{className:"text-balance text-2xl font-bold tracking-tight text-foreground sm:text-3xl",children:["Send Us ",e.jsx("span",{className:"gradient-text",children:"a Message."})]}),e.jsx("p",{className:"mt-3 text-sm leading-6 text-muted-foreground",children:"Tell us about your book and what you are trying to fix, and we will point you to the right plan and the right person."}),e.jsxs("form",{onSubmit:j,className:"mt-6 space-y-4",children:[e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"firstName",className:"mb-1.5 block text-sm font-medium text-foreground",children:["First name ",e.jsx("span",{className:"text-primary",children:"*"})]}),e.jsx(n,{id:"firstName",name:"firstName",value:a.firstName,onChange:r,required:!0,placeholder:"Jane",className:"h-11 rounded-md"})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"lastName",className:"mb-1.5 block text-sm font-medium text-foreground",children:["Last name ",e.jsx("span",{className:"text-primary",children:"*"})]}),e.jsx(n,{id:"lastName",name:"lastName",value:a.lastName,onChange:r,required:!0,placeholder:"Doe",className:"h-11 rounded-md"})]})]}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"email",className:"mb-1.5 block text-sm font-medium text-foreground",children:["Work email ",e.jsx("span",{className:"text-primary",children:"*"})]}),e.jsx(n,{id:"email",name:"email",type:"email",value:a.email,onChange:r,required:!0,placeholder:"[email protected]",className:"h-11 rounded-md"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"phone",className:"mb-1.5 block text-sm font-medium text-foreground",children:"Phone"}
1),e.jsx(n,{id:"phone",name:"phone",type:"tel",value:a.phone,onChange:r,placeholder:"(555) 123-4567",className:"h-11 rounded-md"})]})]}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"company",className:"mb-1.5 block text-sm font-medium text-foreground",children:"Agency"}),e.jsx(n,{id:"company",name:"company",value:a.company,onChange:r,placeholder:"Your agency name",className:"h-11 rounded-md"})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"agentCount",className:"mb-1.5 block text-sm font-medium text-foreground",children:"Team size"}),e.jsxs("select",{id:"agentCount",name:"agentCount",value:a.agentCount,onChange:r,className:"h-11 w-full rounded-md border border-input bg-background px-3 text-sm ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[e.jsx("option",{value:"",children:"Select size"}),e.jsx("option",{value:"1",children:"Just me"}),e.jsx("option",{value:"2-5",children:"2 to 5 agents"}),e.jsx("option",{value:"6-20",children:"6 to 20 agents"}),e.jsx("option",{value:"21-50",children:"21 to 50 agents"}),e.jsx("option",{value:"50+",children:"50+ agents"})]})]})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"message",className:"mb-1.5 block text-sm font-medium text-foreground",children:["How can we help? ",e.jsx("span",{className:"text-primary",children:"*"})]}),e.jsx(S,{id:"message",name:"message",value:a.message,onChange:r,required:!0,placeholder:"Tell us about your book and what you want to fix.",rows:4,className:"resize-none rounded-md"}),e.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:T.map(t=>e.jsx("button",{type:"button",onClick:()=>o(s=>({...s,message:t})),className:"rounded-md border border-border bg-background px-2.5 py-1 text-xs text-muted-foreground transition-colors hover:border-primary/40 hover:text-foreground",children:t},t))})]}),e.jsx(h,{type:"submit",variant:"hero",size:"hero",className:"w-full",disabled:m,children:m?"Sendingâ¦":e.jsxs(e.Fragment,{children:["Send Message",e.jsx(l,{className:"h-5 w-5"})]})}),e.jsxs("p",{className:"text-center text-xs text-muted-foreground",children:["By submitting, you agree to our ",e.jsx(g,{to:"/privacy-policy",className:"text-primary hover:underline",children:"Privacy Policy"})," and ",e.jsx(g,{to:"/terms-of-service",className:"text-primary hover:underline",children:"Terms of Service"}),"."]})]})]})}),e.jsxs("div",{className:"space-y-3",children:[E.map((t,s)=>e.jsxs("div",{className:"rounded-md border border-border bg-card p-6",children:[e.jsx("p",{className:"font-mono text-xs font-semibold text-primary",children:String(s+1).padStart(2,"0")}),e.jsx("h3",{className:"mt-4 text-lg font-semibold text-foreground",children:t.title}),e.jsx("p",{className:"mt-3 text-sm leading-6 text-muted-foreground",children:t.description})]},t.title)),e.jsxs("div",{className:"rounded-md border border-border bg-card p-6",children:[e.jsx("div",{className:"mb-5 flex h-11 w-11 items-center justify-center rounded-xl bg-primary/10 text-primary",children:e.jsx(M,{className:"h-5 w-5"})}),e.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Support hours"}),e.jsxs("dl",{className:"mt-4 space-y-2 text-sm",children:[e.jsxs("div",{className:"flex justify-between gap-4",children:[e.jsx("dt",{className:"text-muted-foreground",children:"Monday to Friday"}),e.jsx("dd",{className:"font-medium text-foreground",children:"8 AM to 8 PM ET"})]}),e.jsxs("div",{className:"flex justify-between gap-4",children:[e.jsx("dt",{className:"text-muted-foreground",children:"Saturday"}),e.jsx("dd",{className:"font-medium text-foreground",children:"9 AM to 5 PM ET"})]}),e.jsxs("div",{className:"flex justify-between gap-4",children:[e.jsx("dt",{className:"text-muted-foreground",children:"Sunday"}),e.jsx("dd",{className:"font-medium text-foreground",children:"Email only"})]})]})]}),e.jsxs("div",{className:"rounded-md border border-border bg-card p-6",children:[e.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Running an agency or IMO?"}),e.jsx("p",{className:"mt-3 text-sm leading-6 text-muted-foreground",children:"The Agency/IMO plan covers multi-agent management, downlines and overrides, team reporting, recruiting pipelines, and dedicated onboarding, on custom pricing."}),e.jsxs("a",{href:"https://calendly.com/unlockedcrm/agencyplan",target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-flex items-center gap-1 text-sm font-medium text-primary hover:underline",children:["Book the agency conversation",e.jsx(l,{className:"h-4 w-4"})]})]})]})]})})})]}),e.jsx(k,{})]})}
1export{D 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.