/* The assessment page (assessment.php). Everything is scoped to #bq so it can't clash with the site's Tailwind. */
#bq {
    --ink: #0f172a;
    --muted: #5b6577;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --card: #ffffff;
    --main: #5e2366;
    --light: #80348a;
    --dark: #3d1642;
    --main-soft: #f5edf6;
    --good: #15803d;
    --mid: #b45309;
    --low: #b91c1c;
    color: var(--ink);
    line-height: 1.6;
}
#bq * { box-sizing: border-box; }
#bq .wrap { max-width: 720px; margin: 0 auto; padding: 32px 16px 112px; }   /* bottom room for the floating chat button */
#bq .card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: 0 20px 40px -24px rgba(94, 35, 102, .35); }
@media (max-width: 560px) { #bq .card { padding: 22px 18px; } #bq .wrap { padding-top: 16px; } }
#bq .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--main); background: var(--main-soft); border-radius: 999px; padding: 4px 12px; }
#bq h1 { font-size: 30px; line-height: 1.25; margin: 14px 0 10px; font-weight: 800; }
#bq h2 { font-size: 22px; line-height: 1.4; margin: 0 0 18px; font-weight: 700; }
#bq h3 { font-weight: 700; }
#bq p { margin: 0 0 14px; }
#bq .muted { color: var(--muted); }
#bq .points { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
#bq .points li { display: flex; gap: 10px; align-items: flex-start; }
#bq .points i { color: var(--main); margin-top: 5px; }
#bq .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 0; border-radius: 14px; padding: 12px 24px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; background: var(--main); color: #fff; text-decoration: none; box-shadow: 0 10px 20px -10px rgba(94, 35, 102, .6); transition: background .2s, transform .2s; }
#bq .btn:hover { background: var(--light); }
#bq .btn:active { transform: scale(.98); }
#bq .btn.ghost { background: transparent; color: var(--muted); min-height: 44px; padding: 10px 12px; font-weight: 600; font-size: 15px; box-shadow: none; }
#bq .btn.ghost:hover { color: var(--ink); background: transparent; }
#bq .btn.wide { width: 100%; }
#bq label { display: block; font-weight: 600; margin: 0 0 6px; }
#bq .field { margin-bottom: 16px; }
#bq input[type=text], #bq input[type=email], #bq input[type=tel] { width: 100%; min-height: 48px; font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #f8fafc; color: var(--ink); }
#bq input:focus { outline: none; border-color: var(--main); background: #fff; box-shadow: 0 0 0 3px rgba(94, 35, 102, .25); }
#bq .err { color: var(--low); font-size: 14px; margin-top: 4px; }
#bq .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#bq .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
#bq .bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
#bq .bar > div { height: 100%; background: linear-gradient(90deg, var(--main), var(--light)); border-radius: 999px; transition: width .35s ease; }
#bq .options { display: grid; gap: 10px; }
#bq .options.big-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { #bq .options.big-grid { grid-template-columns: 1fr 1fr; } }
#bq .opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; text-align: left; font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
@media (hover: hover) { #bq .opt:hover { border-color: var(--light); background: var(--main-soft); } }
#bq .opt span:last-child { min-width: 0; overflow-wrap: anywhere; }
#bq h2 { overflow-wrap: anywhere; }
#bq #app { scroll-margin-top: 96px; }
#bq #app h1:focus, #bq #app h2:focus { outline: none; }
#bq .opt .key { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: var(--bg); color: var(--muted); }
#bq .opt.on { border-color: var(--main); background: var(--main-soft); }
#bq .opt.on .key { background: var(--main); color: #fff; }
#bq .opt.big { flex-direction: column; justify-content: center; text-align: center; padding: 22px 12px; font-weight: 700; }
#bq .opt.big i { font-size: 26px; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--main-soft); color: var(--main); }
#bq .btn:focus-visible, #bq .opt:focus-visible, #bq a:focus-visible { outline: 3px solid var(--light); outline-offset: 2px; }
#bq .nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
#bq .score { display: flex; align-items: center; gap: 22px; margin: 6px 0 22px; }
@media (max-width: 560px) { #bq .score { flex-direction: column; text-align: center; } }
#bq .q-ring { flex: none; width: 132px; height: 132px; position: relative; }
#bq .q-ring svg { transform: rotate(-90deg); }
#bq .q-ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; line-height: 1; }
#bq .q-ring .num small { font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 4px; }
#bq .badge { display: inline-block; font-weight: 700; font-size: 15px; border-radius: 999px; padding: 3px 12px; margin-bottom: 6px; }
#bq .section { margin-top: 24px; }
#bq .section h3 { font-size: 18px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
#bq .list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
#bq .list li { display: flex; gap: 12px; align-items: flex-start; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
#bq .list .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--main); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
#bq .list.good li { background: #f0fdf4; border-color: #bbf7d0; }
#bq .list.good i { color: var(--good); margin-top: 5px; }
#bq .note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
#bq .cta { margin-top: 26px; background: linear-gradient(135deg, var(--dark), var(--main)); color: #fff; border-radius: 18px; padding: 22px; text-align: center; }
#bq .cta p { color: #ead9ec; }
#bq .cta .btn { background: #fff; color: var(--main); }
#bq .cta .btn:hover { background: var(--main-soft); }
#bq .areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#bq .areas li { background: var(--main-soft); color: var(--main); font-weight: 700; font-size: 15px; border-radius: 999px; padding: 6px 14px; }
#bq .meet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; text-align: left; }
#bq .meet textarea, #bq .meet .btn { grid-column: 1 / -1; }
@media (max-width: 480px) { #bq .meet { grid-template-columns: 1fr; } }
#bq .meet select, #bq .meet textarea { width: 100%; min-height: 48px; font: inherit; font-size: 16px; padding: 10px 12px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); }
#bq .meet textarea { resize: vertical; }
#bq .meet select:focus, #bq .meet textarea:focus { outline: 3px solid #ead9ec; }
#bq .meet-done { background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px 14px; margin-top: 14px; color: #fff; font-weight: 600; }
#bq .cta .btn.ghost.light { background: transparent; box-shadow: none; color: #ead9ec; margin-top: 10px; }
#bq .cta .btn.ghost.light:hover { color: #fff; background: transparent; }
#bq .fade { animation: bq-fade .3s ease; }
@keyframes bq-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #bq .fade { animation: none; } #bq .bar > div, #bq .btn, #bq .opt { transition: none; } }
