/* Big Five personality test: the test screen (take.php), and the parts shared by the result and the report. */
.bf-wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* Test screen */
.bf-bar { border-bottom: 1px solid var(--line); background: var(--bg); }
.bf-bar .bf-wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.bf-exit { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 10px 0; }
.bf-exit:hover { color: var(--text); }
.bf-take { padding: 32px 0 56px; min-height: calc(100vh - 65px); box-sizing: border-box; }
.bf-prog { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.bf-prog b { color: var(--text); }
.bf-track { height: 6px; background: var(--line); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.bf-track i { display: block; height: 100%; width: 1%; background: var(--primary); border-radius: 99px; transition: width .3s var(--ease); }
.bf-card { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 40px 36px 32px; box-shadow: var(--shadow-sm); }
.bf-ask { margin: 0; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #A4502C; }
.bf-stem { margin: 14px 0 0; font-size: 30px; line-height: 1.25; text-align: center; min-height: 76px; display: flex; align-items: center; justify-content: center; outline: none; }
.bf-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.bf-opt { appearance: none; width: 100%; display: flex; align-items: center; gap: 14px; padding: 0 18px; min-height: 56px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); font: 500 16px var(--sans); color: var(--text); cursor: pointer; text-align: left; transition: background .12s, border-color .12s; }
.bf-opt:hover { border-color: var(--primary); background: #F3F8F5; }
.bf-opt:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.bf-n { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--bg-alt); color: var(--muted); }
.bf-l { flex: 1; }
.bf-ring { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #B9AE9C; box-sizing: border-box; }
.bf-opt.on { border: 2px solid var(--primary); background: var(--ok-soft); padding: 0 17px; }
.bf-opt.on .bf-n { background: var(--primary); color: var(--on-primary); }
.bf-opt.on .bf-ring { border: 7px solid var(--primary); background: var(--surface); }
.bf-done { text-align: center; }
.bf-done h1 { font-size: 30px; }
.bf-done p { margin-top: 10px; color: var(--muted); }
.bf-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.bf-back { font: 600 16px var(--sans); background: none; border: 0; color: var(--primary); cursor: pointer; padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.bf-back:disabled { color: var(--faint); cursor: default; }
.bf-tip { margin: 24px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 600px) {
  .bf-wrap { padding: 0 16px; }
  .bf-take { padding-top: 20px; }
  .bf-card { padding: 28px 16px 20px; border-radius: 18px; margin-top: 20px; }
  .bf-stem { font-size: 25px; min-height: 94px; }
  .bf-opt { min-height: 52px; font-size: 16px; gap: 12px; padding: 0 14px; }
  .bf-opt.on { padding: 0 13px; }
  .bf-foot { flex-direction: column; align-items: flex-start; gap: 0; }
  .bf-prog { font-size: 14px; }
}

/* Trait bars (result, report, landing preview) */
.bf-bars { display: grid; gap: 20px; }
.bf-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 128px; gap: 16px; align-items: center; }
.bf-row b.nm { font: 600 19px var(--display); color: var(--text); }
.bf-meter { position: relative; height: 14px; background: var(--track); border-radius: 99px; }
.bf-meter i { display: block; height: 100%; border-radius: 99px; background: var(--c); }
.bf-meter::after { content: ""; position: absolute; left: 50%; top: -4px; width: 2px; height: 22px; background: #B9AE9C; }
.bf-pct { text-align: right; font-size: 14px; color: var(--muted); white-space: nowrap; }
.bf-pct b { color: var(--text); }
@media (max-width: 720px) {
  .bf-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .bf-row .bf-meter { grid-column: 1 / -1; grid-row: 2; }
}
