
/* ==========================================
   BASE
========================================== */

#lop10-calculator-tn,
#lop10-calculator-tn * {
  box-sizing: border-box;
}

#lop10-calculator-tn {
  --lop10-primary-tn: #4f46e5;
  --lop10-primary-hover-tn: #4338ca;
  --lop10-primary-light-tn: #eef2ff;

  --lop10-text-tn: #0f172a;
  --lop10-text-2-tn: #475569;
  --lop10-text-3-tn: #64748b;

  --lop10-border-tn: #e2e8f0;
  --lop10-bg-tn: #f8fafc;

  --lop10-success-tn: #059669;
  --lop10-success-bg-tn: #ecfdf5;

  --lop10-danger-tn: #dc2626;
  --lop10-danger-bg-tn: #fef2f2;

  width: 100%;
  max-width: 900px;

  margin: 0px auto;

  color: var(--lop10-text-tn);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  line-height: 1.5;
}


/* ==========================================
   CARD
========================================== */

.lop10-calculator-tn {
  overflow: hidden;

  background: #fff;

  border: 1px solid var(--lop10-border-tn);
  border-radius: 24px;

  box-shadow:
    0 25px 60px rgba(15, 23, 42, 0.08),
    0 2px 6px rgba(15, 23, 42, 0.03);
}


/* ==========================================
   HEADER
========================================== */

.lop10-header-tn {
  position: relative;

  padding: 42px;

  overflow: hidden;

  border-bottom: 1px solid var(--lop10-border-tn);

  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(99, 102, 241, 0.18),
      transparent 35%
    ),
    linear-gradient(
      140deg,
      #f8faff 0%,
      #ffffff 60%
    );
}

.lop10-header-tn:after {
  position: absolute;

  right: -60px;
  top: -80px;

  width: 180px;
  height: 180px;

  content: "";

  border: 35px solid rgba(99, 102, 241, 0.05);
  border-radius: 50%;
}

.lop10-badge-tn {
  display: inline-flex;

  margin-bottom: 14px;
  padding: 7px 12px;

  color: var(--lop10-primary-tn);
  background: var(--lop10-primary-light-tn);

  border-radius: 999px;

  font-size: 13px;
  font-weight: 750;
}

.lop10-title-tn {
  position: relative;
  z-index: 1;

  margin: 0;

  color: var(--lop10-text-tn);

  font-size: clamp(27px, 4vw, 38px);
  font-weight: 850;

  letter-spacing: -0.04em;
  line-height: 1.15;
}

.lop10-description-tn {
  position: relative;
  z-index: 1;

  max-width: 650px;

  margin: 13px 0 0;

  color: var(--lop10-text-3-tn);

  font-size: 15px;
}


/* ==========================================
   BODY
========================================== */

.lop10-body-tn {
  padding: 8px 42px 42px;
}

.lop10-section-tn {
  padding: 30px 0;

  border-bottom: 1px solid var(--lop10-border-tn);
}

.lop10-section-title-wrap-tn {
  display: flex;
  align-items: flex-start;

  gap: 13px;

  margin-bottom: 20px;
}

.lop10-step-tn {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  min-width: 38px;
  height: 30px;

  padding: 0 9px;

  color: var(--lop10-primary-tn);
  background: var(--lop10-primary-light-tn);

  border-radius: 8px;

  font-size: 12px;
  font-weight: 800;
}

.lop10-section-title-tn {
  margin: 1px 0 3px;

  color: var(--lop10-text-tn);

  font-size: 19px;
  font-weight: 750;
}

.lop10-section-desc-tn {
  margin: 0;

  color: var(--lop10-text-3-tn);

  font-size: 13px;
}


/* ==========================================
   SUBJECT
========================================== */

.lop10-subject-list-tn {
  display: grid;

  gap: 12px;
}

