/* BitePlan Quiz – scoped under .bpq */
.bpq {
  --bpq-ink: #2E2F41;
  --bpq-ink-soft: #55566A;
  --bpq-gold: #D1B785;
  --bpq-gold-ink: #8A6C34;
  --bpq-accent: #EA5133;
  --bpq-accent-soft: #FDF0EC;
  --bpq-cream: #FAF7F2;
  --bpq-line: #E7E0D4;
  --bpq-track: #EFEAE2;
  --bpq-card: #FFFFFF;
  --bpq-brown: #61210F;
  --bpq-coffee: #D1B785;
  --bpq-coffee-soft: #E9DDC5;
  --bpq-grey: #F4F3EE;
  --bpq-radius: 18px;
  direction: rtl;
  text-align: right;
  font-family: 'Heebo', 'Rubik', Arial, sans-serif;
  color: var(--bpq-ink);
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-size: 17px;
  line-height: 1.6;
  box-sizing: border-box;
}
.bpq *, .bpq *::before, .bpq *::after { box-sizing: border-box; }
/* neutralise theme typography that leaks in */
.bpq * { letter-spacing: normal; text-transform: none; }
.bpq h1, .bpq h2, .bpq h3, .bpq p, .bpq label, .bpq span, .bpq li, .bpq button, .bpq a, .bpq input, .bpq textarea { font-family: 'Heebo', 'Rubik', Arial, sans-serif; }
.bpq label, .bpq .bpq-check span { font-weight: 400; }
.bpq .bpq-fields label span { font-weight: 500; }
.bpq h2, .bpq h3, .bpq p, .bpq ul, .bpq ol, .bpq fieldset, .bpq legend { margin: 0; padding: 0; }
.bpq h2:focus { outline: none; }

.bpq-card {
  background: var(--bpq-card);
  border: 1px solid var(--bpq-line);
  border-radius: var(--bpq-radius);
  padding: 36px 36px 32px;
  box-shadow: 0 10px 30px -18px rgba(46, 47, 65, .25);
  margin-bottom: 20px;
}
.bpq .bpq-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--bpq-gold-ink); margin-bottom: 8px; }
.bpq-eyebrow.bpq-accent { color: var(--bpq-accent); }
.bpq .bpq-h1 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.2; font-weight: 800; color: var(--bpq-ink); margin-bottom: 14px; }
.bpq .bpq-h2 { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.25; font-weight: 800; color: var(--bpq-ink); margin-bottom: 10px; }
.bpq .bpq-h3 { font-size: 17px; font-weight: 700; color: var(--bpq-ink); margin: 18px 0 4px; }
.bpq .bpq-lead { display: block; font-size: 19px; color: var(--bpq-ink-soft); margin-bottom: 22px; }
.bpq .bpq-note { color: var(--bpq-ink-soft); font-size: 16px; margin-bottom: 22px; }

