/* TennisFinalsPro - Registration + Profile Edit */

.register-pro-body,
.profile-edit-body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .12), transparent 32rem),
    linear-gradient(180deg, #f6f9ff, #f8fafc);
}

.register-pro,
.profile-edit,
.register-pro *,
.profile-edit * {
  box-sizing: border-box;
}

.register-pro,
.profile-edit {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 24px 16px 72px;
}

.register-pro__hero,
.profile-edit__hero {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 10%, rgba(14, 165, 233, .28), transparent 24rem),
    linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
  box-shadow: 0 22px 64px rgba(15, 23, 42, .16);
}

.register-pro__hero span,
.register-pro__head span,
.profile-edit__kicker {
  display: inline-flex;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.register-pro__hero h1,
.profile-edit__hero h1 {
  max-width: 760px;
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(34px, 6vw, 58px);
  line-height: .96;
  letter-spacing: -.065em;
}

.register-pro__hero p,
.profile-edit__hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 15px;
  line-height: 1.65;
}

.register-pro__card,
.profile-edit__card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e5eaf1;
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 54px rgba(15, 23, 42, .08);
}

.register-pro__head {
  margin-bottom: 16px;
}

.register-pro__head span {
  color: #64748b;
}

.register-pro__head h2,
.register-pro__section h3 {
  margin: 4px 0 0;
  color: #0f172a;
  letter-spacing: -.04em;
}

.register-pro__head h2 {
  font-size: 30px;
}

.register-pro__section {
  padding: 16px 0;
  border-top: 1px solid #edf2f7;
}

.register-pro__section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.register-pro__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.register-pro__options label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
}

