/* ======================================================
   REGISTRATION ENGINE STYLESHEET
   Every color used here is a CSS custom property
   (--reg-*) set inline, per-request, from the current
   academy's Academy.theme(). This file itself contains
   no academy-specific colors - it is the same file for
   NXTPRO, Academy B, or any future academy. Only the
   :root variable VALUES differ.
   ====================================================== */

* {
    box-sizing: border-box;
}

body.registration-body {
    margin: 0;
    background: var(--reg-bg);
    color: var(--reg-text);
    font-family: -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.reg-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 20px 80px;
}

/* ---------------- HEADER ---------------- */

.reg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.reg-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reg-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--reg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reg-logo-fallback {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--reg-accent);
    color: var(--reg-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.reg-brand-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.reg-brand-text span {
    display: block;
    font-size: 12px;
    color: var(--reg-text-muted);
}

/* ---------------- PROGRESS ---------------- */

.reg-progress {
    margin-bottom: 30px;
}

.reg-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--reg-text-muted);
    margin-bottom: 10px;
}

.reg-progress-label strong {
    color: var(--reg-text);
}

.reg-progress-track {
    display: flex;
    gap: 4px;
}

.reg-progress-seg {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.reg-progress-seg.done,
.reg-progress-seg.active {
    background: var(--reg-accent);
}

.reg-progress-dots {
    display: none;
}

@media (min-width: 640px) {

    .reg-progress-track {
        display: none;
    }

    .reg-progress-dots {
        display: flex;
        align-items: center;
    }

    .reg-progress-dots .seg-line {
        flex: 1;
        height: 2px;
        background: rgba(255, 255, 255, 0.1);
    }

    .reg-progress-dots .seg-line.done {
        background: var(--reg-accent);
    }

    .reg-step-dot {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        background: var(--reg-elevated);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: var(--reg-text-muted);
        flex-shrink: 0;
    }

    .reg-step-dot.active {
        background: var(--reg-accent);
        color: var(--reg-on-accent);
        border-color: var(--reg-accent);
    }

    .reg-step-dot.done {
        background: transparent;
        border-color: var(--reg-accent);
        color: var(--reg-accent);
    }
}

/* ---------------- CARD ---------------- */

.reg-card {
    background: var(--reg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 26px 24px;
}

.reg-academy-note {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reg-academy-note h2 {
    margin: 0 0 6px;
    font-size: 17px;
    color: var(--reg-text);
}

.reg-academy-note p {
    margin: 0;
    color: var(--reg-text-muted);
    font-size: 13px;
}

.reg-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--reg-accent);
    margin: 0 0 6px;
}

.reg-title {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.reg-subtitle {
    font-size: 13.5px;
    color: var(--reg-text-muted);
    margin: 0 0 22px;
}

/* ---------------- FORM ---------------- */

.reg-field {
    margin-bottom: 18px;
}

.reg-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.reg-field .req {
    color: var(--reg-accent);
}

.reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 560px) {
    .reg-row {
        grid-template-columns: 1fr;
    }
}

.reg-field input[type="text"],
.reg-field input[type="email"],
.reg-field input[type="tel"],
.reg-field input[type="date"],
.reg-field input[type="file"],
.reg-field select,
.reg-field textarea {
    width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--reg-elevated);
    color: var(--reg-text);
    font-family: inherit;
    font-size: 14px;
}

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

.reg-field input:focus,
.reg-field select:focus,
.reg-field textarea:focus {
    outline: none;
    border-color: var(--reg-accent);
}

.reg-hint {
    font-size: 12px;
    color: var(--reg-text-muted);
    margin-top: 5px;
}

.reg-error {
    font-size: 12.5px;
    color: #FB7185;
    margin-top: 5px;
}

.reg-field.has-error input,
.reg-field.has-error select,
.reg-field.has-error textarea {
    border-color: #FB7185;
}

.reg-banner-error {
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.35);
    color: #FCA5AF;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 20px;
}

/* ---------------- CHOICE GROUPS ---------------- */

.reg-choice-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.reg-choice {
    position: relative;
}

.reg-choice input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.reg-choice span {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--reg-elevated);
    font-size: 13px;
    font-weight: 600;
    transition: 0.12s ease;
}

