﻿:root {
    --pr-bg: #f5f8fc;
    --pr-surface: rgba(255, 255, 255, 0.96);
    --pr-surface-solid: #ffffff;
    --pr-primary: #01a5b4;
    --pr-primary-dark: #0a7f8a;
    --pr-secondary: #1c1e3d;
    --pr-accent: #f3a536;
    --pr-danger: #e24243;
    --pr-text: #1c1e3d;
    --pr-text-soft: #667085;
    --pr-line: #e7edf5;
    --pr-line-strong: #d9e3ef;
    --pr-shadow: 0 16px 38px rgba(28, 30, 61, 0.08);
    --pr-radius-xl: 24px;
    --pr-radius-lg: 18px;
    --pr-radius-md: 14px;
    --pr-shell: 1240px;
}

/* =========================
   Page
========================= */
.player-reg-page {
    position: relative;
    padding: 28px 16px 46px;
    background: radial-gradient(circle at top right, rgba(243, 165, 54, 0.10), transparent 20%), radial-gradient(circle at top left, rgba(1, 165, 180, 0.08), transparent 22%), linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
}

.player-reg-shell {
    width: min(100%, var(--pr-shell));
    margin: 0 auto;
}

/* =========================
   Hero
========================= */
.pr-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 28px 34px;
    margin-bottom: 22px;
    border: 1px solid #d7e7ef;
    border-radius: 32px;
    background: radial-gradient(circle at top left, rgba(1, 165, 180, 0.08), transparent 26%), linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    box-shadow: 0 18px 42px rgba(28, 30, 61, 0.06);
    overflow: hidden;
}

    .pr-hero::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        top: 0;
        width: 100%;
        height: 6px;
        background: linear-gradient(90deg, #1c1e3d 0%, #1f5f9c 48%, #01a5b4 100%);
        opacity: 0.95;
    }

.pr-hero__content {
    max-width: 100%;
}

.pr-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(1, 165, 180, 0.10);
    color: #008ea0;
    font-size: 0.84rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.pr-hero__title {
    margin: 0 0 10px;
    color: #1c1e3d;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.pr-hero__text {
    margin: 0;
    color: #73809a;
    font-size: 1.02rem;
    line-height: 1.95;
    max-width: 980px;
}

.pr-hero__side {
    justify-self: end;
    min-width: 330px;
    max-width: 380px;
    padding: 18px 20px;
    border-radius: 28px;
    border: 1px solid #d8ebf0;
    background: linear-gradient(180deg, #f9fdff 0%, #eef9fb 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.pr-hero-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pr-hero-badge__icon {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #e9f7fa 0%, #d8f0f4 100%);
    color: #01a5b4;
    font-size: 1.9rem;
    box-shadow: 0 10px 24px rgba(1, 165, 180, 0.12);
}

.pr-hero-badge__text strong {
    display: block;
    color: #1c1e3d;
    font-size: 1.55rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.pr-hero-badge__text small {
    display: block;
    color: #73809a;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 700;
}

/* =========================
   Steps
========================= */
.pr-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 0 0 24px;
}

.pr-step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 74px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--pr-line);
    color: var(--pr-text-soft);
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(28, 30, 61, 0.04);
}

.pr-step-pill__index {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4fb;
    color: var(--pr-secondary);
    font-size: 0.82rem;
    font-weight: 900;
}

.pr-step-pill--active {
    color: var(--pr-secondary);
    background: rgba(1,165,180,0.10);
    border-color: rgba(1,165,180,0.22);
}

    .pr-step-pill--active .pr-step-pill__index {
        background: var(--pr-primary);
        color: #fff;
    }

/* =========================
   Panel
========================= */
.pr-panel {
    margin-top: 18px;
    border-radius: var(--pr-radius-xl);
    background: var(--pr-surface);
    border: 1px solid rgba(255,255,255,0.78);
    backdrop-filter: blur(12px);
    box-shadow: var(--pr-shadow);
    overflow: hidden;
}

.pr-panel-step2 {
    margin-top: 18px;
}

/* =========================
   Toolbar
========================= */
.pr-toolbar {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--pr-line);
}

.pr-search {
    position: relative;
    flex: 1 1 580px;
}

.pr-search__icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 16px;
    transform: translateY(-50%);
    color: var(--pr-text-soft);
    font-size: 0.95rem;
}

