
/* =====================================================
   VARIABLES + RESET
===================================================== */

#hocba-xt-calculator-tn,
#hocba-xt-calculator-tn * {
  box-sizing: border-box;
}

#hocba-xt-calculator-tn {
  --hb-primary-tn: #2563eb;
  --hb-primary-hover-tn: #1d4ed8;
  --hb-primary-soft-tn: #eff6ff;

  --hb-accent-tn: #f97316;
  --hb-accent-soft-tn: #fff7ed;

  --hb-text-tn: #0f172a;
  --hb-text2-tn: #334155;
  --hb-muted-tn: #64748b;

  --hb-border-tn: #e2e8f0;
  --hb-bg-tn: #f8fafc;

  --hb-success-tn: #059669;
  --hb-success-bg-tn: #ecfdf5;

  --hb-danger-tn: #dc2626;
  --hb-danger-bg-tn: #fef2f2;

  width: 100%;
  max-width: 1000px;

  margin: 0px auto;

  color: var(--hb-text-tn);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  line-height: 1.5;
}


/* =====================================================
   MAIN CARD
===================================================== */

.hocba-xt-calculator-tn {
  overflow: hidden;

  background: #fff;

  border: 1px solid var(--hb-border-tn);
  border-radius: 24px;

  box-shadow:
    0 22px 55px rgba(15, 23, 42, .08),
    0 2px 6px rgba(15, 23, 42, .03);
}


/* =====================================================
   HEADER
===================================================== */

.hocba-xt-header-tn {
  position: relative;

  overflow: hidden;

  padding: 42px;

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(37, 99, 235, .15),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      #f8fbff 0%,
      #fff 65%
    );

  border-bottom: 1px solid var(--hb-border-tn);
}

.hocba-xt-badge-tn {
  display: inline-flex;

  margin-bottom: 13px;
  padding: 7px 12px;

  color: var(--hb-primary-tn);
  background: var(--hb-primary-soft-tn);

  border-radius: 999px;

  font-size: 12px;
  font-weight: 750;
}

.hocba-xt-title-tn {
  margin: 0;

  font-size: clamp(27px, 4vw, 39px);
  font-weight: 850;

  line-height: 1.15;
  letter-spacing: -.04em;
}

.hocba-xt-description-tn {
  max-width: 670px;

  margin: 12px 0 0;

  color: var(--hb-muted-tn);

  font-size: 15px;
}


/* =====================================================
   BODY
===================================================== */

.hocba-xt-body-tn {
  padding: 32px 42px 42px;
}


/* =====================================================
   GUIDE
===================================================== */

.hocba-guide-tn {
  padding: 23px 26px;

  color: #431407;
  background: #ffedd5;

  border: 1px solid #fed7aa;
  border-radius: 15px;

  font-size: 14px;
}

.hocba-guide-title-tn {
  display: block;

  margin-bottom: 13px;

  color: #1f2937;

  font-size: 15px;
}

.hocba-guide-row-tn {
  margin: 8px 0;
}


/* =====================================================
   SECTION
===================================================== */

.hocba-section-tn {
  padding: 31px 0;

  border-bottom: 1px solid var(--hb-border-tn);
}

.hocba-section-heading-tn {
  display: flex;
  align-items: flex-start;

  gap: 13px;

  margin-bottom: 20px;
}

.hocba-step-tn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  min-width: 38px;
  height: 30px;

  color: var(--hb-primary-tn);
  background: var(--hb-primary-soft-tn);

  border-radius: 8px;

  font-size: 12px;
  font-weight: 800;
}

.hocba-section-title-tn {
  margin: 1px 0 3px;

  font-size: 19px;
  font-weight: 780;
}

.hocba-section-desc-tn {
  margin: 0;

  color: var(--hb-muted-tn);

  font-size: 13px;
}


/* =====================================================
   METHODS
===================================================== */

.hocba-method-list-tn {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;
}

.hocba-method-item-tn {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 67px;

  gap: 11px;

  padding: 12px 14px;

  cursor: pointer;

  background: #fff;

  border: 1px solid var(--hb-border-tn);
  border-radius: 12px;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.hocba-method-item-tn:hover {
  border-color: #93c5fd;
}

.hocba-method-item-tn.active-tn {
  background: var(--hb-primary-soft-tn);

  border-color: #60a5fa;

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, .06);
}

