    /* Hide topbar and sidebar on Register page */
    nav.navbar, aside.sidenav, .navbar-main, .main-content > nav { display: none !important; }
    .main-content, #main-content { padding: 0 !important; }

    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
        min-height: 100vh;
    }

    .register-container {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem;
    }

    .register-card {
        background: #fff;
        border-radius: 1.5rem;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
        max-width: 600px;
        width: 100%;
        overflow: hidden;
    }

    /* Header with logo */
    .register-header {
        background: linear-gradient(135deg, var(--md-gradient-start) 0%, var(--md-gradient-end) 100%);
        padding: 2rem;
        text-align: center;
        color: white;
    }

    .register-header img {
        height: 60px;
        margin-bottom: 1rem;
    }

    .register-header h3 {
        margin: 0;
        font-weight: 700;
        font-size: 1.5rem;
    }

    .register-header p {
        margin: 0.5rem 0 0;
        opacity: 0.9;
        font-size: 0.95rem;
    }

    /* Progress Steps */
    .progress-steps {
        display: flex;
        justify-content: center;
        padding: 1rem 0.5rem;
        background: #f8f9fc;
        border-bottom: 1px solid #e9ecef;
    }

    .step-indicator {
        display: flex;
        align-items: center;
        font-size: 0.75rem;
        color: #6c757d;
        white-space: nowrap;
    }

    .step-indicator:not(:last-child)::after {
        content: '';
        width: 12px;
        height: 2px;
        background: #dee2e6;
        margin: 0 0.25rem;
        flex-shrink: 0;
    }

    .step-indicator.active .step-number {
        background: linear-gradient(135deg, var(--md-gradient-start) 0%, var(--md-gradient-end) 100%);
        color: white;
    }

    .step-indicator.completed .step-number {
        background: #28a745;
        color: white;
    }

    .step-indicator.completed::after {
        background: #28a745;
    }

    .step-number {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #dee2e6;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 0.75rem;
        transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s, opacity 0.3s;
        flex-shrink: 0;
    }

    .step-label {
        display: none;
    }

    @media (min-width: 480px) {
        .progress-steps {
            padding: 1.25rem 1rem;
        }

        .step-indicator:not(:last-child)::after {
            width: 16px;
            margin: 0 0.35rem;
        }

        .step-number {
            width: 26px;
            height: 26px;
            font-size: 0.8rem;
        }
    }

    @media (min-width: 768px) {
        .progress-steps {
            padding: 1.5rem 2rem;
        }

        .step-indicator:not(:last-child)::after {
            width: 30px;
            margin: 0 0.5rem;
        }

        .step-number {
            width: 32px;
            height: 32px;
            font-size: 0.9rem;
            margin-right: 0.5rem;
        }

        .step-label {
            display: inline;
        }
    }

    /* Form Body */
    .register-body {
        padding: 2rem;
    }

    .step-content {
        display: none;
    }

    .step-content.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .step-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
    }

    .step-title i {
        margin-right: 0.75rem;
        color: var(--md-gradient-start);
    }

    .step-subtitle {
        color: #6c757d;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }

    /* Form Controls */
    .form-label {
        font-weight: 600;
        color: #344767;
        margin-bottom: 0.5rem;
    }

    .form-control, .form-select {
        border: 1px solid #d2d6da;
        border-radius: 0.5rem;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
    }

    /* Add extra right padding for email inputs to accommodate browser autocomplete icons */
    input[type="email"].form-control {
        padding-right: 2.5rem;
    }

    .form-control:focus, .form-select:focus {
        border-color: var(--md-gradient-start);
        box-shadow: 0 0 0 3px rgba(var(--md-gradient-start-rgb), 0.15);
    }

    .input-group-text {
        background: #f8f9fc;
        border: 1px solid #d2d6da;
        border-right: none;
        color: var(--md-gradient-start);
        padding: 0.75rem 1rem;
    }

    .input-group .form-control {
        border-left: none;
    }

    .input-group:focus-within .input-group-text {
        border-color: var(--md-gradient-start);
    }

    /* Role Cards */
    .role-cards-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .role-card {
        border: 2px solid #e9ecef;
        border-radius: 1rem;
        padding: 1.25rem;
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s, opacity 0.3s;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .role-card:hover {
        border-color: var(--md-gradient-start);
        background: rgba(var(--md-gradient-start-rgb), 0.03);
    }

    .role-card.selected {
        border-color: var(--md-gradient-start);
        background: linear-gradient(135deg, rgba(var(--md-gradient-start-rgb), 0.08) 0%, rgba(var(--md-gradient-end-rgb), 0.08) 100%);
    }

    /* WIG audit 2026-05-23 Phase F sev-3 (same architectural defect as
       Onboarding/RoleSelection sev-4 #7): `display: none` removes the
       radio from tab order AND from the screen-reader a11y tree, leaving
       the card-as-radio pattern keyboard-trapped. Replaced with the
       Bootstrap `.visually-hidden` clip-path equivalent so the radio
       stays focusable and announced; the `.role-card.selected` visual
       state is still JS-driven. */
    .role-card input[type="radio"] {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .role-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
        font-size: 1.5rem;
    }

    .role-icon.substitute { background: linear-gradient(135deg, var(--md-gradient-start) 0%, var(--md-gradient-end) 100%); color: white; }
    .role-icon.cantor { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); color: white; }
    .role-icon.director { background: linear-gradient(135deg, #28a745 0%, #20c997 100%); color: white; }
    .role-icon.church { background: linear-gradient(135deg, #6f42c1 0%, #9b59b6 100%); color: white; }

    .role-title {
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 0.25rem;
    }

    .role-desc {
        font-size: 0.85rem;
        color: #6c757d;
        margin: 0;
    }

    .role-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        background: var(--md-gradient-start);
        color: white;
        margin-left: 0.5rem;
        white-space: nowrap;
    }

    .role-price {
        text-align: right;
        margin-left: 1rem;
        flex-shrink: 0;
    }

    .role-price .price-amount {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--md-gradient-start);
        display: block;
    }

    .role-price .price-period {
        font-size: 0.75rem;
        color: #6c757d;
    }

    /* Director/Cantor Panels */
    .role-panel {
        background: #f8f9fc;
        border: 1px solid #e9ecef;
        border-radius: 0.75rem;
        padding: 1.5rem;
        margin-top: 1rem;
        display: none;
    }

    .role-panel.show {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    /* Navigation Buttons */
    .step-navigation {
        display: flex;
        justify-content: space-between;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid #e9ecef;
    }

    .btn-step {
        padding: 0.75rem 2rem;
        border-radius: 0.5rem;
        font-weight: 600;
        transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s, opacity 0.3s;
    }

    .btn-prev {
        background: #f8f9fc;
        color: #6c757d;
        border: 1px solid #dee2e6;
    }

    .btn-prev:hover {
        background: #e9ecef;
        color: #495057;
    }

    .btn-next, .btn-submit {
        background: linear-gradient(135deg, var(--md-gradient-start) 0%, var(--md-gradient-end) 100%);
        color: white;
        border: none;
    }

    .btn-next:hover, .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(var(--md-gradient-start-rgb), 0.4);
        color: white;
    }

    /* Terms Checkbox */
    .terms-check {
        display: flex;
        align-items: flex-start;
        padding: 1rem;
        background: #f8f9fc;
        border-radius: 0.75rem;
        border: 1px solid #e9ecef;
    }

    .terms-check input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 0.75rem;
        margin-top: 2px;
        accent-color: var(--md-gradient-start);
    }

    /* Validation */
    .field-validation-error {
        color: #dc3545;
        font-size: 0.85rem;
        margin-top: 0.25rem;
    }

    .validation-summary-errors {
        background: #f8d7da;
        border: 1px solid #f5c6cb;
        color: #721c24;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 1.25rem;
    }

    .validation-summary-valid { display: none; }

    /* Password requirements */
    .password-requirements {
        background: #f8f9fc;
        border: 1px solid #e9ecef;
        border-radius: 0.5rem;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        margin-top: 0.5rem;
        transition: opacity 0.3s ease, max-height 0.3s ease;
    }

    .password-requirements-title {
        font-weight: 600;
        color: #344767;
        margin-bottom: 0.5rem;
    }

    .password-requirement {
        display: flex;
        align-items: center;
        padding: 0.25rem 0;
        color: #dc3545;
        transition: color 0.2s;
    }

    .password-requirement.valid {
        color: #28a745;
    }

    .password-requirement i {
        font-size: 1rem;
        margin-right: 0.5rem;
        width: 1rem;
    }

    /* Password field with checkmark icon */
    .position-relative input[type="password"] {
        padding-right: 2.5rem;
    }

    #password-valid-icon i,
    #confirm-password-valid-icon i {
        font-size: 1.25rem;
    }

    /* Church picker button styling */
    .btn-church-picker {
        background: linear-gradient(135deg, var(--md-gradient-start) 0%, var(--md-gradient-end) 100%);
        color: white;
        border: none;
        padding: 0.75rem 1rem;
    }

    .btn-church-picker:hover {
        color: white;
        transform: translateY(-1px);
    }

    /* Login link */
    .login-link {
        text-align: center;
        padding: 1.5rem;
        background: #f8f9fc;
        border-top: 1px solid #e9ecef;
    }

    .login-link a {
        color: var(--md-gradient-start);
        font-weight: 600;
        text-decoration: none;
    }

    .login-link a:hover {
        text-decoration: underline;
    }

    /* Modal Styling */
    .modal-header {
        background: linear-gradient(135deg, var(--md-gradient-start) 0%, var(--md-gradient-end) 100%);
        color: white;
    }

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

    /* Stripe Elements Styling */
    .stripe-card-element {
        border: 1px solid #d2d6da;
        border-radius: 0.5rem;
        padding: 0.75rem 1rem;
        background: white;
        transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
    }

    .stripe-card-element:focus-within,
    .stripe-card-element.StripeElement--focus {
        border-color: var(--md-gradient-start);
        box-shadow: 0 0 0 3px rgba(var(--md-gradient-start-rgb), 0.15);
    }

    .stripe-card-element.StripeElement--invalid {
        border-color: #dc3545;
    }

    #card-errors {
        color: #dc3545;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    .payment-summary {
        background: linear-gradient(135deg, rgba(var(--md-gradient-start-rgb), 0.08) 0%, rgba(var(--md-gradient-end-rgb), 0.08) 100%);
        border: 1px solid #e9ecef;
        border-radius: 0.75rem;
        padding: 1.5rem;
    }

    .payment-summary .plan-name {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1a1a2e;
    }

    .payment-summary .plan-price {
        font-size: 2rem;
        font-weight: 800;
        color: var(--md-gradient-start);
    }

    .payment-summary .plan-period {
        color: #6c757d;
        font-size: 0.95rem;
    }

    .secure-badge {
        display: inline-flex;
        align-items: center;
        font-size: 0.85rem;
        color: #28a745;
        margin-top: 0.75rem;
    }

    .secure-badge i {
        font-size: 1rem;
        margin-right: 0.25rem;
    }

    /* Church Picker Modal - Mobile Responsive */
    .modal .dataTables_wrapper .dataTables_length,
    .modal .dataTables_wrapper .dataTables_filter {
        display: inline-block;
        width: auto;
        margin-bottom: 0.5rem;
    }

    .modal .dataTables_wrapper .dataTables_length {
        float: left;
    }

    .modal .dataTables_wrapper .dataTables_filter {
        float: right;
    }

    .modal .dataTables_wrapper .dataTables_length select {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    .modal .dataTables_wrapper .dataTables_filter input {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
        border: 1px solid #d2d6da;
        border-radius: 0.375rem;
    }

    .modal .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0.375rem 0.75rem !important;
        margin: 0.125rem !important;
        border-radius: 0.375rem !important;
        font-size: 0.875rem;
    }

    .modal .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background: linear-gradient(135deg, var(--md-gradient-start) 0%, var(--md-gradient-end) 100%) !important;
        color: white !important;
        border: none !important;
    }

    .modal .dataTables_wrapper .dataTables_info {
        font-size: 0.8rem;
        padding-top: 0.5rem;
    }

    @media (max-width: 576px) {
        .modal .dataTables_wrapper .dataTables_length,
        .modal .dataTables_wrapper .dataTables_filter {
            float: none;
            display: block;
            text-align: center;
            width: 100%;
        }

        .modal .dataTables_wrapper .dataTables_filter {
            margin-top: 0.5rem;
        }

        .modal .dataTables_wrapper .dataTables_filter input {
            width: 100%;
            max-width: 250px;
        }

        /* Hide State column on mobile */
        .modal table th:nth-child(4),
        .modal table td:nth-child(4) {
            display: none;
        }

        /* Make Select button smaller on mobile */
        .modal table .btn-sm {
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
        }

        .modal .dataTables_wrapper .dataTables_paginate {
            text-align: center;
            margin-top: 0.5rem;
        }

        .modal .dataTables_wrapper .dataTables_paginate .paginate_button {
            padding: 0.25rem 0.5rem !important;
            font-size: 0.75rem;
        }

        .modal .dataTables_wrapper .dataTables_info {
            text-align: center;
        }

        /* Make table font smaller on mobile */
        .modal table {
            font-size: 0.85rem;
        }
    }

