/**
 * HR PPL , HR Health Check (V1)
 * Enqueued from the Cara child theme. All selectors scoped to .hrppl-hc
 * so nothing leaks into Divi or the Cara theme.
 */

/* ============================================================
   HR PPL , HR Health Check
   All selectors scoped to .hrppl-hc so nothing leaks into Divi.
   ============================================================ */

.hrppl-hc {
  /* Brand tokens. Swap here if the palette is revised. */
  --hc-navy:        #1B2A4A;
  --hc-navy-soft:   #33456B;
  --hc-teal:        #2A9D8F;
  --hc-teal-pale:   #E1F5EE;
  --hc-gold:        #C9A227;
  --hc-ink:         #1B2A4A;
  --hc-muted:       #5D6B85;
  --hc-line:        #DDE3ED;
  --hc-paper:       #FFFFFF;

  /* Signal colours. Green is the brand teal on purpose. */
  --hc-red:         #C0392B;
  --hc-amber:       #E09B1F;
  --hc-green:       #2A9D8F;

  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--hc-ink);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hrppl-hc *,
.hrppl-hc *::before,
.hrppl-hc *::after { box-sizing: border-box; }

/* ---------- Intro ---------- */
.hrppl-hc__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hc-gold);
  margin: 0 0 10px;
}
.hrppl-hc__title {
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 600;
  line-height: 1.18;
  color: var(--hc-navy);
  margin: 0 0 12px;
}
.hrppl-hc__lede {
  font-size: 16px;
  color: var(--hc-muted);
  margin: 0 0 32px;
  max-width: 60ch;
}

/* ---------- Progress ---------- */
.hrppl-hc__progress { margin-bottom: 28px; }
.hrppl-hc__progress-track {
  height: 5px;
  background: var(--hc-line);
  border-radius: 99px;
  overflow: hidden;
}
.hrppl-hc__progress-fill {
  height: 100%;
  background: var(--hc-teal);
  border-radius: 99px;
  transition: width .32s cubic-bezier(.4,0,.2,1);
}
.hrppl-hc__progress-label {
  font-size: 13px;
  color: var(--hc-muted);
  margin: 8px 0 0;
  font-variant-numeric: tabular-nums;
}

/* ---------- Question cards ---------- */
.hrppl-hc__q {
  background: var(--hc-paper);
  border: 1px solid var(--hc-line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hrppl-hc__q.is-answered {
  border-color: var(--hc-teal);
  box-shadow: inset 3px 0 0 var(--hc-teal);
}
.hrppl-hc__q-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}
.hrppl-hc__q-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--hc-gold);
  font-variant-numeric: tabular-nums;
  flex: none;
  min-width: 22px;
}
.hrppl-hc__q-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--hc-navy);
  margin: 0;
}
.hrppl-hc__q-note {
  font-size: 13px;
  font-weight: 400;
  color: var(--hc-muted);
  display: block;
  margin-top: 3px;
}