.pr-search__input {
    width: 100%;
    height: 54px;
    border-radius: 16px;
    border: 1px solid var(--pr-line-strong);
    background: #fff;
    padding-inline-start: 46px;
    padding-inline-end: 16px;
    color: var(--pr-text);
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s ease;
}

    .pr-search__input:focus {
        border-color: rgba(1,165,180,0.45);
        box-shadow: 0 0 0 4px rgba(1,165,180,0.10);
    }

.pr-toolbar__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pr-select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .pr-select-wrap label {
        color: var(--pr-text-soft);
        font-weight: 800;
        white-space: nowrap;
    }

.pr-select {
    min-width: 86px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--pr-line-strong);
    background: #fff;
    color: var(--pr-text);
    padding: 0 12px;
    outline: none;
}

.pr-chip {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(1,165,180,0.08);
    color: var(--pr-primary-dark);
    font-weight: 800;
}

/* =========================
   Note
========================= */
.pr-toolbar-note {
    padding: 16px 24px 0;
}

.pr-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 15px;
    background: #fff9ef;
    border: 1px solid #fde2b0;
    color: #8a5b00;
    font-weight: 700;
}

.pr-check-card--must {
    border: 2px solid #01a5b4;
    background: rgba(1, 165, 180, 0.04);
}

    .pr-check-card--must.is-success {
        border-color: #22c55e;
        background: rgba(34, 197, 94, 0.06);
    }

    .pr-check-card--must.is-error {
        border-color: #e24243;
        background: rgba(226, 66, 67, 0.05);
    }

#chkHealth5Wrap {
    grid-column: 1 / -1;
}
/* =========================
   Table
========================= */
.pr-table-wrap {
    padding: 18px 24px 20px;
    overflow-x: auto;
}

.pr-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--pr-surface-solid);
    border: 1px solid var(--pr-line);
    border-radius: 18px;
    overflow: hidden;
}

    .pr-table thead th {
        background: linear-gradient(180deg, #f9fbfd 0%, #f1f5fa 100%);
        color: var(--pr-secondary);
        padding: 15px 14px;
        border-bottom: 1px solid var(--pr-line);
        text-align: start;
        font-size: 0.9rem;
        font-weight: 900;
        white-space: nowrap;
    }

    .pr-table tbody td {
        padding: 14px 14px;
        border-bottom: 1px solid #edf2f7;
        color: var(--pr-text);
        vertical-align: middle;
        transition: 0.18s ease;
    }

    .pr-table tbody tr {
        cursor: pointer;
    }

        .pr-table tbody tr:hover td {
            background: #fbfdff;
        }

        .pr-table tbody tr.is-selected td {
            background: rgba(1,165,180,0.055);
        }

        .pr-table tbody tr:last-child td {
            border-bottom: 0;
        }

    .pr-table .is-center {
        text-align: center;
    }

    .pr-table td.is-registered,
    .pr-table th.is-registered {
        text-align: center;
        white-space: nowrap;
    }

/* =========================
   Radio
========================= */
.pr-radio {
    position: relative;
    width: 22px;
    height: 22px;
    display: inline-block;
    cursor: pointer;
}

    .pr-radio input {
        position: absolute;
        inset: 0;
        margin: 0;
        opacity: 0;
        cursor: pointer;
        pointer-events: auto;
        z-index: 2;
        width: 22px;
        height: 22px;
    }

    .pr-radio span {
        position: absolute;
        inset: 0;
        width: 22px;
        height: 22px;
        border-radius: 999px;
        border: 2px solid #c8d5e3;
        background: #fff;
        display: inline-block;
        transition: 0.18s ease;
        pointer-events: none;
    }

    .pr-radio input:checked + span {
        border-color: var(--pr-primary);
        box-shadow: 0 0 0 4px rgba(1,165,180,0.10);
    }

        .pr-radio input:checked + span::after {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: var(--pr-primary);
            position: absolute;
            inset: 0;
            margin: auto;
        }

/* =========================
   Registered badges
========================= */
.pr-registered {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.pr-registered__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.pr-registered__badge--male {
    background: rgba(1,165,180,0.10);
    color: var(--pr-primary-dark);
}

.pr-registered__badge--female {
    background: rgba(226,66,67,0.10);
    color: var(--pr-danger);
}

.pr-registered__badge i {
    font-size: 0.8rem;
}

/* =========================
   Footer
========================= */
.pr-panel-footer {
    padding: 0 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pr-panel-footer--step2 {
    padding: 22px 0 0;
}

.pr-pager {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pr-pager__btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--pr-line-strong);
    background: #fff;
    color: var(--pr-text);
    cursor: pointer;
    transition: 0.18s ease;
}

    .pr-pager__btn:hover {
        border-color: rgba(1,165,180,0.36);
        color: var(--pr-primary-dark);
        transform: translateY(-1px);
    }

.pr-pager__info {
    min-width: 90px;
    text-align: center;
    color: var(--pr-text-soft);
    font-weight: 900;
}

.pr-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pr-btn {
    min-height: 52px;
    padding: 0 20px;
    border-radius: 16px;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.18s ease;
}

.pr-btn--ghost {
    background: #fff;
    color: var(--pr-text);
    border: 1px solid var(--pr-line-strong);
}

    .pr-btn--ghost:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(28, 30, 61, 0.05);
    }

.pr-btn--primary {
    background: linear-gradient(180deg, #01a5b4 0%, #0a8792 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(1,165,180,0.24);
}

    .pr-btn--primary:hover:not(:disabled) {
        transform: translateY(-1px);
    }

    .pr-btn--primary:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        box-shadow: none;
    }

/* =========================
   Expand
========================= */
.pr-expand-row td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.pr-expand-box {
    margin: 8px 0 16px;
    border-radius: 18px;
    border: 1px solid var(--pr-line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(28, 30, 61, 0.05);
    animation: prExpandIn 0.18s ease;
}

@keyframes prExpandIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pr-expand-head {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #f7fafc;
    border-bottom: 1px solid var(--pr-line);
}

.pr-expand-head__main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pr-expand-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--pr-secondary);
}

