.hec-placement-test{
  --hec-primary:#1A1D56;
  --hec-accent:#E30613;
  --hec-soft:#F5F7FB;
  --hec-text:#111827;
  --hec-muted:#6B7280;
  font-family:Arial,sans-serif;
  background:linear-gradient(180deg,#F5F7FB 0%,#FFFFFF 100%);
  padding:70px 16px;
  color:var(--hec-text);
}
.hec-placement-test *{box-sizing:border-box}
.hec-pt-wrap{max-width:980px;margin:0 auto}
.hec-pt-hero{
  background:linear-gradient(135deg,var(--hec-primary) 0%,#242975 100%);
  color:#fff;
  border-radius:30px;
  padding:44px 34px;
  margin-bottom:22px;
  box-shadow:0 22px 50px rgba(26,29,86,.18);
  position:relative;
  overflow:hidden;
}
.hec-pt-hero:before{content:"";position:absolute;right:-90px;top:-90px;width:250px;height:250px;border-radius:50%;background:rgba(227,6,19,.22)}
.hec-pt-badge{display:inline-flex;padding:9px 16px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.15);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:16px}
.hec-pt-hero h2{margin:0 0 12px;font-family:"Gotham Black",Arial,sans-serif;font-size:clamp(34px,5vw,56px);line-height:1.05;color:#fff!important}
.hec-pt-hero p{margin:0;max-width:700px;color:rgba(255,255,255,.84);font-size:17px;line-height:1.8}
.hec-pt-card{background:#fff;border:1px solid rgba(26,29,86,.08);border-radius:26px;padding:28px;box-shadow:0 14px 40px rgba(26,29,86,.08);margin-bottom:20px}
.hec-pt-card-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:24px}
.hec-pt-card-head h3{margin:0 0 7px;color:var(--hec-primary)!important;font-family:"Gotham Black",Arial,sans-serif;font-size:24px;line-height:1.25}
.hec-pt-card-head p{margin:0;color:var(--hec-muted);font-size:14px;line-height:1.6}
.hec-pt-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.hec-pt-fields label{display:flex;flex-direction:column;gap:8px;font-weight:800;color:var(--hec-primary);font-size:14px}
.hec-pt-fields input,.hec-pt-fields select{width:100%;min-height:54px;border:1px solid rgba(26,29,86,.14);border-radius:16px;padding:14px 16px;font-size:15px;color:var(--hec-text);background:#fff;outline:none;transition:.2s ease}
.hec-pt-fields input:focus,.hec-pt-fields select:focus{border-color:var(--hec-accent);box-shadow:0 0 0 4px rgba(227,6,19,.08)}

.hec-pt-preferences-card{background:linear-gradient(180deg,#fff,#FBFCFF)}
.hec-pt-preference-fields select{appearance:auto;border:1px solid rgba(26,29,86,.14);border-radius:16px;padding:14px 16px;font-size:15px;color:var(--hec-text);background:#fff;outline:none;transition:.2s ease}

.hec-pt-detected{margin-top:18px;padding:14px 16px;border-radius:16px;background:#F5F7FB;border:1px solid rgba(26,29,86,.08);color:#374151;line-height:1.6}
.hec-pt-detected strong{color:var(--hec-primary)}
.hec-pt-detected span.is-ready{color:var(--hec-accent);font-weight:900}
.hec-pt-alert{background:#fff4f4;border:1px solid rgba(227,6,19,.18);color:#991b1b;border-radius:18px;padding:16px 18px;margin-bottom:20px;font-weight:700;line-height:1.6}
.hec-pt-sticky-head{position:sticky;top:0;z-index:3;background:#fff;padding-bottom:16px;border-bottom:1px solid rgba(26,29,86,.08)}
.hec-pt-counter{flex:none;background:var(--hec-primary);color:#fff;border-radius:999px;padding:10px 15px;font-weight:900;font-size:14px}
.hec-pt-progress{height:8px;background:#EEF2F7;border-radius:999px;overflow:hidden;margin:-5px 0 26px}
.hec-pt-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--hec-accent),#ff4b57);border-radius:999px;transition:.25s ease}
.hec-pt-question{border:1px solid rgba(26,29,86,.08);background:#fff;border-radius:22px;padding:22px;margin-bottom:16px}
.hec-pt-question-title{font-size:18px;font-weight:900;line-height:1.5;color:#111827;margin-bottom:18px}
.hec-pt-question-title span{color:var(--hec-accent)}
.hec-pt-options{display:grid;gap:10px}
.hec-pt-option{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #E5E7EB;border-radius:15px;background:#FAFBFC;cursor:pointer;transition:.2s ease;color:#111827;font-size:15px;line-height:1.5}
.hec-pt-option:hover{border-color:rgba(227,6,19,.35);background:#fff}
.hec-pt-option input{width:18px;height:18px;accent-color:var(--hec-primary);flex:none}
.hec-pt-option:has(input:checked){border-color:var(--hec-primary);background:rgba(26,29,86,.05);box-shadow:0 8px 20px rgba(26,29,86,.06)}
.hec-pt-submit-row{text-align:center;padding:20px 0 5px}
.hec-pt-submit{border:none;min-height:58px;padding:0 36px;border-radius:999px;background:var(--hec-accent);color:#fff;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 16px 34px rgba(227,6,19,.25);transition:.25s ease}
.hec-pt-submit:hover{transform:translateY(-2px);background:#b8040f}
.hec-pt-submit:disabled{opacity:.65;cursor:wait;transform:none}
.hec-pt-note{margin:12px 0 0;color:var(--hec-muted);font-size:13px}
.hec-pt-result{background:#fff;border-radius:28px;border:1px solid rgba(26,29,86,.08);box-shadow:0 18px 45px rgba(26,29,86,.10);padding:34px;text-align:center;margin-top:24px}
.hec-pt-result h3{margin:0 0 12px;color:var(--hec-primary)!important;font-size:30px;font-family:"Gotham Black",Arial,sans-serif}
.hec-pt-result p{margin:0 0 14px;color:#374151;line-height:1.7}
.hec-pt-result .hec-score{display:inline-flex;align-items:center;justify-content:center;min-width:160px;padding:14px 22px;margin:12px 0;border-radius:999px;background:var(--hec-primary);color:#fff;font-size:22px;font-weight:900}
.hec-pt-result .hec-level{font-size:24px;font-weight:900;color:var(--hec-accent)}
.hec-pt-error{background:#fff4f4!important;border-color:rgba(227,6,19,.18)!important;color:#991b1b!important}
@media(max-width:700px){
  .hec-placement-test{padding:48px 12px}
  .hec-pt-hero{padding:32px 22px;border-radius:24px}
  .hec-pt-card{padding:20px;border-radius:22px}
  .hec-pt-fields{grid-template-columns:1fr}
  .hec-pt-card-head{flex-direction:column}
  .hec-pt-counter{width:100%;text-align:center}
  .hec-pt-question{padding:18px 14px}
  .hec-pt-question-title{font-size:16px}
  .hec-pt-option{font-size:14px;padding:12px}
  .hec-pt-submit{width:100%}
}
.hec-pt-wa{display:inline-flex;align-items:center;justify-content:center;margin-top:10px;min-height:52px;padding:0 24px;border-radius:999px;background:#25D366;color:#fff!important;text-decoration:none!important;font-weight:900;box-shadow:0 14px 30px rgba(37,211,102,.20)}

.hec-kids-visual-block{border:1px solid rgba(26,29,86,.10);background:#F8FAFC;border-radius:24px;padding:16px;margin:0 0 18px;box-shadow:0 10px 28px rgba(26,29,86,.06)}
.hec-kids-visual-title{font-weight:900;color:var(--hec-primary);margin:0 0 12px;font-size:17px;line-height:1.4}
.hec-kids-visual-block img{display:block;width:100%;height:auto;border-radius:18px;border:1px solid rgba(26,29,86,.10);background:#fff}
@media(max-width:700px){.hec-kids-visual-block{padding:10px;border-radius:18px}.hec-kids-visual-title{font-size:15px}.hec-kids-visual-block img{border-radius:14px}}

/* v2.7 Kids visual builder frontend */
.hec-pt-test-kids .hec-pt-question{border-color:rgba(26,29,86,.10);background:linear-gradient(180deg,#fff,#FBFCFF)}
.hec-kids-instruction{margin:-8px 0 16px;color:#4B5563;font-size:14px;line-height:1.7;background:#F8FAFC;border:1px solid rgba(26,29,86,.08);border-radius:14px;padding:10px 12px}
.hec-kids-secondary{margin:0 0 16px}
.hec-kids-secondary img{max-width:100%;height:auto;border-radius:16px;border:1px solid rgba(26,29,86,.10);background:#fff}
.hec-kids-image-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.hec-pt-option.has-option-image{display:grid;grid-template-columns:22px 96px 1fr;align-items:center;min-height:94px}
.hec-option-img{width:96px;height:74px;object-fit:contain;background:#fff;border:1px solid rgba(26,29,86,.10);border-radius:12px;padding:4px}
@media(max-width:700px){.hec-kids-image-options{grid-template-columns:1fr}.hec-pt-option.has-option-image{grid-template-columns:20px 74px 1fr}.hec-option-img{width:74px;height:62px}}

/* v2.8 Timer + anti-cheat */
.hec-security-panel{
  display:grid;
  gap:6px;
  max-width:620px;
  margin:0 auto 16px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(26,29,86,.12);
  background:#F8FAFC;
  color:#111827;
  text-align:left;
}
.hec-security-panel strong{color:var(--hec-primary);font-size:15px}
.hec-security-panel span{font-weight:900;color:var(--hec-accent);font-size:18px}
.hec-security-panel small{color:#6B7280;line-height:1.5}
@media(max-width:700px){.hec-security-panel{text-align:center}.hec-security-panel span{font-size:16px}}

/* v3.5 Start Test gate */
.hec-start-gate{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:0 auto 20px;
  padding:24px 26px;
  border:1px solid rgba(26,29,86,.12);
  border-radius:24px;
  background:linear-gradient(135deg,#fff 0%,#F8FAFC 100%);
  box-shadow:0 14px 38px rgba(26,29,86,.08);
}
.hec-start-gate-copy{min-width:0}
.hec-start-gate strong{display:block;margin:0 0 7px;color:var(--hec-primary);font-family:"Gotham Black",Arial,sans-serif;font-size:22px;line-height:1.25}
.hec-start-gate p{margin:0 0 7px;color:#374151;font-size:15px;line-height:1.65}
.hec-start-gate small{display:block;color:#6B7280;font-size:13px;line-height:1.55}
.hec-start-test-button{
  flex:none;
  min-width:180px;
  min-height:58px;
  padding:0 30px;
  border:0;
  border-radius:999px;
  background:var(--hec-accent);
  color:#fff;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 16px 34px rgba(227,6,19,.25);
  transition:transform .2s ease,background .2s ease,box-shadow .2s ease;
}
.hec-start-test-button:hover{transform:translateY(-2px);background:#b8040f;box-shadow:0 20px 40px rgba(227,6,19,.30)}
.hec-start-test-button:focus-visible{outline:3px solid rgba(227,6,19,.25);outline-offset:3px}
.hec-security-panel.is-running{border-color:rgba(227,6,19,.28);box-shadow:0 10px 28px rgba(227,6,19,.08)}
.hec-field-locked{pointer-events:none!important;background:#F3F4F6!important;color:#4B5563!important;user-select:none}
@media(max-width:700px){
  .hec-start-gate{flex-direction:column;align-items:stretch;padding:20px;border-radius:20px;text-align:center}
  .hec-start-test-button{width:100%;min-width:0}
  .hec-start-gate strong{font-size:20px}
}