.hocba-method-radio-tn {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.hocba-custom-radio-tn {
  position: relative;

  flex: 0 0 19px;

  width: 19px;
  height: 19px;

  border: 2px solid #cbd5e1;
  border-radius: 50%;
}

.hocba-method-item-tn.active-tn
.hocba-custom-radio-tn {
  border-color: var(--hb-primary-tn);
}

.hocba-method-item-tn.active-tn
.hocba-custom-radio-tn::after {
  position: absolute;

  top: 3px;
  left: 3px;

  width: 9px;
  height: 9px;

  content: "";

  background: var(--hb-primary-tn);

  border-radius: 50%;
}

.hocba-method-item-tn strong {
  display: block;

  color: var(--hb-text2-tn);

  font-size: 13px;
}

.hocba-method-item-tn small {
  display: block;

  margin-top: 2px;

  color: var(--hb-muted-tn);

  font-size: 10.5px;
}


/* =====================================================
   FORM
===================================================== */

.hocba-priority-grid-tn {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.hocba-field-tn {
  display: block;
}

.hocba-label-tn {
  display: block;

  margin-bottom: 8px;

  color: var(--hb-text2-tn);

  font-size: 13px;
  font-weight: 700;
}

.hocba-select-tn,
.hocba-main-input-tn {
  width: 100%;
  min-height: 47px;

  padding: 0 13px;

  outline: none;

  color: var(--hb-text-tn);
  background: #fff;

  border: 1px solid var(--hb-border-tn);
  border-radius: 10px;

  font: inherit;
  font-size: 13px;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.hocba-select-tn:focus,
.hocba-main-input-tn:focus {
  border-color: var(--hb-primary-tn);

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, .1);
}


/* =====================================================
   PRIORITY INFO
===================================================== */

.hocba-priority-note-tn {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  margin-top: 17px;
  padding: 15px;

  color: #475569;
  background: #f8fafc;

  border: 1px solid var(--hb-border-tn);
  border-radius: 12px;

  font-size: 12px;
}

.hocba-priority-icon-tn {
  display: flex;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;

  width: 25px;
  height: 25px;

  color: var(--hb-primary-tn);
  background: #dbeafe;

  border-radius: 50%;

  font-weight: 800;
}

.hocba-priority-note-tn strong {
  color: var(--hb-text2-tn);
}

.hocba-priority-note-tn p {
  margin: 4px 0;
}

.hocba-formula-box-tn {
  display: inline-block;

  margin-top: 5px;
  padding: 7px 10px;

  color: #1e40af;
  background: #eff6ff;

  border-radius: 7px;

  font-weight: 650;
}


/* =====================================================
   TIP
===================================================== */

.hocba-tip-tn {
  margin-bottom: 13px;
  padding: 10px 12px;

  color: #9a3412;
  background: var(--hb-accent-soft-tn);

  border: 1px solid #fed7aa;
  border-radius: 9px;

  font-size: 12px;
}


/* =====================================================
   TABLE
===================================================== */

.hocba-table-scroll-tn {
  width: 100%;

  overflow-x: auto;

  border: 1px solid var(--hb-border-tn);
  border-radius: 13px;
}

.hocba-table-tn {
  width: 100%;
  min-width: 650px;

  border-collapse: collapse;
  border-spacing: 0;

  background: #fff;
}

.hocba-table-tn th {
  padding: 12px 9px;

  color: #1e3a5f;
  background: #dbeafe;

  border-right: 1px solid #bfdbfe;
  border-bottom: 1px solid #bfdbfe;

  text-align: center;

  font-size: 11px;
  font-weight: 750;
}

.hocba-table-tn th:first-child {
  min-width: 145px;
}

.hocba-table-tn th:last-child {
  border-right: 0;
}

.hocba-table-tn td {
  padding: 8px;

  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;

  text-align: center;
}

.hocba-table-tn tr:last-child td {
  border-bottom: 0;
}

.hocba-table-tn td:last-child {
  border-right: 0;
}

.hocba-subject-name-tn {
  text-align: left !important;

  color: #334155;

  font-size: 12px;
  font-weight: 700;
}

.hocba-selected-row-tn {
  background: #f8fbff;
}

.hocba-selected-row-tn
.hocba-subject-name-tn {
  color: var(--hb-primary-tn);
}

.hocba-score-input-tn {
  width: 76px;
  height: 38px;

  padding: 0 7px;

  outline: none;

  color: #0f172a;
  background: #fff;

  border: 1px solid #dbe1ea;
  border-radius: 7px;

  text-align: center;

  font-family: inherit;
  font-size: 12px;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.hocba-score-input-tn:focus {
  border-color: var(--hb-primary-tn);

  box-shadow:
    0 0 0 2px rgba(37, 99, 235, .09);
}

.hocba-score-input-tn.input-error-tn {
  color: #b91c1c;
  background: #fef2f2;

  border-color: #ef4444;
}

.hocba-average-score-tn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 52px;
  height: 31px;

  padding: 0 7px;

  color: #64748b;
  background: #f1f5f9;

  border-radius: 7px;

  font-size: 12px;
  font-weight: 750;
}

.hocba-average-score-tn.has-score-tn {
  color: #1d4ed8;
  background: #eff6ff;
}

.hocba-table-help-tn {
  margin-top: 9px;

  color: var(--hb-muted-tn);

  font-size: 11px;
}


/* =====================================================
   COMBINATION
===================================================== */

.hocba-combination-grid-tn {
  display: grid;
  align-items: end;

  grid-template-columns:
    1fr 30px 1fr 30px 1fr;

  gap: 8px;
}

.hocba-plus-tn {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 47px;

  color: #94a3b8;

  font-size: 21px;
  font-weight: 600;
}


/* =====================================================
   BENCHMARK
===================================================== */

.hocba-point-wrap-tn {
  position: relative;
}

.hocba-point-wrap-tn
.hocba-main-input-tn {
  padding-right: 65px;
}

.hocba-point-wrap-tn > span {
  position: absolute;

  top: 50%;
  right: 14px;

  color: var(--hb-muted-tn);

  font-size: 12px;

  transform: translateY(-50%);
}


/* =====================================================
   BUTTONS
===================================================== */

.hocba-actions-tn {
  display: flex;

  gap: 11px;

  margin-top: 30px;
}

.hocba-primary-btn-tn,
.hocba-reset-btn-tn {
  height: 53px;

  border: 0;
  border-radius: 12px;

  cursor: pointer;

  font-family: inherit;
  font-size: 14px;
  font-weight: 750;

  transition:
    background .2s ease,
    box-shadow .2s ease,
    transform .15s ease;
}

.hocba-primary-btn-tn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;

  gap: 11px;

  padding: 0 20px;

  color: #fff;
  background: var(--hb-primary-tn);

  box-shadow:
    0 8px 20px rgba(37, 99, 235, .2);
}

.hocba-primary-btn-tn:hover {
  background: var(--hb-primary-hover-tn);

  box-shadow:
    0 10px 25px rgba(37, 99, 235, .25);
}

.hocba-reset-btn-tn {
  padding: 0 23px;

  color: #475569;
  background: #f1f5f9;
}

.hocba-reset-btn-tn:hover {
  background: #e2e8f0;
}

.hocba-primary-btn-tn:active,
.hocba-reset-btn-tn:active {
  transform: translateY(1px);
}

.hocba-arrow-tn {
  font-size: 20px;
}


/* =====================================================
   ERROR
===================================================== */

.hocba-error-tn {
  display: none;

  margin-top: 17px;
  padding: 13px 15px;

  color: #b91c1c;
  background: var(--hb-danger-bg-tn);

  border: 1px solid #fecaca;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 650;
}

.hocba-error-tn.show-tn {
  display: block;
}


/* =====================================================
   RESULT
===================================================== */

.hocba-result-tn {
  display: none;

  margin-top: 27px;
  padding: 28px;

  background:
    radial-gradient(
      circle at 95% 0%,
      rgba(59, 130, 246, .12),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #f8fbff,
      #eff6ff
    );

  border: 1px solid #bfdbfe;
  border-radius: 18px;
}

.hocba-result-tn.show-tn {
  display: block;

  animation: hocbaResultIn-tn .3s ease;
}

@keyframes hocbaResultIn-tn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hocba-result-header-tn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}