.pr-expand-title--single {
    margin: 0;
}

.pr-expand-chip {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(1,165,180,0.08);
    color: var(--pr-primary-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.pr-expand-close {
    min-width: 38px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--pr-line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--pr-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.18s ease;
}

    .pr-expand-close:hover {
        color: var(--pr-danger);
        border-color: rgba(226,66,67,0.22);
    }

.pr-expand-body {
    padding: 12px;
}

.pr-expand-empty {
    min-height: 120px;
    border: 1px dashed var(--pr-line-strong);
    border-radius: 14px;
    background: #fcfdff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pr-text-soft);
    font-weight: 800;
    text-align: center;
    padding: 16px;
}

/* =========================
   Class cards
========================= */
.pr-class-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pr-class-card {
    border: 1px solid var(--pr-line);
    border-radius: 16px;
    background: #fff;
    padding: 12px;
    cursor: pointer;
    transition: 0.18s ease;
    box-shadow: 0 6px 16px rgba(28, 30, 61, 0.03);
}

    .pr-class-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(28, 30, 61, 0.05);
        border-color: rgba(1,165,180,0.22);
    }

    .pr-class-card.is-selected {
        border-color: rgba(1,165,180,0.45);
        background: rgba(1,165,180,0.04);
        box-shadow: 0 0 0 4px rgba(1,165,180,0.07);
    }

.pr-class-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.pr-class-card__title {
    margin: 0;
    color: var(--pr-secondary);
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.4;
}

.pr-class-card__badge {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: rgba(243,165,54,0.13);
    color: #8a5b00;
    font-size: 0.72rem;
    font-weight: 900;
}

.pr-class-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.pr-class-meta {
    min-height: 52px;
    border-radius: 12px;
    padding: 8px 10px;
    background: #f8fbff;
    border: 1px solid #ecf2f8;
}

.pr-class-meta__label {
    display: block;
    margin-bottom: 3px;
    color: var(--pr-text-soft);
    font-size: 0.74rem;
    font-weight: 700;
}

.pr-class-meta__value {
    color: var(--pr-secondary);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.35;
}

    .pr-class-meta__value span.gender {
        opacity: 0.7;
        font-weight: 700;
    }

.pr-class-meta__subvalue {
    display: block;
    margin-top: 4px;
    color: var(--pr-text-soft);
    font-size: 0.76rem;
    font-weight: 800;
}

.pr-class-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pr-class-card__action {
    color: var(--pr-primary-dark);
    font-size: 0.84rem;
    font-weight: 900;
}

.pr-class-select {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pr-class-select__dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #bfd2df;
    background: #fff;
    position: relative;
}

.pr-class-card.is-selected .pr-class-select__dot {
    border-color: var(--pr-primary);
    box-shadow: 0 0 0 4px rgba(1,165,180,0.08);
}

    .pr-class-card.is-selected .pr-class-select__dot::after {
        content: "";
        position: absolute;
        inset: 0;
        margin: auto;
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: var(--pr-primary);
    }

/* =========================
   Step 2 layout
========================= */
.pr-step2-wrap {
    padding: 24px;
}

.pr-step2-headcard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    margin-bottom: 22px;
    border: 1px solid #d8e7ef;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(1,165,180,0.08), transparent 32%), linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
    box-shadow: 0 14px 34px rgba(28, 30, 61, 0.05);
}

