(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42166,e=>{"use strict";var t=e.i(43476),a=e.i(71645),r=e.i(22016);let o=[{slug:"employment-contract-review",label:"Employment Contract"},{slug:"job-offer-review",label:"Job Offer Letter"},{slug:"non-compete-clause-review",label:"Non-Compete Clause"},{slug:"ip-assignment-clause-review",label:"IP Assignment Clause"},{slug:"severance-agreement-review",label:"Severance Agreement"},{slug:"freelance-contract-review",label:"Freelance Contract"},{slug:"independent-contractor-agreement-review",label:"Independent Contractor Agreement"},{slug:"international-employment-contract-review",label:"International Employment Contract"}];e.s(["default",0,function(){let[e,n]=(0,a.useState)("form"),[l,s]=(0,a.useState)(""),[i,c]=(0,a.useState)({name:"",email:"",role:"",location:"",contractType:"",testimonial:"",rating:"5",allowContact:!1}),d=e=>{let{name:t,value:a,type:r}=e.target,o="checkbox"===r?e.target.checked:a;c(e=>({...e,[t]:o}))},m=async e=>{e.preventDefault(),n("submitting");try{let e=await fetch("/api/submit-testimonial",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(e.ok)n("success"),c({name:"",email:"",role:"",location:"",contractType:"",testimonial:"",rating:"5",allowContact:!1});else{let t=await e.json();s(t.message||"Something went wrong. Please try again."),n("error")}}catch(e){s("Network error. Please check your connection and try again."),n("error")}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("section",{className:"bg-gradient-to-b from-[#1a3a5c] to-[#142e4a] text-white py-14 px-4",children:(0,t.jsxs)("div",{className:"max-w-3xl mx-auto text-center",children:[(0,t.jsx)("h1",{className:"text-3xl md:text-4xl font-bold leading-tight mb-5",children:"Share Your Contract Review Experience"}),(0,t.jsx)("p",{className:"text-blue-200 text-lg leading-relaxed",children:"Help others by sharing how WorkContractReview helped you understand your contract. Your story matters."})]})}),(0,t.jsx)("section",{className:"bg-white py-14 px-4",children:(0,t.jsxs)("div",{className:"max-w-2xl mx-auto",children:["form"===e&&(0,t.jsxs)("form",{onSubmit:m,className:"space-y-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-semibold text-[#1a3a5c] mb-2",children:"Your Name *"}),(0,t.jsx)("input",{type:"text",name:"name",value:i.name,onChange:d,placeholder:"First and last name",required:!0,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#059669]"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-semibold text-[#1a3a5c] mb-2",children:"Email Address *"}),(0,t.jsx)("input",{type:"email",name:"email",value:i.email,onChange:d,placeholder:"your@email.com",required:!0,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#059669]"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:"(Not published, used for follow-up only)"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-semibold text-[#1a3a5c] mb-2",children:"Your Role/Title *"}),(0,t.jsx)("input",{type:"text",name:"role",value:i.role,onChange:d,placeholder:"e.g., Software Engineer, Product Manager",required:!0,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#059669]"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-semibold text-[#1a3a5c] mb-2",children:"Location (Optional)"}),(0,t.jsx)("input",{type:"text",name:"location",value:i.location,onChange:d,placeholder:"City, State or Country",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#059669]"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-semibold text-[#1a3a5c] mb-2",children:"Which contract type did you review? *"}),(0,t.jsxs)("select",{name:"contractType",value:i.contractType,onChange:d,required:!0,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#059669]",children:[(0,t.jsx)("option",{value:"",children:"-- Select a contract type --"}),o.map(e=>(0,t.jsx)("option",{value:e.slug,children:e.label},e.slug))]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-semibold text-[#1a3a5c] mb-3",children:"Rating *"}),(0,t.jsx)("div",{className:"flex gap-3",children:[1,2,3,4,5].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>c(t=>({...t,rating:String(e)})),className:`text-3xl transition-colors ${parseInt(i.rating)>=e?"text-yellow-400":"text-gray-300"}`,children:"★"},e))}),(0,t.jsxs)("p",{className:"text-xs text-gray-500 mt-2",children:[parseInt(i.rating)," star",1!==parseInt(i.rating)?"s":""]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{className:"block text-sm font-semibold text-[#1a3a5c] mb-2",children:"Your Story (50-500 characters) *"}),(0,t.jsx)("textarea",{name:"testimonial",value:i.testimonial,onChange:d,placeholder:"Tell us how WorkContractReview helped you. What specific issue did you discover? How did it change your decision?",required:!0,minLength:50,maxLength:500,rows:4,className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-[#059669] resize-none"}),(0,t.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[i.testimonial.length," / 500 characters"]})]}),(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("input",{type:"checkbox",name:"allowContact",id:"allowContact",checked:i.allowContact,onChange:d,className:"mt-1 w-4 h-4 border border-gray-300 rounded focus:ring-2 focus:ring-[#059669]"}),(0,t.jsx)("label",{htmlFor:"allowContact",className:"text-sm text-gray-600",children:"I'd love to be featured in a case study or have you contact me about this experience"})]}),(0,t.jsx)("button",{type:"submit",className:"w-full bg-[#059669] hover:bg-[#047857] text-white px-6 py-3 rounded-lg font-bold text-lg transition-colors",children:"Submit Your Testimonial"}),(0,t.jsx)("p",{className:"text-xs text-gray-500 text-center",children:"By submitting, you agree that your testimonial may be published on WorkContractReview.com"})]}),"submitting"===e&&(0,t.jsxs)("div",{className:"text-center py-12",children:[(0,t.jsx)("div",{className:"w-12 h-12 border-4 border-gray-300 border-t-[#059669] rounded-full animate-spin mx-auto mb-4"}),(0,t.jsx)("p",{className:"text-gray-600 font-medium",children:"Submitting your testimonial..."})]}),"success"===e&&(0,t.jsxs)("div",{className:"bg-green-50 border border-green-200 rounded-xl p-8 text-center",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,t.jsx)("h2",{className:"text-xl font-bold text-green-800 mb-2",children:"Thank You!"}),(0,t.jsx)("p",{className:"text-green-700 mb-6",children:"Your testimonial has been submitted. We'll review it and may feature it on WorkContractReview.com. If you enabled contact, we'll reach out soon!"}),(0,t.jsx)(r.default,{href:"/",className:"inline-block bg-[#059669] hover:bg-[#047857] text-white px-6 py-3 rounded-lg font-bold transition-colors",children:"Back to Home"})]}),"error"===e&&(0,t.jsxs)("div",{className:"bg-red-50 border border-red-200 rounded-xl p-8 text-center",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-red-100 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,t.jsx)("h2",{className:"text-xl font-bold text-red-800 mb-2",children:"Something went wrong"}),(0,t.jsx)("p",{className:"text-red-700 mb-6",children:l}),(0,t.jsx)("button",{onClick:()=>{n("form"),s("")},className:"inline-block bg-[#1a3a5c] hover:bg-[#142e4a] text-white px-6 py-3 rounded-lg font-bold transition-colors",children:"Try Again"})]})]})}),(0,t.jsx)("div",{className:"bg-white border-t border-gray-100 py-4 px-4",children:(0,t.jsx)("div",{className:"max-w-3xl mx-auto",children:(0,t.jsx)(r.default,{href:"/",className:"text-[#059669] hover:text-[#047857] text-sm font-medium",children:"← Back to WorkContractReview.com"})})})]})}])}]);