/* ============================================================
   Check Eligibility — page extras + the 7-course calculator
   The tool's ORIGINAL stylesheet is scoped to .ec-tool and
   retokenised to the locked palette. No rule was rewritten.
   ============================================================ */

/* — hero factor chips — */
.ec-factors {
  list-style: none;
  margin: 14px auto 0;
  padding: 0;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}
.ec-factors li {
  position: relative;
  padding: 10px 16px 10px 32px;
  border-radius: 999px;
  font: 600 13px/1 var(--hb-text);
  color: #3f2f10;
  background: linear-gradient(180deg, #f6e4b4, #ebd190 58%, #d9b96a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 0 rgba(0, 0, 0, 0.16),
    0 8px 14px -9px rgba(143, 106, 46, 0.55);
}
.ec-factors li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--hb-burg) 70%);
}

/* — course cards — */
.ec-courses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin-inline: auto;
}
.ec-courses li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 18px 18px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid var(--hb-border);
  background: linear-gradient(180deg, #fffdf6, #f6eedb);
  box-shadow:
    0 18px 36px -24px rgba(29, 22, 28, 0.3),
    inset 0 1px 0 #fff;
}
.ec-courses .n {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 13px/1 var(--hb-display);
  color: #fcf7ea;
  background: radial-gradient(
    circle at 35% 30%,
    #8c3b32,
    var(--hb-burg) 55%,
    #5a1f1a
  );
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.3),
    inset 0 -2px 3px rgba(0, 0, 0, 0.35),
    0 8px 14px -7px rgba(29, 22, 28, 0.5);
}
.ec-courses .ci {
  width: 42px;
  margin: 8px auto 10px;
  filter: drop-shadow(0 8px 12px rgba(74, 55, 20, 0.3));
}
.ec-courses h3 {
  margin: 0 0 14px;
  font: 700 14.5px/1.3 var(--hb-display);
  color: var(--hb-ink);
}
.ec-chip {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font: 700 12px/1 var(--hb-text);
  color: #3f2f10;
  background: linear-gradient(180deg, #f0ce83, var(--hb-gold) 58%, #c89440);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22),
    0 8px 14px -8px rgba(143, 106, 46, 0.6);
  transition: transform 0.15s ease;
}
.ec-chip:hover {
  transform: translateY(-1px);
}
.ec-chip::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2.2px solid #3f2f10;
  border-right: 2.2px solid #3f2f10;
  transform: rotate(45deg) scale(0.75);
}