.lop10-subject-tn {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 15px 16px;

  background: #fff;

  border: 1px solid var(--lop10-border-tn);
  border-radius: 14px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lop10-subject-tn:focus-within {
  border-color: #a5b4fc;

  box-shadow:
    0 0 0 3px rgba(79, 70, 229, 0.08);
}

.lop10-subject-info-tn {
  display: flex;
  align-items: center;

  min-width: 0;

  gap: 12px;
}

.lop10-subject-icon-tn {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  color: var(--lop10-primary-tn);
  background: var(--lop10-primary-light-tn);

  border-radius: 11px;

  font-size: 14px;
  font-weight: 850;
}

.lop10-subject-info-tn strong {
  display: block;

  color: #1e293b;

  font-size: 14px;
}

.lop10-subject-info-tn small {
  display: block;

  margin-top: 2px;

  color: var(--lop10-text-3-tn);

  font-size: 11px;
}

.lop10-subject-inputs-tn {
  display: flex;
  align-items: flex-end;

  gap: 8px;
}

.lop10-small-field-tn {
  display: block;
}

.lop10-small-field-tn > span {
  display: block;

  margin: 0 0 5px 2px;

  color: var(--lop10-text-3-tn);

  font-size: 10px;
  font-weight: 650;
}

.lop10-small-field-tn .lop10-input-tn {
  width: 110px;
}

.lop10-select-tn {
  width: 75px;
  height: 46px;

  padding: 0 10px;

  color: var(--lop10-text-tn);
  background: #fff;

  border: 1px solid var(--lop10-border-tn);
  border-radius: 10px;

  outline: none;

  font: inherit;
  font-size: 14px;

  cursor: pointer;
}

.lop10-select-tn:focus {
  border-color: var(--lop10-primary-tn);

  box-shadow:
    0 0 0 3px rgba(79, 70, 229, 0.1);
}


/* ==========================================
   OPTIONAL SUBJECT
========================================== */

.lop10-subject-optional-tn {
  display: none;
}

.lop10-subject-optional-tn.active-tn {
  display: flex;
}


/* ==========================================
   TOGGLE
========================================== */

.lop10-toggle-wrap-tn {
  display: inline-flex;
  align-items: center;

  gap: 10px;

  margin-top: 16px;

  cursor: pointer;
  user-select: none;
}

.lop10-toggle-input-tn {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
}

.lop10-toggle-tn {
  position: relative;

  display: inline-block;

  width: 42px;
  height: 24px;

  background: #cbd5e1;

  border-radius: 999px;

  transition: background 0.2s ease;
}

.lop10-toggle-tn:after {
  position: absolute;

  top: 3px;
  left: 3px;

  width: 18px;
  height: 18px;

  content: "";

  background: #fff;

  border-radius: 50%;

  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);

  transition: transform 0.2s ease;
}

.lop10-toggle-input-tn:checked +
.lop10-toggle-tn {
  background: var(--lop10-primary-tn);
}

.lop10-toggle-input-tn:checked +
.lop10-toggle-tn:after {
  transform: translateX(18px);
}

.lop10-toggle-label-tn {
  color: var(--lop10-text-2-tn);

  font-size: 13px;
  font-weight: 650;
}


/* ==========================================
   FIELDS
========================================== */

.lop10-grid-2-tn {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 15px;
}

.lop10-field-tn {
  display: block;
}

.lop10-label-tn {
  display: block;

  margin-bottom: 8px;

  color: #334155;

  font-size: 13px;
  font-weight: 700;
}

.lop10-field-tn small {
  display: block;

  margin-top: 6px;

  color: var(--lop10-text-3-tn);

  font-size: 11px;
}