/* intro */
.bpq-intro { text-align: center; padding: 48px 36px; background: linear-gradient(180deg, #fff 0%, var(--bpq-cream) 100%); }
.bpq .bpq-intro .bpq-lead { max-width: 560px; margin-left: auto; margin-right: auto; }
.bpq .bpq-intro .bpq-note { max-width: 560px; margin: 0 auto 28px; }
.bpq-facts { list-style: none; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 22px !important; }
.bpq-facts li { background: #fff; border: 1px solid var(--bpq-line); border-radius: 999px; padding: 8px 18px; font-size: 15px; color: var(--bpq-ink-soft); }
.bpq-facts b { color: var(--bpq-ink); font-weight: 800; }

/* sign-up gate (gate="yes") */
.bpq-gate { max-width: 560px; margin: 0 auto 26px; text-align: right; background: #fff; border: 1px solid var(--bpq-line); border-radius: 14px; padding: 20px 22px 6px; }
.bpq .bpq-gate-q { font-weight: 700; font-size: 17px; color: var(--bpq-ink); margin: 0 0 14px; text-align: center; }
.bpq-gate .bpq-error { margin: -8px 0 14px; }
.bpq .bpq-check span { font-size: 15px; line-height: 1.6; }
.bpq .bpq-check a { font-size: inherit; line-height: inherit; font-weight: 700; }

.bpq .bpq-gender-q { font-weight: 700; font-size: 18px; color: var(--bpq-ink); margin: 0 0 14px; }
.bpq-gender-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.bpq-gender-btns .bpq-btn { min-width: 150px; }

/* buttons */
.bpq-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 17px; line-height: 1;
  border-radius: 999px; padding: 16px 34px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: transform .15s, background .15s, opacity .15s;
}
.bpq-btn:focus-visible { outline: 3px solid var(--bpq-gold); outline-offset: 2px; }
.bpq-btn:disabled { opacity: .6; cursor: progress; }
.bpq-btn-primary { background: var(--bpq-ink); color: #fff !important; }
.bpq-btn-primary:hover:not(:disabled) { background: #1E1F2E; transform: translateY(-1px); }
.bpq-btn-ghost { background: transparent; color: var(--bpq-ink) !important; border-color: var(--bpq-line); }
.bpq-btn-ghost:hover { border-color: var(--bpq-ink); }
.bpq-btn-light { background: #fff; color: var(--bpq-ink) !important; }
.bpq-btn-light:hover { background: var(--bpq-cream); }
.bpq-nav { display: flex; gap: 12px; align-items: center; margin-top: 26px; flex-wrap: wrap; }

/* progress */
.bpq-progress { margin-bottom: 16px; }
.bpq-progress-bar { height: 6px; background: var(--bpq-track); border-radius: 6px; overflow: hidden; }
.bpq-progress-bar i { display: block; height: 100%; background: var(--bpq-gold); border-radius: 6px; transition: width .4s ease; }
.bpq-steps { list-style: none; display: flex; justify-content: space-between; gap: 6px; margin-top: 10px !important; }
.bpq-steps li { flex: 1; font-size: 12.5px; color: #9A9AA8; text-align: center; line-height: 1.3; }
.bpq-steps li.done { color: var(--bpq-gold-ink); }
.bpq-steps li.now { color: var(--bpq-ink); font-weight: 700; }

/* statements */
.bpq-questions { display: flex; flex-direction: column; gap: 14px; }
.bpq-q { border: 1px solid var(--bpq-line); border-radius: 14px; padding: 18px 20px 14px; transition: border-color .2s, background .2s; min-width: 0; }
.bpq-q.answered { border-color: #E4D7BC; background: #FFFCF6; }
.bpq-q.missing { border-color: var(--bpq-accent); background: var(--bpq-accent-soft); }
.bpq .bpq-st { font-size: 17px; font-weight: 500; color: var(--bpq-ink); margin: 0 0 14px; }
.bpq-qn { color: var(--bpq-gold-ink); font-weight: 700; }
.bpq-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; direction: rtl; }
.bpq-opt { position: relative; margin: 0; cursor: pointer; }
.bpq-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bpq-num {
  display: flex; align-items: center; justify-content: center;
  height: 46px; border-radius: 12px; border: 1.5px solid var(--bpq-line); background: #fff;
  font-weight: 700; font-size: 17px; color: var(--bpq-ink); transition: all .15s;
}
.bpq-opt:hover .bpq-num { border-color: var(--bpq-gold); }
.bpq-opt input:focus-visible + .bpq-num { outline: 3px solid var(--bpq-gold); outline-offset: 2px; }
.bpq-opt input:checked + .bpq-num { background: var(--bpq-ink); border-color: var(--bpq-ink); color: #fff; transform: scale(1.04); }
.bpq-scale-labels { display: flex; justify-content: space-between; font-size: 13px; color: #8C8C99; margin-top: 6px; }
.bpq-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bpq-error { color: #B3321A; font-weight: 500; margin-top: 16px !important; }
.bpq-textarea, .bpq-fields input {
  width: 100%; font: inherit; font-size: 17px; color: var(--bpq-ink);
  border: 1.5px solid var(--bpq-line); border-radius: 12px; padding: 14px 16px; background: #fff;
}
.bpq-textarea { resize: vertical; min-height: 140px; }
.bpq-textarea:focus, .bpq-fields input:focus { outline: none; border-color: var(--bpq-ink); box-shadow: 0 0 0 3px rgba(209, 183, 133, .35); }
.bpq .bpq-hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.bpq-card { position: relative; }

/* results */
.bpq-overall { display: flex; align-items: center; gap: 20px; background: var(--bpq-cream); border-radius: 14px; padding: 18px 22px; margin: 6px 0 28px; }
.bpq-overall-num { font-size: 44px; font-weight: 800; line-height: 1; color: var(--bpq-ink); white-space: nowrap; }
.bpq-overall-num small { font-size: 20px; font-weight: 700; color: var(--bpq-ink-soft); }
.bpq .bpq-overall p { color: var(--bpq-ink-soft); font-size: 16px; }
.bpq-bars { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.bpq-bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 7px; }
.bpq-bar-name { font-weight: 500; font-size: 17px; }
.bpq-bar-score { font-weight: 800; font-size: 18px; color: var(--bpq-ink); white-space: nowrap; }
.bpq-bar-track { height: 16px; background: var(--bpq-track); border-radius: 10px; overflow: hidden; }
.bpq-bar-track i { display: block; height: 100%; width: 0; background: var(--bpq-ink); border-radius: 10px; margin-right: 0; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.bpq:not(.bpq-anim) .bpq-bar-track i { width: 0 !important; }
.bpq-bar.is-weak .bpq-bar-track i { background: var(--bpq-accent); }
.bpq-bar.is-weak .bpq-bar-score, .bpq-bar.is-weak .bpq-bar-name { color: var(--bpq-accent); font-weight: 700; }
.bpq-tag { font-style: normal; font-size: 12.5px; font-weight: 700; background: var(--bpq-accent); color: #fff; border-radius: 999px; padding: 2px 10px; margin-right: 6px; vertical-align: 2px; white-space: nowrap; }

.bpq-diag { border-right: 6px solid var(--bpq-accent); }
.bpq-diag-score { color: var(--bpq-accent); font-size: .8em; }
.bpq .bpq-diag p { font-size: 17px; }
.bpq .bpq-diag p.bpq-diag-intro { color: var(--bpq-muted, #4A4B5C); margin-top: 0; }
.bpq .bpq-diag > p { margin: 0 0 14px; }
.bpq-action { background: var(--bpq-cream); border-radius: 14px; padding: 4px 20px 18px; margin-top: 18px; }

.bpq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.bpq-fields label span { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.bpq-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--bpq-ink-soft); margin-bottom: 20px; cursor: pointer; }
.bpq-check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--bpq-ink); }
.bpq-check a { color: var(--bpq-ink); }
.bpq-sent { background: var(--bpq-cream); }

.bpq-cta { background: var(--bpq-ink); border-color: var(--bpq-ink); color: #fff; text-align: center; }
.bpq-cta .bpq-h2 { color: #fff; }
.bpq .bpq-cta p { color: #D9D9E2; margin-bottom: 22px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* colour adjustments (brown / red / coffee) */
.bpq .bpq-intro .bpq-eyebrow { color: var(--bpq-brown); font-size: 19px; letter-spacing: normal; margin-bottom: 12px; }
.bpq .bpq-intro .bpq-lead { color: var(--bpq-accent); font-weight: 700; }
.bpq .bpq-intro .bpq-note { color: var(--bpq-ink); }
.bpq .bpq-gender-q { color: var(--bpq-brown); font-size: 16px; }
.bpq .bpq-gender-btns .bpq-btn { min-width: 0; }
.bpq .bpq-btn-soft { background: #fff; color: var(--bpq-brown) !important; font-size: 15px; font-weight: 500; padding: 8px 18px; border: 1px solid var(--bpq-brown); }
.bpq .bpq-btn-soft:hover { background: var(--bpq-grey); }
.bpq .bpq-step .bpq-h2, .bpq .bpq-step .bpq-lead { color: var(--bpq-brown); }
.bpq-bar:not(.is-weak) .bpq-bar-name, .bpq-bar:not(.is-weak) .bpq-bar-score { color: var(--bpq-brown); }
.bpq-bar:not(.is-weak) .bpq-bar-track i { background: var(--bpq-brown); }
.bpq .bpq-email .bpq-h2 { color: var(--bpq-brown); }
.bpq .bpq-email .bpq-btn-primary { background: var(--bpq-brown); }
.bpq .bpq-email .bpq-btn-primary:hover:not(:disabled) { background: #4A180A; }

/* brand buttons, matching the site's buttons (orange main action, navy secondary, mustard on navy) */
.bpq .bpq-btn { font-weight: 600; }
.bpq .bpq-btn-primary, .bpq .bpq-email .bpq-btn-primary { background: var(--bpq-accent); border-color: var(--bpq-accent); color: #fff !important; }
.bpq .bpq-btn-primary:hover:not(:disabled), .bpq .bpq-email .bpq-btn-primary:hover:not(:disabled) { background: #A3401F; border-color: #A3401F; }
.bpq .bpq-btn-ghost { color: var(--bpq-ink) !important; border-color: var(--bpq-ink); }
.bpq .bpq-btn-ghost:hover { background: var(--bpq-ink); color: #fff !important; }
.bpq .bpq-btn-soft { color: var(--bpq-accent) !important; border: 1.5px solid var(--bpq-accent); font-weight: 600; }
.bpq .bpq-btn-soft:hover:not(:disabled) { background: var(--bpq-accent); color: #fff !important; }
.bpq .bpq-btn-light { background: var(--bpq-gold); color: var(--bpq-ink) !important; }
.bpq .bpq-btn-light:hover { background: #C88A1F; }
.bpq-card { box-shadow: 0 10px 30px -18px rgba(12, 44, 71, .25); }

@media (max-width: 720px) {
  .bpq { padding: 12px 0 32px; font-size: 16px; }
  .bpq-card { padding: 24px 18px 22px; border-radius: 14px; }
  .bpq-intro { padding: 34px 18px; }
  .bpq-steps li span { display: none; }
  .bpq-steps li.now span { display: inline; }
  .bpq-steps { justify-content: center; }
  .bpq-steps li:not(.now) { display: none; }
  .bpq-q { padding: 16px 14px 12px; }
  .bpq-num { height: 50px; }
  .bpq-fields { grid-template-columns: 1fr; }
  .bpq-overall { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bpq-nav .bpq-btn-primary { flex: 1; }
  .bpq-btn { padding: 15px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bpq * { transition: none !important; }
}
