(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46661,e=>{"use strict";var s=e.i(43476),t=e.i(71645);e.s(["default",0,function({email:e}){let[a,r]=(0,t.useState)({name:"",phone:"",subject:"",message:""}),[l,c]=(0,t.useState)("idle"),[n,i]=(0,t.useState)(!1),o=async e=>{e.preventDefault(),i(!0),c("idle");try{let e=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});c(e.ok?"success":"error"),e.ok&&r({name:"",phone:"",subject:"",message:""})}catch{c("error")}i(!1)},d="w-full border border-gray-200 px-4 py-3 text-sm text-charcoal focus:outline-none focus:border-gold transition-colors bg-white";return"success"===l?(0,s.jsxs)("div",{className:"bg-green-50 border border-green-200 rounded p-8 text-center",children:[(0,s.jsx)("div",{className:"text-3xl mb-3",children:"✓"}),(0,s.jsx)("h3",{className:"font-serif text-xl text-charcoal mb-2",children:"Message Received!"}),(0,s.jsx)("p",{className:"text-sm text-gray-500",children:"We'll get back to you within 24 hours."}),(0,s.jsx)("button",{onClick:()=>c("idle"),className:"mt-4 text-sm text-gold hover:underline",children:"Send another message"})]}):(0,s.jsxs)("form",{onSubmit:o,className:"space-y-4",children:[(0,s.jsx)("h3",{className:"font-serif text-xl text-charcoal mb-6",children:"Send Us a Message"}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs tracking-[0.15em] uppercase text-gray-400 mb-1.5",children:"Your Name *"}),(0,s.jsx)("input",{required:!0,value:a.name,onChange:e=>r({...a,name:e.target.value}),className:d,placeholder:"Priya Sharma"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs tracking-[0.15em] uppercase text-gray-400 mb-1.5",children:"Phone / WhatsApp"}),(0,s.jsx)("input",{type:"tel",value:a.phone,onChange:e=>r({...a,phone:e.target.value}),className:d,placeholder:"+91 98765 43210"})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs tracking-[0.15em] uppercase text-gray-400 mb-1.5",children:"Subject *"}),(0,s.jsx)("input",{required:!0,value:a.subject,onChange:e=>r({...a,subject:e.target.value}),className:d,placeholder:"Order inquiry / Custom design / Returns..."})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-xs tracking-[0.15em] uppercase text-gray-400 mb-1.5",children:"Message *"}),(0,s.jsx)("textarea",{required:!0,rows:5,value:a.message,onChange:e=>r({...a,message:e.target.value}),className:`${d} resize-none`,placeholder:"Tell us how we can help..."})]}),"error"===l&&(0,s.jsxs)("p",{className:"text-sm text-red-500",children:["Something went wrong. Please email us directly at ",e,"."]}),(0,s.jsx)("button",{type:"submit",disabled:n,className:"w-full bg-gold hover:bg-gold-dark text-white py-3.5 text-sm tracking-[0.2em] uppercase transition-colors disabled:opacity-50",children:n?"Sending...":"Send Message"})]})}])}]);