/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-npww32z7mn],
.components-reconnect-repeated-attempt-visible[b-npww32z7mn],
.components-reconnect-failed-visible[b-npww32z7mn],
.components-pause-visible[b-npww32z7mn],
.components-resume-failed-visible[b-npww32z7mn],
.components-rejoining-animation[b-npww32z7mn] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-npww32z7mn],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-npww32z7mn],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-npww32z7mn],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-npww32z7mn],
#components-reconnect-modal.components-reconnect-retrying[b-npww32z7mn],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-npww32z7mn],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-npww32z7mn],
#components-reconnect-modal.components-reconnect-failed[b-npww32z7mn],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-npww32z7mn] {
    display: block;
}

#components-reconnect-modal[b-npww32z7mn] {
    background: var(--wce-color-surface-raised);
    border: 1px solid var(--wce-color-border);
    border-radius: var(--wce-radius-overlay);
    box-shadow: var(--wce-shadow-overlay);
    color: var(--wce-color-text);
    inline-size: min(90vw, 24rem);
    margin-block: 20vh;
    margin-inline: auto;
    opacity: 0;
    padding: var(--wce-space-2xl);
    transition: display var(--wce-duration-normal) allow-discrete, overlay var(--wce-duration-normal) allow-discrete;
}

#components-reconnect-modal[open][b-npww32z7mn] {
    animation: wce-reconnect-in-b-npww32z7mn var(--wce-duration-normal) var(--wce-ease-standard) both;
}

#components-reconnect-modal[b-npww32z7mn]::backdrop {
    background: var(--wce-color-overlay);
}

.components-reconnect-container[b-npww32z7mn] {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--wce-space-lg);
}

#components-reconnect-modal p[b-npww32z7mn] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-npww32z7mn] {
    background: var(--wce-brand-teal-700);
    border: 1px solid transparent;
    border-radius: var(--wce-radius-control);
    color: var(--wce-neutral-0);
    cursor: pointer;
    min-block-size: var(--wce-control-min-height);
    padding: var(--wce-space-sm) var(--wce-space-xl);
}

#components-reconnect-modal button:hover[b-npww32z7mn] {
    background: var(--wce-brand-teal-800);
}

.components-rejoining-animation[b-npww32z7mn] {
    block-size: 4rem;
    inline-size: 4rem;
    position: relative;
}

.components-rejoining-animation div[b-npww32z7mn] {
    animation: wce-reconnect-pulse-b-npww32z7mn 1.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    border: 0.1875rem solid var(--wce-color-brand);
    border-radius: 50%;
    inset: 0;
    opacity: 1;
    position: absolute;
}

.components-rejoining-animation div:nth-child(2)[b-npww32z7mn] {
    animation-delay: -0.5s;
}