/* ---------- Option pills ---------- */
.hrppl-hc__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.hrppl-hc__opt { position: relative; display: block; margin: 0; }
.hrppl-hc__opt input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.hrppl-hc__opt span {
  display: block;
  padding: 9px 16px;
  border: 1px solid var(--hc-line);
  border-radius: 99px;
  font-size: 14.5px;
  color: var(--hc-muted);
  background: var(--hc-paper);
  transition: all .16s ease;
  cursor: pointer;
}
.hrppl-hc__opt:hover span { border-color: var(--hc-teal); color: var(--hc-navy); }
.hrppl-hc__opt input:checked + span {
  background: var(--hc-teal-pale);
  border-color: var(--hc-teal);
  color: var(--hc-navy);
  font-weight: 500;
}
.hrppl-hc__opt input:focus-visible + span {
  outline: 2px solid var(--hc-navy);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.hrppl-hc__btn {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 30px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.hrppl-hc__btn--primary { background: var(--hc-navy); color: #fff; }
.hrppl-hc__btn--primary:hover { background: var(--hc-navy-soft); color: #fff; transform: translateY(-1px); }
.hrppl-hc__btn:disabled { background: var(--hc-line); color: var(--hc-muted); cursor: not-allowed; transform: none; }
.hrppl-hc__btn:focus-visible { outline: 2px solid var(--hc-gold); outline-offset: 3px; }

.hrppl-hc__submit-row { margin-top: 26px; text-align: center; }
.hrppl-hc__hint { font-size: 13px; color: var(--hc-muted); margin: 12px 0 0; }
.hrppl-hc__hint.is-ready { visibility: hidden; }

/* ---------- Result ---------- */
.hrppl-hc__result:focus { outline: none; }
.hrppl-hc__result-head {
  display: flex;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 16px;
  background: var(--hc-navy);
  color: #fff;
}
.hrppl-hc__light { width: 78px; height: auto; flex: none; }
.hrppl-hc__housing { fill: #0F1B33; stroke: rgba(255,255,255,.12); stroke-width: 2; }
.hrppl-hc__lamp {
  fill: #fff;
  fill-opacity: .07;
  stroke: rgba(255,255,255,.14);
  stroke-width: 2;
  transition: fill-opacity .3s ease, fill .3s ease;
}
.hrppl-hc__lamp.is-lit { fill-opacity: 1; }
.hrppl-hc__lamp[data-lamp="red"].is-lit   { fill: var(--hc-red);   filter: drop-shadow(0 0 14px rgba(192,57,43,.85)); }
.hrppl-hc__lamp[data-lamp="amber"].is-lit { fill: var(--hc-amber); filter: drop-shadow(0 0 14px rgba(224,155,31,.85)); }
.hrppl-hc__lamp[data-lamp="green"].is-lit { fill: var(--hc-green); filter: drop-shadow(0 0 14px rgba(42,157,143,.85)); }

.hrppl-hc__verdict-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.hrppl-hc__result[data-colour="red"]   .hrppl-hc__verdict-label { color: #F0857A; }
.hrppl-hc__result[data-colour="amber"] .hrppl-hc__verdict-label { color: #F5C46B; }
.hrppl-hc__result[data-colour="green"] .hrppl-hc__verdict-label { color: #7FD4C7; }

.hrppl-hc__verdict-body {
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 22px;
  color: rgba(255,255,255,.92);
}
.hrppl-hc__result .hrppl-hc__btn--primary { background: var(--hc-gold); color: var(--hc-navy); font-weight: 600; }
.hrppl-hc__result .hrppl-hc__btn--primary:hover { background: #DDB43A; color: var(--hc-navy); }

/* ---------- Findings ---------- */
.hrppl-hc__findings { margin: 26px 0 0; }
.hrppl-hc__findings-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hc-muted);
  margin: 0 0 12px;
}
.hrppl-hc__finding {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--hc-line);
  font-size: 15px;
}
.hrppl-hc__finding:last-child { border-bottom: 0; }
.hrppl-hc__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
  margin-top: 8px;
}
.hrppl-hc__dot--red   { background: var(--hc-red); }
.hrppl-hc__dot--amber { background: var(--hc-amber); }

/* ---------- Capture ---------- */
.hrppl-hc__capture {
  margin-top: 28px;
  padding: 28px;
  border-radius: 16px;
  background: var(--hc-teal-pale);
}
.hrppl-hc__capture-title { font-size: 20px; font-weight: 600; color: var(--hc-navy); margin: 0 0 6px; }
.hrppl-hc__capture-lede { font-size: 15px; color: var(--hc-muted); margin: 0 0 20px; }
.hrppl-hc__fields { display: flex; gap: 14px; flex-wrap: wrap; }
.hrppl-hc__field { flex: 1 1 220px; display: block; }
.hrppl-hc__field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--hc-navy);
  margin-bottom: 6px;
}
.hrppl-hc__field input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--hc-ink);
  background: #fff;
  border: 1px solid var(--hc-line);
  border-radius: 8px;
}
.hrppl-hc__field input:focus { outline: 2px solid var(--hc-teal); outline-offset: 0; border-color: var(--hc-teal); }
.hrppl-hc__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--hc-muted);
  margin: 18px 0 20px;
  cursor: pointer;
}
.hrppl-hc__consent input { margin-top: 4px; flex: none; accent-color: var(--hc-teal); }
.hrppl-hc__consent a { color: var(--hc-navy); text-decoration: underline; }
.hrppl-hc__status { font-size: 14px; margin: 14px 0 0; min-height: 20px; }
.hrppl-hc__status.is-error { color: var(--hc-red); }
.hrppl-hc__status.is-ok { color: var(--hc-teal); font-weight: 500; }

.hrppl-hc__disclaimer {
  font-size: 12.5px;
  color: var(--hc-muted);
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--hc-line);
}
.hrppl-hc__restart {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--hc-muted);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Reveal ---------- */
.hrppl-hc__result[hidden] { display: none; }
.hrppl-hc__result { animation: hrpplFade .45s ease both; }
@keyframes hrpplFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 620px) {
  .hrppl-hc__result-head { flex-direction: column; gap: 22px; text-align: center; padding: 28px 22px; }
  .hrppl-hc__light { width: 62px; }
  .hrppl-hc__q { padding: 18px 18px; }
  .hrppl-hc__capture { padding: 22px 18px; }
  .hrppl-hc__btn { width: 100%; text-align: center; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  .hrppl-hc *,
  .hrppl-hc *::before { animation: none !important; transition: none !important; }
}
