.trs-registration-app {
  --trs-register-navy: #071b35;
  --trs-register-blue: #114f9d;
  --trs-register-gold: #b9954f;
  --trs-register-red: #b4212d;
  --trs-register-ink: #172133;
  --trs-register-muted: #5d6878;
  --trs-register-line: #dbe2ea;
  background: #ffffff;
  border-top: 5px solid var(--trs-register-gold);
  box-shadow: 0 18px 55px rgba(7, 27, 53, 0.12);
  color: var(--trs-register-ink);
  margin: 0 auto;
  max-width: 1120px;
  padding: 0;
}

.trs-registration-app *,
.trs-registration-app *::before,
.trs-registration-app *::after {
  box-sizing: border-box;
}

.trs-registration-progress {
  background: var(--trs-register-navy);
  color: #ffffff;
  padding: 24px 32px 28px;
}

.trs-registration-progress > p {
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.trs-registration-progress ol {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.trs-registration-progress li {
  color: rgba(255, 255, 255, 0.68);
  min-width: 0;
  position: relative;
}

.trs-registration-progress li::after {
  background: rgba(255, 255, 255, 0.25);
  content: "";
  height: 2px;
  left: 38px;
  position: absolute;
  right: -7px;
  top: 15px;
}

.trs-registration-progress li:last-child::after {
  display: none;
}

.trs-registration-progress li > span {
  align-items: center;
  background: #26415f;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: flex;
  font-size: 0.75rem;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
  width: 32px;
  z-index: 1;
}

.trs-registration-progress li strong {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.35;
  max-width: 115px;
}

.trs-registration-progress li.is-current,
.trs-registration-progress li.is-complete {
  color: #ffffff;
}

.trs-registration-progress li.is-current > span {
  background: var(--trs-register-red);
  border-color: #ffffff;
}

.trs-registration-progress li.is-complete > span,
.trs-registration-progress li.is-complete::after {
  background: var(--trs-register-gold);
  border-color: var(--trs-register-gold);
  color: var(--trs-register-navy);
}

.trs-registration-form {
  padding: 38px 40px 42px;
}

.trs-registration-step[hidden] {
  display: none !important;
}

.trs-registration-step > header {
  align-items: center;
  border-bottom: 1px solid var(--trs-register-line);
  display: flex;
  gap: 18px;
  margin-bottom: 30px;
  padding-bottom: 22px;
}

.trs-registration-step > header > span {
  color: var(--trs-register-gold);
  font-size: 2.15rem;
  font-weight: 850;
  line-height: 1;
}

.trs-registration-step > header p {
  color: var(--trs-register-red);
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.trs-registration-step h2 {
  color: var(--trs-register-navy);
  font-size: 1.65rem;
  font-weight: 820;
  line-height: 1.2;
  margin: 0;
}

.trs-registration-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trs-registration-grid--stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trs-registration-field {
  min-width: 0;
}

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

.trs-registration-field label,
.trs-role-selector legend {
  color: var(--trs-register-navy);
  display: block;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 760;
  margin: 0 0 8px;
}

.trs-registration-field label em,
.trs-role-selector legend em {
  color: var(--trs-register-red);
  font-style: normal;
}

.trs-registration-field input:not([type="checkbox"]):not([type="radio"]),
.trs-registration-field select,
.trs-registration-field textarea {
  appearance: none;
  background: #f8fafc;
  border: 1px solid #c7d0dc;
  border-radius: 4px;
  color: var(--trs-register-ink);
  font: inherit;
  min-height: 50px;
  padding: 12px 14px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.trs-registration-field textarea {
  min-height: 126px;
  resize: vertical;
}

.trs-registration-field input[readonly] {
  background: #edf1f5;
  color: #49586b;
  cursor: not-allowed;
}

.trs-registration-field input[type="file"] {
  padding: 9px;
}

.trs-registration-field input:focus,
.trs-registration-field select:focus,
.trs-registration-field textarea:focus,
.trs-signature-wrap canvas:focus {
  background: #ffffff;
  border-color: var(--trs-register-blue);
  box-shadow: 0 0 0 3px rgba(17, 79, 157, 0.14);
  outline: 0;
}

.trs-registration-field.has-error input:not([type="checkbox"]):not([type="radio"]),
.trs-registration-field.has-error select,
.trs-registration-field.has-error textarea,
.trs-signature-field.has-error canvas {
  border-color: var(--trs-register-red);
}

.trs-registration-field small,
.trs-field-help {
  color: var(--trs-register-muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 7px 0 0;
}

.trs-inline-error {
  color: #961a25;
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
  min-height: 0;
  margin-top: 6px;
}

.trs-inline-error:empty {
  display: none;
}

.trs-role-selector {
  border: 0;
  margin: 0 0 30px;
  padding: 0;
}

.trs-role-selector > div {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trs-role-selector label {
  cursor: pointer;
  margin: 0;
  min-width: 0;
  position: relative;
}

.trs-role-selector input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.trs-role-selector label span {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #c7d0dc;
  border-radius: 5px;
  color: var(--trs-register-navy);
  display: flex;
  font-size: 0.9rem;
  font-weight: 760;
  justify-content: center;
  min-height: 54px;
  padding: 10px;
  text-align: center;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.trs-role-selector input:checked + span {
  background: var(--trs-register-navy);
  border-color: var(--trs-register-navy);
  color: #ffffff;
}

.trs-role-selector input:focus-visible + span {
  border-color: var(--trs-register-blue);
  box-shadow: 0 0 0 3px rgba(17, 79, 157, 0.14);
}

.trs-role-selector.has-error label span {
  border-color: var(--trs-register-red);
}

.trs-statistics-section {
  border-top: 1px solid var(--trs-register-line);
  margin-top: 30px;
  padding-top: 26px;
}

.trs-statistics-section:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.trs-statistics-section h3 {
  color: var(--trs-register-navy);
  font-size: 1rem;
  margin: 0 0 18px;
}

.trs-player-declaration {
  background: #f5f7fa;
  border-left: 4px solid var(--trs-register-gold);
  color: var(--trs-register-navy);
  font-size: 1rem;
  font-style: normal;
  line-height: 1.7;
  margin: 0 0 28px;
  padding: 20px 22px;
}

.trs-signature-wrap {
  background-color: #ffffff;
  border: 1px solid #c7d0dc;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.trs-signature-wrap canvas {
  cursor: crosshair;
  display: block;
  height: 210px;
  max-width: 100%;
  touch-action: none;
  width: 100%;
}

.trs-signature-wrap > span {
  bottom: 10px;
  color: #778397;
  font-size: 0.72rem;
  pointer-events: none;
  position: absolute;
  right: 12px;
}

.trs-clear-signature {
  background: transparent;
  border: 0;
  color: var(--trs-register-red);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  margin: 8px 0 0;
  padding: 5px 0;
  text-decoration: underline;
}

.trs-declaration-check {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid var(--trs-register-line);
  border-radius: 4px;
  display: grid;
  gap: 0 10px;
  grid-template-columns: 20px 1fr;
  padding: 15px 16px;
}

.trs-declaration-check input {
  height: 18px;
  margin: 2px 0 0;
  width: 18px;
}

.trs-declaration-check label {
  margin: 0;
}

.trs-declaration-check .trs-inline-error {
  grid-column: 2;
}

.trs-registration-number-note {
  background: #fff9ec;
  border-left: 4px solid var(--trs-register-gold);
  color: #4e4228;
  line-height: 1.55;
  margin: 24px 0 0;
  padding: 14px 16px;
}

.trs-registration-actions {
  align-items: center;
  border-top: 1px solid var(--trs-register-line);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 34px;
  padding-top: 24px;
}

.trs-step-button {
  align-items: center;
  border: 1px solid var(--trs-register-navy);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  text-transform: uppercase;
}

.trs-step-button--next,
.trs-step-button--submit {
  background: var(--trs-register-navy);
  color: #ffffff;
}

.trs-step-button--previous {
  background: #ffffff;
  color: var(--trs-register-navy);
  margin-right: auto;
}

.trs-step-button:hover,
.trs-step-button:focus-visible {
  border-color: var(--trs-register-red);
  box-shadow: 0 0 0 3px rgba(180, 33, 45, 0.13);
  outline: 0;
}

.trs-step-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.trs-registration-notice {
  border-left: 4px solid;
  margin: 26px 32px 0;
  padding: 15px 18px;
}

.trs-registration-notice--error {
  background: #fff2f2;
  border-color: var(--trs-register-red);
  color: #7f1821;
}

.trs-registration-success {
  padding: 52px 40px;
  text-align: center;
}

.trs-success-mark {
  align-items: center;
  background: #1f7a48;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.7rem;
  height: 58px;
  justify-content: center;
  margin-bottom: 18px;
  width: 58px;
}

.trs-success-kicker {
  color: var(--trs-register-red);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.trs-registration-success h2 {
  color: var(--trs-register-navy);
  font-size: 2rem;
  margin: 0 0 12px;
}

.trs-registration-number {
  background: var(--trs-register-navy);
  border-bottom: 4px solid var(--trs-register-gold);
  color: #ffffff;
  display: inline-flex;
  flex-direction: column;
  margin: 18px 0;
  min-width: min(100%, 350px);
  padding: 18px 24px;
}

.trs-registration-number span {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.trs-registration-number strong {
  font-size: 1.45rem;
}

.trs-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

.trs-success-actions a {
  background: var(--trs-register-navy);
  border: 1px solid var(--trs-register-navy);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 12px 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.trs-success-actions a.is-secondary {
  background: #ffffff;
  color: var(--trs-register-navy);
}

@media (max-width: 900px) {
  .trs-registration-progress ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 20px;
  }

  .trs-registration-progress li:nth-child(3)::after {
    display: none;
  }

  .trs-registration-grid--stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .trs-registration-progress {
    padding: 20px 18px 22px;
  }

  .trs-registration-progress ol {
    display: flex;
    gap: 8px;
  }

  .trs-registration-progress li {
    flex: 1;
  }

  .trs-registration-progress li::after {
    left: 28px;
    right: -4px;
    top: 12px;
  }

  .trs-registration-progress li:nth-child(3)::after {
    display: block;
  }

  .trs-registration-progress li > span {
    height: 26px;
    margin: 0;
    width: 26px;
  }

  .trs-registration-progress li strong {
    display: none;
  }

  .trs-registration-form {
    padding: 28px 18px 30px;
  }

  .trs-registration-step > header {
    align-items: flex-start;
  }

  .trs-registration-step > header > span {
    font-size: 1.75rem;
  }

  .trs-registration-step h2 {
    font-size: 1.35rem;
  }

  .trs-registration-grid,
  .trs-registration-grid--stats,
  .trs-role-selector > div {
    grid-template-columns: 1fr;
  }

  .trs-role-selector > div {
    gap: 8px;
  }

  .trs-role-selector label span {
    min-height: 48px;
  }

  .trs-signature-wrap canvas {
    height: 180px;
  }

  .trs-registration-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trs-step-button,
  .trs-step-button--previous {
    margin: 0;
    width: 100%;
  }

  .trs-registration-notice {
    margin: 20px 18px 0;
  }

  .trs-registration-success {
    padding: 40px 18px;
  }

  .trs-registration-success h2 {
    font-size: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trs-registration-app * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.trs-registration-app {
  --trs-register-navy: #07182f;
  --trs-register-blue: #1557a4;
  --trs-register-gold: #b89552;
  --trs-register-red: #bd2332;
  --trs-register-ink: #182334;
  --trs-register-muted: #5d6877;
  --trs-register-line: #dce2e7;
  border-radius: 6px;
  border-top-width: 3px;
  box-shadow: 0 20px 50px rgba(7, 24, 47, .13);
  overflow: hidden;
}

.trs-registration-progress {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.trs-registration-field input:not([type="checkbox"]):not([type="radio"]),
.trs-registration-field select,
.trs-registration-field textarea,
.trs-role-selector label span,
.trs-signature-wrap,
.trs-declaration-check {
  border-radius: 4px;
}

.trs-step-button--next,
.trs-step-button--submit {
  background: var(--trs-register-blue);
  border-color: var(--trs-register-blue);
}

.trs-step-button--next:hover,
.trs-step-button--submit:hover {
  background: var(--trs-register-navy);
  border-color: var(--trs-register-navy);
}
