.bpha-shell {
  --bpha-deep: #263794;
  --bpha-coral: #05a7d3;
  --bpha-soft: #eef9fd;
  --bpha-line: #dce5f3;
  --bpha-muted: #6e6f82;
  max-width: 760px;
  margin: 36px auto;
  color: #303252;
  font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif;
}
.bpha-shell * { box-sizing: border-box; }
.bpha-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 0 6px; }
.bpha-toolbar strong, .bpha-toolbar span { display: block; }
.bpha-brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bpha-brand-lockup img { width: 190px; height: auto; display: block; }
.bpha-toolbar strong { color: var(--bpha-deep); font-size: .95rem; }
.bpha-toolbar span { margin-top: 2px; color: var(--bpha-muted); font-size: .7rem; }
.bpha-language { display: flex; padding: 3px; border: 1px solid var(--bpha-line); border-radius: 999px; background: white; }
.bpha-language button { min-width: 42px; padding: 6px 9px; border: 0; border-radius: 999px; color: var(--bpha-muted); background: transparent; font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; }
.bpha-language button.is-active { color: white; background: var(--bpha-deep); }
.bpha-contact-row { display: flex; justify-content: flex-end; gap: 14px; margin: -4px 6px 14px; }
.bpha-contact-row a { color: var(--bpha-deep); font-size: .76rem; font-weight: 850; text-decoration: none; }
.bpha-panel { padding: clamp(24px, 5vw, 46px); border: 1px solid rgba(38,55,148,.12); border-top: 6px solid var(--bpha-coral); border-radius: 26px; background: #fff; box-shadow: 0 20px 60px rgba(38,55,148,.12); }
.bpha-panel[hidden] { display: none !important; }
.bpha-eyebrow { margin: 0 0 10px; color: var(--bpha-coral); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.bpha-panel h2 { margin: 0; color: var(--bpha-deep); font-size: clamp(1.55rem, 4vw, 2.15rem); line-height: 1.35; }
.bpha-lede, .bpha-help { margin: 10px 0 24px; color: var(--bpha-muted); line-height: 1.7; }
.bpha-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.bpha-field-wide { grid-column: 1 / -1; }
.bpha-fields label > span { display: block; margin-bottom: 6px; color: var(--bpha-deep); font-size: .82rem; font-weight: 800; }
.bpha-fields input, .bpha-bmi input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #d6d6df; border-radius: 11px; color: #303252; background: white; font: inherit; }
.bpha-fields input:focus, .bpha-bmi input:focus { border-color: var(--bpha-coral); outline: 3px solid rgba(215,101,114,.14); }
.bpha-privacy-box { margin: 18px 0; padding: 15px; border-radius: 13px; color: var(--bpha-muted); background: #fff7f7; font-size: .79rem; line-height: 1.65; }
.bpha-privacy-box p { margin: 0 0 8px; }
.bpha-privacy-box a { color: var(--bpha-coral); font-weight: 800; }
.bpha-consent { display: flex; align-items: flex-start; gap: 9px; color: #303252; }
.bpha-consent input { margin-top: 5px; }
.bpha-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.bpha-error { margin: 0 0 13px; color: #b93848; font-size: .82rem; font-weight: 800; }
.bpha-primary, .bpha-secondary { min-height: 46px; padding: 11px 18px; border-radius: 11px; font: inherit; font-weight: 850; cursor: pointer; }
.bpha-primary { border: 0; color: #fff; background: var(--bpha-deep); box-shadow: 0 9px 20px rgba(52,55,104,.16); }
.bpha-primary:hover { background: #18266c; }
.bpha-primary:disabled { opacity: .4; cursor: not-allowed; }
.bpha-secondary { border: 1px solid var(--bpha-line); color: var(--bpha-deep); background: white; }
#bpha-start { width: 100%; }
.bpha-progress-copy { display: flex; justify-content: space-between; gap: 15px; color: var(--bpha-muted); font-size: .78rem; font-weight: 800; }
.bpha-progress { height: 6px; margin: 10px 0 34px; overflow: hidden; border-radius: 999px; background: #eee9eb; }
.bpha-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--bpha-deep), var(--bpha-coral)); transition: width .25s; }
.bpha-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 24px; }
.bpha-answer { min-height: 72px; padding: 13px 15px; border: 1.5px solid var(--bpha-line); border-radius: 14px; color: #303252; background: white; text-align: left; font: inherit; cursor: pointer; }
.bpha-answer:hover, .bpha-answer.is-selected { border-color: var(--bpha-coral); background: var(--bpha-soft); }
.bpha-answer b, .bpha-answer small { display: block; }
.bpha-answer small { margin-top: 3px; color: var(--bpha-muted); font-size: .7rem; }
.bpha-bmi { grid-column: 1 / -1; margin-top: 4px; padding: 14px; border-radius: 13px; background: #f7f7fb; }
.bpha-bmi > strong { display: block; margin-bottom: 9px; color: var(--bpha-deep); font-size: .82rem; }
.bpha-bmi > div { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.bpha-bmi p { margin: 9px 0 0; color: var(--bpha-coral); font-size: .78rem; font-weight: 800; }
.bpha-navigation { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--bpha-line); }
.bpha-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.bpha-results > div { padding: 18px; border: 1px solid var(--bpha-line); border-radius: 16px; background: #fffafa; }
.bpha-results span, .bpha-results strong, .bpha-results small { display: block; }
.bpha-results span { color: var(--bpha-muted); font-size: .75rem; font-weight: 800; }
.bpha-results strong { margin: 10px 0 5px; color: var(--bpha-deep); font-size: 1.1rem; }
.bpha-results strong b { font-size: 2.5rem; }
.bpha-results small { color: var(--bpha-muted); line-height: 1.45; }
.bpha-reference { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 13px 15px; border-radius: 12px; background: var(--bpha-deep); color: white; }
.bpha-reference span { font-size: .8rem; }
.bpha-reference strong { letter-spacing: .05em; }
.bpha-result-note { color: var(--bpha-muted); font-size: .82rem; line-height: 1.65; }
.bpha-result-contact { margin: 14px 0; padding: 13px 15px; border-radius: 12px; color: var(--bpha-deep); background: var(--bpha-soft); }
.bpha-result-contact strong, .bpha-result-contact span { display: block; }
.bpha-result-contact span { margin-top: 3px; color: var(--bpha-muted); font-size: .78rem; }
.bpha-closed { padding: 28px; border: 1px solid var(--bpha-line); border-radius: 18px; background: white; text-align: center; }
.bpha-closed h2 { margin: 0 0 8px; color: var(--bpha-deep); }
.bpha-closed p { margin: 0; color: var(--bpha-muted); }

@media (max-width: 600px) {
  .bpha-shell { margin: 20px auto; }
  .bpha-toolbar { align-items: flex-start; }
  .bpha-brand-lockup { align-items: flex-start; flex-direction: column; }
  .bpha-brand-lockup img { width: min(220px, 68vw); }
  .bpha-contact-row { justify-content: flex-start; flex-wrap: wrap; }
  .bpha-fields, .bpha-answers, .bpha-results { grid-template-columns: 1fr; }
  .bpha-field-wide { grid-column: auto; }
  .bpha-bmi { grid-column: auto; }
  .bpha-bmi > div { grid-template-columns: 1fr; }
  .bpha-reference { align-items: flex-start; flex-direction: column; }
}

@media print {
  body * { visibility: hidden !important; }
  #bpha-result-view, #bpha-result-view * { visibility: visible !important; }
  #bpha-result-view { position: absolute; inset: 0; width: 100%; border: 0; box-shadow: none; }
  #bpha-print { display: none !important; }
}

