/* RSI static-site chrome (nav + footer) — global so entry layout pages get styles too */
:root {
    --rsi-marketing-bg: #c0ced1;
    --rsi-marketing-text: #081c35;
    --rsi-marketing-link-hover: #0b80d2;
}

.bg-shield,
.rsi-marketing-nav,
.rsi-marketing-footer {
    background-color: var(--rsi-marketing-bg) !important;
    color: var(--rsi-marketing-text) !important;
}

.rsi-marketing-nav .navbar-brand,
.rsi-marketing-nav .nav-link {
    color: var(--rsi-marketing-text) !important;
}

.rsi-marketing-nav .nav-link:hover,
.rsi-marketing-nav .nav-link:focus,
.rsi-marketing-nav .nav-link.active {
    color: var(--rsi-marketing-link-hover) !important;
}

.rsi-marketing-nav .navbar-toggler {
    border-color: rgba(8, 28, 53, 0.35);
}

.rsi-marketing-nav .navbar-toggler-icon {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%288, 28, 53, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.rsi-marketing-footer p {
    color: var(--rsi-marketing-text);
    margin-bottom: 0;
}

.registration-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.registration-entry-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.registration-entry-shell .registration-top-bar {
    flex-shrink: 0;
}

.registration-shell .registration-main {
    flex: 1;
    padding: var(--kendo-spacing-4, 1rem);
    overflow: auto;
}

.registration-top-bar {
    color: var(--client-header-forecolor, #ffffff);
    background-color: var(--client-header-backcolor, #081c35);
    padding: 0.75rem 1rem;
}

.registration-top-bar .registration-client-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.registration-drawer-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.registration-drawer-shell .k-drawer-container {
    flex: 1;
    overflow: auto;
}

.registration-drawer-shell .k-drawer-content {
    height: 100%;
    overflow-x: auto;
}

.registration-auth-body {
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.registration-side-menu {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background-color: var(--client-sidemenu-backcolor, #f8f9fa);
    color: var(--client-sidemenu-forecolor, inherit);
}

.registration-side-menu-column {
    width: 220px;
    min-width: 220px;
    height: calc(100vh - 56px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.registration-side-menu .registration-nav-btn {
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
    justify-content: flex-start;
}

.registration-side-menu .registration-nav-btn.active {
    font-weight: bold;
}

.registration-side-menu .registration-nav-divider {
    height: 1px;
    background-color: rgba(128, 128, 128, 0.4);
    margin: 8px 0;
}

.registration-nav-members {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0 4px 0.75rem;
    margin-bottom: 4px;
}

.registration-nav-member {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 44px;
    padding: 0.35rem 0.5rem;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.registration-nav-member:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.registration-nav-member.active {
    font-weight: bold;
    background-color: rgba(11, 128, 210, 0.12);
}

.registration-nav-member-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.registration-nav-member-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.08);
}

.registration-nav-member-muted {
    cursor: default;
    min-height: auto;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.55);
    padding: 0.25rem 0.5rem;
}

.registration-nav-member-muted:hover {
    background: transparent;
}

.headerJazzedCustom {
    color: var(--client-headerjazzed-forecolor, #ffffff);
    background-color: var(--client-headerjazzed-backcolor, #0b80d2);
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.panelCustom {
    background-color: var(--client-panel-backcolor, rgba(192, 206, 209, 0.25));
}

/* Program / group picker: list left, detail right */
.registration-picker-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.registration-picker-list {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 12rem;
}

.registration-picker-detail {
    flex: 1 1 70%;
    min-width: 0;
    position: sticky;
    top: 0.5rem;
    align-self: flex-start;
}

.registration-picker-list-scroll {
    max-height: min(70vh, 520px);
    overflow-y: auto;
}

.registration-picker-tree-node-folder {
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 500;
}

@media (max-width: 768px) {
    .registration-picker-row {
        flex-direction: column;
    }

    .registration-picker-list,
    .registration-picker-detail {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
        position: static;
    }

    .registration-picker-list-scroll {
        max-height: 280px;
    }

    .registration-assign-actions {
        position: sticky;
        bottom: 0;
        z-index: 5;
        background: var(--bs-body-bg, #fff);
        padding: 0.5rem 0 0.25rem;
        margin-top: 0.5rem;
        box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
    }
}

/* Registration profile forms */
.registration-form {
    --reg-form-gap: 0.75rem;
}

.registration-form .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.registration-form-section {
    margin-bottom: 1.25rem;
}

.registration-form-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.registration-form .field-control {
    width: 100%;
}

.registration-form-section .row > [class*="col-"] .k-input,
.registration-form-section .row > [class*="col-"] .k-picker,
.registration-form-section .row > [class*="col-"] .k-dropdownlist,
.registration-form-section .row > [class*="col-"] .k-datepicker,
.registration-form-section .row > [class*="col-"] .k-textarea,
.registration-form-section .row > [class*="col-"] .k-textbox {
    width: 100%;
    max-width: 100%;
}

.family-member-list .list-group-item-action {
    cursor: pointer;
}

.family-member-list .list-group-item .family-member-list-label {
    min-width: 0;
    flex: 1;
}

.family-wizard-actions {
    width: 100%;
}

/* Step-complete actions: compact row above the card (not full-width buttons). */
.family-wizard-actions .k-button {
    flex: 0 0 auto;
    width: auto;
}

.busy-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    pointer-events: all;
}

.busy-overlay-pulse {
    animation: busy-overlay-pulsate 1s ease-in-out infinite;
}

@keyframes busy-overlay-pulsate {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.registration-form .role-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.registration-form .role-checkboxes .role-check-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.registration-form .role-checkboxes .role-check-item input[type="radio"],
.registration-form .role-checkboxes .role-check-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.member-type-picker .member-type-suboptions {
    border-left: 3px solid rgba(0, 0, 0, 0.12);
    padding-left: 0.75rem;
}

.member-type-picker .member-type-fathermother .role-checkboxes {
    margin-top: 0.25rem;
}

@media (min-width: 576px) {
    .registration-form .role-checkboxes .role-check-item {
        margin-bottom: 0;
    }
}

.login-page {
    max-width: 100%;
}

.login-page .card-body {
    padding: 1rem;
}

.login-page-logo {
    max-height: 5rem;
    width: auto;
}

.login-page .k-button.w-100 {
    justify-content: center;
}

@media (max-width: 575.98px) {
    .login-page .card-body {
        padding: 0.875rem;
    }

    .login-page-actions .k-button {
        width: 100%;
    }

    .login-page .recovery-channels {
        flex-direction: column;
        align-items: stretch;
    }

    .login-page .recovery-channel-tile {
        max-width: none;
        flex: 1 1 auto;
    }
}

@media (max-width: 767.98px) {
    .registration-auth-body {
        position: relative;
        flex-direction: row;
        overflow: hidden;
    }

    .registration-auth-body:not(.registration-mobile-nav-open) .registration-side-menu-column {
        display: none !important;
    }

    .registration-auth-body.registration-mobile-nav-open .registration-side-menu-column {
        position: fixed;
        z-index: 1040;
        left: 0;
        top: 56px;
        width: min(85vw, 280px);
        min-width: 0;
        height: calc(100dvh - 56px);
        max-height: calc(100dvh - 56px);
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: none;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    }

    .registration-nav-backdrop {
        position: fixed;
        inset: 0;
        top: 56px;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1035;
    }

    .registration-side-menu {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0.25rem;
        padding: 0.5rem;
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .registration-side-menu .registration-nav-btn {
        width: 100%;
        margin-bottom: 0;
        flex: none;
        min-width: 0;
    }

    .registration-nav-members {
        max-height: min(40vh, 240px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 0.5rem;
    }

    .registration-main {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        padding: 0.75rem;
    }

    .registration-entry-main {
        padding-left: 0;
        padding-right: 0;
    }

    .headerJazzedCustom {
        font-size: 1.1rem;
        padding: 0.5rem 0.75rem;
    }

    .family-wizard-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .family-wizard-actions .k-button {
        width: 100%;
        flex: 1 1 auto;
    }

    .registration-top-bar {
        padding: 0.5rem 0.75rem;
    }

    .registration-top-bar .registration-client-title {
        font-size: 1rem;
    }
}

.registration-birthdate-field {
    width: 10.5rem;
    min-width: 9rem;
    flex: 0 0 auto;
}

.registration-age-field {
    width: 4.5rem;
    min-width: 4rem;
    flex: 0 0 auto;
}

.registration-age-display .k-input-inner {
    text-align: center;
}

.registration-zip-search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.registration-zip-search-label {
    flex: 0 0 auto;
}

.registration-picker-tree-node-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 0.5rem;
    width: 100%;
}

.registration-picker-tree-node-name {
    flex: 1 1 auto;
    min-width: 0;
}

.registration-group-zip-badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
}

.registration-picker-detail-divider {
    margin: 0.75rem 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    opacity: 1;
}
