import{r as e,t}from"./jsx-runtime-DGeXAQPT.js";import{H as n}from"./link-BEigRx5R.js";import{V as r,d as i,n as a,r as o,t as s}from"./Modals-BkPPnKoF.js";import{t as c}from"./Footer-BlH0Gspn.js";import{t as l}from"./mail-BopYwFiG.js";import{t as u}from"./map-pin-z_SXwEyN.js";import{t as d}from"./phone-ClpZlnHr.js";import{C as f,l as p,u as m}from"./index-BFZg1haX.js";var h=e(n()),g=t();function _(){let[e,t]=(0,h.useState)(!1),[n,_]=(0,h.useState)(!1),[b,x]=(0,h.useState)(!1),[S,C]=(0,h.useState)({name:``,email:``,subject:``,topic:`General`,message:``}),[w,T]=(0,h.useState)(!1),E=e=>t=>C(n=>({...n,[e]:t.target.value}));return(0,g.jsxs)(`div`,{className:`min-h-screen`,style:{backgroundColor:`#f0f2f5`},children:[(0,g.jsx)(o,{open:e,onOpenChange:t}),(0,g.jsx)(s,{open:n,onOpenChange:_,onCheckout:()=>{_(!1),x(!0)}}),(0,g.jsx)(a,{open:b,onOpenChange:x}),(0,g.jsx)(i,{onOpenCart:()=>_(!0),onOpenSignIn:()=>t(!0)}),(0,g.jsxs)(`main`,{className:`max-w-[1200px] mx-auto px-4 py-6`,children:[(0,g.jsxs)(`div`,{className:`text-xs text-neutral-500 mb-3`,children:[`Home / `,(0,g.jsx)(`span`,{className:`text-neutral-800`,children:`Contact Us`})]}),(0,g.jsxs)(`div`,{className:`bg-gradient-to-r from-orange-500 to-orange-400 rounded-md p-6 text-white mb-4`,children:[(0,g.jsx)(`h1`,{className:`text-2xl font-bold`,children:`Contact Us`}),(0,g.jsx)(`p`,{className:`text-sm opacity-95 mt-1`,children:`Questions, feedback, or need help with an order? We're here for you.`})]}),(0,g.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-4`,children:[(0,g.jsxs)(`aside`,{className:`md:col-span-1 space-y-3`,children:[(0,g.jsx)(v,{icon:(0,g.jsx)(d,{className:`w-5 h-5`}),title:`Call us`,lines:[`081 0265 8259`,`Mon–Sat, 8am–7pm`]}),(0,g.jsx)(v,{icon:(0,g.jsx)(l,{className:`w-5 h-5`}),title:`Email`,lines:[`support@sulejamarket.ng`,`vendors@sulejamarket.ng`]}),(0,g.jsx)(v,{icon:(0,g.jsx)(u,{className:`w-5 h-5`}),title:`Address`,lines:[`Suleja, Niger State`,`Nigeria`]}),(0,g.jsx)(v,{icon:(0,g.jsx)(r,{className:`w-5 h-5`}),title:`Support hours`,lines:[`Mon–Fri: 8am–7pm`,`Sat: 9am–5pm`]})]}),(0,g.jsxs)(`section`,{className:`md:col-span-2 bg-white rounded-md p-5`,children:[(0,g.jsx)(`h2`,{className:`font-semibold text-lg mb-1`,children:`Send us a message`}),(0,g.jsx)(`p`,{className:`text-sm text-neutral-500 mb-4`,children:`Fill out the form and our team will respond within 24 hours.`}),(0,g.jsxs)(`form`,{onSubmit:e=>{if(e.preventDefault(),!S.name||!S.email||!S.message){f.error(`Please fill in your name, email and message.`);return}T(!0),setTimeout(()=>{T(!1),C({name:``,email:``,subject:``,topic:`General`,message:``}),f.success(`Message sent! We'll get back to you within 24 hours.`)},700)},className:`space-y-3`,children:[(0,g.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-3`,children:[(0,g.jsx)(y,{label:`Full name *`,children:(0,g.jsx)(p,{value:S.name,onChange:E(`name`),placeholder:`Jane Doe`})}),(0,g.jsx)(y,{label:`Email *`,children:(0,g.jsx)(p,{type:`email`,value:S.email,onChange:E(`email`),placeholder:`you@example.com`})})]}),(0,g.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-3`,children:[(0,g.jsx)(y,{label:`Topic`,children:(0,g.jsxs)(`select`,{value:S.topic,onChange:E(`topic`),className:`w-full h-9 px-3 rounded-md border border-neutral-200 bg-white text-sm`,children:[(0,g.jsx)(`option`,{children:`General`}),(0,g.jsx)(`option`,{children:`Order issue`}),(0,g.jsx)(`option`,{children:`Returns & refunds`}),(0,g.jsx)(`option`,{children:`Vendor inquiry`}),(0,g.jsx)(`option`,{children:`Feedback`})]})}),(0,g.jsx)(y,{label:`Subject`,children:(0,g.jsx)(p,{value:S.subject,onChange:E(`subject`),placeholder:`How can we help?`})})]}),(0,g.jsx)(y,{label:`Message *`,children:(0,g.jsx)(`textarea`,{value:S.message,onChange:E(`message`),rows:6,placeholder:`Tell us more...`,className:`w-full px-3 py-2 rounded-md border border-neutral-200 bg-white text-sm resize-y`})}),(0,g.jsxs)(`div`,{className:`flex items-center justify-between pt-1`,children:[(0,g.jsx)(`span`,{className:`text-xs text-neutral-500`,children:`We'll never share your email.`}),(0,g.jsx)(m,{type:`submit`,disabled:w,className:`bg-orange-500 hover:bg-orange-600 text-white`,children:w?`Sending...`:`Send message`})]})]})]})]})]}),(0,g.jsx)(c,{})]})}function v({icon:e,title:t,lines:n}){return(0,g.jsxs)(`div`,{className:`bg-white rounded-md p-4 flex gap-3`,children:[(0,g.jsx)(`div`,{className:`w-9 h-9 rounded-full bg-orange-50 text-orange-500 flex items-center justify-center shrink-0`,children:e}),(0,g.jsxs)(`div`,{children:[(0,g.jsx)(`div`,{className:`text-sm font-semibold text-neutral-800`,children:t}),n.map((e,t)=>(0,g.jsx)(`div`,{className:`text-xs text-neutral-500`,children:e},t))]})]})}function y({label:e,children:t}){return(0,g.jsxs)(`label`,{className:`block`,children:[(0,g.jsx)(`span`,{className:`block text-xs font-medium text-neutral-700 mb-1`,children:e}),t]})}export{_ as component};