body.registration-page {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #fff;
    isolation: isolate;
}

.registration-page .registration-container {
    width: 100%;
    max-width: 1120px;
    height: auto;
    max-height: none;
    margin: 0 auto;
    padding: 24px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.registration-page .registration-card {
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    padding: 24px;
    overflow: visible;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(30, 50, 75, .06);
}

.registration-page .registration-sticky-header {
    position: static;
    padding: 8px 0;
    margin-bottom: 8px;
    background: #fff;
    border-bottom: 1px solid #edf1f5;
}

.registration-page .registration-sticky-header > h3 {
    margin-bottom: 12px !important;
    font-size: 23px;
    line-height: 1.6;
}

.registration-page #form-progress-bar {
    position: relative;
    z-index: 1020;
    margin-bottom: 12px;
}

.registration-page #form-progress-bar.is-fixed {
    position: fixed;
    top: 0;
    margin: 0;
    box-sizing: border-box;
}

.registration-page #registration :is(input, select, textarea) {
    scroll-margin-top: 120px;
}

.registration-page #registration .form-group {
    margin-bottom: 12px;
}

.registration-page #registration .form-group > label {
    margin-bottom: 6px;
}

.registration-page #registration .section-title {
    margin-top: 16px;
    margin-bottom: 8px;
}

.registration-page .registration-instructions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.registration-page .registration-instructions > span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.registration-page .registration-required-note {
    display: inline-block;
    white-space: normal;
}

.registration-page .form-actions {
    margin-top: 16px;
}

.registration-page #submit {
    min-height: 58px;
    padding: 14px 20px;
    border: 1px solid var(--pmx-brand-blue, #086ba8);
    border-radius: 12px;
    background: var(--pmx-brand-blue, #086ba8);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: 0 4px 12px #123c6918;
    transition: background .2s, box-shadow .2s;
}

.registration-page #submit:hover,
.registration-page #submit:focus {
    background: var(--pmx-brand-navy, #123c69);
    box-shadow: 0 6px 16px #123c6924;
}

.registration-page #submit:disabled {
    opacity: .65;
    box-shadow: none;
}

.registration-page .registration-login-prompt {
    margin: 8px 0 0;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.registration-page .pmx-footer {
    margin: 12px 0 0 !important;
    padding: 10px 8px !important;
}

.registration-page .registration-login-prompt a {
    display: inline-block;
    padding: 4px;
    color: var(--pmx-brand-blue, #086ba8);
    font-weight: 600;
}

.registration-page :is(#class, #day, #time, #payment) + .select2-container .select2-selection--single {
    height: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.registration-page :is(#class, #day, #time, #payment) + .select2-container .select2-selection__rendered {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.7;
    padding: 8px 32px 8px 12px;
    font-size: 16px;
}

.registration-page :is(#class, #day, #time, #payment) + .select2-container .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
}

.registration-page .registration-course-dropdown .select2-results__option {
    padding: 10px 12px;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.7;
}

.registration-page .form-control {
    min-height: 44px;
}

.registration-page input::placeholder,
.registration-page textarea::placeholder {
    color: #c2c9d1;
    opacity: 1;
}

.registration-page .select2-container--default .select2-selection--single .select2-selection__placeholder,
.registration-page #registration select:has(option[value=""]:checked) + .select2-container .select2-selection__rendered {
    color: #c2c9d1;
}

.registration-page #missing-ticker-wrap {
    min-width: 0;
}

.registration-page .registration-container {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767px) {
    body.registration-page {
        background: #fff;
    }

    .registration-page .registration-container {
        max-width: none;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .registration-page .registration-card {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 16px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .registration-page .registration-card > h3 {
        font-size: 23px;
        line-height: 1.6;
    }

    .registration-page #form-progress-bar {
        margin-bottom: 12px;
    }

    .registration-page #form-progress-bar .progress-label {
        font-size: 12px;
        gap: 8px;
    }

    .registration-page label {
        line-height: 1.7;
    }

    .registration-page :is(#class, #day, #time, #payment) + .select2-container .select2-selection--single {
        height: 44px;
    }

    .registration-page :is(#class, #day, #time, #payment) + .select2-container .select2-selection__rendered {
        min-width: 0;
        width: 100%;
        padding: 8px 24px 8px 8px;
        font-size: 13px;
        white-space: nowrap;
        overflow-wrap: normal;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .registration-page .registration-agreement {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }

    .registration-page .registration-agreement > input {
        flex: 0 0 auto;
        width: 15px;
        height: 15px;
        margin: 4px 0 0;
    }

    .registration-page .registration-agreement > label {
        min-width: 0;
        margin: 0;
        font-size: 13px;
        line-height: 1.8;
    }

    .registration-page .registration-agreement a {
        display: inline-block;
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .registration-page .registration-agreement > label {
        font-size: 12px;
    }
}

.registration-page #submit:focus-visible{outline:3px solid var(--pmx-brand-gold,#f7c844);outline-offset:3px}
.registration-page #submit:disabled{cursor:wait}

/* Keep the password visibility control inside the input. */
.registration-page .registration-password-field{position:relative;width:100%}
.registration-page .registration-password-field #password{padding-right:54px}
.registration-page .registration-password-field .registration-password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:40px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--pmx-brand-blue,#086ba8);cursor:pointer;font-size:18px;line-height:1;box-shadow:none;z-index:1}
.registration-page .registration-password-toggle:hover{background:#edf7fd}
.registration-page .registration-password-toggle:focus-visible{outline:2px solid #086ba8;outline-offset:-2px}

/* Match the homepage's 50 px grid and soft colored background orbs. */
.registration-page .registration-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.registration-page .registration-backdrop-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, .3) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .3) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: .4;
}
.registration-page .registration-backdrop-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .2;
}
.registration-page .registration-backdrop-orb-blue {
    width: 700px;
    height: 700px;
    top: -250px;
    right: -250px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}
.registration-page .registration-backdrop-orb-green {
    width: 600px;
    height: 600px;
    bottom: -200px;
    left: -200px;
    background: linear-gradient(135deg, #10b981, #0d9488);
}
.registration-page .registration-backdrop-orb-gold {
    width: 500px;
    height: 500px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.registration-page .registration-card {
    background: rgba(255, 255, 255, .94);
    border-color: #dce7ef;
}
