/* ============================================================ CONSULTATION ============================================================ */
function ConsultWizard(){
const { go } = useContext(Nav);
const [step,setStep] = useState(0);
const [ans,setAns] = useState({ purpose:[], who:'', exp:'', budget:'' });
const steps = [
{ key:'purpose', q:'What are you seeking?', hint:'Pick one or more. This shapes everything.', multi:true,
opts:RR.PURPOSES.map(p=>({ v:p.id, label:p.label, deva:p.deva, glyph:p.glyph })) },
{ key:'who', q:'Who is it for?', hint:'So we tailor the guidance.',
opts:[{v:'Myself',label:'Myself'},{v:'A gift',label:'A gift'},{v:'Family',label:'Family member'},{v:'My business',label:'My business / shop'}] },
{ key:'exp', q:'Have you worn spiritual products before?', hint:'No wrong answer — it helps us explain the right amount.',
opts:[{v:'First time',label:'First time'},{v:'A few',label:"I've worn a few"},{v:'Experienced',label:'Experienced wearer'}] },
{ key:'budget', q:"What's your comfortable budget?", hint:'We respect every budget.',
opts:[{v:'Under ₹1,500',label:'Under ₹1,500'},{v:'₹1,500–₹5,000',label:'₹1,500 – ₹5,000'},{v:'₹5,000+',label:'₹5,000 & above'},{v:'Guide me',label:'Not sure — guide me'}] },
];
const done = step>=steps.length;
const cur = steps[step];
const pick = (key,v,multi)=>{
setAns(a=>{
if(multi){ const arr=a[key].includes(v)?a[key].filter(x=>x!==v):[...a[key],v]; return {...a,[key]:arr}; }
return {...a,[key]:v};
});
if(!multi) setTimeout(()=>setStep(s=>s+1),220);
};
const canNext = cur && (cur.multi ? ans[cur.key].length>0 : ans[cur.key]);
const recs = (()=>{
let l = RR.PRODUCTS.filter(p=>ans.purpose.length===0 || p.purposes.some(x=>ans.purpose.includes(x)));
if(ans.budget==='Under ₹1,500') l=l.filter(p=>p.price<1500);
if(ans.budget==='₹1,500–₹5,000') l=l.filter(p=>p.price>=1500&&p.price<=5000);
if(ans.budget==='₹5,000+') l=l.filter(p=>p.price>5000);
l=[...l].sort((a,b)=>a.price-b.price);
if(l.length===0) l=RR.PRODUCTS.filter(p=>p.purposes.some(x=>ans.purpose.includes(x)));
return l.slice(0,3);
})();
const waMsg = `Hi Rudraa Ratna, here's what I'm looking for —
• Purpose: ${ans.purpose.map(p=>RR.purpose(p).label).join(', ')||'open to guidance'}
• For: ${ans.who||'—'}
• Experience: ${ans.exp||'—'}
• Budget: ${ans.budget||'—'}
${recs.length?'• Interested in: '+recs.map(r=>r.name).join(', '):''}
Please guide me on the best choice.`;
if(done){
return (
Here's what we'd suggest
Based on {ans.purpose.map(p=>RR.purpose(p).label).join(' & ')||'your needs'}{ans.budget&&ans.budget!=='Guide me'?` · ${ans.budget}`:''}. These are starting points — let's refine together on WhatsApp.
);
}
function ConsultationPage(){
const steps = [
{ ic:'message', t:'Tell us your purpose', d:'Prosperity, protection, peace, business growth — or simply ask. Use the guide here or message us directly.' },
{ ic:'hand', t:'Get honest guidance', d:'We recommend by purpose and authenticity, never by what we want to sell. Belief-based, never exaggerated.' },
{ ic:'cert', t:'Receive your selected piece', d:'Your chosen product arrives prepared with documentation where applicable, delivered across India.' },
];
return (
Guided Buying · परामर्श
Choose with guidance. Buy with certainty.
Spiritual products are easier to choose when they fit you. Answer a few simple questions and we'll point you to the right Rudraksha, gemstone or crystal — free, and without pressure.