.pr-step2-headcard__main {
    min-width: 0;
}

.pr-step2-headcard__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(1,165,180,0.10);
    color: #008ea0;
    font-size: 0.82rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.pr-step2-headcard__title {
    margin: 0 0 6px;
    color: #1c1e3d;
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
    line-height: 1.15;
    font-weight: 900;
}

.pr-step2-headcard__text {
    margin: 0;
    color: #6f7b95;
    font-size: 1rem;
    line-height: 1.9;
}

.pr-step2-headcard__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    max-width: 420px;
}

.pr-step2-headcard__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f2fbfc;
    border: 1px solid #d3edf1;
    color: #008ea0;
    font-weight: 800;
}

.pr-step2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pr-card-section {
    border: 1px solid var(--pr-line);
    border-radius: 20px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(28, 30, 61, 0.03);
}

.pr-card-section__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.pr-card-section__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(1,165,180,0.09);
    color: var(--pr-primary-dark);
    font-size: 1rem;
    flex: 0 0 auto;
}

.pr-card-section__title {
    margin: 0 0 4px;
    color: var(--pr-secondary);
    font-size: 1rem;
    font-weight: 900;
}

.pr-card-section__subtitle {
    margin: 0;
    color: var(--pr-text-soft);
    font-size: 0.84rem;
    line-height: 1.6;
}

/* =========================
   Forms
========================= */
.pr-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pr-name-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.pr-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .pr-field.full {
        grid-column: 1 / -1;
    }

    .pr-field label {
        color: var(--pr-text-soft);
        font-size: 0.82rem;
        font-weight: 800;
    }

.pr-input-wrap {
    position: relative;
}

.pr-input {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--pr-line-strong);
    background: #fff;
    padding: 0 14px;
    color: var(--pr-text);
    font-size: 0.94rem;
    outline: none;
    transition: 0.18s ease;
    box-sizing: border-box;
}

    .pr-input:focus {
        border-color: rgba(1,165,180,0.45);
        box-shadow: 0 0 0 4px rgba(1,165,180,0.10);
    }

.pr-input--password {
    padding-inline-end: 52px;
}

/* =========================
   Password toggle
========================= */
.pr-password-wrap {
    position: relative;
}

.pr-password-toggle {
    position: absolute;
    inset-inline-end: 14px;
    inset-inline-start: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #6f7b95;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 2;
}

    .pr-password-toggle i {
        font-size: 1.35rem;
        line-height: 1;
        display: block;
    }

html[dir="rtl"] .pr-password-wrap .pr-input {
    padding-right: 16px;
    padding-left: 54px;
}

html[dir="ltr"] .pr-password-wrap .pr-input {
    padding-left: 16px;
    padding-right: 54px;
}

/* =========================
   Check cards
========================= */
.pr-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pr-check-card {
    position: relative;
    min-height: 58px;
    border: 1px solid var(--pr-line);
    border-radius: 16px;
    background: #fbfdff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    cursor: pointer;
    transition: 0.18s ease;
    box-sizing: border-box;
}

    .pr-check-card:hover {
        border-color: rgba(1,165,180,0.25);
        background: #fff;
    }

    .pr-check-card input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.pr-check-card__box {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 2px solid #c8d5e3;
    background: #fff;
    position: relative;
    flex: 0 0 auto;
}

.pr-check-card__text {
    color: var(--pr-secondary);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.5;
}

.pr-check-card input:checked + .pr-check-card__box {
    border-color: var(--pr-primary);
    background: rgba(1,165,180,0.08);
}

    .pr-check-card input:checked + .pr-check-card__box::after {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: var(--pr-primary);
        position: absolute;
        inset: 0;
        margin: auto;
    }

/* =========================
   Preview / Modal
========================= */
.pr-preview-box {
    margin-top: 18px;
    border: 1px solid var(--pr-line);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 18px rgba(28, 30, 61, 0.04);
}