.register-pro__options label:has(input:checked) {
  border-color: rgba(37,99,235,.55);
  background: #eff6ff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

.register-pro__options input {
  margin-top: 3px;
}

.register-pro__options strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.register-pro__options span {
  grid-column: 2;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.register-pro__grid,
.profile-edit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.register-pro__grid label,
.profile-edit__grid label {
  display: grid;
  gap: 6px;
}

.register-pro__grid span,
.profile-edit__grid span {
  color: #475569;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.register-pro__grid input,
.register-pro__grid select,
.profile-edit__grid input,
.profile-edit__grid select {
  width: 100%;
  height: 46px;
  border: 1px solid #e5eaf1;
  border-radius: 15px;
  background: #fff;
  color: #0f172a;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 750;
  outline: none;
}

.register-pro__grid input:focus,
.register-pro__grid select:focus,
.profile-edit__grid input:focus,
.profile-edit__grid select:focus {
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.register-pro__file small,
.profile-edit__file small {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.register-pro__submit,
.profile-edit__submit {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(37,99,235,.25);
}

.register-pro__error,
.profile-edit__alert {
  padding: 13px 14px;
  border-radius: 16px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 850;
}

.register-pro__error,
.profile-edit__alert.is-error {
  background: #fff1f2;
  color: #be123c;
}

.profile-edit__alert.is-success {
  background: #ecfdf5;
  color: #047857;
}

.profile-edit__hero {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.profile-edit__avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 26px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}

.profile-edit__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-edit__avatar span {
  color: #fff;
  font-size: 32px;
  font-weight: 950;
}

@media (min-width: 760px) {
  .register-pro,
  .profile-edit {
    padding: 34px 24px 84px;
  }

  .register-pro__card,
  .profile-edit__card {
    padding: 24px;
    border-radius: 32px;
  }

  .register-pro__hero,
  .profile-edit__hero {
    padding: 34px;
    border-radius: 34px;
  }

  .register-pro__options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .register-pro__grid,
  .profile-edit__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.register-pro__grid input:required,
.register-pro__grid select:required {
  border-color: #dbe4f0;
}

.register-pro__grid input:required:invalid {
  border-color: rgba(239, 68, 68, .38);
}

.register-pro__grid input:required:focus:invalid {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .08);
}

@media (max-width: 520px) {
  .register-pro__hero h1 {
    font-size: 32px;
  }

  .register-pro__grid input,
  .register-pro__grid select {
    height: 44px;
  }
}

/* Specjalizacja / zawód w rejestracji */
.register-pro__profession {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 14px;
  align-items: end;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dbe7f7;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.register-pro__profession > div > span {
  display: inline-flex;
  color: #2563eb;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.register-pro__profession strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.register-pro__profession p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 520;
}

.register-pro__profession label {
  display: grid;
  gap: 6px;
}

.register-pro__profession label span {
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.register-pro__profession select {
  width: 100%;
  height: 44px;
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 680;
  outline: none;
}

.register-pro__profession select:focus {
  border-color: rgba(37,99,235,.5);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

@media (max-width: 680px) {
  .register-pro__profession {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .register-pro__profession strong {
    font-size: 14px;
  }

  .register-pro__profession p {
    font-size: 12px;
  }
}

/* Multi-role registration */
.register-pro__hint,
.profile-edit__section p {
  margin: 7px 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.register-pro__roles,
.profile-edit__roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.register-pro__role-card {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 86px;
  padding: 13px;
  border: 1px solid #e1eaf7;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.register-pro__role-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .32);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.register-pro__role-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.register-pro__role-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 8px;
  border: 1px solid #cfe0f7;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

.register-pro__role-check::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(.65);
  opacity: 0;
}

.register-pro__role-card:has(input:checked) {
  border-color: rgba(37, 99, 235, .58);
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08), 0 16px 34px rgba(37,99,235,.08);
}

.register-pro__role-card:has(input:checked) .register-pro__role-check {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.register-pro__role-card:has(input:checked) .register-pro__role-check::after {
  opacity: 1;
}

.register-pro__role-copy {
  display: grid;
  gap: 4px;
}

.register-pro__role-copy strong {
  color: #102542;
  font-size: 13.5px;
  line-height: 1.15;
  font-weight: 820;
  letter-spacing: -.015em;
}

.register-pro__role-copy small {
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 560;
}

@media (max-width: 860px) {
  .register-pro__roles,
  .profile-edit__roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .register-pro__roles,
  .profile-edit__roles {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .register-pro__role-card {
    min-height: auto;
    padding: 11px;
    border-radius: 15px;
  }
}

/* Matchmaking fields — compact premium */
.register-pro__section--matchmaking {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}
.register-pro__grid--game {
  grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr);
  align-items: stretch;
}
.register-pro__toggle {
  min-height: 54px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  padding: 0 13px;
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  background: #fff;
  color: #102542;
  font-size: 13px;
  font-weight: 680;
}
.register-pro__toggle input {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
}
.register-pro__toggle span {
  margin: 0;
  color: #102542;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 680;
}
.register-pro__mini-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
}
.register-pro__mini-checks > span {
  flex: 0 0 100%;
  color: #60718a;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.register-pro__mini-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 11px;
  border: 1px solid #dbe7f7;
  background: #fff;
  color: #102542;
  font-size: 12px;
  font-weight: 650;
}
.register-pro__mini-checks input {
  accent-color: #2563eb;
}
@media (max-width: 680px) {
  .register-pro__grid--game { grid-template-columns: 1fr; }
  .register-pro__mini-checks label { flex: 1 1 calc(50% - 8px); justify-content: center; }
}


/* =========================================================
   TFP PATCH: registration legal consents
========================================================= */

.register-pro__section--legal {
  border-top: 1px solid #edf2f7;
}

.register-pro__legal-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.register-pro__legal-check {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  background: #fff;
}

.register-pro__legal-check:has(input:checked) {
  border-color: rgba(37,99,235,.34);
  background: #f8fbff;
}

.register-pro__legal-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1769e8;
}

.register-pro__legal-check span {
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

.register-pro__legal-check a,
.register-pro__rodo-note a {
  color: #1769e8;
  font-weight: 900;
  text-decoration: none;
}

.register-pro__legal-check small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 650;
}

.register-pro__rodo-note {
  margin: 12px 0 0;
  padding: 13px;
  border-radius: 16px;
  color: #475569;
  background: #eff6ff;
  font-size: 12px;
  line-height: 1.55;
}


/* =========================================================
   TFP PATCH: wspólny poziom gry z modułu Szukam gry
========================================================= */

.tfp-level-choice-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    margin: 13px 0 16px;
}

.tfp-level-choice-card {
    position: relative;
    display: block;
    min-height: 128px;
    cursor: pointer;
}

.tfp-level-choice-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.tfp-level-choice-card > span {
    display: grid;
    align-content: start;
    gap: 7px;
    height: 100%;
    padding: 12px;
    border: 1px solid #e1eaf7;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.tfp-level-choice-card:hover > span {
    transform: translateY(-1px);
    border-color: rgba(37,99,235,.35);
}

.tfp-level-choice-card input:checked + span {
    border-color: rgba(37,99,235,.72);
    background: linear-gradient(180deg, #eff6ff, #ffffff);
    box-shadow: 0 14px 28px rgba(37,99,235,.13);
}

.tfp-level-choice-card strong {
    color: #102542;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 950;
}

.tfp-level-choice-card em {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #2563eb;
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
}

.tfp-level-choice-card small {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 650;
}

@media (max-width: 980px) {
    .tfp-level-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tfp-level-choice-grid {
        grid-template-columns: 1fr;
    }

    .tfp-level-choice-card {
        min-height: auto;
    }
}


.register-pro__hint-inline {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}
