.registration-title {
  padding: 72px 0;
}

.registration-lead {
  max-width: 660px;
  margin: 0 auto;
  font-size: 18px;
}

.registration-deadline {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(8, 27, 57, 0.48);
}

.registration-deadline p {
  margin: 0;
}

.registration-deadline i {
  margin-right: 6px;
  color: #fff;
}

.registration-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 8px 12px;
  min-width: 310px;
}

.registration-countdown span,
.registration-countdown small {
  text-align: center;
}

.registration-countdown span {
  grid-row: 1;
  font-family: "Exo", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.registration-countdown small {
  grid-row: 2;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  text-transform: uppercase;
}

.registration-closed {
  font-weight: 700;
}

.registration-section {
  padding: 72px 0 100px;
  background: #f4f7f9;
}

.registration-container {
  max-width: 1120px;
}

.registration-lookup {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(480px, 1.5fr);
  gap: 20px 32px;
  align-items: end;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-left: 4px solid #198754;
  background: #fff;
  box-shadow: 0 8px 30px rgba(34, 58, 102, 0.08);
}

.registration-lookup h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.registration-lookup p,
.registration-lookup .form-group {
  margin-bottom: 0;
}

.registration-lookup-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.registration-lookup-form label {
  color: #223a66;
  font-weight: 600;
}

.registration-lookup-form .form-control {
  height: 48px;
  border: 1px solid #d7dee5;
  border-radius: 3px;
}

.registration-lookup-form .btn {
  min-height: 48px;
  white-space: nowrap;
}

.registration-lookup-error {
  grid-column: 1 / -1;
  color: #a12727;
  font-weight: 600;
}

.form-section {
  padding: 34px;
  margin-bottom: 28px;
  background: #fff;
  border-top: 4px solid #223a66;
  box-shadow: 0 8px 30px rgba(34, 58, 102, 0.08);
}

.form-section-heading,
.players-heading-row,
.player-entry-header,
.registration-submit,
.registration-message {
  display: flex;
  align-items: flex-start;
}

.form-section-heading {
  gap: 18px;
  margin-bottom: 26px;
}

.form-section-heading h2,
.registration-message h2 {
  margin: 0 0 5px;
  font-size: 25px;
}

.form-section-heading p,
.registration-message p {
  margin: 0;
  line-height: 1.6;
}

.section-number {
  flex: 0 0 auto;
  color: #e12454;
  font-family: "Exo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 30px;
}

.registration-form label,
.registration-form legend {
  color: #223a66;
  font-weight: 600;
}

.registration-form .form-control {
  height: 48px;
  border: 1px solid #d7dee5;
  border-radius: 3px;
  color: #222;
}

.registration-form .form-control.needs-completion {
  border-color: #c9234f;
  box-shadow: 0 0 0 3px rgba(201, 35, 79, 0.12);
}

.birth-date-hint {
  display: block;
  margin-top: 7px;
  color: #9c2630;
  font-weight: 600;
}

.players-heading-row {
  justify-content: space-between;
  gap: 20px;
}

.add-player {
  flex: 0 0 auto;
  padding: 0.65rem 1.25rem;
}

.add-player-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}

.add-player:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.registration-step-lock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  margin-bottom: 28px;
  border: 1px solid #dce3e9;
  background: #fff;
  color: #4b6177;
}

.registration-step-lock i {
  color: #223a66;
  font-size: 20px;
}

.player-entry {
  padding: 18px 18px 4px;
  margin-top: 14px;
  border: 1px solid #dce3e9;
  border-left: 4px solid #e12454;
  background: #fbfcfd;
}

.player-entry-header {
  justify-content: space-between;
  margin-bottom: 10px;
}

.player-entry-header h3 {
  margin: 0;
  font-size: 20px;
}

.player-search-wrap {
  margin-bottom: 12px;
}

.player-search-wrap small {
  display: block;
  margin-top: 5px;
  color: #718397;
  font-size: 12px;
  line-height: 1.35;
}

.player-search-control {
  position: relative;
}

.player-search-control > i {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 15px;
  color: #718397;
}

.registration-form .player-search,
.registration-form .partner-search {
  padding-left: 42px;
}

.player-entry .form-group {
  margin-bottom: 12px;
}

.player-entry .form-control {
  height: 42px;
}

