/* Assessment UI (flow screens + result). Scoped to .hpa-root; page styles arrive in styles.css (Task 7). */
.hpa-root {
  --hpa-ground: #08070c; --hpa-ink: #ffffff; --hpa-soft: #cfc9d8; --hpa-mute: #8f889c;
  --hpa-blue: #3f74d6; --hpa-blue2: #5a8ce6; --hpa-gold: #d1aa52; --hpa-copper: #c8834f; --hpa-light: #aac6ff;
  --hpa-panel: rgba(255, 255, 255, .035); --hpa-line: rgba(255, 255, 255, .1);
  color: var(--hpa-ink);
  font-family: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.45;
  max-width: 560px; width: 100%; box-sizing: border-box;
  scroll-margin-top: 24px;
}
.hpa-root *, .hpa-root *::before, .hpa-root *::after { box-sizing: border-box; }
:where(.hpa-root) :where(p, h2, h3, h4) { margin: 0; }
.hpa-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- the "time slot" ---- */
.hpa-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.hpa-time { font-size: 30px; color: var(--hpa-blue2); letter-spacing: -.2px; }
.hpa-count { font-size: 22px; color: var(--hpa-soft); font-variant-numeric: tabular-nums; }
.hpa-rule { height: 2px; background: var(--hpa-blue2); margin: 8px 0 14px; }

