{"id":36751,"date":"2026-02-03T19:13:06","date_gmt":"2026-02-03T19:13:06","guid":{"rendered":"https:\/\/rabaterapia.com\/?p=36751"},"modified":"2026-02-04T18:56:36","modified_gmt":"2026-02-04T18:56:36","slug":"quiz-test","status":"publish","type":"post","link":"https:\/\/rabaterapia.com\/pt\/2026\/02\/03\/quiz-test\/","title":{"rendered":"Quiz test"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code><\/code><\/pre>\n\n\n\n<style>\n  .raba-quiz { max-width:760px; margin:auto; font-family:Arial, sans-serif; }\n  .progress-wrapper { height:8px; background:#eee; border-radius:10px; margin-bottom:24px; overflow:hidden; }\n  .progress-bar { height:100%; width:0%; background:#ff4ca6; transition:width .25s ease; }\n\n  .raba-question { display:none; }\n  .raba-question.active { display:block; }\n\n  .raba-option {\n    padding:14px 16px;\n    margin-bottom:12px;\n    border:2px solid #eee;\n    border-radius:10px;\n    cursor:pointer;\n  }\n  .raba-option.selected {\n    border-color:#ff4ca6;\n    background:#fff0f7;\n  }\n\n  .nav-buttons { display:flex; justify-content:space-between; margin-top:20px; gap:12px; }\n  .nav-buttons button {\n    padding:12px 24px;\n    border-radius:30px;\n    border:none;\n    font-weight:bold;\n    cursor:pointer;\n  }\n  .btn-next { background:#ff4ca6; color:#fff; }\n  .btn-back { background:#ddd; }\n  .btn-next:disabled { background:#f3b3cf; cursor:not-allowed; }\n\n  .raba-result {\n    display:none;\n    text-align:center;\n    padding:40px 26px;\n    background:#f9f9f9;\n    border-radius:16px;\n  }\n\n  \/* Normal links stay underlined *\/\n  .raba-result a { color:#ff4ca6; text-decoration:underline; }\n\n  .raba-btn {\n    display:inline-block;\n    margin:10px 8px 0;\n    padding:14px 22px;\n    background:#ff4ca6;\n    border-radius:30px;\n    font-weight:bold;\n  }\n\n  .raba-btn.outline {\n    background:transparent;\n    border:2px solid #ff4ca6;\n  }\n\n  .try-again { margin-top:24px; font-size:14px; }\n  .result-category { font-weight:bold; letter-spacing:.08em; margin-bottom:10px; }\n\n  \/* \u2705 CTA BUTTON FIXES (final, bulletproof) *\/\n  a.raba-btn,\n  a.raba-btn:link,\n  a.raba-btn:visited,\n  a.raba-btn:hover,\n  a.raba-btn:focus,\n  a.raba-btn:active {\n    color:#ffffff !important;\n    text-decoration:none !important;\n  }\n\n  a.raba-btn.outline,\n  a.raba-btn.outline:link,\n  a.raba-btn.outline:visited,\n  a.raba-btn.outline:hover,\n  a.raba-btn.outline:focus,\n  a.raba-btn.outline:active {\n    color:#ff4ca6 !important;\n    text-decoration:none !important;\n  }\n<\/style>\n\n<div class=\"raba-quiz\" id=\"rabaQuiz\">\n\n  <div class=\"progress-wrapper\">\n    <div class=\"progress-bar\" id=\"progressBar\"><\/div>\n  <\/div>\n\n  <!-- Q1 -->\n  <div class=\"raba-question active\">\n    <h3>What made you curious about Rabaterapia?<\/h3>\n    <div class=\"raba-option\" data-class=\"fitness\">I want cardio, sweat, and endorphins (but not gym vibes)<\/div>\n    <div class=\"raba-option\" data-class=\"dance\">I want to dance, let loose, and feel more confident<\/div>\n    <div class=\"raba-option\" data-class=\"relaxation\">I want to slow down, relax, and take better care of my body<\/div>\n    <div class=\"raba-option\" data-class=\"fitness,dance,relaxation\">Honestly? A little bit of everything<\/div>\n  <\/div>\n\n  <!-- Q2 -->\n  <div class=\"raba-question\">\n    <h3>How familiar are you with Rabaterapia?<\/h3>\n    <div class=\"raba-option\" data-plan=\"starter\">I\u2019ve never taken a class<\/div>\n    <div class=\"raba-option\" data-plan=\"freedom\">I\u2019ve taken one or a few classes before<\/div>\n    <div class=\"raba-option\" data-plan=\"habit\">I know the vibe and want consistency<\/div>\n    <div class=\"raba-option\" data-plan=\"lifestyle\">I love the vibe and want Raba to be part of my routine<\/div>\n  <\/div>\n\n  <!-- Q3 -->\n  <div class=\"raba-question\">\n    <h3>Pick your ideal playlist energy<\/h3>\n    <div class=\"raba-option\" data-class=\"fitness\">Upbeat, motivating workout make-me-move beats<\/div>\n    <div class=\"raba-option\" data-class=\"dance\">Latin vibes, rhythmic beats and playful grooves<\/div>\n    <div class=\"raba-option\" data-class=\"relaxation\">Soft, grounding, peaceful sounds<\/div>\n    <div class=\"raba-option\" data-class=\"fitness,dance,relaxation\">A mix of everything. I like contrast<\/div>\n  <\/div>\n\n  <!-- Q4 -->\n  <div class=\"raba-question\">\n    <h3>How do you realistically see yourself coming to class?<\/h3>\n    <div class=\"raba-option\" data-plan=\"freedom\">Once in a while, when I feel like it<\/div>\n    <div class=\"raba-option\" data-plan=\"habit\">About once a week<\/div>\n    <div class=\"raba-option\" data-plan=\"habit\">Twice a week<\/div>\n    <div class=\"raba-option\" data-plan=\"lifestyle\">Three times a week or more<\/div>\n  <\/div>\n\n  <!-- Q5 -->\n  <div class=\"raba-question\">\n    <h3>Be honest! What\u2019s your main goal right now?<\/h3>\n    <div class=\"raba-option\" data-class=\"fitness\">Improve my cardio and feel stronger<\/div>\n    <div class=\"raba-option\" data-class=\"dance\">Have fun and reconnect with my body<\/div>\n    <div class=\"raba-option\" data-class=\"relaxation\">Reduce stress and feel better mentally<\/div>\n    <div class=\"raba-option\" data-class=\"fitness,dance,relaxation\">I have all these goals at the same time<\/div>\n  <\/div>\n\n  <!-- Q6 -->\n  <div class=\"raba-question\">\n    <h3>How does commitment feel to you right now?<\/h3>\n    <div class=\"raba-option\" data-plan=\"starter\">I want to start slow and see how it feels<\/div>\n    <div class=\"raba-option\" data-plan=\"freedom\">I want flexibility, I don\u2019t like fixed schedules<\/div>\n    <div class=\"raba-option\" data-plan=\"habit\">I like structure and routine<\/div>\n    <div class=\"raba-option\" data-plan=\"lifestyle\">Movement is part of my lifestyle already<\/div>\n  <\/div>\n\n  <div class=\"nav-buttons\">\n    <button class=\"btn-back\" id=\"backBtn\" type=\"button\">Back<\/button>\n    <button class=\"btn-next\" id=\"nextBtn\" type=\"button\" disabled>Next<\/button>\n  <\/div>\n\n  <div class=\"raba-result\" id=\"rabaResult\"><\/div>\n<\/div>\n\n<script>\n(function(){\n  const quiz = document.getElementById(\"rabaQuiz\");\n  const questions = quiz.querySelectorAll(\".raba-question\");\n  const nextBtn = document.getElementById(\"nextBtn\");\n  const backBtn = document.getElementById(\"backBtn\");\n  const progressBar = document.getElementById(\"progressBar\");\n  const resultBox = document.getElementById(\"rabaResult\");\n\n  let current = 0;\n  const selected = Array(questions.length).fill(null);\n\n  const CLASS_LINKS = {\n    \"Step Workout\":\"https:\/\/rabaterapia.com\/step-workout\/\",\n    \"Trampoline Fitness\":\"https:\/\/rabaterapia.com\/trampoline-fitness\/\",\n    \"Mat Pilates\":\"https:\/\/rabaterapia.com\/montreal-mat-pilates\/\",\n    \"Pop Funk\":\"https:\/\/rabaterapia.com\/pop-funk\/\",\n    \"Reggaeton\":\"https:\/\/rabaterapia.com\/reggaeton\/\",\n    \"Slow Flow Yoga\":\"https:\/\/rabaterapia.com\/yoga\/\"\n  };\n\n  const CTA = {\n    starter: `\n      <a class=\"raba-btn\" href=\"https:\/\/momence.com\/Rabaterapia\/membership\/1-trial-class\/394001\" target=\"_blank\">1 Trial Class<\/a>\n      <a class=\"raba-btn outline\" href=\"https:\/\/momence.com\/Rabaterapia\/membership\/3-trial-classes\/394000\" target=\"_blank\">3 Trial Classes<\/a>\n    `,\n    freedom: `\n      <a class=\"raba-btn\" href=\"https:\/\/momence.com\/Rabaterapia\/membership\/5-classes\/393986\" target=\"_blank\">5-Class Pack<\/a>\n      <a class=\"raba-btn outline\" href=\"https:\/\/momence.com\/Rabaterapia\/membership\/10-classes\/393988\" target=\"_blank\">10-Class Pack<\/a>\n    `,\n    habit: `\n      <a class=\"raba-btn\" href=\"https:\/\/momence.com\/Rabaterapia\/membership\/4-classes-per-month\/393493\" target=\"_blank\">4 Classes \/ Month<\/a>\n      <a class=\"raba-btn outline\" href=\"https:\/\/momence.com\/Rabaterapia\/membership\/8-classes-per-month\/393977\" target=\"_blank\">8 Classes \/ Month<\/a>\n    `,\n    lifestyle: `\n      <a class=\"raba-btn\" href=\"https:\/\/momence.com\/Rabaterapia\/membership\/1-month-unlimited\/393980\" target=\"_blank\">1 Month Unlimited<\/a>\n      <a class=\"raba-btn outline\" href=\"https:\/\/momence.com\/Rabaterapia\/membership\/3-months-unlimited\/393983\" target=\"_blank\">3 Months Unlimited<\/a>\n    `\n  };\n\n  const RESULTS = {\n    \"fitness|starter\": {\n      category:\"FITNESS\",\n      title:\"The Curious Cardio Starter\",\n      desc:\"Looks like you feel motivated and ready to move! Raba is a free-judgement place. Get ready to sweat, laugh, and have fun!\",\n      match:\"Fitness classes like Step Workout, Trampoline Fitness, and Mat Pilates.\",\n      plan:\"Start with either 1 or 3 trial classes to feel the vibe, no pressure.\"\n    }\n  };\n\n  function linkify(text){\n    Object.keys(CLASS_LINKS).forEach(n=>{\n      text = text.split(n).join(`<a href=\"${CLASS_LINKS[n]}\" target=\"_blank\">${n}<\/a>`);\n    });\n    return text;\n  }\n\n  function updateProgress(){\n    progressBar.style.width = (current \/ questions.length) * 100 + \"%\";\n  }\n\n  function showQuestion(){\n    questions.forEach(q=>q.classList.remove(\"active\"));\n    questions[current].classList.add(\"active\");\n    backBtn.style.display = current === 0 ? \"none\" : \"inline-block\";\n    nextBtn.disabled = !selected[current];\n    updateProgress();\n  }\n\n  quiz.addEventListener(\"click\", e=>{\n    const opt = e.target.closest(\".raba-option\");\n    if(!opt) return;\n    const active = questions[current];\n    if(!active.contains(opt)) return;\n    active.querySelectorAll(\".raba-option\").forEach(o=>o.classList.remove(\"selected\"));\n    opt.classList.add(\"selected\");\n    selected[current] = opt;\n    nextBtn.disabled = false;\n  });\n\n  backBtn.onclick = ()=>{ current--; showQuestion(); };\n  nextBtn.onclick = ()=>{\n    if(current < questions.length-1){ current++; showQuestion(); }\n    else showResult();\n  };\n\n  function computeClass(){\n    const s={fitness:0,dance:0,relaxation:0};\n    selected.forEach(o=>{\n      if(o?.dataset.class) o.dataset.class.split(\",\").forEach(k=>s[k]++);\n    });\n    return Object.keys(s).sort((a,b)=>s[b]-s[a])[0];\n  }\n\n  function computePlan(){\n    const s={starter:0,freedom:0,habit:0,lifestyle:0};\n    selected.forEach(o=>{\n      if(o?.dataset.plan) s[o.dataset.plan]++;\n    });\n    return Object.keys(s).sort((a,b)=>s[b]-s[a])[0];\n  }\n\n  function showResult(){\n    questions.forEach(q=>q.style.display=\"none\");\n    quiz.querySelector(\".nav-buttons\").style.display=\"none\";\n    quiz.querySelector(\".progress-wrapper\").style.display=\"none\";\n\n    const cls = computeClass();\n    const plan = computePlan();\n    const r = RESULTS[`${cls}|${plan}`] || RESULTS[\"fitness|starter\"];\n\n    resultBox.innerHTML = `\n      <div class=\"result-category\">${r.category}<\/div>\n      <h2>${r.title}<\/h2>\n      <p>${linkify(r.desc)}<\/p>\n      <p><strong>Here is your perfect Raba Match:<\/strong><\/p>\n      <p>${linkify(r.match)}<\/p>\n      <p>${linkify(r.plan)}<\/p>\n      <div>${CTA[plan]}<\/div>\n      <div class=\"try-again\">If this doesn\u2019t feel right, <a href=\"\" onclick=\"location.reload()\">try the quiz again<\/a>.<\/div>\n    `;\n    resultBox.style.display=\"block\";\n    resultBox.scrollIntoView({behavior:\"smooth\"});\n  }\n\n  backBtn.style.display=\"none\";\n  updateProgress();\n})();\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>What made you curious about Rabaterapia? I want cardio, sweat, and endorphins (but not gym vibes) I want to dance, let loose, and feel more confident I want to slow down, relax, and take better care of my body Honestly? A little bit of everything How familiar are you with Rabaterapia? I\u2019ve never taken a [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"0","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-36751","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/rabaterapia.com\/pt\/wp-json\/wp\/v2\/posts\/36751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rabaterapia.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rabaterapia.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rabaterapia.com\/pt\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/rabaterapia.com\/pt\/wp-json\/wp\/v2\/comments?post=36751"}],"version-history":[{"count":10,"href":"https:\/\/rabaterapia.com\/pt\/wp-json\/wp\/v2\/posts\/36751\/revisions"}],"predecessor-version":[{"id":36793,"href":"https:\/\/rabaterapia.com\/pt\/wp-json\/wp\/v2\/posts\/36751\/revisions\/36793"}],"wp:attachment":[{"href":"https:\/\/rabaterapia.com\/pt\/wp-json\/wp\/v2\/media?parent=36751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rabaterapia.com\/pt\/wp-json\/wp\/v2\/categories?post=36751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rabaterapia.com\/pt\/wp-json\/wp\/v2\/tags?post=36751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}