.player-entry [data-field="category"] {
  padding-right: 20px;
  padding-left: 8px;
  font-size: 13px;
}

.player-entry .player-search-control > i {
  top: 12px;
}

.player-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  display: none;
  max-height: 310px;
  overflow-y: auto;
  border: 1px solid #cfd8e0;
  background: #fff;
  box-shadow: 0 12px 26px rgba(34, 58, 102, 0.15);
}

.player-suggestions.is-open {
  display: block;
}

.player-suggestion {
  display: flex;
  width: 100%;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid #e7ebef;
  background: #fff;
  color: #223a66;
  text-align: left;
  cursor: pointer;
  flex-direction: column;
}

.player-suggestion:hover,
.player-suggestion:focus {
  outline: 0;
  background: #f1f5f8;
}

.player-suggestion span {
  color: #718397;
  font-size: 13px;
}

.player-suggestion-empty {
  padding: 15px;
  color: #718397;
}

.remove-player {
  width: 38px;
  height: 38px;
  border: 1px solid #d7dee5;
  border-radius: 3px;
  background: #fff;
  color: #b51c45;
  cursor: pointer;
}

.remove-player:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.discipline-group {
  border: 0;
}

.discipline-group legend {
  width: auto;
  margin: 0 0 8px;
  font-size: 16px;
}

.discipline-group label {
  display: inline-flex;
  align-items: center;
  margin: 0 12px 6px 0;
  color: #4b6177;
  font-weight: 400;
}

.discipline-group input,
.consent-control input {
  margin-right: 6px;
}

.partner-entry {
  padding: 16px;
  margin: 4px 0 12px;
  border: 1px solid #d7dee5;
  background: #fff;
}

.partner-entry-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.partner-entry-heading h4 {
  margin: 2px 0 0;
  font-size: 17px;
}

.partner-kicker {
  color: #e12454;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.partner-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.partner-modes label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: #4b6177;
  font-weight: 400;
}

.partner-modes input {
  margin-right: 6px;
}

.partner-free-note {
  margin: 0;
  color: #4b6177;
}

.inbound-partnership-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 13px;
  margin-bottom: 12px;
  border-left: 3px solid #e12454;
  background: #fff1f4;
  color: #6f263a;
}

.inbound-partnership-notice p {
  margin: 0;
}

.inbound-partnership-notice button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #b4234d;
  background: #fff;
  color: #9b1c40;
  cursor: pointer;
  font-weight: 700;
}

.inbound-partnership-notice[hidden] {
  display: none;
}

.registration-submit {
  justify-content: space-between;
  gap: 24px;
  padding: 25px 30px;
  background: #fff;
  border: 1px solid #dce3e9;
}

.registration-submit .btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
}

.registration-delete-button {
  background: transparent;
  border: 1px solid #b42318;
  color: #b42318;
}

.registration-delete-button:hover,
.registration-delete-button:focus {
  background: #b42318;
  color: #fff;
}

.consent-control {
  display: flex;
  align-items: flex-start;
  max-width: 650px;
  margin: 5px 0 0;
  color: #4b6177 !important;
  font-weight: 400 !important;
}

.registration-summary-dialog {
  width: min(760px, calc(100% - 32px));
  height: min(760px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-top: 4px solid #e12454;
  background: #fff;
  color: #3d5063;
  box-shadow: 0 18px 60px rgba(34, 58, 102, 0.24);
}

.registration-summary-dialog[open] {
  display: flex;
  flex-direction: column;
}

.registration-summary-dialog::backdrop {
  background: rgba(20, 35, 58, 0.62);
}

.registration-summary-header,
.registration-summary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
}

.registration-summary-header {
  border-bottom: 1px solid #dce3e9;
}

.registration-summary-header h2 {
  margin: 2px 0 0;
  font-size: 25px;
}

.registration-summary-close {
  width: 38px;
  height: 38px;
  border: 1px solid #d7dee5;
  background: #fff;
  color: #223a66;
  cursor: pointer;
}

.registration-summary-content {
  min-height: 0;
  padding: 4px 24px;
  overflow-y: auto;
  flex: 1;
}

.registration-summary-section {
  padding: 20px 0;
  border-bottom: 1px solid #e3e8ed;
}

.registration-summary-section:last-child {
  border-bottom: 0;
}

.registration-summary-section h3 {
  margin: 0 0 12px;
  color: #223a66;
  font-size: 18px;
}