.reg-choice input:checked + span {
    background: var(--reg-accent);
    color: var(--reg-on-accent);
    border-color: var(--reg-accent);
}

.reg-choice input:focus-visible + span {
    outline: 2px solid var(--reg-accent);
    outline-offset: 2px;
}

/* ---------------- OPTION CARDS (emergency source, etc) ---------------- */

.reg-option-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reg-option-card {
    position: relative;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--reg-elevated);
    cursor: pointer;
}

.reg-option-card input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
    margin: 0;
}

.reg-option-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.reg-option-card span {
    font-size: 12.5px;
    color: var(--reg-text-muted);
}

.reg-option-card:has(input:checked) {
    border-color: var(--reg-accent);
    background: color-mix(in srgb, var(--reg-accent) 12%, var(--reg-elevated));
}

/* The radio itself is invisible (opacity:0, stretched over the
   whole card) so its native focus ring would be invisible too -
   without this, a keyboard user tabbing through has no visible
   indicator of which card is focused. */
.reg-option-card:has(input:focus-visible) {
    outline: 2px solid var(--reg-accent);
    outline-offset: 2px;
}

/* ---------------- CONSENT LIST ---------------- */

.reg-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reg-consent:last-child {
    border-bottom: none;
}

.reg-consent input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--reg-accent);
    flex-shrink: 0;
}

label.reg-consent-body {
    cursor: pointer;
}

.reg-consent-body strong {
    display: block;
    font-size: 13.5px;
    margin-bottom: 2px;
}

.reg-consent-body span {
    font-size: 12.5px;
    color: var(--reg-text-muted);
}

.reg-consent-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--reg-text-muted);
    margin: 22px 0 4px;
}

.reg-consent-section-label:first-child {
    margin-top: 0;
}

/* ---------------- REVIEW SUMMARY ---------------- */

.reg-summary-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.reg-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reg-summary-head h3 {
    font-size: 13.5px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--reg-text-muted);
}

.reg-summary-head a {
    font-size: 12.5px;
    color: var(--reg-accent);
    text-decoration: none;
    font-weight: 600;
}

.reg-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 13.5px;
}

.reg-summary-row span:first-child {
    color: var(--reg-text-muted);
}

.reg-summary-row span:last-child {
    text-align: right;
    font-weight: 600;
}

/* ---------------- BUTTONS ---------------- */

.reg-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.reg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.reg-btn-primary {
    background: var(--reg-accent);
    color: var(--reg-on-accent);
}

.reg-btn-primary:hover {
    filter: brightness(1.06);
}

.reg-btn-ghost {
    background: transparent;
    color: var(--reg-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.reg-btn-ghost:hover {
    color: var(--reg-text);
    border-color: rgba(255, 255, 255, 0.3);
}

.reg-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------------- STATUS PAGE ---------------- */

.reg-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.reg-status-icon .icon {
    width: 26px;
    height: 26px;
}

.reg-doc-current.reg-doc-centered {
    justify-content: center;
    margin-top: 16px;
}

.reg-status-icon.submitted { background: rgba(34, 211, 238, 0.14); color: #22D3EE; }
.reg-status-icon.approved { background: rgba(45, 212, 168, 0.14); color: #2DD4A8; }
.reg-status-icon.rejected { background: rgba(240, 93, 108, 0.14); color: #F05D6C; }
.reg-status-icon.cancelled { background: rgba(146, 155, 173, 0.14); color: var(--reg-text-muted); }

.reg-status-card {
    text-align: center;
    padding: 40px 24px;
}

.reg-status-card h1 {
    font-size: 20px;
    margin: 0 0 8px;
}

.reg-status-card p {
    color: var(--reg-text-muted);
    font-size: 14px;
    max-width: 46ch;
    margin: 0 auto;
}

.reg-resume-box {
    margin-top: 22px;
    padding: 12px 14px;
    background: var(--reg-elevated);
    border-radius: 10px;
    font-size: 12.5px;
    color: var(--reg-text-muted);
    word-break: break-all;
}

/* ---------------- DOC PREVIEW ---------------- */

.reg-doc-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--reg-elevated);
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.reg-doc-current svg,
.reg-doc-current i {
    width: 16px;
    height: 16px;
    color: var(--reg-accent);
}

/* ---------------- PHOTO PREVIEW ---------------- */

.reg-photo-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--reg-accent);
    margin-bottom: 12px;
}

/* ---------------- FOOTER ---------------- */

.reg-footer {
    text-align: center;
    margin-top: 34px;
    font-size: 11.5px;
    color: var(--reg-text-muted);
}

.reg-footer a {
    color: var(--reg-text-muted);
    text-decoration: underline;
}

/* ======================================================
   COACH MOBILE ATTENDANCE
   ====================================================== */

.reg-shell.reg-shell-wide {
    max-width: 560px;
}

.reg-session-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--reg-elevated);
    text-decoration: none;
    color: var(--reg-text);
    margin-bottom: 12px;
}

