import{r as g,o as F,j as e,m as i,x as j,I as l,G as V,B as f,S as M}from"./index-BOOC9B8a.js";import{S as n,a as c,b as d,c as m,d as u,T as C}from"./textarea-B_fuluJO.js";import{B as R,C as Y}from"./checkbox-Du9MovO5.js";import{s as B}from"./contactForm-C-ONNoUK.js";import{S as k}from"./sparkles-BfAWYmPT.js";import{F as S}from"./file-text-C4bwXAAq.js";import{C as w}from"./clock-DKNDwUhx.js";import{M as T}from"./message-square-lYZwtFLl.js";import{M as q}from"./mail-CNwzbeXK.js";import{P as H}from"./phone-6QvTh9Xi.js";import{A as z}from"./arrow-right-Dn5dAXC5.js";import"./index-B5GDSPpp.js";import"./chevron-down-5Pd_AXdE.js";import"./chevron-up-RYGYO70X.js";const le=()=>{const[a,v]=g.useState({name:"",email:"",phone:"",company:"",jobTitle:"",website:"",projectType:"",contentType:"",sourceLanguage:"",targetLanguages:"",contentDuration:"",numberOfEpisodes:"",timeline:"",budget:"",startDate:"",message:"",referenceLinks:"",howDidYouHear:"",preferredContact:"",newsletterOptIn:!1}),[N,y]=g.useState(!1),[r,x]=g.useState(0),{toast:b}=F(),L=["Voice Dubbing & Syncing","Subtitling & Localization","Audio Post Production","Voice Casting & Directing","ADR Services","Editorial Services","Social Media Content","Full Localization Package","Other / Consultation"],D=["Feature Film","TV Series / OTT","Documentary","Animation","Commercial / Advertisement","Corporate Video","E-Learning","Video Game","Podcast / Audiobook","Social Media Content","Other"],A=[{value:"asap",label:"ASAP (Rush Job)"},{value:"1-2weeks",label:"1-2 Weeks"},{value:"1month",label:"1 Month"},{value:"2-3months",label:"2-3 Months"},{value:"3-6months",label:"3-6 Months"},{value:"flexible",label:"Flexible / Ongoing"}],P=[{value:"under-1k",label:"Under $1,000"},{value:"1k-5k",label:"$1,000 - $5,000"},{value:"5k-10k",label:"$5,000 - $10,000"},{value:"10k-25k",label:"$10,000 - $25,000"},{value:"25k-50k",label:"$25,000 - $50,000"},{value:"50k-plus",label:"$50,000+"},{value:"discuss",label:"Let's Discuss"}],I=["Google Search","Social Media","Referral","Industry Event","Previous Client","LinkedIn","Other"],$=[{value:"email",label:"Email"},{value:"phone",label:"Phone Call"},{value:"video",label:"Video Call"},{value:"any",label:"Any Method"}],t=(s,o)=>{v(h=>({...h,[s]:o}))},E=async s=>{s.preventDefault();const o=a.email.trim();if(!a.name.trim()||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)){x(0),b({title:"Contact information required",description:"Please enter your full name and a valid email address.",variant:"destructive"});return}y(!0);const h=`
Assessment Form Submission

ADDITIONAL CONTACT DETAILS:
- Job Title: ${a.jobTitle||"Not provided"}
- Website: ${a.website||"Not provided"}

PROJECT DETAILS:
- Content Type: ${a.contentType||"Not specified"}
- Source Language: ${a.sourceLanguage||"Not specified"}
- Content Duration: ${a.contentDuration||"Not specified"}
- Number of Episodes: ${a.numberOfEpisodes||"Not applicable"}
- Preferred Start Date: ${a.startDate||"Not specified"}

ADDITIONAL INFO:
${a.message||"No additional details provided"}

Reference Links: ${a.referenceLinks||"None provided"}

SURVEY:
- How did you hear about us: ${a.howDidYouHear||"Not specified"}
- Preferred Contact Method: ${a.preferredContact||"Not specified"}
- Newsletter Opt-in: ${a.newsletterOptIn?"Yes":"No"}
    `.trim();try{await B({source:"Project Assessment Form",name:a.name,email:o,company:a.company,phone:a.phone,projectType:a.projectType,languages:a.targetLanguages,timeline:a.timeline,budget:a.budget,message:h}),b({title:"Assessment Submitted! 🎉",description:"We'll review your project and get back to you within 24 hours."}),v({name:"",email:"",phone:"",company:"",jobTitle:"",website:"",projectType:"",contentType:"",sourceLanguage:"",targetLanguages:"",contentDuration:"",numberOfEpisodes:"",timeline:"",budget:"",startDate:"",message:"",referenceLinks:"",howDidYouHear:"",preferredContact:"",newsletterOptIn:!1}),x(0)}catch(p){console.error("Error sending assessment:",p),b({title:"Submission failed",description:p instanceof Error?p.message:"Please try again in a moment.",variant:"destructive"})}finally{y(!1)}},O=[{title:"Contact Information",icon:j},{title:"Project Details",icon:S},{title:"Timeline & Budget",icon:w},{title:"Additional Info",icon:T}];return e.jsx("section",{className:"py-20 bg-gradient-to-b from-surface/20 to-background",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(i.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-center mb-12",children:[e.jsxs("span",{className:"inline-flex items-center gap-2 px-4 py-2 bg-surface glass rounded-full text-primary font-medium text-sm mb-6",children:[e.jsx(k,{className:"w-4 h-4"}),"Project Assessment Form"]}),e.jsxs("h2",{className:"font-display font-bold text-3xl sm:text-4xl md:text-5xl mb-4",children:["Tell Us About Your ",e.jsx("span",{className:"text-studio-gradient",children:"Project"})]}),e.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"Fill out as much or as little as you'd like. All fields are optional except name and email."})]}),e.jsx("div",{className:"flex justify-center gap-2 mb-12 flex-wrap",children:O.map((s,o)=>e.jsxs("button",{onClick:()=>x(o),className:`flex items-center gap-2 px-4 py-2 rounded-full transition-all duration-300 ${r===o?"bg-primary text-white":"glass text-muted-foreground hover:text-foreground"}`,children:[e.jsx(s.icon,{className:"w-4 h-4"}),e.jsx("span",{className:"hidden sm:inline text-sm",children:s.title}),e.jsx("span",{className:"sm:hidden text-sm",children:o+1})]},o))}),e.jsxs(i.form,{onSubmit:E,noValidate:!0,initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},className:"glass-intense p-8 md:p-12 rounded-3xl backdrop-blur-xl border border-white/10",children:[e.jsxs(i.div,{initial:{opacity:0,x:-20},animate:{opacity:r===0?1:0,x:r===0?0:-20},className:r===0?"block":"hidden",children:[e.jsxs("h3",{className:"font-display font-bold text-xl mb-6 flex items-center gap-3",children:[e.jsx(j,{className:"w-5 h-5 text-primary"}),"Contact Information"]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Full Name *"}),e.jsxs("div",{className:"relative",children:[e.jsx(j,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(l,{maxLength:100,value:a.name,onChange:s=>t("name",s.target.value),placeholder:"John Doe",required:!0,className:"glass border-border/30 focus:border-primary/50 pl-10"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Email Address *"}),e.jsxs("div",{className:"relative",children:[e.jsx(q,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(l,{type:"email",maxLength:255,value:a.email,onChange:s=>t("email",s.target.value),placeholder:"john@company.com",required:!0,className:"glass border-border/30 focus:border-primary/50 pl-10"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Phone Number"}),e.jsxs("div",{className:"relative",children:[e.jsx(H,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(l,{type:"tel",maxLength:20,value:a.phone,onChange:s=>t("phone",s.target.value),placeholder:"+1 (555) 555-5555",className:"glass border-border/30 focus:border-primary/50 pl-10"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Company / Organization"}),e.jsxs("div",{className:"relative",children:[e.jsx(R,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(l,{maxLength:200,value:a.company,onChange:s=>t("company",s.target.value),placeholder:"Your Company Name",className:"glass border-border/30 focus:border-primary/50 pl-10"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Job Title / Role"}),e.jsx(l,{maxLength:100,value:a.jobTitle,onChange:s=>t("jobTitle",s.target.value),placeholder:"e.g., Producer, Content Manager",className:"glass border-border/30 focus:border-primary/50"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Website"}),e.jsxs("div",{className:"relative",children:[e.jsx(V,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(l,{type:"url",maxLength:250,value:a.website,onChange:s=>t("website",s.target.value),placeholder:"https://yourcompany.com",className:"glass border-border/30 focus:border-primary/50 pl-10"})]})]})]})]}),e.jsxs(i.div,{initial:{opacity:0,x:-20},animate:{opacity:r===1?1:0,x:r===1?0:-20},className:r===1?"block":"hidden",children:[e.jsxs("h3",{className:"font-display font-bold text-xl mb-6 flex items-center gap-3",children:[e.jsx(S,{className:"w-5 h-5 text-primary"}),"Project Details"]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Service Needed"}),e.jsxs(n,{value:a.projectType,onValueChange:s=>t("projectType",s),children:[e.jsx(c,{className:"glass border-border/30 focus:border-primary/50",children:e.jsx(d,{placeholder:"Select a service"})}),e.jsx(m,{className:"glass border-border/30",children:L.map(s=>e.jsx(u,{value:s,children:s},s))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Content Type"}),e.jsxs(n,{value:a.contentType,onValueChange:s=>t("contentType",s),children:[e.jsx(c,{className:"glass border-border/30 focus:border-primary/50",children:e.jsx(d,{placeholder:"Select content type"})}),e.jsx(m,{className:"glass border-border/30",children:D.map(s=>e.jsx(u,{value:s,children:s},s))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Source Language"}),e.jsx(l,{maxLength:100,value:a.sourceLanguage,onChange:s=>t("sourceLanguage",s.target.value),placeholder:"e.g., English",className:"glass border-border/30 focus:border-primary/50"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Target Languages"}),e.jsx(l,{maxLength:100,value:a.targetLanguages,onChange:s=>t("targetLanguages",s.target.value),placeholder:"e.g., Spanish, French, German",className:"glass border-border/30 focus:border-primary/50"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Content Duration"}),e.jsx(l,{maxLength:100,value:a.contentDuration,onChange:s=>t("contentDuration",s.target.value),placeholder:"e.g., 90 minutes, 10 x 30min episodes",className:"glass border-border/30 focus:border-primary/50"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Number of Episodes (if applicable)"}),e.jsx(l,{maxLength:100,value:a.numberOfEpisodes,onChange:s=>t("numberOfEpisodes",s.target.value),placeholder:"e.g., 8 episodes",className:"glass border-border/30 focus:border-primary/50"})]})]})]}),e.jsxs(i.div,{initial:{opacity:0,x:-20},animate:{opacity:r===2?1:0,x:r===2?0:-20},className:r===2?"block":"hidden",children:[e.jsxs("h3",{className:"font-display font-bold text-xl mb-6 flex items-center gap-3",children:[e.jsx(w,{className:"w-5 h-5 text-primary"}),"Timeline & Budget"]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Project Timeline"}),e.jsxs(n,{value:a.timeline,onValueChange:s=>t("timeline",s),children:[e.jsx(c,{className:"glass border-border/30 focus:border-primary/50",children:e.jsx(d,{placeholder:"Select timeline"})}),e.jsx(m,{className:"glass border-border/30",children:A.map(s=>e.jsx(u,{value:s.value,children:s.label},s.value))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Estimated Budget"}),e.jsxs(n,{value:a.budget,onValueChange:s=>t("budget",s),children:[e.jsx(c,{className:"glass border-border/30 focus:border-primary/50",children:e.jsx(d,{placeholder:"Select budget range"})}),e.jsx(m,{className:"glass border-border/30",children:P.map(s=>e.jsx(u,{value:s.value,children:s.label},s.value))})]})]}),e.jsxs("div",{className:"md:col-span-2",children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Preferred Start Date"}),e.jsx(l,{type:"date",value:a.startDate,onChange:s=>t("startDate",s.target.value),className:"glass border-border/30 focus:border-primary/50"})]})]})]}),e.jsxs(i.div,{initial:{opacity:0,x:-20},animate:{opacity:r===3?1:0,x:r===3?0:-20},className:r===3?"block":"hidden",children:[e.jsxs("h3",{className:"font-display font-bold text-xl mb-6 flex items-center gap-3",children:[e.jsx(T,{className:"w-5 h-5 text-primary"}),"Additional Information"]}),e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Project Description & Special Requirements"}),e.jsx(C,{maxLength:500,value:a.message,onChange:s=>t("message",s.target.value),placeholder:"Tell us more about your project, target audience, special requirements, or any questions you have...",rows:5,className:"glass border-border/30 focus:border-primary/50 resize-none"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Reference Links (optional)"}),e.jsx(C,{maxLength:300,value:a.referenceLinks,onChange:s=>t("referenceLinks",s.target.value),placeholder:"Share links to trailers, samples, or reference materials...",rows:2,className:"glass border-border/30 focus:border-primary/50 resize-none"})]}),e.jsxs("div",{className:"pt-6 border-t border-border/30",children:[e.jsxs("h4",{className:"font-medium mb-4 flex items-center gap-2",children:[e.jsx(k,{className:"w-4 h-4 text-primary"}),"Quick Survey"]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"How did you hear about us?"}),e.jsxs(n,{value:a.howDidYouHear,onValueChange:s=>t("howDidYouHear",s),children:[e.jsx(c,{className:"glass border-border/30 focus:border-primary/50",children:e.jsx(d,{placeholder:"Select an option"})}),e.jsx(m,{className:"glass border-border/30",children:I.map(s=>e.jsx(u,{value:s,children:s},s))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium mb-2",children:"Preferred Contact Method"}),e.jsxs(n,{value:a.preferredContact,onValueChange:s=>t("preferredContact",s),children:[e.jsx(c,{className:"glass border-border/30 focus:border-primary/50",children:e.jsx(d,{placeholder:"Select preference"})}),e.jsx(m,{className:"glass border-border/30",children:$.map(s=>e.jsx(u,{value:s.value,children:s.label},s.value))})]})]})]}),e.jsxs("div",{className:"mt-6 flex items-center space-x-3",children:[e.jsx(Y,{id:"newsletter",checked:a.newsletterOptIn,onCheckedChange:s=>t("newsletterOptIn",s),className:"border-primary/50 data-[state=checked]:bg-primary"}),e.jsx("label",{htmlFor:"newsletter",className:"text-sm text-muted-foreground cursor-pointer",children:"Subscribe to our newsletter for industry insights and updates"})]})]})]})]}),e.jsxs("div",{className:"mt-10 flex flex-col sm:flex-row gap-4 justify-between items-center",children:[e.jsx("div",{className:"flex gap-2",children:r>0&&e.jsx(f,{type:"button",variant:"outline",onClick:()=>x(s=>s-1),className:"glass border-border/30",children:"Previous"})}),e.jsx("div",{className:"flex gap-4",children:r<3?e.jsxs(f,{type:"button",onClick:()=>x(s=>s+1),className:"btn-studio",children:["Next Step",e.jsx(z,{className:"w-4 h-4 ml-2"})]}):e.jsx(f,{type:"submit",className:"btn-studio px-8",disabled:N,children:N?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"w-4 h-4 mr-3 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Submitting..."]}):e.jsxs(e.Fragment,{children:[e.jsx(M,{className:"w-4 h-4 mr-3"}),"Submit Assessment"]})})})]}),e.jsx("p",{className:"text-xs text-muted-foreground text-center mt-6",children:"By submitting this form, you agree to our privacy policy. We'll never share your information."})]})]})})};export{le as default};