.registration-summary-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
}

.registration-summary-details div {
  min-width: 0;
}

.registration-summary-details dt {
  color: #718397;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.registration-summary-details dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}

.registration-summary-actions {
  border-top: 1px solid #dce3e9;
  flex-shrink: 0;
}

.consent-control input {
  margin-top: 6px;
}

.registration-message {
  gap: 18px;
  padding: 24px 28px;
  margin-bottom: 28px;
  background: #fff;
  border-left: 5px solid;
  box-shadow: 0 8px 30px rgba(34, 58, 102, 0.08);
}

.registration-message > i {
  font-size: 30px;
}

.registration-success {
  border-color: #198754;
}

.registration-success > i {
  color: #198754;
}

.registration-error {
  border-color: #c9234f;
}

.registration-error > i {
  color: #c9234f;
}

.registration-error ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.registration-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .registration-lookup {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .player-entry > .player-entry-header + .row {
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    column-gap: 12px;
    margin-right: 0;
    margin-left: 0;
  }

  .player-entry > .player-entry-header + .row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .player-entry > .player-entry-header + .row > :nth-child(1) { grid-column: span 12; }
  .player-entry > .player-entry-header + .row > :nth-child(2),
  .player-entry > .player-entry-header + .row > :nth-child(3) { grid-column: span 6; }
  .player-entry > .player-entry-header + .row > :nth-child(4) { grid-column: span 5; }
  .player-entry > .player-entry-header + .row > :nth-child(5) { grid-column: span 4; }
  .player-entry > .player-entry-header + .row > :nth-child(6) { grid-column: span 5; }
  .player-entry > .player-entry-header + .row > :nth-child(7) { grid-column: span 4; }
  .player-entry > .player-entry-header + .row > :nth-child(8) { grid-column: span 6; }
  .player-entry > .player-entry-header + .row > :nth-child(9) { grid-column: 1 / -1; }

  .player-entry > .player-entry-header + .row label,
  .player-entry > .player-entry-header + .row legend {
    font-size: 14px;
    white-space: nowrap;
  }

  .player-entry > .player-entry-header + .row .discipline-group label {
    margin-right: 10px;
  }

  .discipline-rankings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 220px));
    gap: 12px;
    margin-right: 0;
    margin-left: 0;
  }

  .discipline-rankings > [class*="col-"] {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  .partner-details {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 2fr);
    gap: 16px;
    align-items: end;
  }

  .partner-details > .form-group {
    margin-bottom: 12px;
  }

  .partner-search-wrap[hidden] + .row {
    grid-column: 1 / -1;
  }

  .partner-details > .row {
    margin-right: -6px;
    margin-left: -6px;
  }

  .partner-details > .row > [class*="col-"] {
    padding-right: 6px;
    padding-left: 6px;
  }
}

@media (max-width: 767px) {
  .registration-title {
    padding: 52px 0;
  }

  .registration-deadline {
    width: 100%;
    max-width: 350px;
    padding: 14px 12px;
  }

  .registration-countdown {
    width: 100%;
    min-width: 0;
    gap: 6px;
  }

  .registration-section {
    padding: 45px 0 70px;
  }

  .form-section {
    padding: 24px 18px;
  }

  .registration-lookup,
  .registration-lookup-form {
    grid-template-columns: 1fr;
  }

  .registration-lookup {
    padding: 22px 18px;
  }

  .registration-lookup-form .btn {
    width: 100%;
  }

  .backtop {
    display: none !important;
  }

  .players-heading-row,
  .registration-submit,
  .partner-entry-heading,
  .inbound-partnership-notice {
    flex-direction: column;
  }

  .add-player,
  .registration-submit .btn {
    width: 100%;
  }

  .registration-summary-actions {
    padding: 16px;
    flex-direction: column;
  }

  .registration-summary-actions .btn {
    width: 100%;
  }

  .add-player-row {
    width: 100%;
  }

  .player-entry {
    padding: 20px 16px 5px;
  }
}

.admin-login {
  max-width: 460px;
  padding: 34px;
  margin: 0 auto;
  background: #fff;
  border-top: 4px solid #223a66;
  box-shadow: 0 8px 30px rgba(34, 58, 102, 0.08);
}

.admin-login h2,
.admin-toolbar h2 {
  margin: 0 0 8px;
  font-size: 25px;
}