.hocba-result-caption-tn {
  display: block;

  margin-bottom: 2px;

  color: var(--hb-muted-tn);

  font-size: 12px;
  font-weight: 650;
}

.hocba-final-score-wrap-tn {
  display: flex;
  align-items: flex-end;

  gap: 7px;
}

.hocba-final-score-tn {
  color: var(--hb-primary-tn);

  font-size: 51px;
  font-weight: 900;

  line-height: 1;
  letter-spacing: -.055em;
}

.hocba-final-score-wrap-tn > span {
  padding-bottom: 5px;

  color: #64748b;

  font-size: 13px;
}

.hocba-result-status-tn {
  display: inline-flex;

  padding: 7px 11px;

  color: #1d4ed8;
  background: #dbeafe;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 750;
}

.hocba-result-status-tn.pass-tn {
  color: #047857;
  background: #d1fae5;
}

.hocba-result-status-tn.fail-tn {
  color: #b91c1c;
  background: #fee2e2;
}


/* =====================================================
   PROGRESS
===================================================== */

.hocba-progress-tn {
  width: 100%;
  height: 8px;

  margin: 19px 0 22px;

  overflow: hidden;

  background: #dbeafe;

  border-radius: 999px;
}

.hocba-progress-bar-tn {
  width: 0;
  height: 100%;

  background: var(--hb-primary-tn);

  border-radius: inherit;

  transition: width .5s ease;
}