.lop10-input-tn {
  width: 100%;
  height: 46px;

  padding: 0 13px;

  color: var(--lop10-text-tn);
  background: #fff;

  border: 1px solid var(--lop10-border-tn);
  border-radius: 10px;

  outline: none;

  font: inherit;
  font-size: 14px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lop10-input-tn:hover {
  border-color: #cbd5e1;
}

.lop10-input-tn:focus {
  border-color: var(--lop10-primary-tn);

  box-shadow:
    0 0 0 3px rgba(79, 70, 229, 0.1);
}

.lop10-input-tn.error-tn {
  border-color: var(--lop10-danger-tn);

  background:
    var(--lop10-danger-bg-tn);
}

.lop10-point-input-wrap-tn {
  position: relative;
}

.lop10-point-input-wrap-tn .lop10-input-tn {
  padding-right: 60px;
}

.lop10-point-input-wrap-tn > span {
  position: absolute;

  right: 14px;
  top: 50%;

  color: var(--lop10-text-3-tn);

  font-size: 12px;

  transform: translateY(-50%);

  pointer-events: none;
}


/* ==========================================
   BUTTON
========================================== */

.lop10-actions-tn {
  display: flex;

  gap: 11px;

  margin-top: 30px;
}

.lop10-primary-btn-tn,
.lop10-secondary-btn-tn {
  height: 52px;

  border: 0;
  border-radius: 12px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 750;

  cursor: pointer;

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.lop10-primary-btn-tn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;

  gap: 12px;

  padding: 0 20px;

  color: #fff;
  background: var(--lop10-primary-tn);

  box-shadow:
    0 8px 20px rgba(79, 70, 229, 0.2);
}

.lop10-primary-btn-tn:hover {
  background: var(--lop10-primary-hover-tn);

  box-shadow:
    0 10px 24px rgba(79, 70, 229, 0.25);
}

.lop10-btn-arrow-tn {
  font-size: 19px;
}

.lop10-secondary-btn-tn {
  padding: 0 22px;

  color: var(--lop10-text-2-tn);
  background: #f1f5f9;
}

.lop10-secondary-btn-tn:hover {
  background: #e2e8f0;
}

.lop10-primary-btn-tn:active,
.lop10-secondary-btn-tn:active {
  transform: translateY(1px);
}


/* ==========================================
   ERROR
========================================== */

.lop10-error-tn {
  display: none;

  margin-top: 17px;
  padding: 13px 15px;

  color: #b91c1c;
  background: var(--lop10-danger-bg-tn);

  border: 1px solid #fecaca;
  border-radius: 11px;

  font-size: 13px;
  font-weight: 650;
}

.lop10-error-tn.show-tn {
  display: block;
}


/* ==========================================
   RESULT
========================================== */

.lop10-result-tn {
  display: none;

  margin-top: 28px;
  padding: 28px;

  background:
    linear-gradient(
      135deg,
      #f8faff,
      #eef2ff
    );

  border: 1px solid #c7d2fe;
  border-radius: 18px;
}

.lop10-result-tn.show-tn {
  display: block;

  animation:
    lop10FadeIn-tn 0.3s ease;
}

@keyframes lop10FadeIn-tn {

  from {
    opacity: 0;

    transform: translateY(7px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }

}

.lop10-result-main-tn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;
}

.lop10-result-caption-tn {
  display: block;

  margin-bottom: 3px;

  color: var(--lop10-text-3-tn);

  font-size: 12px;
  font-weight: 650;
}

.lop10-final-score-tn {
  color: var(--lop10-primary-tn);

  font-size: 49px;
  font-weight: 900;

  letter-spacing: -0.055em;
  line-height: 1.1;
}

.lop10-status-tn {
  padding: 7px 11px;

  color: var(--lop10-primary-tn);
  background: #e0e7ff;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 750;
}

.lop10-status-tn.pass-tn {
  color: var(--lop10-success-tn);
  background: var(--lop10-success-bg-tn);
}

.lop10-status-tn.fail-tn {
  color: var(--lop10-danger-tn);
  background: var(--lop10-danger-bg-tn);
}


/* ==========================================
   PROGRESS
========================================== */

.lop10-progress-tn {
  height: 8px;

  margin: 20px 0 23px;

  overflow: hidden;

  background: #dbe2ff;

  border-radius: 999px;
}

.lop10-progress-bar-tn {
  width: 0;
  height: 100%;

  background:
    var(--lop10-primary-tn);

  border-radius: inherit;

  transition: width 0.5s ease;
}


/* ==========================================
   RESULT DETAILS
========================================== */

.lop10-result-grid-tn {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 10px;
}

.lop10-result-card-tn {
  padding: 13px;

  background:
    rgba(255, 255, 255, 0.72);

  border:
    1px solid rgba(148, 163, 184, 0.18);

  border-radius: 11px;
}

.lop10-result-card-tn span {
  display: block;

  margin-bottom: 4px;

  color: var(--lop10-text-3-tn);

  font-size: 10px;
}

.lop10-result-card-tn strong {
  color: var(--lop10-text-tn);

  font-size: 15px;
}


/* ==========================================
   BENCHMARK
========================================== */

.lop10-benchmark-result-tn {
  display: none;

  margin-top: 16px;
  padding: 13px 14px;

  border-radius: 11px;

  font-size: 13px;
  font-weight: 650;
}

.lop10-benchmark-result-tn.show-tn {
  display: block;
}

.lop10-benchmark-result-tn.pass-tn {
  color: #047857;
  background: var(--lop10-success-bg-tn);

  border: 1px solid #a7f3d0;
}

.lop10-benchmark-result-tn.fail-tn {
  color: #b91c1c;
  background: var(--lop10-danger-bg-tn);

  border: 1px solid #fecaca;
}


/* ==========================================
   FORMULA
========================================== */

.lop10-formula-tn {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  margin-top: 21px;
  padding: 16px;

  color: var(--lop10-text-3-tn);
  background: #fafafa;

  border: 1px dashed #cbd5e1;
  border-radius: 12px;

  font-size: 12px;
}

.lop10-info-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;
}

.lop10-formula-tn strong {
  display: block;

  margin-bottom: 6px;

  color: #334155;
}

.lop10-formula-tn p {
  margin: 3px 0;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {

  #lop10-calculator-tn {
    margin: 15px auto;
  }

  .lop10-calculator-tn {
    border-radius: 18px;
  }

  .lop10-header-tn {
    padding: 30px 22px;
  }

  .lop10-body-tn {
    padding: 5px 22px 28px;
  }

  .lop10-result-grid-tn {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 620px) {

  .lop10-subject-tn,
  .lop10-subject-optional-tn.active-tn {
    align-items: flex-start;
    flex-direction: column;
  }

  .lop10-subject-inputs-tn {
    width: 100%;
  }

  .lop10-small-field-tn:first-child {
    flex: 1;
  }

  .lop10-small-field-tn
  .lop10-input-tn {
    width: 100%;
  }

  .lop10-select-tn {
    width: 82px;
  }

  .lop10-grid-2-tn {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 480px) {

  .lop10-actions-tn {
    flex-direction: column;
  }

  .lop10-secondary-btn-tn {
    width: 100%;
  }

  .lop10-result-tn {
    padding: 20px 16px;
  }

  .lop10-result-main-tn {
    flex-direction: column;
  }

  .lop10-final-score-tn {
    font-size: 43px;
  }

}


@media (max-width: 360px) {

  .lop10-result-grid-tn {
    grid-template-columns: 1fr;
  }

}