.hpa-card {
  /* The brand blue, held a touch deeper so white body text clears 4.5:1 at the lightest stop (4.73:1). */
  background: linear-gradient(160deg, #3c70d2 0%, #3869cb 55%, #3263bd 100%);
  border-radius: 12px; padding: 24px 22px 20px; color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  animation: hpa-in .22s ease-out;
}
.hpa-card--wait { min-height: 180px; display: flex; align-items: center; justify-content: center; }
@keyframes hpa-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hpa-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hpa-q { display: block; padding: 0; font-weight: 700; font-size: 22px; line-height: 1.22; color: #fff; margin-bottom: 6px; }
.hpa-hint { color: #fff; font-size: 14.5px; margin-bottom: 4px; }
.hpa-q + .hpa-input, .hpa-q + .hpa-options, .hpa-hint + .hpa-options, .hpa-hint + .hpa-fields { margin-top: 14px; }
.hpa-q + .hpa-options { margin-top: 16px; }

/* options: radio / checkbox rows with big tap targets */
.hpa-options { display: grid; gap: 10px; }
@media (min-width: 520px) { .hpa-options--grid { grid-template-columns: 1fr 1fr; } }
.hpa-opt {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px;
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  background: rgba(8, 7, 12, .22); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 16px; font-weight: 600; color: #fff;
  transition: background-color .15s, border-color .15s, color .15s;
}
.hpa-opt:hover { background: rgba(8, 7, 12, .34); border-color: rgba(255, 255, 255, .5); }
.hpa-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.hpa-mark {
  flex: none; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 50%; display: grid; place-items: center;
}
.hpa-opt input[type="checkbox"] + .hpa-mark { border-radius: 5px; }
.hpa-opt:has(input:checked) { background: #fff; border-color: #fff; color: #10204a; }
.hpa-opt input:checked + .hpa-mark { border-color: var(--hpa-blue); background: var(--hpa-blue); }
.hpa-opt input[type="radio"]:checked + .hpa-mark { box-shadow: inset 0 0 0 3px #fff; }
.hpa-opt input[type="checkbox"]:checked + .hpa-mark::after {
  content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg);
}
.hpa-opt:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(8, 7, 12, .55); }
.hpa-opt-text { min-width: 0; overflow-wrap: anywhere; }

/* inputs */
.hpa-input {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  font: inherit; font-size: 17px; color: #fff;
  background: rgba(8, 7, 12, .3); border: 1px solid rgba(255, 255, 255, .35);
}
.hpa-input::placeholder { color: rgba(255, 255, 255, .7); }
.hpa-input:focus { outline: 3px solid #fff; outline-offset: 2px; border-color: #fff; }
.hpa-input[aria-invalid="true"] { border-color: #ffd28a; }
.hpa-select { appearance: auto; }
.hpa-select option { color: #10101a; background: #fff; }
.hpa-fields { display: grid; gap: 14px; }
@media (min-width: 520px) { .hpa-fields { grid-template-columns: 1fr 1fr; } .hpa-field--revenue { grid-column: 1 / -1; } }
.hpa-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #fff; }
.hpa-field { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }

.hpa-error, .hpa-ferr { font-size: 14px; font-weight: 600; color: #ffe2a8; }
.hpa-error:empty, .hpa-ferr:empty { display: none; }
/* On the blue card, errors sit in a dark chip: #ffd98a on #08070c is 14.9:1. */
.hpa-card .hpa-error, .hpa-card .hpa-ferr { align-self: flex-start; width: fit-content; max-width: 100%; background: var(--hpa-ground); color: #ffd98a; border-radius: 6px; padding: 6px 10px; }
.hpa-error { margin-top: 12px; }
.hpa-ferr { margin-top: 6px; }

/* buttons */
.hpa-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.hpa-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px;
  border-radius: 10px; border: 0; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  cursor: pointer; text-decoration: none; text-align: center;
}
.hpa-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hpa-btn:disabled { opacity: .65; cursor: progress; }
.hpa-btn--next { background: #fff; color: #10204a; }
.hpa-arrow { margin-left: 8px; }
.hpa-btn--next:hover { background: #eef3ff; }
.hpa-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.hpa-btn--ghost:hover { border-color: #fff; }
.hpa-btn--small { min-height: 44px; padding: 10px 16px; font-size: 15px; }
.hpa-btn--cta { background: var(--hpa-blue); color: #fff; width: 100%; }
.hpa-btn--cta:hover { background: var(--hpa-blue2); }
.hpa-btn--light { background: #fff; color: #08070c; }
.hpa-btn--light:hover { background: #f1eef6; }
.hpa-link {
  background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-size: 14px;
  color: var(--hpa-mute); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.hpa-link:hover { color: var(--hpa-soft); }
.hpa-link:focus-visible { outline: 2px solid var(--hpa-blue2); outline-offset: 2px; border-radius: 4px; }
.hpa-foot { margin-top: 6px; }
.hpa-confirm { margin-top: 10px; padding: 14px 16px; border-radius: 10px; background: var(--hpa-panel); border: 1px solid var(--hpa-line); }
.hpa-confirm-text { font-size: 15px; color: #fff; margin-bottom: 12px; }
.hpa-confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* loading */
.hpa-loading { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; outline: none; }
.hpa-pulse { width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: hpa-pulse 1s ease-in-out infinite alternate; }
@keyframes hpa-pulse { from { opacity: .35; transform: scale(.8); } to { opacity: 1; transform: scale(1.1); } }

/* ---- result ---- */
.hpa-result { animation: hpa-in .25s ease-out; }
.hpa-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hpa-blue2); }
.hpa-stage { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.5px; color: #fff; margin: 8px 0 14px; outline: none; }
.hpa-line1 { font-size: 18px; color: #fff; }
.hpa-line2 { font-size: 16px; color: var(--hpa-soft); margin-top: 6px; }
.hpa-h { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hpa-mute); margin: 30px 0 12px; }

.hpa-opps { display: grid; gap: 12px; }
@media (min-width: 560px) { .hpa-opps { grid-template-columns: 1fr 1fr; } }
.hpa-opp { background: var(--hpa-panel); border: 1px solid var(--hpa-line); border-radius: 12px; padding: 16px 16px 18px; }
.hpa-pillar { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hpa-opp--ai .hpa-pillar { color: var(--hpa-blue2); }
.hpa-opp--hotl .hpa-pillar { color: var(--hpa-light); }
.hpa-opp--data .hpa-pillar { color: var(--hpa-gold); }
.hpa-opp--apps .hpa-pillar { color: var(--hpa-copper); }
.hpa-opp-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 19px; line-height: 1.2; color: #fff; margin: 8px 0 8px; }
.hpa-opp-body { font-size: 14.5px; color: var(--hpa-soft); }

.hpa-worth-line { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 22px; line-height: 1.25; color: var(--hpa-gold); }
.hpa-how { font-size: 13.5px; color: var(--hpa-mute); margin-top: 10px; }
.hpa-worth-empty { font-size: 17px; color: var(--hpa-soft); margin-bottom: 12px; }
.hpa-worth .hpa-btn--ghost { border-color: rgba(255, 255, 255, .3); }

.hpa-cta-row { margin-top: 28px; }

.hpa-report, .hpa-sent, .hpa-note {
  margin-top: 22px; padding: 20px 18px; border-radius: 12px; background: var(--hpa-panel); border: 1px solid var(--hpa-line);
}
.hpa-report .hpa-h { margin-top: 0; color: #fff; letter-spacing: .1em; }
.hpa-sub { font-size: 14.5px; color: var(--hpa-soft); margin: -4px 0 14px; }
.hpa-report .hpa-field { margin-bottom: 12px; }
.hpa-report .hpa-field label { color: var(--hpa-soft); }
.hpa-report .hpa-input { background: #121019; border-color: #34303f; }
.hpa-report .hpa-input:focus { outline: 2px solid var(--hpa-blue2); outline-offset: 1px; border-color: var(--hpa-blue2); }
.hpa-report .hpa-ferr, .hpa-report .hpa-error { color: #f3c37b; }
.hpa-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; color: var(--hpa-soft); margin: 4px 0 6px; position: relative; }
.hpa-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.hpa-check .hpa-mark { border-radius: 5px; border-color: #6c6678; }
.hpa-check input:checked + .hpa-mark { background: var(--hpa-blue2); border-color: var(--hpa-blue2); }
.hpa-check input:checked + .hpa-mark::after {
  content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg);
}
.hpa-check input:focus-visible + .hpa-mark { outline: 2px solid var(--hpa-blue2); outline-offset: 2px; }
/* Honeypot field: off-screen, never seen by people. */
.hpa-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.hpa-fine { font-size: 13px; color: var(--hpa-mute); margin-bottom: 14px; }
.hpa-fine a { color: var(--hpa-soft); text-underline-offset: 2px; }
.hpa-report .hpa-btn--light { width: 100%; margin-top: 4px; }
.hpa-report .hpa-error { margin: 0 0 12px; }

.hpa-sent { outline: none; border-color: rgba(209, 170, 82, .45); }
.hpa-sent-title { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 22px; color: var(--hpa-gold); }
.hpa-sent-note { font-size: 15px; color: var(--hpa-soft); margin-top: 6px; }
.hpa-note { font-size: 15px; color: var(--hpa-soft); }

@media (max-width: 420px) {
  .hpa-card { padding: 20px 16px 16px; }
  .hpa-q { font-size: 20px; }
  .hpa-stage { font-size: 38px; }
  .hpa-nav .hpa-btn { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hpa-card, .hpa-result { animation: none; }
  .hpa-pulse { animation: none; }
  .hpa-opt { transition: none; }
}