/* =====================================================
   RESULT SUBJECTS
===================================================== */

.hocba-result-subjects-tn {
  display: grid;
  align-items: stretch;

  grid-template-columns:
    1fr 26px 1fr 26px 1fr;

  margin-bottom: 15px;
}

.hocba-result-subject-tn {
  padding: 13px;

  text-align: center;

  background: rgba(255, 255, 255, .77);

  border: 1px solid rgba(147, 197, 253, .55);
  border-radius: 11px;
}

.hocba-result-subject-tn span {
  display: block;

  overflow: hidden;

  margin-bottom: 3px;

  color: #64748b;

  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 10px;
}

.hocba-result-subject-tn strong {
  color: #1e3a8a;

  font-size: 17px;
}

.hocba-result-plus-tn {
  display: flex;
  align-items: center;
  justify-content: center;

  color: #94a3b8;

  font-weight: 800;
}


/* =====================================================
   RESULT GRID
===================================================== */

.hocba-result-grid-tn {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 9px;
}

.hocba-result-card-tn {
  padding: 12px;

  background: rgba(255, 255, 255, .68);

  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 10px;
}

.hocba-result-card-tn span {
  display: block;

  margin-bottom: 3px;

  color: var(--hb-muted-tn);

  font-size: 10px;
}

.hocba-result-card-tn strong {
  color: #1e293b;

  font-size: 15px;
}

.hocba-result-highlight-tn {
  background: #fff;
}

.hocba-result-highlight-tn strong {
  color: var(--hb-primary-tn);
}


/* =====================================================
   RESULT NOTES
===================================================== */

.hocba-result-note-tn {
  margin-top: 14px;
  padding: 12px 14px;

  color: #475569;
  background: rgba(255, 255, 255, .65);

  border-radius: 10px;

  font-size: 12px;
}

.hocba-benchmark-result-tn {
  display: none;

  margin-top: 12px;
  padding: 12px 14px;

  border-radius: 10px;

  font-size: 12px;
  font-weight: 650;
}

.hocba-benchmark-result-tn.show-tn {
  display: block;
}

.hocba-benchmark-result-tn.pass-tn {
  color: #047857;
  background: var(--hb-success-bg-tn);

  border: 1px solid #a7f3d0;
}

.hocba-benchmark-result-tn.fail-tn {
  color: #b91c1c;
  background: var(--hb-danger-bg-tn);

  border: 1px solid #fecaca;
}


/* =====================================================
   FOOTER NOTE
===================================================== */

.hocba-footer-note-tn {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  margin-top: 20px;
  padding: 15px;

  color: #64748b;
  background: #fafafa;

  border: 1px dashed #cbd5e1;
  border-radius: 12px;

  font-size: 11px;
}

.hocba-footer-icon-tn {
  display: flex;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;

  width: 25px;
  height: 25px;

  color: #475569;
  background: #e2e8f0;

  border-radius: 50%;

  font-weight: 800;
}

.hocba-footer-note-tn strong {
  color: #334155;
}

.hocba-footer-note-tn p {
  margin: 3px 0 0;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

  #hocba-xt-calculator-tn {
    margin: 14px auto;
  }

  .hocba-xt-calculator-tn {
    border-radius: 18px;
  }

  .hocba-xt-header-tn {
    padding: 30px 21px;
  }

  .hocba-xt-body-tn {
    padding: 22px 21px 28px;
  }

  .hocba-method-list-tn {
    grid-template-columns: 1fr;
  }

  .hocba-result-grid-tn {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 620px) {

  .hocba-priority-grid-tn {
    grid-template-columns: 1fr;
  }

  .hocba-combination-grid-tn {
    display: flex;
    flex-direction: column;

    gap: 10px;
  }

  .hocba-combination-grid-tn
  .hocba-field-tn {
    width: 100%;
  }

  .hocba-plus-tn {
    display: none;
  }

  .hocba-result-subjects-tn {
    grid-template-columns: 1fr;

    gap: 7px;
  }

  .hocba-result-plus-tn {
    height: 14px;
  }

}


@media (max-width: 480px) {

  .hocba-guide-tn {
    padding: 18px;
  }

  .hocba-actions-tn {
    flex-direction: column;
  }

  .hocba-reset-btn-tn {
    width: 100%;
  }

  .hocba-result-tn {
    padding: 20px 15px;
  }

  .hocba-result-header-tn {
    flex-direction: column;

    gap: 10px;
  }

  .hocba-final-score-tn {
    font-size: 44px;
  }

  .hocba-result-grid-tn {
    grid-template-columns: 1fr 1fr;
  }

}


@media (max-width: 350px) {

  .hocba-result-grid-tn {
    grid-template-columns: 1fr;
  }

}