.pr-preview-box__head {
    min-height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fbff;
    border-bottom: 1px solid var(--pr-line);
    color: var(--pr-secondary);
    font-weight: 900;
}

.pr-preview-box__body {
    padding: 0;
}

.pr-preview-json {
    margin: 0;
    padding: 16px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.84rem;
    line-height: 1.8;
    overflow: auto;
    max-height: 420px;
    direction: ltr;
    text-align: left;
    font-family: Menlo, Monaco, Consolas, monospace;
}

.pr-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .pr-modal.is-open {
        display: flex;
    }

.pr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pr-modal__dialog {
    position: relative;
    width: min(92vw, 480px);
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px 22px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    text-align: center;
    z-index: 1;
}

.pr-modal__close {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: #f5f8fc;
    color: var(--pr-text-soft);
    cursor: pointer;
}

.pr-modal__icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(1,165,180,0.10);
    color: var(--pr-primary);
}

    .pr-modal__icon.is-error {
        background: rgba(226,66,67,0.10);
        color: #e24243;
    }

.pr-modal__title {
    margin: 0 0 8px;
    color: var(--pr-secondary);
    font-size: 1.25rem;
    font-weight: 900;
}

.pr-modal__text {
    margin: 0;
    color: var(--pr-text-soft);
    line-height: 1.9;
    font-size: 0.96rem;
}

.pr-modal__actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

body.pr-modal-open {
    overflow: hidden;
}

/* =========================
   Validation
========================= */
.pr-input.is-error,
.pr-input-wrap.is-error .pr-input {
    border-color: #e24243 !important;
    box-shadow: 0 0 0 4px rgba(226, 66, 67, 0.08);
    background: #fff8f8;
}

.pr-input.is-success,
.pr-input-wrap.is-success .pr-input {
    border-color: #01a5b4 !important;
    box-shadow: 0 0 0 4px rgba(1, 165, 180, 0.08);
    background: #f7ffff;
}

.pr-field-error {
    display: none;
    margin-top: 6px;
    color: #e24243;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
}

.pr-input-wrap.is-error .pr-field-error {
    display: block;
}

.pr-check-card.is-error {
    border-color: #e24243 !important;
    box-shadow: 0 0 0 4px rgba(226, 66, 67, 0.06);
}

.pr-check-card.is-success {
    border-color: #01a5b4 !important;
    box-shadow: 0 0 0 4px rgba(1, 165, 180, 0.06);
}

/* =========================
   Date field
========================= */
.pr-input--date {
    cursor: pointer;
    background-image: none !important;
}

.pr-field--date .pr-input-wrap {
    position: relative;
}

    .pr-field--date .pr-input-wrap::after {
        content: "\f073";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        inset-inline-start: 18px;
        color: #6f7b95;
        pointer-events: none;
        font-size: 14px;
        line-height: 1;
        z-index: 2;
    }

.pr-field--date .pr-input {
    min-height: 62px;
    border-radius: 16px;
}

html[dir="rtl"] .pr-field--date .pr-input {
    padding-left: 52px;
    padding-right: 18px;
}

html[dir="ltr"] .pr-field--date .pr-input {
    padding-right: 52px;
    padding-left: 18px;
}

/* =========================
   Flatpickr
========================= */
.flatpickr-calendar {
    border: 1px solid #d8e7ef !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 60px rgba(28, 30, 61, 0.16) !important;
    overflow: hidden;
    font-family: inherit !important;
}

