.training-register-page {
  --tr-red: #d3150c;
  --tr-dark: #080b0f;
  --tr-bg: #121414;
  --tr-text: #e2e2e2;
  --tr-variant: #e7bdb6;
  --tr-light: #e1e2ea;
  --tr-light-text: #191c20;
  --tr-muted: #44474d;
  --tr-border: rgba(255, 255, 255, .1);
  overflow: hidden;
  color: var(--tr-text);
  background: var(--tr-dark);
  font-family: "Inter", sans-serif;
}

.training-register-page *,
.training-register-page *::before,
.training-register-page *::after {
  box-sizing: border-box;
}

.tr-shell {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 128px));
  margin-inline: auto;
}

.tr-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(211, 21, 12, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(211, 21, 12, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.tr-scanning-line {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tr-red), transparent);
  opacity: .2;
  animation: trScan 8s linear infinite;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.tr-hero {
  position: relative;
  display: flex;
  min-height: 716px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0;
  text-align: center;
}

.tr-hero-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 800px;
  height: 400px;
  background: rgba(211, 21, 12, .1);
  border-radius: 999px;
  filter: blur(120px);
  transform: translateX(-50%);
}

.tr-hero-badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 4px 16px;
  color: var(--tr-red);
  background: rgba(211, 21, 12, .1);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tr-hero h1 {
  max-width: 900px;
  margin: 0 auto 32px;
  color: var(--tr-text);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 80px;
  letter-spacing: -.02em;
}

.tr-hero h1 span {
  color: var(--tr-red);
}

.tr-hero p {
  max-width: 672px;
  margin: 0 auto 48px;
  color: var(--tr-variant);
  font-size: 18px;
  line-height: 28px;
}

.tr-hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.tr-hero-pills div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--tr-border);
  backdrop-filter: blur(12px);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tr-hero-pills .material-symbols-outlined,
.tr-course-chip .material-symbols-outlined {
  color: var(--tr-red);
  font-variation-settings: "FILL" 1;
}

.tr-enrollment,
.tr-prerequisites {
  padding: 120px 20px;
  color: var(--tr-light-text);
  background: var(--tr-light);
}

.tr-form-card {
  position: relative;
  width: min(896px, 100%);
  margin-inline: auto;
  overflow: hidden;
  padding: clamp(40px, 7vw, 80px);
  background: #fff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, .18);
}

.tr-card-glow {
  position: absolute;
  top: -64px;
  right: -64px;
  width: 128px;
  height: 128px;
  background: rgba(211, 21, 12, .05);
  border-radius: 999px;
}

.tr-form-header {
  position: relative;
  margin-bottom: 64px;
}

.tr-form-header h2,
.tr-syllabus h2,
.tr-prerequisites h2 {
  margin: 0 0 16px;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 56px;
}

.tr-form-header p,
.tr-prerequisites > .tr-shell > div > p {
  margin: 0;
  color: var(--tr-muted);
  font-size: 18px;
  line-height: 28px;
}

.tr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
}

.tr-field-full {
  grid-column: 1 / -1;
}

.tr-label {
  display: block;
  margin-bottom: 8px;
  color: var(--tr-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.reg-input,
.reg-textarea,
.custom-select-trigger {
  width: 100%;
  padding: 12px 0;
  color: var(--tr-light-text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #44474c;
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  outline: none;
  transition: border-color .2s ease;
}

.reg-input:focus,
.reg-textarea:focus,
.custom-select-wrapper.open .custom-select-trigger {
  border-bottom-color: var(--tr-red);
}

.reg-input::placeholder,
.reg-textarea::placeholder {
  color: rgba(68, 71, 76, .5);
}

.reg-textarea {
  min-height: 92px;
  resize: vertical;
}

.custom-select-wrapper {
  position: relative;
}

.reg-hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.custom-select-trigger::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--tr-muted);
  border-bottom: 2px solid var(--tr-muted);
  content: "";
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.custom-select-wrapper.open .custom-select-trigger::after {
  transform: rotate(-135deg);
}

.custom-options {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(25, 28, 32, .14);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  color: var(--tr-light-text);
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(25, 28, 32, .08);
  cursor: pointer;
  text-align: left;
  transition: color .2s ease, background .2s ease;
}

.custom-option:hover,
.custom-option.selected {
  color: #fff;
  background: var(--tr-red);
}

.tr-captcha {
  margin-top: 32px;
}

.tr-submit {
  margin-top: 40px;
  padding: 20px 48px;
  color: #fff;
  background: var(--tr-red);
  border: 0;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.tr-submit:hover {
  filter: brightness(1.1);
  box-shadow: 0 14px 26px rgba(211, 21, 12, .22);
  transform: translateY(-1px);
}

.tr-submit:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.field-error {
  display: none;
  margin-top: 8px;
  color: var(--tr-red);
  font-size: 12px;
  font-weight: 600;
}

.tr-success {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 0;
  text-align: center;
}

.tr-success-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 24px;
  color: #16a34a;
  background: rgba(22, 163, 74, .1);
  border: 1px solid rgba(22, 163, 74, .25);
  border-radius: 999px;
}

.tr-success-icon span {
  font-size: 42px;
}

.tr-success h3 {
  margin: 0 0 12px;
  color: var(--tr-light-text);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 32px;
  line-height: 40px;
}

.tr-success p {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--tr-muted);
  line-height: 1.6;
}

.tr-success button {
  padding: 14px 24px;
  color: #fff;
  background: var(--tr-dark);
  border: 0;
  cursor: pointer;
}

.tr-syllabus {
  position: relative;
  overflow: hidden;
  padding: 120px 20px;
  background: var(--tr-dark);
}

.tr-syllabus .tr-grid-overlay {
  opacity: .18;
}

.tr-syllabus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
  gap: 80px;
  align-items: center;
}

