{"id":1345,"date":"2026-06-28T17:51:57","date_gmt":"2026-06-28T10:51:57","guid":{"rendered":"https:\/\/devinaturalliving.com\/?page_id=1345"},"modified":"2026-07-12T13:33:04","modified_gmt":"2026-07-12T06:33:04","slug":"quiz-dosha","status":"publish","type":"page","link":"https:\/\/devinaturalliving.com\/en\/quiz-dosha\/","title":{"rendered":"Quiz Dosha"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1345\" class=\"elementor elementor-1345\">\n\t\t\t\t<div class=\"elementor-element elementor-element-80a0355 e-flex e-con-boxed e-con e-parent\" data-id=\"80a0355\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e3115c6 elementor-widget elementor-widget-html\" data-id=\"e3115c6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!DOCTYPE html>\r\n<html lang=\"vi\">\r\n<head>\r\n<meta charset=\"UTF-8\">\r\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n<title>Kh\u00e1m Ph\u00e1 Th\u1ec3 Tr\u1ea1ng Dosha \u00b7 DEVI<\/title>\r\n<style>\r\n  @import url('https:\/\/fonts.googleapis.com\/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');\r\n  :root{--cream:#F0EDE1;--cream-dk:#E4DFD0;--bark:#5C4A32;--bark-lt:#8B6E4E;--terracotta:#B5663A;--vata:#9B8FA8;--pitta:#C17B4A;--kapha:#6A9E7F;--text:#2E2418;--text-lt:#6B5740;--radius:12px;--shadow:0 4px 24px rgba(92,74,50,0.10)}\r\n  *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}\r\n  body{background:var(--cream);color:var(--text);font-family:'DM Sans',sans-serif;font-weight:300;line-height:1.7;min-height:100vh}\r\n  .hero{text-align:center;padding:72px 24px 48px;background:linear-gradient(180deg,#E8E2D0 0%,var(--cream) 100%);border-bottom:1px solid var(--cream-dk)}\r\n  .hero-eyebrow{font-size:11px;letter-spacing:0.18em;text-transform:uppercase;color:var(--bark-lt);margin-bottom:16px;font-weight:500}\r\n  .hero h1{font-family:'Cormorant Garamond',serif;font-size:clamp(2.8rem,6vw,4.4rem);font-weight:300;color:var(--bark);margin-bottom:16px;line-height:1.15}\r\n  .hero h1 em{font-style:italic;color:var(--terracotta)}\r\n  .hero-sub{max-width:520px;margin:0 auto;font-size:16px;color:var(--text-lt);line-height:1.8}\r\n  .luu-y{max-width:560px;margin:28px auto 0;background:rgba(181,102,58,0.08);border-left:3px solid var(--terracotta);border-radius:0 8px 8px 0;padding:14px 18px;font-size:14px;color:var(--text-lt);text-align:left}\r\n  .container{max-width:680px;margin:0 auto;padding:0 20px 80px}\r\n  .step{display:none}.step.active{display:block}\r\n  .form-card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:40px 36px;margin-top:40px}\r\n  .form-card h2{font-family:'Cormorant Garamond',serif;font-size:1.6rem;font-weight:400;color:var(--bark);margin-bottom:6px}\r\n  .form-card .sub{font-size:13px;color:var(--text-lt);margin-bottom:28px}\r\n  .field{margin-bottom:20px}\r\n  .field label{display:block;font-size:12px;letter-spacing:0.1em;text-transform:uppercase;color:var(--bark-lt);margin-bottom:6px;font-weight:500}\r\n  .field input{width:100%;border:1.5px solid var(--cream-dk);border-radius:8px;padding:11px 14px;font-family:'DM Sans',sans-serif;font-size:15px;color:var(--text);background:var(--cream);outline:none;transition:border-color .2s}\r\n  .field input:focus{border-color:var(--bark-lt);background:#fff}\r\n  .field input::placeholder{color:#C0B49E}\r\n  .field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}\r\n  @media(max-width:480px){.field-row{grid-template-columns:1fr}}\r\n  .btn-primary{display:inline-block;background:var(--bark);color:#fff;border:none;border-radius:50px;padding:14px 36px;font-family:'DM Sans',sans-serif;font-size:15px;font-weight:500;cursor:pointer;transition:background .2s,transform .15s;width:100%;margin-top:8px}\r\n  .btn-primary:hover{background:var(--bark-lt);transform:translateY(-1px)}\r\n  .quiz-header{padding:36px 0 24px;border-bottom:1px solid var(--cream-dk);margin-bottom:32px}\r\n  .quiz-header h2{font-family:'Cormorant Garamond',serif;font-size:1.5rem;font-weight:400;color:var(--bark)}\r\n  .quiz-header .hint{font-size:13px;color:var(--text-lt);margin-top:4px}\r\n  .question-block{background:#fff;border-radius:var(--radius);box-shadow:0 2px 12px rgba(92,74,50,0.07);padding:24px 28px;margin-bottom:16px}\r\n  .q-number{font-size:11px;letter-spacing:0.14em;text-transform:uppercase;color:var(--bark-lt);margin-bottom:8px;font-weight:500}\r\n  .q-text{font-family:'Cormorant Garamond',serif;font-size:1.35rem;color:var(--bark);font-weight:400;margin-bottom:16px;line-height:1.5}\r\n  .q-hint{font-size:11px;color:var(--bark-lt);margin-bottom:10px;font-style:italic}\r\n  .options{display:grid;grid-template-columns:1fr 1fr;gap:10px}\r\n  @media(max-width:480px){.options{grid-template-columns:1fr}}\r\n  .opt-label{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1.5px solid var(--cream-dk);border-radius:8px;cursor:pointer;transition:border-color .2s,background .2s;font-size:14px;color:var(--text-lt);line-height:1.4;user-select:none}\r\n  .opt-label:hover{border-color:var(--bark-lt);background:var(--cream)}\r\n  .opt-label.selected{border-color:var(--bark);background:var(--cream);color:var(--text);font-weight:500}\r\n  .opt-label.na-selected{border-color:#ccc;background:#f9f9f9;color:#999}\r\n  .opt-dot{width:16px;height:16px;border-radius:50%;border:2px solid var(--cream-dk);flex-shrink:0;margin-top:2px;transition:border-color .2s,background .2s}\r\n  .opt-label.selected .opt-dot{border-color:var(--bark);background:var(--bark)}\r\n  .opt-label.na-selected .opt-dot{border-color:#ccc;background:#ccc}\r\n  .progress-bar-wrap{height:4px;background:var(--cream-dk);border-radius:2px;margin-bottom:28px}\r\n  .progress-bar{height:4px;background:var(--bark-lt);border-radius:2px;transition:width .4s}\r\n  .quiz-footer{margin-top:32px;display:flex;align-items:center;gap:16px}\r\n  .progress-text{font-size:13px;color:var(--text-lt);flex:1}\r\n  .result-card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:48px 36px;margin-top:40px;text-align:center}\r\n  .result-badge{display:inline-block;padding:8px 24px;border-radius:50px;font-size:12px;letter-spacing:0.16em;text-transform:uppercase;font-weight:500;margin-bottom:20px;text-align:center;line-height:1.8}\r\n  .badge-vata{background:rgba(155,143,168,0.15);color:#6B5A80}\r\n  .badge-pitta{background:rgba(193,123,74,0.15);color:#994E1E}\r\n  .badge-kapha{background:rgba(106,158,127,0.15);color:#2E7050}\r\n  .result-card h2{font-family:'Cormorant Garamond',serif;font-size:clamp(2rem,5vw,2.8rem);font-weight:300;margin-bottom:6px}\r\n  .result-card h2.vata{color:var(--vata)}.result-card h2.pitta{color:var(--pitta)}.result-card h2.kapha{color:var(--kapha)}\r\n  .result-subtitle{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:1.1rem;color:var(--text-lt);margin-bottom:28px}\r\n  .result-divider{width:48px;height:1px;background:var(--cream-dk);margin:0 auto 28px}\r\n  .result-desc{font-size:15px;color:var(--text-lt);line-height:1.85;text-align:left;max-width:520px;margin:0 auto 36px}\r\n  .score-pills{display:flex;justify-content:center;gap:12px;margin-bottom:36px;flex-wrap:wrap}\r\n  .pill{padding:8px 20px;border-radius:50px;font-size:13px;font-weight:500;border:1.5px solid;transition:all .3s}\r\n  .pill-vata,.pill-pitta,.pill-kapha{border-color:#D8D2C8;color:#B0A898;background:transparent}\r\n  .pill-vata.active{border-color:var(--vata);color:#fff;background:var(--vata)}\r\n  .pill-pitta.active{border-color:var(--pitta);color:#fff;background:var(--pitta)}\r\n  .pill-kapha.active{border-color:var(--kapha);color:#fff;background:var(--kapha)}\r\n  .products-section{border-top:1px solid var(--cream-dk);padding-top:32px;margin-bottom:32px;text-align:left}\r\n  .products-title{font-family:'Cormorant Garamond',serif;font-size:1.4rem;font-weight:400;color:var(--bark);margin-bottom:6px;text-align:center}\r\n  .products-sub{font-size:13px;color:var(--text-lt);text-align:center;margin-bottom:24px}\r\n  .product-list{display:flex;flex-direction:column;gap:12px}\r\n  .product-item{display:flex;align-items:center;gap:14px;padding:16px 20px;background:var(--cream);border-radius:10px;border:1.5px solid var(--cream-dk);transition:border-color .2s}\r\n  .product-item:hover{border-color:var(--bark-lt)}\r\n  .product-icon{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:16px}\r\n  .icon-vata{background:rgba(155,143,168,0.2)}.icon-pitta{background:rgba(193,123,74,0.2)}.icon-kapha{background:rgba(106,158,127,0.2)}\r\n  .product-name{font-size:14px;font-weight:500;color:var(--bark);text-decoration:none}\r\n  .product-name:hover{text-decoration:underline}\r\n  .product-name.no-link{color:var(--text-lt);cursor:default}\r\n  .product-name.no-link:hover{text-decoration:none}\r\n  .cta-section{border-top:1px solid var(--cream-dk);padding-top:32px}\r\n  .cta-section p{font-size:14px;color:var(--text-lt);margin-bottom:20px}\r\n  .cta-buttons{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}\r\n  .btn-cta{display:inline-flex;align-items:center;gap:8px;padding:13px 28px;border-radius:50px;font-family:'DM Sans',sans-serif;font-size:14px;font-weight:500;text-decoration:none;transition:opacity .2s,transform .15s;cursor:pointer;border:none}\r\n  .btn-cta:hover{opacity:.85;transform:translateY(-1px)}\r\n  .btn-fb{background:#1877F2;color:#fff !important}\r\n  .btn-zalo{background:#0068FF;color:#fff !important}\r\n  .btn-again{background:var(--bark);border:1.5px solid var(--bark) !important;color:#fff !important;border-radius:50px}\r\n  .result-illustration{margin:0 auto 24px;width:160px;height:160px}\r\n  .result-illustration svg{width:100%;height:100%}\r\n  .sending-overlay{display:none;text-align:center;padding:60px 20px;color:var(--bark-lt);font-size:15px}\r\n  .sending-overlay.active{display:block}\r\n  .error-msg{color:var(--terracotta);font-size:13px;margin-top:10px;display:none}\r\n<\/style>\r\n<\/head>\r\n<body>\r\n<div class=\"hero\">\r\n  <div class=\"hero-eyebrow\">Ayurveda \u00b7 DEVI Natural Living<\/div>\r\n  <h1 id=\"hero-title\"><\/h1>\r\n  <p class=\"hero-sub\" id=\"hero-sub\"><\/p>\r\n  <div class=\"luu-y\" id=\"hero-note\"><\/div>\r\n<\/div>\r\n<div class=\"container\">\r\n  <!-- STEP 1: FORM -->\r\n  <div class=\"step active\" id=\"step-form\">\r\n    <div class=\"form-card\">\r\n      <h2 id=\"form-title\"><\/h2>\r\n      <p class=\"sub\" id=\"form-sub\"><\/p>\r\n      <div class=\"field-row\">\r\n        <div class=\"field\"><label id=\"lbl-name\"><\/label><input type=\"text\" id=\"f-name\" placeholder=\"\"><\/div>\r\n        <div class=\"field\"><label id=\"lbl-age\"><\/label><input type=\"number\" id=\"f-age\" placeholder=\"\" min=\"10\" max=\"99\"><\/div>\r\n      <\/div>\r\n      <div class=\"field\"><label id=\"lbl-job\"><\/label><input type=\"text\" id=\"f-job\" placeholder=\"\"><\/div>\r\n      <div class=\"field-row\">\r\n        <div class=\"field\"><label id=\"lbl-phone\"><\/label><input type=\"tel\" id=\"f-phone\" placeholder=\"\"><\/div>\r\n        <div class=\"field\"><label id=\"lbl-email\"><\/label><input type=\"email\" id=\"f-email\" placeholder=\"\"><\/div>\r\n      <\/div>\r\n      <p class=\"error-msg\" id=\"form-error\"><\/p>\r\n      <button class=\"btn-primary\" id=\"btn-start\" onclick=\"startQuiz()\"><\/button>\r\n    <\/div>\r\n  <\/div>\r\n  <!-- STEP 2: QUIZ -->\r\n  <div class=\"step\" id=\"step-quiz\">\r\n    <div class=\"quiz-header\">\r\n      <h2 id=\"quiz-heading\"><\/h2>\r\n      <p class=\"hint\" id=\"quiz-hint\"><\/p>\r\n    <\/div>\r\n    <div class=\"progress-bar-wrap\"><div class=\"progress-bar\" id=\"progress-bar\" style=\"width:0%\"><\/div><\/div>\r\n    <div id=\"questions-container\"><\/div>\r\n    <div class=\"quiz-footer\">\r\n      <span class=\"progress-text\" id=\"progress-text\"><\/span>\r\n      <button class=\"btn-primary\" style=\"width:auto;padding:14px 32px\" id=\"btn-submit\" onclick=\"submitQuiz()\"><\/button>\r\n    <\/div>\r\n    <p class=\"error-msg\" id=\"quiz-error\"><\/p>\r\n  <\/div>\r\n  <!-- STEP SENDING -->\r\n  <div class=\"step\" id=\"step-sending\">\r\n    <div class=\"sending-overlay active\"><p id=\"sending-text\"><\/p><\/div>\r\n  <\/div>\r\n  <!-- STEP 3: RESULT -->\r\n  <div class=\"step\" id=\"step-result\">\r\n    <div class=\"result-card\">\r\n      <div class=\"result-badge\" id=\"result-badge\"><\/div>\r\n      <div class=\"result-illustration\" id=\"result-illustration\"><\/div>\r\n      <h2 id=\"result-title\"><\/h2>\r\n      <p class=\"result-subtitle\" id=\"result-subtitle\"><\/p>\r\n      <div class=\"result-divider\"><\/div>\r\n      <div class=\"result-desc\" id=\"result-desc\"><\/div>\r\n      <div class=\"score-pills\" id=\"score-pills\"><\/div>\r\n      <div class=\"products-section\" id=\"products-section\" style=\"display:none\">\r\n        <p class=\"products-title\" id=\"products-title\"><\/p>\r\n        <p class=\"products-sub\" id=\"products-sub\"><\/p>\r\n        <div class=\"product-list\" id=\"product-list\"><\/div>\r\n      <\/div>\r\n      <div class=\"cta-section\">\r\n        <p id=\"cta-text\"><\/p>\r\n        <div class=\"cta-buttons\">\r\n          <a class=\"btn-cta btn-fb\" href=\"https:\/\/www.facebook.com\/devinaturalliving\" target=\"_blank\">\r\n            <svg width=\"16\" height=\"16\" fill=\"white\" viewBox=\"0 0 24 24\"><path d=\"M24 12.073C24 5.405 18.627 0 12 0S0 5.405 0 12.073C0 18.1 4.388 23.094 10.125 24v-8.437H7.078v-3.49h3.047V9.41c0-3.025 1.792-4.697 4.533-4.697 1.312 0 2.686.236 2.686.236v2.97h-1.514c-1.491 0-1.956.93-1.956 1.886v2.268h3.328l-.532 3.49h-2.796V24C19.612 23.094 24 18.1 24 12.073z\"\/><\/svg>\r\n            <span id=\"btn-fb-text\"><\/span>\r\n          <\/a>\r\n          <a class=\"btn-cta btn-zalo\" href=\"https:\/\/zalo.me\/84826361089\" target=\"_blank\">\r\n            <svg width=\"16\" height=\"16\" fill=\"white\" viewBox=\"0 0 24 24\"><path d=\"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 14h-2v-6h2v6zm0-8h-2V6h2v2z\"\/><\/svg>\r\n            <span id=\"btn-zalo-text\"><\/span>\r\n          <\/a>\r\n          <button class=\"btn-cta btn-again\" id=\"btn-again\" onclick=\"resetQuiz()\"><\/button>\r\n        <\/div>\r\n      <\/div>\r\n    <\/div>\r\n  <\/div>\r\n<\/div>\r\n\r\n<script>\r\nconst SHEET_URL = 'https:\/\/script.google.com\/macros\/s\/AKfycbwyOnTH3tGSSNsNZth8iDEtnALEFuLlx2g1LUCfsXgfTr3_TG33relnjhhuMj_iBn14nA\/exec';\r\nconst IS_SANPHAM = new URLSearchParams(window.location.search).get('mode') === 'sanpham';\r\n\r\n\/\/ \u2500\u2500 PH\u00c1T HI\u1ec6N NG\u00d4N NG\u1eee \u2500\u2500\r\n\/\/ LLAR th\u00eam \/en\/ v\u00e0o URL khi chuy\u1ec3n ti\u1ebfng Anh\r\nconst IS_EN = window.location.pathname.includes('\/en\/') || \r\n              document.documentElement.lang === 'en' ||\r\n              new URLSearchParams(window.location.search).get('lang') === 'en';\r\n\r\n\/\/ \u2500\u2500 N\u1ed8I DUNG 2 NG\u00d4N NG\u1eee \u2500\u2500\r\nconst T = {\r\n  vi: {\r\n    heroEyebrow: 'Ayurveda \u00b7 DEVI Natural Living',\r\n    heroTitle: IS_SANPHAM ? 'T\u00ecm s\u1ea3n ph\u1ea9m ph\u00f9 h\u1ee3p v\u1edbi<br><em>Th\u1ec3 tr\u1ea1ng - Dosha<\/em>' : 'B\u1ea1n thu\u1ed9c th\u1ec3 tr\u1ea1ng<br><em>Dosha<\/em> n\u00e0o?',\r\n    heroSub: IS_SANPHAM ? 'L\u00e0m b\u00e0i test \u0111\u1ec3 kh\u00e1m ph\u00e1 th\u1ec3 tr\u1ea1ng v\u00e0 nh\u1eadn g\u1ee3i \u00fd s\u1ea3n ph\u1ea9m tinh d\u1ea7u ph\u00f9 h\u1ee3p nh\u1ea5t v\u1edbi b\u1ea1n.' : 'B\u1ea1n h\u00e3y tr\u1ea3 l\u1eddi 16 c\u00e2u h\u1ecfi sau \u0111\u1ec3 kh\u00e1m ph\u00e1 th\u1ec3 tr\u1ea1ng c\u01a1 th\u1ec3 v\u00e0 t\u00e2m tr\u00ed c\u1ee7a b\u1ea1n theo Ayurveda - Ng\u00e0nh y h\u1ecdc c\u1ed5 x\u01b0a',\r\n    heroNote: 'B\u00e0i \u0111\u00e1nh gi\u00e1 n\u00e0y ch\u1ec9 mang t\u00ednh tham kh\u1ea3o, \u0111\u1ec3 hi\u1ec3u r\u00f5 h\u01a1n h\u00e3y li\u00ean h\u1ec7 v\u1edbi chuy\u00ean gia c\u1ee7a DEVI b\u1ea1n nh\u00e9!',\r\n    formTitle: 'Tr\u01b0\u1edbc khi b\u1eaft \u0111\u1ea7u',\r\n    formSub: '\u0110i\u1ec1n th\u00f4ng tin \u0111\u1ec3 nh\u1eadn t\u01b0 v\u1ea5n c\u00e1 nh\u00e2n h\u00f3a t\u1eeb DEVI.',\r\n    lblName: 'H\u1ecd v\u00e0 t\u00ean *', lblAge: 'Tu\u1ed5i *', lblJob: 'Ngh\u1ec1 nghi\u1ec7p', lblPhone: 'S\u1ed1 \u0111i\u1ec7n tho\u1ea1i *', lblEmail: 'Email',\r\n    phName: 'Nguy\u1ec5n Th\u1ecb An', phAge: '28', phJob: 'Nh\u00e2n vi\u00ean v\u0103n ph\u00f2ng...', phPhone: '0912 345 678', phEmail: 'an@email.com',\r\n    formError: 'Vui l\u00f2ng \u0111i\u1ec1n \u0111\u1ea7y \u0111\u1ee7 h\u1ecd t\u00ean, tu\u1ed5i v\u00e0 s\u1ed1 \u0111i\u1ec7n tho\u1ea1i.',\r\n    btnStart: 'B\u1eaft \u0111\u1ea7u l\u00e0m b\u00e0i \u2192',\r\n    quizHeading: 'H\u00e3y ch\u1ecdn c\u00e2u tr\u1ea3 l\u1eddi g\u1ea7n \u0111\u00fang nh\u1ea5t v\u1edbi b\u1ea1n',\r\n    quizHint: 'M\u1ed7i c\u00e2u ch\u1ecdn t\u1ed1i \u0111a 2 \u0111\u00e1p \u00e1n \u00b7 Kh\u00f4ng c\u00f3 \u0111\u00fang hay sai',\r\n    qHint: 'Ch\u1ecdn 1 ho\u1eb7c 2 \u0111\u00e1p \u00e1n',\r\n    naLabel: 'Kh\u00f4ng r\u00f5',\r\n    progressOf: (a,b) => `${a} \/ ${b} c\u00e2u \u0111\u00e3 tr\u1ea3 l\u1eddi`,\r\n    btnSubmit: 'Xem k\u1ebft qu\u1ea3',\r\n    quizError: 'Vui l\u00f2ng tr\u1ea3 l\u1eddi t\u1ea5t c\u1ea3 16 c\u00e2u tr\u01b0\u1edbc khi xem k\u1ebft qu\u1ea3.',\r\n    sending: '\u23f3 \u0110ang x\u1eed l\u00fd k\u1ebft qu\u1ea3 c\u1ee7a b\u1ea1n...',\r\n    productsTitle: 'S\u1ea3n ph\u1ea9m ph\u00f9 h\u1ee3p v\u1edbi b\u1ea1n',\r\n    productsSub: '\u0110\u01b0\u1ee3c g\u1ee3i \u00fd d\u1ef1a tr\u00ean th\u1ec3 tr\u1ea1ng Dosha c\u1ee7a b\u1ea1n',\r\n    ctaText: 'Mu\u1ed1n hi\u1ec3u s\u00e2u h\u01a1n v\u00e0 nh\u1eadn t\u01b0 v\u1ea5n c\u00e1 nh\u00e2n h\u00f3a t\u1eeb DEVI?',\r\n    btnFb: 'Li\u00ean h\u1ec7 Facebook', btnZalo: 'Nh\u1eafn Zalo', btnAgain: 'L\u00e0m l\u1ea1i b\u00e0i test',\r\n    scoreLabel: (v,p,k,type) => `\r\n      <span class=\"pill pill-vata ${type==='VATA'?'active':''}\">Vata \u00b7 ${v} \u0111i\u1ec3m<\/span>\r\n      <span class=\"pill pill-pitta ${type==='PITTA'?'active':''}\">Pitta \u00b7 ${p} \u0111i\u1ec3m<\/span>\r\n      <span class=\"pill pill-kapha ${type==='KAPHA'?'active':''}\">Kapha \u00b7 ${k} \u0111i\u1ec3m<\/span>`,\r\n    qNum: (i) => `C\u00e2u ${i+1} \/ 16`,\r\n  },\r\n  en: {\r\n    heroEyebrow: 'Ayurveda \u00b7 DEVI Natural Living',\r\n    heroTitle: IS_SANPHAM ? 'Find Products for Your<br><em>Dosha Type<\/em>' : 'What is<br><em>Your Dosha?<\/em>',\r\n    heroSub: IS_SANPHAM ? 'Take the quiz to discover your constitution and find the most suitable essential oil products for you.' : 'Answer the following 16 questions to discover your unique mind-body constitution according to Ayurveda, the ancient science of natural wellbeing.',\r\n    heroNote: 'This Dosha Quiz is intended for informational purposes only. To gain a deeper understanding of your constitution, we invite you to connect with a DEVI Wellness Guide for personalized recommendations.',\r\n    formTitle: 'Before You Begin',\r\n    formSub: 'Please complete your details to receive personalized guidance from DEVI.',\r\n    lblName: 'Full Name *', lblAge: 'Age *', lblJob: 'Occupation', lblPhone: 'Phone Number *', lblEmail: 'Email Address',\r\n    phName: 'Your full name', phAge: '28', phJob: 'Your occupation...', phPhone: '+84 912 345 678', phEmail: 'your@email.com',\r\n    formError: 'Please fill in your Full Name, Age and Phone Number before starting the quiz.',\r\n    btnStart: 'Take the Dosha Quiz \u2192',\r\n    quizHeading: 'Dosha Quiz',\r\n    quizHint: 'Please select the answer that best describes your current body and mind.',\r\n    qHint: 'Select 1 or 2 answers',\r\n    naLabel: 'Not sure',\r\n    progressOf: (a,b) => `${a} \/ ${b} answered`,\r\n    btnSubmit: 'See My Results',\r\n    quizError: 'Please answer all 16 questions before viewing your results.',\r\n    sending: '\u23f3 Processing your results...',\r\n    productsTitle: 'Products Suited for You',\r\n    productsSub: 'Recommended based on your Dosha constitution',\r\n    ctaText: 'Would you like to deepen your understanding with personalized guidance from DEVI?',\r\n    btnFb: 'Message on Facebook', btnZalo: 'Chat on Zalo', btnAgain: 'Retake the Quiz',\r\n    scoreLabel: (v,p,k,type) => `\r\n      <span class=\"pill pill-vata ${type==='VATA'?'active':''}\">Vata \u00b7 ${v} pts<\/span>\r\n      <span class=\"pill pill-pitta ${type==='PITTA'?'active':''}\">Pitta \u00b7 ${p} pts<\/span>\r\n      <span class=\"pill pill-kapha ${type==='KAPHA'?'active':''}\">Kapha \u00b7 ${k} pts<\/span>`,\r\n    qNum: (i) => `Question ${i+1} \/ 16`,\r\n  }\r\n};\r\n\r\nconst L = IS_EN ? T.en : T.vi;\r\n\r\n\/\/ \u2500\u2500 C\u00c2U H\u1eceI 2 NG\u00d4N NG\u1eee \u2500\u2500\r\nconst QUESTIONS = {\r\n  vi: [\r\n    {text:\"C\u1ea5u tr\u00fac c\u01a1 th\u1ec3 c\u1ee7a b\u1ea1n nh\u01b0 th\u1ebf n\u00e0o?\",V:\"\u1ed0m\/g\u1ea7y, x\u01b0\u01a1ng nh\u1ecf\",P:\"C\u00e2n \u0111\u1ed1i, s\u0103n ch\u1eafc\",K:\"To l\u1edbn, khung x\u01b0\u01a1ng r\u1ed9ng\"},\r\n    {text:\"Da c\u1ee7a b\u1ea1n th\u01b0\u1eddng nh\u01b0 th\u1ebf n\u00e0o?\",V:\"Kh\u00f4, d\u1ec5 bong tr\u00f3c\",P:\"\u1ea4m d\u1ea7u, d\u1ec5 n\u1ed5i m\u1ee5n\",K:\"\u1ea8m, m\u1ec1m m\u1ecbn\"},\r\n    {text:\"T\u00f3c c\u1ee7a b\u1ea1n th\u01b0\u1eddng nh\u01b0 th\u1ebf n\u00e0o?\",V:\"M\u1ecfng, kh\u00f4, xo\u0103n\",P:\"M\u1ec1m, h\u01a1i d\u1ea7u\",K:\"D\u00e0y, s\u1ee3i to\"},\r\n    {text:\"C\u1ea3m x\u00fac c\u1ee7a b\u1ea1n khi c\u0103ng th\u1eb3ng th\u01b0\u1eddng nh\u01b0 th\u1ebf n\u00e0o?\",V:\"Lo l\u1eafng, b\u1ed3n ch\u1ed3n, s\u1ee3 h\u00e3i\",P:\"D\u1ec5 c\u00e1u g\u1eaft, n\u1ed5i n\u00f3ng\",K:\"Bu\u1ed3n b\u00e3, tr\u00ec tr\u1ec7, \u00f9 l\u00ec\"},\r\n    {text:\"T\u00ecnh tr\u1ea1ng ti\u00eau h\u00f3a c\u1ee7a b\u1ea1n th\u01b0\u1eddng nh\u01b0 th\u1ebf n\u00e0o?\",V:\"Th\u1ea5t th\u01b0\u1eddng, d\u1ec5 \u0111\u1ea7y h\u01a1i\",P:\"Nhanh \u0111\u00f3i\",K:\"Ch\u1eadm, n\u1eb7ng b\u1ee5ng\"},\r\n    {text:\"T\u00ednh c\u00e1ch n\u1ed5i b\u1eadt c\u1ee7a b\u1ea1n nh\u01b0 th\u1ebf n\u00e0o?\",V:\"S\u00e1ng t\u1ea1o, linh ho\u1ea1t\",P:\"Quy\u1ebft \u0111o\u00e1n, c\u00f3 \u0111\u1ecbnh h\u01b0\u1edbng r\u00f5 r\u00e0ng\",K:\"\u0110i\u1ec1m t\u0129nh, d\u1ec5 g\u1ea7n\"},\r\n    {text:\"S\u1ee9c \u0111\u1ec1 kh\u00e1ng c\u1ee7a b\u1ea1n nh\u01b0 th\u1ebf n\u00e0o?\",V:\"Y\u1ebfu, d\u1ec5 nhi\u1ec5m l\u1ea1nh\",P:\"Trung b\u00ecnh, d\u1ec5 vi\u00eam nhi\u1ec5m\",K:\"Kh\u1ecfe, \u00edt nhi\u1ec5m b\u1ec7nh\"},\r\n    {text:\"Kh\u1ea3 n\u0103ng t\u1eadp trung c\u1ee7a b\u1ea1n th\u01b0\u1eddng nh\u01b0 th\u1ebf n\u00e0o?\",V:\"D\u1ec5 xao nh\u00e3ng, m\u01a1 m\u1ed9ng\",P:\"T\u1eadp trung trong th\u1eddi gian ng\u1eafn\",K:\"T\u1eadp trung \u1ed5n \u0111\u1ecbnh\"},\r\n    {text:\"Th\u00f3i quen ng\u1ee7 th\u01b0\u1eddng nh\u01b0 th\u1ebf n\u00e0o?\",V:\"Kh\u00f3 ng\u1ee7, kh\u00f4ng s\u00e2u\",P:\"Ng\u1ee7 t\u1ed1t, d\u1ec5 t\u1ec9nh gi\u1ea5c\",K:\"Ng\u1ee7 s\u00e2u, kh\u00f3 th\u1ee9c d\u1eady\"},\r\n    {text:\"Kh\u1ea3 n\u0103ng l\u00e0m vi\u1ec7c d\u01b0\u1edbi \u00e1p l\u1ef1c c\u1ee7a b\u1ea1n nh\u01b0 th\u1ebf n\u00e0o?\",V:\"Lo l\u1eafng, d\u1ec5 m\u1ea5t c\u00e2n b\u1eb1ng\",P:\"T\u1eadp trung cao \u0111\u1ed9, d\u1ec5 c\u0103ng th\u1eb3ng\",K:\"Ch\u1eadm, \u1ed5n \u0111\u1ecbnh\"},\r\n    {text:\"B\u1ea1n th\u01b0\u1eddng ti\u1ebfp nh\u1eadn th\u00f4ng tin m\u1edbi nh\u01b0 th\u1ebf n\u00e0o?\",V:\"Nhanh nh\u1edb nh\u01b0ng nhanh qu\u00ean\",P:\"Ph\u00e2n t\u00edch s\u00e2u, nh\u1edb l\u00e2u\",K:\"Nh\u1edb ch\u1eadm nh\u01b0ng nh\u1edb l\u00e2u\"},\r\n    {text:\"B\u1ea1n th\u01b0\u1eddng th\u00edch th\u1eddi ti\u1ebft nh\u01b0 th\u1ebf n\u00e0o?\",V:\"\u1ea4m \u00e1p v\u00e0 \u1ea9m\",P:\"M\u00e1t m\u1ebb v\u00e0 l\u1ea1nh\",K:\"Kh\u00f4 r\u00e1o v\u00e0 \u1ea5m\"},\r\n    {text:\"Phong c\u00e1ch s\u1ed1ng c\u1ee7a b\u1ea1n nh\u01b0 th\u1ebf n\u00e0o?\",V:\"Nhanh v\u00e0 hay thay \u0111\u1ed5i\",P:\"N\u0103ng \u0111\u1ed9ng, c\u00f3 \u0111\u1ecbnh h\u01b0\u1edbng\",K:\"Ch\u1eadm r\u00e3i, \u1ed5n \u0111\u1ecbnh\"},\r\n    {text:\"T\u00e2m l\u00ed c\u1ee7a b\u1ea1n th\u01b0\u1eddng nh\u01b0 th\u1ebf n\u00e0o?\",V:\"Lo l\u1eafng, m\u01a1 m\u1ed9ng\",P:\"T\u1eadp trung, ph\u00e2n t\u00edch\",K:\"B\u00ecnh th\u1ea3n, ki\u00ean nh\u1eabn\"},\r\n    {text:\"Th\u00f3i quen \/ nhu c\u1ea7u \u0103n u\u1ed1ng c\u1ee7a b\u1ea1n th\u01b0\u1eddng nh\u01b0 th\u1ebf n\u00e0o?\",V:\"Th\u1ea5t th\u01b0\u1eddng, hay b\u1ecf b\u1eefa\",P:\"\u0110\u00fang gi\u1edd, \u0103n nhanh\",K:\"\u0102n ch\u1eadm, th\u00edch \u0103n v\u1eb7t\"},\r\n    {text:\"Khi g\u1eb7p s\u1ef1 thay \u0111\u1ed5i t\u1eeb b\u00ean ngo\u00e0i, b\u1ea1n th\u01b0\u1eddng nh\u01b0 th\u1ebf n\u00e0o?\",V:\"H\u01b0ng ph\u1ea5n nh\u01b0ng d\u1ec5 lo l\u1eafng\",P:\"Ph\u1ea3n \u1ee9ng m\u1ea1nh, linh ho\u1ea1t, th\u00edch \u1ee9ng nhanh\",K:\"Ch\u1eadm th\u00edch nghi, ch\u1ea5p nh\u1eadn\"},\r\n  ],\r\n  en: [\r\n    {text:\"How would you describe your body build?\",V:\"Slim or petite, with a light frame\",P:\"Medium build, well-proportioned and athletic\",K:\"Larger build, broad frame\"},\r\n    {text:\"Your skin is generally:\",V:\"Dry and easily dehydrated\",P:\"Warm, oily and prone to blemishes\",K:\"Soft, smooth and naturally moisturized\"},\r\n    {text:\"Your hair is generally:\",V:\"Fine, dry or curly\",P:\"Soft and slightly oily\",K:\"Thick and coarse\"},\r\n    {text:\"When you feel stressed, you tend to:\",V:\"Feel anxious, restless or worried\",P:\"Become impatient or easily irritated\",K:\"Feel emotionally heavy or sluggish\"},\r\n    {text:\"Your digestion is usually:\",V:\"Irregular, with bloating or gas\",P:\"Strong, with frequent hunger\",K:\"Slow and heavy after meals\"},\r\n    {text:\"Which personality trait best describes you?\",V:\"Creative and adaptable\",P:\"Determined and goal-oriented\",K:\"Calm, patient and approachable\"},\r\n    {text:\"Your immune system is generally:\",V:\"Sensitive and easily affected by cold\",P:\"Moderate, prone to inflammation\",K:\"Strong and resilient\"},\r\n    {text:\"Your ability to concentrate is:\",V:\"Easily distracted and imaginative\",P:\"Highly focused for shorter periods\",K:\"Steady and consistent\"},\r\n    {text:\"Your sleep is usually:\",V:\"Light or easily interrupted\",P:\"Restful, though you may wake easily\",K:\"Deep and difficult to wake from\"},\r\n    {text:\"Under pressure, you tend to:\",V:\"Feel overwhelmed or anxious\",P:\"Become highly productive but stressed\",K:\"Stay steady while working at a slower pace\"},\r\n    {text:\"When learning something new, you:\",V:\"Learn quickly but forget easily\",P:\"Analyze deeply and retain information well\",K:\"Learn gradually but remember for a long time\"},\r\n    {text:\"Which climate do you enjoy most?\",V:\"Warm and humid\",P:\"Cool and refreshing\",K:\"Warm and dry\"},\r\n    {text:\"Your lifestyle is generally:\",V:\"Fast-paced and constantly changing\",P:\"Active and purpose-driven\",K:\"Slow, steady and consistent\"},\r\n    {text:\"Your state of mind is usually:\",V:\"Dreamy, imaginative or anxious\",P:\"Focused and analytical\",K:\"Peaceful and patient\"},\r\n    {text:\"Your eating habits are usually:\",V:\"Irregular, often skipping meals\",P:\"Regular meal times and fast eating\",K:\"Eat slowly and enjoy snacking\"},\r\n    {text:\"When facing change, you usually:\",V:\"Feel excited but easily become anxious\",P:\"React quickly and adapt with confidence\",K:\"Take time to adjust and prefer stability\"},\r\n  ]\r\n};\r\n\r\nconst RESULTS = {\r\n  VATA:{\r\n    badge: IS_EN ? \"Vata Constitution \u00b7<br>Air & Space\" : \"Th\u1ec3 tr\u1ea1ng Vata \u00b7<br>Kh\u00f4ng kh\u00ed & Kh\u00f4ng gian\",\r\n    badgeClass:\"badge-vata\", titleClass:\"vata\",\r\n    subtitle: IS_EN ? \"Sensitive \u00b7 Creative \u00b7 Ever-Moving\" : \"Nh\u1ea1y c\u1ea3m \u00b7 S\u00e1ng t\u1ea1o \u00b7 Chuy\u1ec3n \u0111\u1ed9ng\",\r\n    icon:\"\ud83c\udf2c\ufe0f\", iconClass:\"icon-vata\",\r\n    illustration:`<img decoding=\"async\" src=\"https:\/\/devinaturalliving.com\/wp-content\/uploads\/2026\/07\/AIR.jpg\" alt=\"Vata\" style=\"width:160px;height:160px;object-fit:cover;border-radius:50%;\">`,\r\n    desc: IS_EN\r\n      ? \"People with a Vata constitution often find it easy to stay slim but may struggle to build muscle or gain weight. They typically have a light frame, dry skin, hair and nails, tend to feel cold easily, perspire less and may experience joint discomfort.<br><br>Vata represents the energy of movement, creativity and inspiration. Vata individuals are often drawn to art, literature, philosophy and spirituality. They are imaginative and full of ideas, yet may find decision-making difficult and can easily become anxious, restless or overwhelmed.\"\r\n      : \"Ng\u01b0\u1eddi th\u1ec3 tr\u1ea1ng Vata c\u00f3 th\u1ec3 \u0103n b\u1ea5t c\u1ee9 th\u1ee9 g\u00ec m\u00e0 kh\u00f4ng s\u1ee3 t\u0103ng c\u00e2n, nh\u01b0ng l\u1ea1i g\u1eb7p kh\u00f3 kh\u0103n v\u1ec1 vi\u1ec7c t\u0103ng m\u1ee1 v\u00e0 c\u01a1. Vata th\u01b0\u1eddng r\u1ea5t cao ho\u1eb7c r\u1ea5t th\u1ea5p, c\u00f3 da, t\u00f3c, m\u00f3ng kh\u00f4. Vata th\u01b0\u1eddng d\u1ec5 nhi\u1ec5m l\u1ea1nh, \u00edt khi \u0111\u1ed5 m\u1ed3 h\u00f4i v\u00e0 th\u01b0\u1eddng g\u1eb7p c\u00e1c v\u1ea5n \u0111\u1ec1 v\u1ec1 x\u01b0\u01a1ng kh\u1edbp.<br><br>T\u00e2m tr\u00ed Vata nh\u1ea1y c\u1ea3m v\u00e0 s\u00e1ng t\u1ea1o \u2014 quan t\u00e2m \u0111\u1ebfn ngh\u1ec7 thu\u1eadt, v\u0103n h\u1ecdc, t\u00e2m linh, tri\u1ebft h\u1ecdc. C\u00f3 r\u1ea5t nhi\u1ec1u \u00fd t\u01b0\u1edfng nh\u01b0ng \u0111\u00f4i khi thi\u1ebfu quy\u1ebft \u0111o\u00e1n v\u00e0 d\u1ec5 thay \u0111\u1ed5i. D\u1ec5 lo l\u1eafng, b\u1ea5t an, b\u1ed3n ch\u1ed3n.\",\r\n  },\r\n  PITTA:{\r\n    badge: IS_EN ? \"Pitta Constitution \u00b7<br>Fire & Water\" : \"Th\u1ec3 tr\u1ea1ng Pitta \u00b7<br>L\u1eeda & N\u01b0\u1edbc\",\r\n    badgeClass:\"badge-pitta\", titleClass:\"pitta\",\r\n    subtitle: IS_EN ? \"Purposeful \u00b7 Passionate \u00b7 Precise\" : \"Quy\u1ebft \u0111o\u00e1n \u00b7 Nhi\u1ec7t huy\u1ebft \u00b7 S\u1eafc b\u00e9n\",\r\n    icon:\"\ud83d\udd25\", iconClass:\"icon-pitta\",\r\n    illustration:`<img decoding=\"async\" src=\"https:\/\/devinaturalliving.com\/wp-content\/uploads\/2026\/07\/FIRE.jpg\" alt=\"Pitta\" style=\"width:160px;height:160px;object-fit:cover;border-radius:50%;\">`,\r\n    desc: IS_EN\r\n      ? \"People with a Pitta constitution usually have a balanced, athletic build and a strong metabolism. Their skin may be sensitive, prone to redness, freckles or blemishes, and they often perspire easily. Hair may grey or thin earlier than average.<br><br>Pitta embodies the energy of transformation, clarity and ambition. They are intelligent, organized and naturally driven to achieve. Many are attracted to business, finance, law, science and leadership roles. Their greatest challenge is balancing their strong drive, as perfectionism and overwork may lead to burnout.\"\r\n      : \"Ng\u01b0\u1eddi th\u1ec3 tr\u1ea1ng Pitta c\u00f3 v\u00f3c d\u00e1ng th\u1ec3 thao c\u00e2n \u0111\u1ed1i, trao \u0111\u1ed5i ch\u1ea5t m\u1ea1nh m\u1ebd. T\u00f3c c\u00f3 xu h\u01b0\u1edbng b\u1ea1c s\u1edbm ho\u1eb7c h\u00f3i khi c\u00f2n tr\u1ebb. Da c\u00f3 xu h\u01b0\u1edbng \u0111\u1ecf, n\u1ed5i m\u1ee5n, t\u00e0n nhang; c\u01a1 th\u1ec3 \u0111\u1ed5 nhi\u1ec1u m\u1ed3 h\u00f4i.<br><br>Pitta c\u00f3 tr\u00ed tu\u1ec7 s\u1eafc b\u00e9n, \u0111\u1ea7y nhi\u1ec7t huy\u1ebft v\u00e0 tham v\u1ecdng. Quan t\u00e2m \u0111\u1ebfn kinh doanh, lu\u1eadt, t\u00e0i ch\u00ednh, khoa h\u1ecdc. C\u00f3 \u0111\u1ea7u \u00f3c t\u1ed5 ch\u1ee9c t\u1ed1t, xu h\u01b0\u1edbng l\u00e0m l\u00e3nh \u0111\u1ea1o t\u1ef1 nhi\u00ean. Tinh th\u1ea7n c\u00f3 xu h\u01b0\u1edbng d\u1ec5 ki\u1ec7t s\u1ee9c do t\u00ednh c\u1ea7u to\u00e0n.\",\r\n  },\r\n  KAPHA:{\r\n    badge: IS_EN ? \"Kapha Constitution \u00b7<br>Earth & Water\" : \"Th\u1ec3 tr\u1ea1ng Kapha \u00b7<br>\u0110\u1ea5t & N\u01b0\u1edbc\",\r\n    badgeClass:\"badge-kapha\", titleClass:\"kapha\",\r\n    subtitle: IS_EN ? \"Grounded \u00b7 Compassionate \u00b7 Enduring\" : \"\u0110i\u1ec1m t\u0129nh \u00b7 T\u1eeb bi \u00b7 B\u1ec1n v\u1eefng\",\r\n    icon:\"\ud83c\udf31\", iconClass:\"icon-kapha\",\r\n    illustration:`<img decoding=\"async\" src=\"https:\/\/devinaturalliving.com\/wp-content\/uploads\/2026\/07\/EARTH.jpg\" alt=\"Kapha\" style=\"width:160px;height:160px;object-fit:cover;border-radius:50%;\">`,\r\n    desc: IS_EN\r\n      ? \"People with a Kapha constitution generally have a solid frame, a slower metabolism and tend to gain weight more easily. They often have cool hands, enjoy warm and dry weather, and possess remarkable endurance.<br><br>Kapha represents the energy of stability, compassion and nourishment. They are caring, patient and dependable, often drawn to teaching, healing and supporting others. While naturally calm and gentle, they may resist change, hold on to the past and occasionally experience low motivation or emotional heaviness.\"\r\n      : \"Ng\u01b0\u1eddi th\u1ec3 tr\u1ea1ng Kapha c\u00f3 v\u00f3c d\u00e1ng v\u1eefng ch\u1eafc, trao \u0111\u1ed5i ch\u1ea5t ch\u1eadm. R\u1ea5t d\u1ec5 t\u0103ng c\u00e2n, c\u00f3 b\u00e0n tay l\u1ea1nh, th\u00edch th\u1eddi ti\u1ebft kh\u00f4 v\u00e0 \u1ea5m.<br><br>Kapha r\u1ea5t t\u1eeb bi, quan t\u00e2m \u0111\u1ebfn vi\u1ec7c gi\u1ea3ng d\u1ea1y v\u00e0 tr\u1ecb li\u1ec7u. B\u00ecnh t\u0129nh, \u00f4n h\u00f2a \u2014 l\u00e0 ch\u1ed7 d\u1ef1a v\u1eefng ch\u1eafc cho ng\u01b0\u1eddi xung quanh. C\u1ea7n ch\u00fa \u00fd v\u1eadn \u0111\u1ed9ng th\u01b0\u1eddng xuy\u00ean v\u00e0 tr\u00e1nh xu h\u01b0\u1edbng tr\u00ec ho\u00e3n ho\u1eb7c n\u00edu k\u00e9o qu\u00e1 kh\u1ee9.\",\r\n  },\r\n};\r\n\r\nconst PRODUCTS_FALLBACK = {\r\n  VATA:[{name:\"DEVI Balance Roll-on - An tr\u00fa\",link:\"https:\/\/devinaturalliving.com\/product\/bo-thao-moc-devi\/\"},{name:\"DEVI Essence Massage Body Oil - Th\u01b0\u01a1ng\",link:\"\"},{name:\"DEVI Essential oils - H\u01b0\u01a1ng Ng\u1ecdt\",link:\"\"}],\r\n  PITTA:[{name:\"DEVI Balance Roll-on - L\u1eafng d\u1ecbu\",link:\"\"},{name:\"DEVI Essence Massage Body Oil - Tin\",link:\"\"},{name:\"DEVI Essential oils - H\u01b0\u01a1ng R\u1eebng\",link:\"https:\/\/devinaturalliving.com\/product\/tinh-dau-mix-devi-huong-rung\/\"}],\r\n  KAPHA:[{name:\"DEVI Balance Roll-on - \u00c1nh Minh\",link:\"\"},{name:\"DEVI Essence Massage Body Oil - \u00d4m\",link:\"\"},{name:\"DEVI Essential oils - H\u01b0\u01a1ng Thanh\",link:\"https:\/\/devinaturalliving.com\/product\/tinh-dau-mix-devi-huong-thanh\/\"}],\r\n};\r\n\r\nlet answers={}, userData={};\r\n\r\n\/\/ \u2500\u2500 RENDER UI TEXT \u2500\u2500\r\nfunction renderUI() {\r\n  document.getElementById('hero-title').innerHTML = L.heroTitle;\r\n  document.getElementById('hero-sub').textContent = L.heroSub;\r\n  document.getElementById('hero-note').textContent = L.heroNote;\r\n  document.getElementById('form-title').textContent = L.formTitle;\r\n  document.getElementById('form-sub').textContent = L.formSub;\r\n  document.getElementById('lbl-name').textContent = L.lblName;\r\n  document.getElementById('lbl-age').textContent = L.lblAge;\r\n  document.getElementById('lbl-job').textContent = L.lblJob;\r\n  document.getElementById('lbl-phone').textContent = L.lblPhone;\r\n  document.getElementById('lbl-email').textContent = L.lblEmail;\r\n  document.getElementById('f-name').placeholder = L.phName;\r\n  document.getElementById('f-age').placeholder = L.phAge;\r\n  document.getElementById('f-job').placeholder = L.phJob;\r\n  document.getElementById('f-phone').placeholder = L.phPhone;\r\n  document.getElementById('f-email').placeholder = L.phEmail;\r\n  document.getElementById('btn-start').textContent = L.btnStart;\r\n  document.getElementById('quiz-heading').textContent = L.quizHeading;\r\n  document.getElementById('quiz-hint').textContent = L.quizHint;\r\n  document.getElementById('btn-submit').textContent = L.btnSubmit;\r\n  document.getElementById('sending-text').textContent = L.sending;\r\n  document.getElementById('products-title').textContent = L.productsTitle;\r\n  document.getElementById('products-sub').textContent = L.productsSub;\r\n  document.getElementById('cta-text').textContent = L.ctaText;\r\n  document.getElementById('btn-fb-text').textContent = L.btnFb;\r\n  document.getElementById('btn-zalo-text').textContent = L.btnZalo;\r\n  document.getElementById('btn-again').textContent = L.btnAgain;\r\n}\r\n\r\nfunction buildQuestions(){\r\n  const qs = IS_EN ? QUESTIONS.en : QUESTIONS.vi;\r\n  const container = document.getElementById('questions-container');\r\n  container.innerHTML = qs.map((q,i) => `\r\n    <div class=\"question-block\">\r\n      <div class=\"q-number\">${L.qNum(i)}<\/div>\r\n      <div class=\"q-text\">${q.text}<\/div>\r\n      <div class=\"q-hint\">${L.qHint}<\/div>\r\n      <div class=\"options\">\r\n        ${['V','P','K','NA'].map(type=>`\r\n          <label class=\"opt-label\" id=\"opt-${i}-${type}\" onclick=\"toggleAnswer(${i},'${type}')\">\r\n            <span class=\"opt-dot\"><\/span>\r\n            <span>${type==='NA'?L.naLabel:q[type]}<\/span>\r\n          <\/label>`).join('')}\r\n      <\/div>\r\n    <\/div>`).join('');\r\n}\r\n\r\nfunction toggleAnswer(qIdx,type){\r\n  if(!answers[qIdx]) answers[qIdx]=[];\r\n  const current=answers[qIdx];\r\n  if(type==='NA'){\r\n    answers[qIdx]=['NA'];\r\n  } else {\r\n    const withoutNA=current.filter(x=>x!=='NA');\r\n    if(withoutNA.includes(type)){\r\n      answers[qIdx]=withoutNA.filter(x=>x!==type);\r\n      if(answers[qIdx].length===0) delete answers[qIdx];\r\n    } else {\r\n      if(withoutNA.length<2) answers[qIdx]=[...withoutNA,type];\r\n      else return;\r\n    }\r\n  }\r\n  renderOptions(qIdx);\r\n  updateProgress();\r\n}\r\n\r\nfunction renderOptions(qIdx){\r\n  const current=answers[qIdx]||[];\r\n  ['V','P','K','NA'].forEach(type=>{\r\n    const el=document.getElementById(`opt-${qIdx}-${type}`);\r\n    el.classList.remove('selected','na-selected');\r\n    if(current.includes(type)) el.classList.add(type==='NA'?'na-selected':'selected');\r\n  });\r\n}\r\n\r\nfunction updateProgress(){\r\n  const count=Object.keys(answers).length;\r\n  document.getElementById('progress-bar').style.width=(count\/16*100)+'%';\r\n  document.getElementById('progress-text').textContent=L.progressOf(count,16);\r\n}\r\n\r\nfunction calcScores(){\r\n  let V=0,P=0,K=0;\r\n  Object.values(answers).forEach(picks=>{\r\n    const nonNA=picks.filter(x=>x!=='NA');\r\n    if(!nonNA.length) return;\r\n    const pt=1\/nonNA.length;\r\n    nonNA.forEach(t=>{if(t==='V')V+=pt;else if(t==='P')P+=pt;else if(t==='K')K+=pt;});\r\n  });\r\n  return{V:Math.round(V*10)\/10,P:Math.round(P*10)\/10,K:Math.round(K*10)\/10};\r\n}\r\n\r\nfunction getWinner(s){\r\n  if(s.V>=s.P&&s.V>=s.K) return 'VATA';\r\n  if(s.P>=s.V&&s.P>=s.K) return 'PITTA';\r\n  return 'KAPHA';\r\n}\r\n\r\nfunction startQuiz(){\r\n  const name=document.getElementById('f-name').value.trim();\r\n  const age=document.getElementById('f-age').value.trim();\r\n  const phone=document.getElementById('f-phone').value.trim();\r\n  const errEl=document.getElementById('form-error');\r\n  if(!name||!age||!phone){errEl.textContent=L.formError;errEl.style.display='block';return;}\r\n  errEl.style.display='none';\r\n  userData={name,age,job:document.getElementById('f-job').value.trim(),phone,email:document.getElementById('f-email').value.trim()};\r\n  showStep('step-quiz');\r\n  buildQuestions();\r\n}\r\n\r\nfunction submitQuiz(){\r\n  const errEl=document.getElementById('quiz-error');\r\n  if(Object.keys(answers).length<16){errEl.textContent=L.quizError;errEl.style.display='block';return;}\r\n  errEl.style.display='none';\r\n  const scores=calcScores();\r\n  const winner=getWinner(scores);\r\n  showStep('step-sending');\r\n  const payload={...userData,scoreV:scores.V,scoreP:scores.P,scoreK:scores.K,result:winner,mode:IS_SANPHAM?'sanpham':'normal',lang:IS_EN?'en':'vi'};\r\n  fetch(SHEET_URL,{method:'POST',mode:'no-cors',headers:{'Content-Type':'text\/plain;charset=utf-8'},body:JSON.stringify(payload)})\r\n  .catch(()=>{}).finally(()=>showResult(winner,scores));\r\n}\r\n\r\nfunction showResult(type,scores){\r\n  const r=RESULTS[type];\r\n  document.getElementById('result-badge').innerHTML=r.badge;\r\n  document.getElementById('result-badge').className='result-badge '+r.badgeClass;\r\n  document.getElementById('result-illustration').innerHTML=r.illustration;\r\n  const t=document.getElementById('result-title');\r\n  t.textContent=type.charAt(0)+type.slice(1).toLowerCase();\r\n  t.className=r.titleClass;\r\n  document.getElementById('result-subtitle').textContent=r.subtitle;\r\n  document.getElementById('result-desc').innerHTML=r.desc;\r\n  document.getElementById('score-pills').innerHTML=L.scoreLabel(scores.V,scores.P,scores.K,type);\r\n  if(IS_SANPHAM) renderProducts(type,r);\r\n  showStep('step-result');\r\n}\r\n\r\nfunction renderProducts(type,r){\r\n  const products=PRODUCTS_FALLBACK[type]||[];\r\n  document.getElementById('product-list').innerHTML=products.map(p=>\r\n    p.link\r\n      ?`<div class=\"product-item\"><div class=\"product-icon ${r.iconClass}\">${r.icon}<\/div><a href=\"${p.link}\" target=\"_blank\" class=\"product-name\">${p.name}<\/a><\/div>`\r\n      :`<div class=\"product-item\"><div class=\"product-icon ${r.iconClass}\">${r.icon}<\/div><span class=\"product-name no-link\">${p.name}<\/span><\/div>`\r\n  ).join('');\r\n  document.getElementById('products-section').style.display='block';\r\n}\r\n\r\nfunction showStep(id){\r\n  document.querySelectorAll('.step').forEach(s=>s.classList.remove('active'));\r\n  document.getElementById(id).classList.add('active');\r\n  window.scrollTo({top:0,behavior:'smooth'});\r\n}\r\n\r\nfunction resetQuiz(){answers={};userData={};showStep('step-form');}\r\n\r\n\/\/ \u2500\u2500 KH\u1edeI \u0110\u1ed8NG \u2500\u2500\r\nrenderUI();\r\n<\/script>\r\n<\/body>\r\n<\/html>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Kh\u00e1m Ph\u00e1 Th\u1ec3 Tr\u1ea1ng Dosha \u00b7 DEVI Ayurveda \u00b7 DEVI Natural Living<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1345","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Quiz Dosha - DEVI<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/devinaturalliving.com\/en\/quiz-dosha\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Quiz Dosha - DEVI\" \/>\n<meta property=\"og:description\" content=\"Kh\u00e1m Ph\u00e1 Th\u1ec3 Tr\u1ea1ng Dosha \u00b7 DEVI Ayurveda \u00b7 DEVI Natural Living\" \/>\n<meta property=\"og:url\" content=\"https:\/\/devinaturalliving.com\/en\/quiz-dosha\/\" \/>\n<meta property=\"og:site_name\" content=\"DEVI\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-12T06:33:04+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/devinaturalliving.com\\\/quiz-dosha\\\/\",\"url\":\"https:\\\/\\\/devinaturalliving.com\\\/quiz-dosha\\\/\",\"name\":\"Quiz Dosha - DEVI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/devinaturalliving.com\\\/#website\"},\"datePublished\":\"2026-06-28T10:51:57+00:00\",\"dateModified\":\"2026-07-12T06:33:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/devinaturalliving.com\\\/quiz-dosha\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/devinaturalliving.com\\\/quiz-dosha\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/devinaturalliving.com\\\/quiz-dosha\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trang ch\u1ee7\",\"item\":\"https:\\\/\\\/devinaturalliving.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quiz Dosha\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/devinaturalliving.com\\\/#website\",\"url\":\"https:\\\/\\\/devinaturalliving.com\\\/\",\"name\":\"DEVI\",\"description\":\"Natural Living\",\"publisher\":{\"@id\":\"https:\\\/\\\/devinaturalliving.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/devinaturalliving.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/devinaturalliving.com\\\/#organization\",\"name\":\"DEVI\",\"url\":\"https:\\\/\\\/devinaturalliving.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/devinaturalliving.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/devinaturalliving.com\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/Logo-devi.png\",\"contentUrl\":\"https:\\\/\\\/devinaturalliving.com\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/Logo-devi.png\",\"width\":1501,\"height\":459,\"caption\":\"DEVI\"},\"image\":{\"@id\":\"https:\\\/\\\/devinaturalliving.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Quiz Dosha - DEVI","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/devinaturalliving.com\/en\/quiz-dosha\/","og_locale":"en_US","og_type":"article","og_title":"Quiz Dosha - DEVI","og_description":"Kh\u00e1m Ph\u00e1 Th\u1ec3 Tr\u1ea1ng Dosha \u00b7 DEVI Ayurveda \u00b7 DEVI Natural Living","og_url":"https:\/\/devinaturalliving.com\/en\/quiz-dosha\/","og_site_name":"DEVI","article_modified_time":"2026-07-12T06:33:04+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/devinaturalliving.com\/quiz-dosha\/","url":"https:\/\/devinaturalliving.com\/quiz-dosha\/","name":"Quiz Dosha - DEVI","isPartOf":{"@id":"https:\/\/devinaturalliving.com\/#website"},"datePublished":"2026-06-28T10:51:57+00:00","dateModified":"2026-07-12T06:33:04+00:00","breadcrumb":{"@id":"https:\/\/devinaturalliving.com\/quiz-dosha\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devinaturalliving.com\/quiz-dosha\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/devinaturalliving.com\/quiz-dosha\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/devinaturalliving.com\/"},{"@type":"ListItem","position":2,"name":"Quiz Dosha"}]},{"@type":"WebSite","@id":"https:\/\/devinaturalliving.com\/#website","url":"https:\/\/devinaturalliving.com\/","name":"DEVI","description":"Natural Living","publisher":{"@id":"https:\/\/devinaturalliving.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devinaturalliving.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/devinaturalliving.com\/#organization","name":"DEVI","url":"https:\/\/devinaturalliving.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/devinaturalliving.com\/#\/schema\/logo\/image\/","url":"https:\/\/devinaturalliving.com\/wp-content\/uploads\/2026\/04\/Logo-devi.png","contentUrl":"https:\/\/devinaturalliving.com\/wp-content\/uploads\/2026\/04\/Logo-devi.png","width":1501,"height":459,"caption":"DEVI"},"image":{"@id":"https:\/\/devinaturalliving.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/devinaturalliving.com\/en\/wp-json\/wp\/v2\/pages\/1345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devinaturalliving.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/devinaturalliving.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/devinaturalliving.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devinaturalliving.com\/en\/wp-json\/wp\/v2\/comments?post=1345"}],"version-history":[{"count":42,"href":"https:\/\/devinaturalliving.com\/en\/wp-json\/wp\/v2\/pages\/1345\/revisions"}],"predecessor-version":[{"id":1588,"href":"https:\/\/devinaturalliving.com\/en\/wp-json\/wp\/v2\/pages\/1345\/revisions\/1588"}],"wp:attachment":[{"href":"https:\/\/devinaturalliving.com\/en\/wp-json\/wp\/v2\/media?parent=1345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}