.flatpickr-months {
    background: linear-gradient(90deg, #1c1e3d 0%, #01a5b4 100%);
    color: #fff;
    padding: 10px 8px 8px;
}

.flatpickr-current-month {
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    padding-top: 6px !important;
}

.flatpickr-monthDropdown-months,
.numInputWrapper {
    color: #fff !important;
}

.flatpickr-weekdays {
    background: #f7fbfd;
}

span.flatpickr-weekday {
    color: #73809a !important;
    font-weight: 800;
}

.flatpickr-day {
    border-radius: 12px !important;
    font-weight: 700;
    color: #1c1e3d;
}

    .flatpickr-day:hover {
        background: #eef9fb !important;
        border-color: #eef9fb !important;
    }

    .flatpickr-day.today {
        border-color: #01a5b4 !important;
        color: #01a5b4 !important;
    }

    .flatpickr-day.selected,
    .flatpickr-day.startRange,
    .flatpickr-day.endRange {
        background: #01a5b4 !important;
        border-color: #01a5b4 !important;
        color: #fff !important;
        box-shadow: 0 8px 18px rgba(1, 165, 180, 0.25);
    }

    .flatpickr-day.flatpickr-disabled,
    .flatpickr-day.flatpickr-disabled:hover {
        color: #c2c8d3 !important;
    }

.flatpickr-time {
    border-top: 1px solid #edf2f7;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    display: none !important;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px) {
    .pr-hero,
    .pr-toolbar,
    .pr-panel-footer,
    .pr-step2-headcard {
        flex-direction: column;
        align-items: stretch;
    }

    .pr-hero {
        padding: 24px 22px;
    }

    .pr-hero__side {
        justify-self: stretch;
        min-width: 0;
        max-width: none;
    }

    .pr-pager,
    .pr-actions {
        justify-content: center;
    }

    .pr-class-grid,
    .pr-step2-grid {
        grid-template-columns: 1fr;
    }

    .pr-step2-headcard__meta {
        justify-content: flex-start;
        max-width: none;
    }

    .pr-name-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .player-reg-page {
        padding: 18px 10px 32px;
    }

    .pr-hero,
    .pr-panel {
        border-radius: 20px;
    }

    .pr-hero,
    .pr-toolbar,
    .pr-table-wrap,
    .pr-panel-footer,
    .pr-step2-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pr-toolbar-note {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pr-note {
        width: 100%;
        min-height: auto;
        padding: 12px 14px;
        align-items: flex-start;
    }

    .pr-expand-head,
    .pr-expand-body {
        padding: 12px;
    }

    .pr-steps,
    .pr-form-grid,
    .pr-check-grid,
    .pr-class-card__meta,
    .pr-name-grid {
        grid-template-columns: 1fr;
    }

    .pr-input {
        height: 46px;
    }
}

#txtSchoolSearch {
    margin-bottom: 10px;
}
/* School searchable select */
.pr-input-wrap .ts-wrapper {
    width: 100%;
    display: block;
    border: 0 !important;
    box-shadow: none !important;
}

    .pr-input-wrap .ts-wrapper.single .ts-control,
    .pr-input-wrap .ts-control {
        width: 100%;
        min-height: 48px;
        height: 48px;
        border: 0 !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 14px;
        padding: 0 44px 0 14px;
        display: flex;
        align-items: center;
        font-size: 0.94rem;
        color: var(--pr-text);
    }

html[dir="rtl"] .pr-input-wrap .ts-wrapper.single .ts-control,
html[dir="rtl"] .pr-input-wrap .ts-control {
    padding: 0 14px 0 44px;
}

html[dir="ltr"] .pr-input-wrap .ts-wrapper.single .ts-control,
html[dir="ltr"] .pr-input-wrap .ts-control {
    padding: 0 44px 0 14px;
}

.pr-input-wrap .ts-control > input {
    font-size: 0.94rem !important;
    color: var(--pr-text) !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pr-input-wrap .ts-control .item {
    font-size: 0.94rem;
    color: var(--pr-text);
}

.pr-input-wrap .ts-wrapper.single::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #6f7b95;
    font-size: 13px;
    pointer-events: none;
    z-index: 3;
}

html[dir="rtl"] .pr-input-wrap .ts-wrapper.single::after {
    left: 14px;
    right: auto;
}

html[dir="ltr"] .pr-input-wrap .ts-wrapper.single::after {
    right: 14px;
    left: auto;
}

.pr-input-wrap .ts-dropdown {
    margin-top: 8px;
    border: 1px solid var(--pr-line-strong);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(28, 30, 61, 0.10);
    overflow: hidden;
    z-index: 30;
}

    .pr-input-wrap .ts-dropdown .ts-dropdown-content {
        max-height: 260px;
        overflow-y: auto;
        padding: 6px 0;
    }

    .pr-input-wrap .ts-dropdown .option,
    .pr-input-wrap .ts-dropdown .no-results {
        padding: 10px 14px;
        font-size: 0.92rem;
        line-height: 1.6;
        color: var(--pr-text);
    }

        .pr-input-wrap .ts-dropdown .option.active,
        .pr-input-wrap .ts-dropdown .option:hover {
            background: rgba(1,165,180,0.08);
            color: var(--pr-secondary);
        }

.pr-input-wrap.is-error .ts-wrapper.single,
.pr-input-wrap.is-success .ts-wrapper.single {
    border: 0 !important;
    box-shadow: none !important;
}

.pr-input-wrap.is-error .ts-control,
.pr-input-wrap.is-success .ts-control {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ===== School field polish ===== */

/* فیلد مدرسه را نزدیک‌تر به لیبل بیاور */
.pr-field.full:has(#ddlSchool),
.pr-field.full:has(.ts-wrapper) {
    gap: 4px;
}

/* wrapper مدرسه */
.pr-field.full .pr-input-wrap {
    position: relative;
}

/* خود کنترل Tom Select */
.pr-field.full .ts-wrapper {
    width: 100%;
    margin-top: 0;
}

    .pr-field.full .ts-wrapper.single .ts-control,
    .pr-field.full .ts-control {
        min-height: 54px;
        height: 54px;
        border-radius: 18px;
        padding-inline: 18px 52px;
        background: #fdfefe !important;
        font-size: 0.92rem;
        font-weight: 700;
        line-height: 1.4;
    }

        /* متن placeholder و مقدار انتخاب‌شده */
        .pr-field.full .ts-control .item,
        .pr-field.full .ts-control input {
            font-size: 0.92rem !important;
            font-weight: 700;
            color: var(--pr-secondary) !important;
        }

    /* فلش داخل خود باکس و عمودی وسط */
    .pr-field.full .ts-wrapper.single::after {
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: #7a86a0;
    }

html[dir="rtl"] .pr-field.full .ts-wrapper.single::after {
    left: 18px;
}

html[dir="ltr"] .pr-field.full .ts-wrapper.single::after {
    right: 18px;
}

/* dropdown panel */
.pr-field.full .ts-dropdown {
    margin-top: 10px;
    border-radius: 22px;
    border: 1px solid #d9e6f0;
    box-shadow: 0 18px 38px rgba(28, 30, 61, 0.08);
    overflow: hidden;
}

    /* ارتفاع منطقی‌تر لیست */
    .pr-field.full .ts-dropdown .ts-dropdown-content {
        max-height: 320px;
        overflow-y: auto;
        padding: 8px 0;
    }

    /* گزینه‌ها */
    .pr-field.full .ts-dropdown .option,
    .pr-field.full .ts-dropdown .no-results {
        padding: 14px 18px;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.7;
        color: var(--pr-secondary);
    }

        /* hover / active */
        .pr-field.full .ts-dropdown .option.active,
        .pr-field.full .ts-dropdown .option:hover {
            background: rgba(1,165,180,0.07);
            color: #0a7f8a;
        }

        /* گزینه placeholder داخل لیست */
        .pr-field.full .ts-dropdown .option:first-child {
            color: #7b879f;
            font-weight: 800;
            background: #f8fcfd;
        }

    /* اسکرول‌بار تمیز */
    .pr-field.full .ts-dropdown .ts-dropdown-content::-webkit-scrollbar {
        width: 8px;
    }

    .pr-field.full .ts-dropdown .ts-dropdown-content::-webkit-scrollbar-thumb {
        background: #d7e4ee;
        border-radius: 999px;
    }

    .pr-field.full .ts-dropdown .ts-dropdown-content::-webkit-scrollbar-track {
        background: transparent;
    }

.pr-input-wrap {
    position: relative;
}

/* input padding بر اساس جهت */
html[dir="rtl"] .pr-input-wrap input {
    padding-left: 45px;
}

html[dir="ltr"] .pr-input-wrap input {
    padding-right: 45px;
}

/* آیکن */
.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7a8499;
    font-size: 18px;
}

/* جای آیکن بر اساس زبان */
html[dir="rtl"] .toggle-password {
    left: 12px;
}

html[dir="ltr"] .toggle-password {
    right: 12px;
}

.pr-floating-next {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(120px);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(1, 165, 180, 0.25);
    box-shadow: 0 20px 55px rgba(28, 30, 61, 0.22);
    backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

    .pr-floating-next.is-show {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

.pr-floating-next__text {
    font-weight: 800;
    color: #1c1e3d;
    white-space: nowrap;
}

.pr-floating-next__btn {
    border: 0;
    border-radius: 16px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #01a5b4, #91cfdc);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 768px) {
    .pr-floating-next {
        width: calc(100% - 28px);
        justify-content: space-between;
        bottom: 16px;
    }
}