1import{j as e,r as m,L as f}from"./index-PDltgJtu.js";import{N as v,F as N,M as y}from"./MobileFixedCTA-C3IpUOes.js";import{u as h}from"./useTranslation-CCwGQmLz.js";function w({onReset:s}){const{t}=h("common"),i=o=>{typeof window.REACT_APP_NAVIGATE=="function"&&window.REACT_APP_NAVIGATE(o)};return e.jsx("div",{className:"bg-white rounded-2xl shadow-lg border border-gray-100 overflow-hidden",children:e.jsxs("div",{className:"px-6 sm:px-10 py-14 sm:py-20 text-center",children:[e.jsxs("div",{className:"relative inline-flex items-center justify-center mb-6",children:[e.jsx("div",{className:"absolute w-24 h-24 sm:w-28 sm:h-28 rounded-full bg-emerald-50 animate-ping opacity-30"}),e.jsx("div",{className:"relative w-20 h-20 sm:w-24 sm:h-24 rounded-full bg-gradient-to-br from-emerald-50 to-emerald-100 flex items-center justify-center",children:e.jsx("i",{className:"ri-check-double-line text-3xl sm:text-4xl text-emerald-600"})})]}),e.jsx("h2",{className:"text-xl sm:text-2xl lg:text-3xl font-display font-bold text-proof mb-3 tracking-tight",children:t("consultation.thankYou.title")}),e.jsx("p",{className:"text-sm sm:text-base text-gray-500 leading-relaxed max-w-md mx-auto mb-8 sm:mb-10 font-light",children:t("consultation.thankYou.desc")}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3 sm:gap-4 max-w-lg mx-auto mb-10 sm:mb-12",children:[e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 sm:p-5",children:[e.jsx("div",{className:"w-9 h-9 flex items-center justify-center bg-champagne/15 rounded-lg mx-auto mb-2.5",children:e.jsx("i",{className:"ri-mail-check-line text-lg text-champagne-dark"})}),e.jsx("p",{className:"text-[11px] sm:text-xs font-semibold text-proof mb-0.5",children:t("consultation.thankYou.step1")}),e.jsx("p",{className:"text-[10px] sm:text-[11px] text-gray-400 font-light",children:t("consultation.thankYou.step1Desc")})]}),e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 sm:p-5",children:[e.jsx("div",{className:"w-9 h-9 flex items-center justify-center bg-champagne/15 rounded-lg mx-auto mb-2.5",children:e.jsx("i",{className:"ri-user-voice-line text-lg text-champagne-dark"})}),e.jsx("p",{className:"text-[11px] sm:text-xs font-semibold text-proof mb-0.5",children:t("consultation.thankYou.step2")}),e.jsx("p",{className:"text-[10px] sm:text-[11px] text-gray-400 font-light",children:t("consultation.thankYou.step2Desc")})]}),e.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 sm:p-5",children:[e.jsx("div",{className:"w-9 h-9 flex items-center justify-center bg-champagne/15 rounded-lg mx-auto mb-2.5",children:e.jsx("i",{className:"ri-file-chart-line text-lg text-champagne-dark"})}),e.jsx("p",{className:"text-[11px] sm:text-xs font-semibold text-proof mb-0.5",children:t("consultation.thankYou.step3")}),e.jsx("p",{className:"text-[10px] sm:text-[11px] text-gray-400 font-light",children:t("consultation.thankYou.step3Desc")})]})]}),e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-8",children:[e.jsx("div",{className:"w-10 h-px bg-champagne/40"}),e.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-champagne/60"}),e.jsx("div",{className:"w-10 h-px bg-champagne/40"})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-3",children:[e.jsxs("button",{onClick:()=>i("/"),className:"inline-flex items-center px-6 py-3 bg-proof text-white text-sm font-bold rounded-xl hover:bg-proof/90 transition-all duration-300 whitespace-nowrap cursor-pointer",children:[e.jsx("i",{className:"ri-home-4-line mr-2"}),t("consultation.thankYou.goHome")]}),e.jsxs("button",{onClick:()=>i("/diagnosis"),className:"inline-flex items-center px-6 py-3 bg-champagne/10 text-champagne-dark text-sm font-semibold rounded-xl hover:bg-champagne/20 transition-all duration-300 whitespace-nowrap cursor-pointer",children:[e.jsx("i",{className:"ri-stethoscope-line mr-2"}),t("consultation.thankYou.goDiagnosis")]}),e.jsxs("button",{onClick:s,className:"inline-flex items-center px-5 py-3 text-gray-400 text-sm font-medium hover:text-gray-600 transition-colors duration-300 whitespace-nowrap cursor-pointer",children:[e.jsx("i",{className:"ri-refresh-line mr-1.5"}),t("consultation.thankYou.submitAgain")]})]})]})})}function k(){const{t:s}=h("common"),[t,i]=m.useState({company:"",name:"",position:"",phone:"",email:"",status:"",channels:"",diagnosisScore:"",revenue:"",timeline:"",message:""}),[o,l]=m.useState(!1),[u,r]=m.useState("idle"),b=async d=>{d.preventDefault(),l(!0),r("idle");try{const c=d.target,p=new FormData(c),x=new URLSearchParams;
1p.forEach((g,j)=>{typeof g=="string"&&x.append(j,g)}),(await fetch("https://readdy.ai/api/form/d6aa2elbd17lru29lmsg",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:x})).ok?(r("success"),i({company:"",name:"",position:"",phone:"",email:"",status:"",channels:"",diagnosisScore:"",revenue:"",timeline:"",message:""}),window.scrollTo({top:0,behavior:"smooth"})):r("error")}catch(c){console.error("Form submission error:",c),r("error")}finally{l(!1)}},n=d=>{const{name:c,value:p}=d.target;i(x=>({...x,[c]:p}))};if(u==="success")return e.jsx(w,{onReset:()=>r("idle")});const a="w-full px-3.5 sm:px-4 py-3 sm:py-3.5 text-[13px] sm:text-sm border border-gray-200 rounded-xl focus:ring-2 focus:ring-champagne/30 focus:border-champagne transition-all bg-white placeholder:text-gray-350";return e.jsxs("div",{className:"bg-white rounded-2xl shadow-lg border border-gray-100 overflow-hidden",children:[e.jsxs("div",{className:"px-5 sm:px-8 lg:px-10 pt-6 sm:pt-8 pb-5 sm:pb-6 border-b border-gray-100 bg-gray-50/50",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"w-8 h-8 flex items-center justify-center bg-proof rounded-lg",children:e.jsx("i",{className:"ri-file-text-line text-white text-sm"})}),e.jsx("h3",{className:"text-lg sm:text-xl font-display font-bold text-proof tracking-tight",children:s("consultation.formTitle")})]}),e.jsx("p",{className:"text-xs sm:text-sm text-gray-400 font-light pl-11",children:s("consultation.sub")})]}),e.jsx("form",{id:"consultation-form",onSubmit:b,"data-readdy-form":!0,className:"px-5 sm:px-8 lg:px-10 py-6 sm:py-8",children:e.jsxs("div",{className:"space-y-7 sm:space-y-8",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4 sm:mb-5",children:[e.jsx("div",{className:"w-5 h-5 flex items-center justify-center rounded-full bg-champagne/15",children:e.jsx("span",{className:"text-[10px] font-bold text-champagne-dark",children:"1"})}),e.jsx("span",{className:"text-xs sm:text-sm font-bold text-proof tracking-wider-custom uppercase",children:"Basic Information"}),e.jsx("div",{className:"flex-1 h-px bg-gray-100 ml-2"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"cons-company",className:"block text-[13px] sm:text-sm font-semibold text-proof mb-1.5 tracking-tight",children:[s("consultation.company")," ",e.jsx("span",{className:"text-muted-red",children:s("consultation.required")})]}),e.jsx("input",{type:"text",id:"cons-company",name:"company",value:t.company,onChange:n,required:!0,className:a,placeholder:s("consultation.companyPh")})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"cons-name",className:"block text-[13px] sm:text-sm font-semibold text-proof mb-1.5 tracking-tight",children:[s("consultation.name")," ",e.jsx("span",{className:"text-muted-red",children:s("consultation.required")})]}),e.jsx("input",{type:"text",id:"cons-name",name:"name",value:t.name,onChange:n,required:!0,className:a,placeholder:s("consultation.namePh")})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"cons-position",className:"block text-[13px] sm:text-sm font-semibold text-proof mb-1.5 tracking-tight",children:[s("consultation.position")," ",e.jsx("span",{className:"text-muted-red",children:s("consultation.required")})]}),e.jsx("input",{type:"text",id:"cons-position",name:"position",value:t.position,onChange:n,required:!0,className:a,placeholder:s("consultation.positionPh")})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"cons-phone",className:"block text-[13px] sm:text-sm font-semibold text-proof mb-1.5 tracking-tight",children:[s("consultation.phone")," ",e.jsx("span",{className:"text-muted-red",children:s("consultation.required")})]}),e.jsx("input",{type:"tel",id:"cons-phone",name:"phone",value:t.phone,onChange:n,required:!0,className:a,placeholder:s("consultation.phonePh")})]}),e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"cons-email",className:"block text-[13px] sm:text-sm font-semibold text-proof mb-1.5 tracking-tight",children:[s("consultation.email")," ",e.jsx("span",{className:"text-muted-red",children:s("consultation.required")})]}
1),e.jsx("input",{type:"email",id:"cons-email",name:"email",value:t.email,onChange:n,required:!0,className:a,placeholder:s("consultation.emailPh")})]})]})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4 sm:mb-5",children:[e.jsx("div",{className:"w-5 h-5 flex items-center justify-center rounded-full bg-champagne/15",children:e.jsx("span",{className:"text-[10px] font-bold text-champagne-dark",children:"2"})}),e.jsx("span",{className:"text-xs sm:text-sm font-bold text-proof tracking-wider-custom uppercase",children:"Current Status"}),e.jsx("div",{className:"flex-1 h-px bg-gray-100 ml-2"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"cons-status",className:"block text-[13px] sm:text-sm font-semibold text-proof mb-1.5 tracking-tight",children:[s("consultation.status")," ",e.jsx("span",{className:"text-muted-red",children:s("consultation.required")})]}),e.jsxs("select",{id:"cons-status",name:"status",value:t.status,onChange:n,required:!0,className:`${a} cursor-pointer`,children:[e.jsx("option",{value:"",children:s("consultation.statusPh")}),e.jsx("option",{value:"interest",children:s("consultation.statusOpt1")}),e.jsx("option",{value:"preparing",children:s("consultation.statusOpt2")}),e.jsx("option",{value:"low-sales",children:s("consultation.statusOpt3")}),e.jsx("option",{value:"expansion",children:s("consultation.statusOpt4")})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"cons-revenue",className:"block text-[13px] sm:text-sm font-semibold text-proof mb-1.5 tracking-tight",children:s("consultation.revenue")}),e.jsxs("select",{id:"cons-revenue",name:"revenue",value:t.revenue,onChange:n,className:`${a} cursor-pointer`,children:[e.jsx("option",{value:"",children:s("consultation.revenuePh")}),e.jsx("option",{value:"under-1b",children:s("consultation.revenueOpt1")}),e.jsx("option",{value:"1b-5b",children:s("consultation.revenueOpt2")}),e.jsx("option",{value:"5b-10b",children:s("consultation.revenueOpt3")}),e.jsx("option",{value:"over-10b",children:s("consultation.revenueOpt4")})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"cons-timeline",className:"block text-[13px] sm:text-sm font-semibold text-proof mb-1.5 tracking-tight",children:s("consultation.timeline")}),e.jsxs("select",{id:"cons-timeline",name:"timeline",value:t.timeline,onChange:n,className:`${a} cursor-pointer`,children:[e.jsx("option",{value:"",children:s("consultation.timelinePh")}),e.jsx("option",{value:"immediate",children:s("consultation.timelineOpt1")}),e.jsx("option",{value:"3months",children:s("consultation.timelineOpt2")}),e.jsx("option",{value:"6months",children:s("consultation.timelineOpt3")}),e.jsx("option",{value:"1year",children:s("consultation.timelineOpt4")})]})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"cons-channels",className:"block text-[13px] sm:text-sm font-semibold text-proof mb-1.5 tracking-tight",children:s("consultation.channels")}),e.jsx("input",{type:"text",id:"cons-channels",name:"channels",value:t.channels,onChange:n,className:a,placeholder:s("consultation.channelsPh")})]})]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4 sm:mb-5",children:[e.jsx("div",{className:"w-5 h-5 flex items-center justify-center rounded-full bg-champagne/15",children:e.jsx("span",{className:"text-[10px] font-bold text-champagne-dark",children:"3"})}),e.jsx("span",{className:"text-xs sm:text-sm font-bold text-proof tracking-wider-custom uppercase",children:"Additional Details"}),e.jsx("div",{className:"flex-1 h-px bg-gray-100 ml-2"})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[e.jsx("label",{htmlFor:"cons-diagnosis-score",className:"block text-[13px] sm:text-sm font-semibold text-proof tracking-tight",children:s("consultation.diagnosisScore")}),e.jsxs(f,{to:"/diagnosis",className:"inline-flex items-center gap-1 text-[11px] sm:text-xs text-muted-red hover:text-muted-red-dark transition-colors duration-300 font-medium cursor-pointer",children:[e.jsx("i",{className:"ri-questionnaire-line text-sm"}),s("consultation.diagnosisLink"),e.jsx("i",{className:"ri-arrow-right-s-line text-sm"})]})]}),e.jsx("input",{type:"text",id:"cons-diagnosis-score",name:"diagnosisScore",value:t.diagnosisScore,onChange:n,className:a,placeholder:s("c
1onsultation.diagnosisScorePh")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"cons-message",className:"block text-[13px] sm:text-sm font-semibold text-proof mb-1.5 tracking-tight",children:s("consultation.message")}),e.jsx("textarea",{id:"cons-message",name:"message",value:t.message,onChange:n,rows:4,maxLength:500,className:`${a} resize-none`,placeholder:s("consultation.messagePh")}),e.jsxs("p",{className:"text-[11px] sm:text-xs text-gray-400 mt-1 tracking-wider-custom",children:[t.message.length,s("consultation.charCount")]})]})]})]}),e.jsxs("div",{className:"pt-2",children:[e.jsx("button",{type:"submit",disabled:o,className:"w-full px-8 py-3.5 sm:py-4 bg-muted-red text-white text-sm sm:text-base font-bold rounded-xl hover:bg-muted-red-dark transition-all duration-300 shadow-lg hover:shadow-muted-red/25 disabled:opacity-50 disabled:cursor-not-allowed whitespace-nowrap tracking-wide cursor-pointer flex items-center justify-center gap-2",children:o?e.jsxs(e.Fragment,{children:[e.jsx("i",{className:"ri-loader-4-line animate-spin text-lg"}),s("consultation.submitting")]}):e.jsxs(e.Fragment,{children:[s("consultation.submit"),e.jsx("i",{className:"ri-arrow-right-line text-lg"})]})}),u==="error"&&e.jsx("div",{className:"mt-4 p-3 sm:p-4 bg-red-50 border border-red-200 rounded-xl",children:e.jsxs("p",{className:"text-[13px] sm:text-sm text-red-800 text-center",children:[e.jsx("i",{className:"ri-error-warning-line mr-2"}),s("consultation.error")]})})]})]})})]})}function q(){const{t:s}=h("common"),[t,i]=m.useState(!1);m.useEffect(()=>{const l=()=>{i(window.scrollY>20)};return l(),window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]);const o={backgroundImage:"url('https://public.readdy.ai/ai/img_res/16a41a13553fae1c2a3512dcd960bcee.jpg')",opacity:.05,backgroundSize:"cover",backgroundPosition:"center",pointerEvents:"none"};return e.jsxs("div",{className:"min-h-screen bg-gray-50",children:[e.jsx(v,{isScrolled:t}),e.jsxs("section",{className:"relative bg-gradient-to-br from-proof via-proof/95 to-proof/90 pt-28 sm:pt-36 pb-14 sm:pb-20 overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0",style:o}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-transparent via-proof/50 to-proof"}),e.jsxs("div",{className:"relative max-w-4xl mx-auto px-5 sm:px-6 lg:px-8 text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-white/10 backdrop-blur-sm rounded-full mb-6 border border-white/20",children:[e.jsx("i",{className:"ri-customer-service-2-line text-champagne text-sm"}),e.jsx("span",{className:"text-xs sm:text-sm text-white/90 font-medium tracking-wider-custom",children:s("consultation.badge")})]}),e.jsx("h1",{className:"text-2xl sm:text-4xl lg:text-5xl font-display font-bold text-white mb-4 sm:mb-5 tracking-tight leading-tight",children:s("consultation.title")}),e.jsx("p",{className:"text-[13px] sm:text-base text-gray-300 font-light tracking-wider-custom leading-relaxed max-w-2xl mx-auto",children:s("consultation.sub")})]})]}),e.jsx("section",{className:"py-12 sm:py-16 lg:py-20",children:e.jsx("div",{className:"max-w-3xl mx-auto px-5 sm:px-6 lg:px-8",children:e.jsx(k,{})})}),e.jsx(N,{}),e.jsx("div",{className:"md:hidden h-20"}),e.jsx(y,{})]})}export{q as default}; 2//# sourceMappingURL=page-CKfHedzH.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.