import{_ as f}from"./BWh38lwW.js";import{e as h,f as y,g as _,h as w,r as v,o as n,c as d,a as e,i as s,j as k,k as m,b as a,w as q,t as C,l as g}from"./-dIGDsTg.js";import{q as S}from"./eG5ISeQw.js";const P={class:"bg-white text-gray-900"},B={class:"px-10 py-[72px] max-[700px]:px-6 max-[700px]:py-14"},D={class:"mx-auto grid w-full max-w-[760px] gap-8"},E={class:"[&_h1]:m-0 [&_h1]:mb-[18px] [&_h1]:text-[clamp(2.25rem,5vw,4rem)] [&_h1]:font-black [&_h1]:leading-[1.05] [&_h1]:tracking-normal [&_h1]:text-gray-950 [&_p]:m-0 [&_p]:text-[1.1rem] [&_p]:leading-[1.75] [&_p]:text-gray-700"},N={class:"bg-black px-10 py-[72px] text-white max-[700px]:px-6 max-[700px]:py-14","aria-labelledby":"contact-form-title"},L={class:"mx-auto grid w-full max-w-[920px] gap-8"},R={class:"grid gap-5 md:grid-cols-2"},T={key:0,class:"m-0 text-sm font-semibold text-gray-300"},V={key:1,class:"m-0 text-sm font-semibold text-red-300"},K=h({__name:"contact",async setup(j){let o,p;const{data:i}=([o,p]=y(()=>_("contact-page",()=>S("content").path("/contact").first())),o=await o,p(),o);if(!i.value)throw w({statusCode:404,statusMessage:"Page not found",fatal:!0});const c=g(!1),r=g(""),x=async u=>{c.value=!1,r.value="";try{await $fetch("https://api.hoosierconcreteleveling.com/contact",{method:"POST",body:{...u,page:"/contact"}}),c.value=!0}catch{r.value="Sorry, your quote request could not be sent. Please call (463) 444-7933."}};return(u,l)=>{const b=f,t=v("FormKit");return n(),d("div",P,[e("section",B,[e("div",D,[e("article",E,[s(i)?(n(),k(b,{key:0,value:s(i)},null,8,["value"])):m("",!0)]),l[0]||(l[0]=e("aside",{class:"grid gap-3 rounded-lg border border-gray-200 bg-gray-50 p-6"},[e("p",{class:"m-0 text-sm font-black uppercase tracking-normal text-gray-500"}," Phone "),e("a",{class:"text-[clamp(1.55rem,3vw,2rem)] font-black leading-none no-underline hover:text-black",href:"tel:4634447933"}," (463) 444-7933 "),e("p",{class:"m-0 text-base leading-relaxed text-gray-600"}," Call to talk through uneven concrete, sinking slabs, or a quote request in Johnson County, Indiana. ")],-1))])]),e("section",N,[e("div",L,[l[1]||(l[1]=e("div",{class:"grid gap-4"},[e("h2",{id:"contact-form-title",class:"m-0 text-[clamp(1.85rem,3vw,3rem)] font-black leading-[1.05] tracking-normal"}," Request a Concrete Leveling Quote "),e("p",{class:"m-0 max-w-[680px] text-[1.05rem] leading-[1.8] text-gray-300"}," Describe the issue and receive help connecting with a concrete leveling professional in your area. ")],-1)),a(t,{type:"form",actions:!1,"form-class":"grid gap-5",onSubmit:x},{default:q(()=>[a(t,{type:"textarea",name:"issue",label:"Describe your issue",validation:"required",rows:"6","outer-class":"grid gap-2","label-class":"text-sm font-bold uppercase tracking-normal text-gray-200","input-class":"min-h-[160px] w-full rounded-lg border border-gray-700 !bg-white px-4 py-3 text-base leading-relaxed !text-gray-950 outline-none focus:border-white focus:ring-2 focus:ring-white/30","message-class":"text-sm font-semibold text-red-300"}),e("div",R,[a(t,{type:"text",name:"name",label:"Name",validation:"required","outer-class":"grid gap-2","label-class":"text-sm font-bold uppercase tracking-normal text-gray-200","input-class":"min-h-[52px] w-full rounded-lg border border-gray-700 !bg-white px-4 text-base !text-gray-950 outline-none focus:border-white focus:ring-2 focus:ring-white/30","message-class":"text-sm font-semibold text-red-300"}),a(t,{type:"text",name:"contactInfo",label:"Phone number or email",validation:"required","outer-class":"grid gap-2","label-class":"text-sm font-bold uppercase tracking-normal text-gray-200","input-class":"min-h-[52px] w-full rounded-lg border border-gray-700 !bg-white px-4 text-base !text-gray-950 outline-none focus:border-white focus:ring-2 focus:ring-white/30","message-class":"text-sm font-semibold text-red-300"})]),a(t,{type:"radio",name:"contactMethod",label:"How would you like to be contacted?",validation:"required",options:[{label:"Call",value:"call"},{label:"Text",value:"text"},{label:"Email",value:"email"}],"outer-class":"grid gap-3","fieldset-class":"m-0 border-0 p-0","legend-class":"mb-3 text-sm font-bold uppercase tracking-normal text-gray-200","options-class":"grid gap-3 sm:grid-cols-3","option-class":"m-0","wrapper-class":"flex min-h-[52px] cursor-pointer items-center gap-3 rounded-lg border border-gray-700 !bg-white px-4 !text-gray-950","label-class":"text-base font-bold","message-class":"text-sm font-semibold text-red-300"}),a(t,{type:"submit",label:"Request quote","outer-class":"mt-1","input-class":"inline-flex min-h-[54px] cursor-pointer items-center justify-center rounded-lg border border-white bg-white px-7 text-base font-black leading-none text-black hover:border-gray-200 hover:bg-gray-200"})]),_:1}),s(c)?(n(),d("p",T," Thanks. Your quote request has been sent. ")):m("",!0),s(r)?(n(),d("p",V,C(s(r)),1)):m("",!0)])])])}}});export{K as default};