.thsi-apply-hero,
.thsi-portal {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17312b;
}
.thsi-apply-hero {
  background: linear-gradient(135deg, #0f4f43 0%, #126653 54%, #d6a735 100%);
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 48px 20px;
}
.thsi-apply-hero__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  color: #fff;
}
.thsi-apply-hero__inner p {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.thsi-apply-hero__inner h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
  margin: 10px 0 28px;
  color: #fff;
}
.thsi-apply-button,
.thsi-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: #f7c948;
  color: #102822;
  font-weight: 800;
  padding: 0 24px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.thsi-portal {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
}
.thsi-portal__header {
  background: #0f4f43;
  color: #fff;
  padding: 36px;
  border-radius: 8px;
}
.thsi-portal__header span {
  color: #f7c948;
  font-weight: 800;
  text-transform: uppercase;
}
.thsi-portal__header h1 {
  color: #fff;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.12;
  margin: 10px 0 0;
}
.thsi-alert {
  margin: 20px 0;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.thsi-receipt-link {
  display: inline-flex;
  margin-left: 10px;
  font-weight: 800;
  color: #0f4f43;
}
.thsi-alert--success { background: #eef9f1; border-color: #82c991; }
.thsi-alert--error { background: #fff1f0; border-color: #ffb4ab; }
.thsi-panel {
  border: 1px solid #dce5e1;
  border-radius: 8px;
  padding: 24px;
  margin: 22px 0;
  background: #fff;
}
.thsi-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
  color: #17312b;
}
.thsi-programmes {
  columns: 2;
  margin: 0;
  padding-left: 20px;
}
.thsi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.thsi-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.thsi-grid label,
.thsi-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}
.thsi-grid input,
.thsi-grid select,
.thsi-grid textarea,
.thsi-subject-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9c9c3;
  border-radius: 6px;
  padding: 9px 11px;
  font: inherit;
}
.thsi-span { grid-column: 1 / -1; }
.thsi-options {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.thsi-education-extra {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.thsi-education-extra[hidden] {
  display: none;
}
.thsi-education-extra h3 {
  margin: 8px 0 0;
  font-size: 18px;
}
.thsi-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}
.thsi-subject-row {
  display: grid;
  grid-template-columns: 1fr 160px 44px;
  gap: 10px;
  margin-bottom: 10px;
}
.thsi-icon-button {
  border: 0;
  border-radius: 6px;
  background: #0f4f43;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.thsi-fees {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.thsi-fees div {
  border: 1px solid #dce5e1;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 6px;
}
.thsi-total {
  background: #f8fbfa;
}
.thsi-payment-methods {
  border-left: 4px solid #f7c948;
  padding-left: 14px;
  margin: 18px 0;
}
.thsi-submit {
  width: 100%;
  cursor: pointer;
  font-size: 17px;
}
.thsi-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.thsi-dashboard-summary div,
.thsi-download-card {
  border: 1px solid #dce5e1;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfa;
}
.thsi-dashboard-summary span {
  display: block;
  color: #51655f;
}
.thsi-dashboard-summary strong {
  display: block;
  margin-top: 6px;
}
.thsi-downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.thsi-download-card {
  color: #0f4f43;
  font-weight: 800;
  text-decoration: none;
}
.thsi-choice-list ol {
  margin: 0;
  padding-left: 22px;
}
.thsi-choice-list li {
  margin: 8px 0;
  font-weight: 700;
}
.thsi-secondary-button {
  min-height: 42px;
  border: 1px solid #b9c9c3;
  border-radius: 6px;
  background: #fff;
  color: #17312b;
  padding: 0 16px;
  font-weight: 700;
}
@media (max-width: 760px) {
  .thsi-grid,
  .thsi-auth-grid,
  .thsi-dashboard-summary,
  .thsi-downloads,
  .thsi-fees,
  .thsi-subject-row {
    grid-template-columns: 1fr;
  }
  .thsi-programmes {
    columns: 1;
  }
  .thsi-portal__header,
  .thsi-panel {
    padding: 20px;
  }
}