.admin-login-error {
  padding: 10px 14px;
  margin-bottom: 18px;
  border-left: 4px solid #c9234f;
  background: #fff1f4;
  color: #8e1737;
}

.admin-toolbar,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-toolbar {
  margin-bottom: 25px;
}

.admin-toolbar p {
  margin: 0;
}

.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  box-shadow: 0 8px 30px rgba(34, 58, 102, 0.08);
}

.admin-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  color: #3d5063;
}

.admin-table th,
.admin-table td {
  padding: 17px 20px;
  border-bottom: 1px solid #e3e8ed;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #223a66;
  color: #fff;
  font-family: "Exo", sans-serif;
}

.admin-player + .admin-player {
  padding-top: 7px;
  margin-top: 7px;
  border-top: 1px solid #e7ebef;
}

.admin-player span,
.admin-table small {
  color: #718397;
}

.admin-empty {
  padding: 35px;
  background: #fff;
  border-left: 4px solid #223a66;
}

.registry-admin {
  padding: 28px;
  margin-top: 30px;
  background: #fff;
  border-top: 4px solid #223a66;
  box-shadow: 0 8px 30px rgba(34, 58, 102, 0.08);
}

.registry-admin-heading,
.registry-sync-form,
.registry-sources,
.registry-sources > div {
  display: flex;
  align-items: center;
}

.registry-admin-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.registry-admin-heading h2 {
  margin: 0 0 5px;
  font-size: 25px;
}

.registry-admin-heading p {
  margin: 0;
}

.registry-admin-heading > strong {
  color: #e12454;
}

.registry-sync-form {
  gap: 18px;
  padding: 20px;
  background: #f4f7f9;
}

.registry-sync-form .form-group {
  flex: 1 1 320px;
  margin: 0;
}

.registry-sync-form .form-control {
  max-width: 180px;
}

.registry-sync-actions {
  display: flex;
  gap: 10px;
}

.registry-sync-actions .btn {
  padding-right: 1rem;
  padding-left: 1rem;
}

.registry-sources {
  gap: 35px;
  margin-top: 22px;
}

.registry-sources > div {
  gap: 10px;
}

.registry-sources span {
  color: #718397;
}

@media (max-width: 767px) {
  .admin-toolbar,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions .btn {
    width: 100%;
  }

  .registry-admin-heading,
  .registry-sync-form,
  .registry-sources,
  .registry-sources > div {
    align-items: stretch;
    flex-direction: column;
  }

  .registry-sync-form .form-group {
    flex-basis: auto;
  }

  .registry-sync-form .form-control {
    max-width: none;
  }

  .registry-sync-actions {
    flex-direction: column;
  }
}

.partnership-response {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.partnership-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.player-suggestion.is-registered {
  cursor: not-allowed;
  opacity: 0.62;
}

.player-suggestion.is-registered:hover,
.player-suggestion.is-registered:focus {
  background: #fff;
}

.player-suggestion.is-registered span {
  color: #9c2630;
  font-weight: 600;
}

.pairing-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-login-form,
.account-claim-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.account-login-form label,
.account-claim-form label {
  margin: 0;
}

.account-header,
.account-registration-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.account-header h2 {
  display: inline-block;
  margin: 0 0 5px 14px;
}

.account-header p {
  margin: 0 0 0 52px;
}

.account-header-actions,
.pairing-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-header-actions form {
  margin: 0;
}

.account-registration-list {
  display: grid;
  gap: 12px;
}

.account-registration-item {
  padding: 17px 18px;
  border: 1px solid #dce3e9;
  background: #f8fafb;
}

.account-registration-item span,
.account-registration-item strong,
.account-registration-item small {
  display: block;
}

.account-registration-item span,
.account-registration-item small {
  color: #687c8e;
}

@media (max-width: 767px) {
  .account-login-form,
  .account-claim-form {
    grid-template-columns: 1fr;
  }

  .account-header,
  .account-registration-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-header-actions,
  .pairing-header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
}

.account-registration-status {
  border: 1px solid currentColor;
  display: inline-block;
  margin-top: 5px;
  padding: 3px 6px;
  width: fit-content;
}

.account-registration-status-approved { color: #16724d; }
.account-registration-status-pending { color: #9b610b; }
.account-registration-status-rejected,
.account-registration-status-spam { color: #b22146; }