/* ====================================================================
   AUDIT_2026-05-23 SWP-8 / Wave 8: utilities for inline-style cleanup
   ====================================================================
   Register.cshtml had 39 inline `style=""` attributes — mostly icon
   font-size shims and two progress-bar gradient fills. These classes
   replace the bulk pattern; the surrounding Register markup is scoped
   under `.register-container .register-card`. */

/* Material-icons size shorthands used as inline button-label icons.
   Slightly different sizes from the global mi-* utilities (those use
   px; these use rem to match the surrounding label text scaling). */
.register-icon-1rem { font-size: 1rem; }
.register-icon-1-1rem { font-size: 1.1rem; }

/* Big role-card icons (Cantor mic, Church building). */
.register-role-icon-large { font-size: 3rem; }

/* Validation-state checkmark sat over a password field. Absolute
   position pulls it into the input's right-edge gutter. */
.register-password-valid-icon {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* Upload progress bar — thin 5px-tall track inside the file picker. */
.register-upload-progress {
    height: 5px;
}

/* Progress-bar fill — director (brand purple) and church (purple-violet)
   variants. Width is set dynamically by JS via `.style.width = ...%`. */
.register-progress-fill--director {
    background: linear-gradient(135deg, var(--md-gradient-start) 0%, var(--md-gradient-end) 100%);
}

.register-progress-fill--church {
    background: linear-gradient(135deg, #6f42c1 0%, #9b59b6 100%);
}

/* Cursor hint on read-only "pick a church" inputs that open a modal. */
.register-clickable {
    cursor: pointer;
}

/* Role-panel top margin (3rd-step expansion below the role-selector). */
.register-role-panel {
    margin-top: 1.5rem;
}