.tr-syllabus h2 {
  margin-bottom: 48px;
  color: var(--tr-text);
}

.tr-syllabus-list {
  display: grid;
  gap: 24px;
}

.tr-syllabus-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--tr-border);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.tr-syllabus-item:hover {
  border-color: var(--tr-red);
  box-shadow: 0 0 10px 2px rgba(211, 21, 12, .24);
}

.tr-syllabus-item > span {
  color: rgba(211, 21, 12, .42);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 16px;
}

.tr-syllabus-item h3 {
  margin: 0 0 8px;
  color: var(--tr-text);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.tr-syllabus-item p {
  margin: 0;
  color: var(--tr-variant);
  line-height: 1.55;
}

.tr-course-panel {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 48px;
  background: #1e2020;
  border: 1px solid var(--tr-border);
}

.tr-course-panel .tr-grid-overlay {
  opacity: .2;
}

.tr-course-panel-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.tr-course-panel-content > div > span {
  display: block;
  margin-bottom: 16px;
  color: var(--tr-red);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tr-course-chip {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  color: var(--tr-text);
  background: rgba(211, 21, 12, .1);
  border: 1px solid rgba(211, 21, 12, .3);
}

.tr-course-chip-muted {
  background: rgba(255, 255, 255, .05);
  border-color: var(--tr-border);
}

.tr-course-chip-muted .material-symbols-outlined {
  color: var(--tr-variant);
  font-variation-settings: "FILL" 0;
}

.tr-course-chip strong {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
}

.tr-course-panel-content > p {
  max-width: 360px;
  margin: 0;
  color: var(--tr-variant);
  line-height: 1.65;
}

.tr-prereq-grid {
  display: grid;
  grid-template-columns: minmax(260px, .45fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.tr-prereq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.tr-prereq-item {
  display: flex;
  gap: 16px;
}

.tr-prereq-item > div {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(68, 71, 76, .2);
}

.tr-prereq-item .material-symbols-outlined {
  color: var(--tr-red);
}

.tr-prereq-item h3 {
  margin: 0 0 8px;
  color: var(--tr-light-text);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 24px;
  line-height: 32px;
}

.tr-prereq-item p {
  margin: 0;
  color: var(--tr-muted);
  font-size: 14px;
  line-height: 1.55;
}

@keyframes trScan {
  from { top: 0; }
  to { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tr-scanning-line {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .tr-shell {
    width: min(100% - 40px, 1280px);
  }

  .tr-syllabus-grid,
  .tr-prereq-grid {
    grid-template-columns: 1fr;
  }

  .tr-course-panel {
    aspect-ratio: auto;
  }
}

@media (max-width: 720px) {
  .tr-hero {
    min-height: 620px;
    padding: 88px 0;
  }

  .tr-hero h1 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -.01em;
  }

  .tr-enrollment,
  .tr-syllabus,
  .tr-prerequisites {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .tr-form-grid,
  .tr-prereq-list {
    grid-template-columns: 1fr;
  }

  .tr-form-header h2,
  .tr-syllabus h2,
  .tr-prerequisites h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .tr-submit {
    width: 100%;
  }

  .tr-course-chip strong {
    font-size: 24px;
    line-height: 32px;
  }
}