.reg-session-time {
    flex-shrink: 0;
    width: 62px;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--reg-accent);
}

.reg-session-time span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--reg-text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.reg-session-main {
    flex: 1;
    min-width: 0;
}

.reg-session-main strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.reg-session-main span {
    font-size: 12.5px;
    color: var(--reg-text-muted);
}

.reg-session-progress {
    flex-shrink: 0;
    text-align: right;
    font-size: 11.5px;
    color: var(--reg-text-muted);
}

.reg-session-progress strong {
    display: block;
    font-size: 16px;
    color: var(--reg-text);
}

.reg-session-progress.complete strong {
    color: var(--reg-accent);
}

.reg-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--reg-text-muted);
    margin: 26px 0 12px;
}

.reg-section-label:first-child {
    margin-top: 0;
}

.reg-roster-row {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    background: var(--reg-elevated);
}

.reg-roster-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.reg-roster-row-head strong {
    font-size: 15px;
}

.reg-roster-current-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--reg-text-muted);
    text-transform: uppercase;
}

.reg-status-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

@media (max-width: 480px) {
    .reg-status-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reg-status-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 4px;
    min-height: 56px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--reg-surface);
    color: var(--reg-text-muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: 0.1s ease;
}

.reg-status-btn svg,
.reg-status-btn i {
    width: 16px;
    height: 16px;
}

.reg-status-btn.status-present.is-active { background: #2DD4A8; border-color: #2DD4A8; color: #062018; }
.reg-status-btn.status-absent.is-active { background: #F05D6C; border-color: #F05D6C; color: #200608; }
.reg-status-btn.status-late.is-active { background: var(--reg-accent); border-color: var(--reg-accent); color: var(--reg-on-accent); }
/* Was identical to Absent (#F05D6C) - a coach scanning by colour
   alone at a glance couldn't tell Injured from Absent even though
   the icon/label differ. Distinct amber so colour, icon and label
   all agree. */
.reg-status-btn.status-injured.is-active { background: #F5B942; border-color: #F5B942; color: #241900; }
.reg-status-btn.status-excused.is-active { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.4); color: var(--reg-text); }

.reg-roster-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--reg-surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--reg-accent);
    flex-shrink: 0;
}

.reg-roster-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reg-summary-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.reg-summary-pill {
    flex: 1;
    min-width: 70px;
    text-align: center;
    padding: 10px 6px;
    border-radius: 10px;
    background: var(--reg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reg-summary-pill strong {
    display: block;
    font-size: 17px;
}

.reg-summary-pill span {
    font-size: 10px;
    color: var(--reg-text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

/* ---------------- EMPTY STATE ---------------- */
/* Same shape as the main app's .empty-state/.empty-icon, in the
   reg-* token palette so a "no sessions today" message inside
   this flow looks intentional instead of unstyled. */

.empty-state {
    display: grid;
    place-items: center;
    min-height: 200px;
    padding: 30px;
    text-align: center;
}

.empty-state .empty-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: var(--reg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--reg-accent);
}

.empty-state .empty-icon .icon,
.empty-state .empty-icon [data-lucide] {
    width: 26px;
    height: 26px;
}

.empty-state h3 {
    margin: 0 0 8px;
    font-weight: 700;
}

.empty-state p {
    max-width: 360px;
    margin: 0;
    color: var(--reg-text-muted);
}