@keyframes wce-reconnect-in-b-npww32z7mn {
    from { opacity: 0; transform: translateY(1rem) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wce-reconnect-pulse-b-npww32z7mn {
    from { opacity: 1; transform: scale(0); }
    to { opacity: 0; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .components-rejoining-animation div[b-npww32z7mn] {
        animation: none;
        opacity: 1;
        transform: scale(0.75);
    }
}
/* /Components/Pages/Enrollment/NewRegistrationWizard.razor.rz.scp.css */
/* ==========================================================================
   WCE - New Registration Wizard Scoped Mobile Responsive Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Segmented Mode Control (Existing vs New Student)
   -------------------------------------------------------------------------- */
.wce-mode-segmented[b-n8wn6yqnm0] {
    display: inline-flex;
    align-items: center;
    background: var(--wce-color-surface-subtle, #f1f5f9);
    border: 1px solid var(--wce-color-border, #cbd5e1);
    border-radius: var(--wce-radius-pill, 9999px);
    padding: 3px;
    gap: 2px;
}

.wce-mode-segmented__btn[b-n8wn6yqnm0] {
    border: none;
    background: transparent;
    padding: 0.45rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--wce-color-text-muted, #64748b);
    border-radius: var(--wce-radius-pill, 9999px);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
}

.wce-mode-segmented__btn--active[b-n8wn6yqnm0] {
    background: var(--wce-color-surface, #ffffff);
    color: var(--wce-color-brand-primary, #24504c);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .wce-mode-segmented[b-n8wn6yqnm0] {
    background: var(--wce-color-surface-raised, #162423);
    border-color: var(--wce-color-border-strong, #24413e);
}

[data-theme="dark"] .wce-mode-segmented__btn--active[b-n8wn6yqnm0] {
    background: var(--wce-brand-teal-700, #193835);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   2. Ergonomic 5-Part Name Grid (Student & Guardians)
   -------------------------------------------------------------------------- */
.wce-name-grid-ergonomic[b-n8wn6yqnm0] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 48rem) {
    .wce-name-grid-ergonomic[b-n8wn6yqnm0] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    /* The 5th item (Surname / Clan) spans full width */
    .wce-name-grid-ergonomic > *:last-child[b-n8wn6yqnm0] {
        grid-column: 1 / -1;
    }
}

/* --------------------------------------------------------------------------
   3. Guardians Mobile Card & Toggles
   -------------------------------------------------------------------------- */
.wce-guardian-card[b-n8wn6yqnm0] {
    border: 1px solid var(--wce-color-border, #ddd);
    border-radius: var(--wce-radius-card, 10px);
    padding: 1.15rem;
    margin-bottom: 0.85rem;
    background: var(--wce-color-surface, #fff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.wce-guardian-toggles[b-n8wn6yqnm0] {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    background: var(--wce-color-surface-subtle, #f8fafc);
    border: 1px solid var(--wce-color-border, #e2e8f0);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    margin-top: 0.5rem;
}

.wce-guardian-toggle-label[b-n8wn6yqnm0] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wce-color-text-heading);
    min-height: 38px;
    user-select: none;
}

/* --------------------------------------------------------------------------
   4. Step 2 - Package Cards Mobile Layout
   -------------------------------------------------------------------------- */
.wce-package-grid-custom[b-n8wn6yqnm0] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 64rem) {
    .wce-package-grid-custom[b-n8wn6yqnm0] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 32rem) {
    .wce-package-grid-custom[b-n8wn6yqnm0] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.wce-package-card-item[b-n8wn6yqnm0] {
    cursor: pointer;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------------------
   5. Step 2 - Subject Row Pricing & Discount Tray
   -------------------------------------------------------------------------- */
.wce-pricing-discount-tray[b-n8wn6yqnm0] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    background: var(--wce-color-surface-subtle, #f8fafc);
    border: 1px solid var(--wce-color-border, #e2e8f0);
    padding: 0.85rem;
    border-radius: 8px;
    align-items: end;
}

@media (max-width: 48rem) {
    .wce-pricing-discount-tray[b-n8wn6yqnm0] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
}

@media (max-width: 30rem) {
    .wce-pricing-discount-tray[b-n8wn6yqnm0] {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   6. Step 3 - Mobile Summary Cards (Replacing Wide Table on Small Screens)
   -------------------------------------------------------------------------- */
.wce-mobile-summary-cards[b-n8wn6yqnm0] {
    display: none;
}

.wce-desktop-summary-table[b-n8wn6yqnm0] {
    display: block;
}

@media (max-width: 48rem) {
    .wce-desktop-summary-table[b-n8wn6yqnm0] {
        display: none;
    }

    .wce-mobile-summary-cards[b-n8wn6yqnm0] {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
}

.wce-summary-item-card[b-n8wn6yqnm0] {
    background: var(--wce-color-surface, #fff);
    border: 1px solid var(--wce-color-border, #e2e8f0);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.wce-summary-item-card__header[b-n8wn6yqnm0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--wce-color-text-heading);
}

.wce-summary-item-card__meta[b-n8wn6yqnm0] {
    font-size: 0.82rem;
    color: var(--wce-color-text-muted);
}

.wce-summary-item-card__financials[b-n8wn6yqnm0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed var(--wce-color-border, #e2e8f0);
    padding-top: 0.45rem;
    margin-top: 0.25rem;
    font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   7. Step 3 - Financial Overview Box Mobile
   -------------------------------------------------------------------------- */
.wce-financial-overview-grid[b-n8wn6yqnm0] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    text-align: center;
}

@media (max-width: 48rem) {
    .wce-financial-overview-grid[b-n8wn6yqnm0] {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
        text-align: right;
    }

    [dir="ltr"] .wce-financial-overview-grid[b-n8wn6yqnm0] {
        text-align: left;
    }

    .wce-financial-overview-grid > div[b-n8wn6yqnm0] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0.45rem;
        border-bottom: 1px dashed var(--wce-color-border, #e2e8f0);
    }

    .wce-financial-overview-grid > div:last-child[b-n8wn6yqnm0] {
        border-bottom: none;
        padding-top: 0.25rem;
    }
}

/* --------------------------------------------------------------------------
   8. Wizard Navigation Actions on Mobile
   -------------------------------------------------------------------------- */
.wce-wizard-actions-bar[b-n8wn6yqnm0] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--wce-color-border);
    padding-top: 1rem;
}

@media (max-width: 48rem) {
    .wce-wizard-actions-bar[b-n8wn6yqnm0] {
        flex-direction: column-reverse;
        gap: 0.65rem;
    }

    .wce-wizard-actions-bar > *[b-n8wn6yqnm0] {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .wce-success-actions-mobile > *[b-n8wn6yqnm0] {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