/* — student desk rail — */
.ec-contact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1060px;
  margin: 0 auto;
}
.ec-contact a {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid var(--hb-border);
  background: linear-gradient(180deg, #fffdf6, #f6eedb);
  box-shadow:
    0 14px 28px -20px rgba(29, 22, 28, 0.3),
    inset 0 1px 0 #fff;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.ec-contact a:hover {
  transform: translateY(-2px);
  border-color: #b08542;
}
.ec-contact .ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at 35% 30%,
    #f3d58c,
    var(--hb-gold) 55%,
    #b08542
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 2px rgba(0, 0, 0, 0.2);
}
.ec-contact .ic img {
  width: 20px;
  height: 20px;
}
.ec-contact a.wa .ic {
  background: radial-gradient(circle at 35% 30%, #4ade80, #25d366 55%, #128c4a);
}
.ec-contact .k {
  display: block;
  font: 700 10px/1 var(--hb-text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hb-bronze);
  margin-bottom: 5px;
}
.ec-contact .v {
  display: block;
  font: 700 13.5px/1.35 var(--hb-display);
  color: var(--hb-ink);
  word-break: break-word;
}

.hb-btn.hbx-contact {
  color: #fff;
  background: linear-gradient(180deg, #35815b, #2c6a47 55%, #224f38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.28),
    0 10px 18px -9px rgba(44, 106, 71, 0.55);
}
.hb-btn.hbx-contact:hover {
  color: #fff;
  transform: translateY(-1px);
}
.hb-btn.hbx-app {
  color: #fcf7ea;
  background: linear-gradient(180deg, #8a6a38, #6e5327 55%, #4a3714);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.3),
    0 10px 18px -9px rgba(74, 55, 20, 0.6);
}
.hb-btn.hbx-app:hover {
  color: #fcf7ea;
  transform: translateY(-1px);
}

/* — container hygiene: the tool is a panel inside our page, not a page — */
.ec-tool {
  max-width: 1120px;
  margin: 0 auto;
}
.ec-tool .wrap {
  width: auto;
  max-width: none;
  padding: 0;
}
.ec-tool .card {
  border-radius: 22px;
  border: 1.5px solid #d9a64c;
  box-shadow:
    0 34px 64px -34px rgba(29, 22, 28, 0.42),
    inset 0 1px 0 #fff;
}
.ec-tool .note {
  margin-top: 22px;
}
.ec-tool .btn.solid {
  background: linear-gradient(180deg, #8c3b32, #7b2d26 58%, #5a1f1a);
  color: #fcf7ea;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -3px 0 rgba(0, 0, 0, 0.3),
    0 14px 24px -12px rgba(90, 31, 26, 0.7);
}
.ec-tool .btn.solid:hover {
  transform: translateY(-2px);
}

@media (max-width: 1020px) {
  .ec-courses {
    grid-template-columns: repeat(2, 1fr);
  }
  .ec-contact {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .ec-courses {
    grid-template-columns: 1fr;
  }
  .ec-contact {
    grid-template-columns: 1fr;
  }
}

/* ---------- scoped calculator tool ---------- */
.ec-tool {
  --navy: #1d161c;
  --navy-2: #2e2129;
  --gold: #e2b15d;
  --gold-deep: #b08542;
  --green: #2c6a47;
  --red: #7b2d26;
  --cream: #fcf7ea;
  --muted: #543c2c;
  --line: #ecd093;
  --c: var(--green);
  --fd: "Sora", "Sora Fallback", ui-sans-serif, system-ui, sans-serif;
  --fb:
    "Inter", "Inter Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
}
.ec-tool * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.ec-tool {
  font-family: var(--fb);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.ec-tool .wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 18px;
}
.ec-tool .hide {
  display: none !important;
}
.ec-tool a {
  color: var(--gold);
}
.ec-tool .pass,
.ec-tool .healthy,
.ec-tool .ok {
  --c: var(--green);
}
.ec-tool .warn,
.ec-tool .under,
.ec-tool .over {
  --c: var(--gold-deep);
}
.ec-tool .fail,
.ec-tool .obese,
.ec-tool .no {
  --c: var(--red);
}
.ec-tool .head {
  background: radial-gradient(
    ellipse at top right,
    #3a2c33 0%,
    var(--navy) 45%,
    var(--navy-2) 100%
  );
  color: var(--cream);
  padding: 46px 0 40px;
}
.ec-tool .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  background: rgba(226, 177, 93, 0.12);
  border: 1px solid rgba(226, 177, 93, 0.34);
  border-radius: 22px;
  font-size: 0.66rem;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
}
.ec-tool .eyebrow b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.ec-tool .head h1 {
  font-family: var(--fd);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.ec-tool .head h1 em {
  font-style: italic;
  color: var(--gold);
}
.ec-tool .head p {
  max-width: 640px;
  color: rgba(250, 246, 238, 0.82);
  font-weight: 300;
  font-size: 1.02rem;
}
.ec-tool .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(26, 31, 58, 0.1);
  margin: -26px auto 26px;
  overflow: hidden;
}
.ec-tool .pad {
  padding: 26px 26px 30px;
}
.ec-tool .slabel {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 22px 0 14px;
}
.ec-tool .slabel:first-child {
  margin-top: 6px;
}
.ec-tool .progs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ec-tool .prog {
  cursor: pointer;
  text-align: left;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  font-family: inherit;
  transition: 0.15s;
}
.ec-tool .prog:hover {
  border-color: var(--gold);
}
.ec-tool .prog.on {
  border-color: var(--gold-deep);
  background: #fff;
  box-shadow: 0 6px 18px rgba(181, 131, 46, 0.18);
}
.ec-tool .prog .pn {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}
.ec-tool .prog.on .pn {
  color: var(--gold-deep);
}
.ec-tool .prog .pr {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 3px;
}
.ec-tool .fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.ec-tool .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ec-tool .field.full,
.ec-tool .subhead {
  grid-column: 1/-1;
}
.ec-tool .field label {
  font-size: 0.78rem;
  font-weight: 600;
}
.ec-tool .field .hint {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
}
.ec-tool .req {
  color: var(--red);
  font-weight: 700;
}
.ec-tool .field input,
.ec-tool .field select {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 11px 12px;
  border: 1.4px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  width: 100%;
  transition: 0.15s;
}
.ec-tool .field input:focus,
.ec-tool .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(226, 177, 93, 0.16);
}
.ec-tool .field.bad input,
.ec-tool .field.bad select {
  border-color: var(--red);
  background: rgba(123, 45, 38, 0.04);
}
.ec-tool .fld-err {
  display: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
}
.ec-tool .field.bad .fld-err {
  display: block;
}
.ec-tool .subhead {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  opacity: 0.75;
  margin: 8px 0 -4px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.ec-tool .trio {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 8px;
}
.ec-tool .ht {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}
.ec-tool .ht.ft {
  grid-template-columns: auto 1fr 1fr;
}
.ec-tool .ht select {
  width: auto;
  min-width: 92px;
}
.ec-tool .actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.ec-tool .btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: 11px;
  padding: 13px 24px;
  cursor: pointer;
  transition: 0.15s;
  text-decoration: none;
  display: inline-block;
}
.ec-tool .btn.solid {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(181, 131, 46, 0.28);
}
.ec-tool .btn.solid:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.ec-tool .btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1.4px solid var(--line);
}
.ec-tool .btn.ghost:hover {
  border-color: var(--muted);
}
.ec-tool .btn.navy {
  background: var(--navy);
  color: #fff;
}
.ec-tool .btn.outline {
  background: #fff;
  color: var(--navy);
  border: 1.4px solid var(--navy);
}
.ec-tool .formErr {
  display: none;
  margin-top: 14px;
  background: rgba(123, 45, 38, 0.07);
  border: 1px solid rgba(123, 45, 38, 0.3);
  color: #7b2d26;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 10px;
}
.ec-tool .formErr.show {
  display: block;
}
.ec-tool .verdict {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--c);
}
.ec-tool .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  background: var(--c);
}
.ec-tool .verdict .vt {
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}
.ec-tool .verdict .vs {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 3px;
}
.ec-tool .summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.ec-tool .summary div {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
}
.ec-tool .summary .k {
  font-size: 0.6rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.ec-tool .summary .v {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 2px;
}
.ec-tool .bmi {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 13px;
  margin-bottom: 18px;
  border: 1px solid var(--c);
  background: var(--cream);
}
.ec-tool .bmi .num {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  text-align: center;
}
.ec-tool .bmi .num small {
  display: block;
  font-family: var(--fb);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}
.ec-tool .bmi .band {
  font-weight: 700;
  font-size: 1rem;
  color: var(--c);
}
.ec-tool .bmi .bandmsg {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}
.ec-tool .checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ec-tool .chk {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.ec-tool .chk .dot {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  margin-top: 1px;
  background: var(--c);
}
.ec-tool .chk .cl {
  font-weight: 600;
  font-size: 0.86rem;
}
.ec-tool .chk .cm {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1px;
}
.ec-tool .cta {
  margin-top: 22px;
  background: #f5ead8;
  border: 1px solid rgba(226, 177, 93, 0.45);
  border-radius: 14px;
  padding: 18px 20px;
}
.ec-tool .cta h3 {
  font-family: var(--fd);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.ec-tool .cta p {
  font-size: 0.86rem;
  color: #6e5327;
  margin-bottom: 13px;
}
.ec-tool .cta .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ec-tool .cta .btn {
  padding: 11px 18px;
  font-size: 0.86rem;
}
.ec-tool .note {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 auto 30px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.ec-tool .note b {
  color: var(--navy);
}
.ec-tool .foot {
  background: var(--navy);
  color: rgba(250, 246, 238, 0.72);
  padding: 24px 0;
  font-size: 0.78rem;
  text-align: center;
}
.ec-tool .foot .sig {
  color: var(--cream);
  font-weight: 600;
  margin-bottom: 5px;
  font-family: var(--fd);
  font-size: 1.05rem;
}
@media (max-width: 680px) {
  .ec-tool .progs {
    grid-template-columns: 1fr 1fr;
  }
  .ec-tool .fields {
    grid-template-columns: 1fr;
  }
  .ec-tool .card {
    margin-top: -18px;
  }
}
