:root {
  --bp-navy: #0e1e38;
  --bp-gold: #d49b35;
  --bp-cream: #faf7ef;
  --bp-blue-soft: #eef7fb;
  --bp-border: #d8e1e8;
  --bp-error: #a12020;
}

.bpok-shell { max-width: 980px; margin: 40px auto; color: var(--bp-navy); font-family: inherit; }
.bpok-header { margin-bottom: 24px; text-align: center; }
.bpok-logo { display: block; width: 150px; max-width: 42vw; height: auto; margin: 0 auto 20px; }
.bpok-header h1 { margin: 0 0 8px; color: var(--bp-navy); font-size: clamp(2rem, 5vw, 3.2rem); }
.bpok-header > p { margin: 0 0 18px; }
.bpok-progress { height: 7px; background: #e5e9ee; border-radius: 9px; overflow: hidden; }
.bpok-progress span { display: block; width: 0; height: 100%; background: var(--bp-gold); transition: width .25s ease; }
.bpok-step-label { margin: 8px 0 0; font-size: .92rem; font-weight: 600; }
.bpok-step-label:empty { display: none; }

#bpok-form, .bpok-success { background: #fff; border: 1px solid var(--bp-border); border-radius: 12px; box-shadow: 0 10px 35px rgba(14,30,56,.08); overflow: hidden; }
.bpok-step { display: none; padding: clamp(24px, 5vw, 54px); }
.bpok-step.is-active { display: block; }
.bpok-step h2 { margin-top: 0; color: var(--bp-navy); }
.bpok-step h3 { margin-top: 32px; color: var(--bp-navy); }
.bpok-step fieldset { border: 0; margin: 28px 0; padding: 0; min-width: 0; }
.bpok-step legend { width: 100%; font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.bpok-step b { color: var(--bp-gold); }

.bpok-options { display: grid; gap: 9px; }
.bpok-options label, .bpok-consent { display: flex; align-items: flex-start; gap: 11px; padding: 11px 13px; border: 1px solid var(--bp-border); border-radius: 8px; background: #fff; cursor: pointer; }
.bpok-options label:hover, .bpok-options label:has(input:checked) { border-color: var(--bp-gold); background: var(--bp-cream); }
.bpok-options input, .bpok-consent input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--bp-gold); flex: 0 0 auto; }

.bpok-field { display: grid; gap: 7px; margin: 18px 0; font-weight: 600; }
.bpok-field input, .bpok-field textarea, .bpok-field select { box-sizing: border-box; width: 100%; padding: 12px 13px; border: 1px solid #aeb9c3; border-radius: 7px; background: #fff; color: var(--bp-navy); font: inherit; font-weight: 400; }
.bpok-field textarea { resize: vertical; }
.bpok-field input:focus, .bpok-field textarea:focus, .bpok-field select:focus { outline: 3px solid rgba(212,155,53,.22); border-color: var(--bp-gold); }
.bpok-other-inline { margin-left: 30px; max-width: 600px; }
.bpok-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

.bpok-matrix { padding: 18px !important; background: var(--bp-blue-soft); border-radius: 9px !important; }
.bpok-matrix p { margin: 4px 0 15px; }
.bpok-scale-help { display: grid; grid-template-columns: repeat(5, minmax(110px,1fr)); gap: 8px; margin: 18px 0 28px; }
.bpok-scale-help span { padding: 9px; border-radius: 6px; background: var(--bp-cream); font-size: .86rem; }
.bpok-scale { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bpok-scale > span { font-size: .88rem; }
.bpok-scale label { cursor: pointer; }
.bpok-scale input { position: absolute; opacity: 0; pointer-events: none; }
.bpok-scale label span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #aeb9c3; border-radius: 50%; background: #fff; font-weight: 700; }
.bpok-scale input:checked + span { background: var(--bp-gold); color: var(--bp-navy); border-color: var(--bp-gold); }

.bpok-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; }
.bpok-actions button { min-height: 46px; padding: 11px 24px; border: 2px solid var(--bp-navy); border-radius: 7px; background: var(--bp-navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.bpok-actions .bpok-back { background: #fff; color: var(--bp-navy); }
.bpok-actions button:hover { transform: translateY(-1px); box-shadow: 0 5px 13px rgba(14,30,56,.15); }
.bpok-actions button:disabled { opacity: .55; cursor: wait; transform: none; }
.bpok-actions button.bpok-request-complete:disabled { border-color: #b8bec5; background: #dfe3e7; color: #4b596a; cursor: default; opacity: 1; box-shadow: none; }

.bpok-consent { margin: 26px 0 12px; background: var(--bp-cream); }
.bpok-consent a { color: var(--bp-navy); text-decoration: underline; }
.bpok-privacy-note { font-size: .9rem; color: #4b596a; }
.bpok-insight { margin: 20px 0; padding: 16px 18px; border-left: 4px solid var(--bp-gold); border-radius: 5px; background: var(--bp-cream); }
.bpok-message { margin: 24px 40px 0; }
.bpok-message:empty { display: none; }
.bpok-message.is-error { padding: 12px 14px; border-left: 4px solid var(--bp-error); background: #fff1f1; color: var(--bp-error); }
.bpok-message.is-info { padding: 12px 14px; border-left: 4px solid var(--bp-gold); background: var(--bp-cream); }
.bpok-account-form .bpok-message { margin: 20px 0; }
.bpok-field .has-error, .has-error .bpok-options, .has-error .bpok-scale, .bpok-matrix.has-error { outline: 2px solid var(--bp-error); outline-offset: 4px; border-radius: 6px; }
.bpok-success { padding: clamp(28px, 5vw, 58px); text-align: center; }
.bpok-success h2 { color: var(--bp-navy); }
.bpok-access-choice { display: flex; justify-content: flex-end; margin: 0 0 18px; }
.bpok-access-choice button { padding: 14px 18px; border: 2px solid var(--bp-navy); border-radius: 8px; background: #fff; color: var(--bp-navy); font: inherit; font-weight: 700; cursor: pointer; }
.bpok-access-choice button.is-active { background: var(--bp-navy); color: #fff; }
.bpok-access-panel, .bpok-dashboard-card { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--bp-border); border-radius: 12px; background: #fff; box-shadow: 0 10px 35px rgba(14,30,56,.08); }
.bpok-access-return { margin: 24px 0 0; text-align: center; }
.bpok-recovery-links { display: flex; justify-content: center; gap: 12px 24px; flex-wrap: wrap; margin: 24px 0 0; }
.bpok-link-button { padding: 0; border: 0; background: transparent; color: var(--bp-navy); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.bpok-link-button:hover, .bpok-link-button:focus { color: var(--bp-gold); }
.bpok-account-form h2, .bpok-account-form h3, .bpok-dashboard-card h2 { color: var(--bp-navy); }
.bpok-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 24px; }
.bpok-dashboard-card dl { display: grid; grid-template-columns: minmax(120px, .7fr) 1.3fr; gap: 8px 16px; }
.bpok-dashboard-card dt { font-weight: 700; }
.bpok-dashboard-card dd { margin: 0; }
.bpok-button { display: inline-block; padding: 11px 20px; border: 2px solid var(--bp-navy); border-radius: 7px; background: var(--bp-navy); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.bpok-logbook { padding-left: 20px; }
.bpok-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
[hidden] { display: none !important; }

@media (max-width: 720px) {
  .bpok-shell { margin: 20px 12px; }
  .bpok-grid-2 { grid-template-columns: 1fr; }
  .bpok-grid-2 > span:empty { display: none; }
  .bpok-access-choice button { width: 100%; }
  .bpok-recovery-links { flex-direction: column; align-items: center; }
  .bpok-dashboard-grid { grid-template-columns: 1fr; }
  .bpok-scale-help { grid-template-columns: 1fr; }
  .bpok-scale { gap: 6px; }
  .bpok-scale label span { width: 38px; height: 38px; }
  .bpok-scale-10 > span { width: 100%; }
  .bpok-actions { flex-direction: column-reverse; }
  .bpok-actions button { width: 100%; }
  .bpok-message { margin: 0 24px 24px; }
}
