/* REGISTER-CLEANUP-001
   Page-only additions for the consolidated registration choices.
   Everything is scoped to page-register so it cannot affect other site cards/buttons. */

body.page-register .register-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 2;
}

body.page-register .register-card-actions .card-button {
    margin: 0;
    overflow: hidden;
    isolation: isolate;
}

/* QA-PUBLIC-001-HOTFIX1
   Keep the animated shine inside each adjacent CTA. Without clipping, the
   ::before layer can travel across the neighboring button and steal hover. */
body.page-register .register-card-actions .card-button::before {
    pointer-events: none;
}

body.page-register .register-phone-button {
    white-space: nowrap;
}

@media (max-width: 520px) {
    body.page-register .register-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.page-register .register-card-actions .card-button,
    body.page-register .register-phone-button {
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}

/* QA-PUBLIC-001-FIX: location-aware registration context. */
body.page-register .register-location-context {
    max-width: 760px;
    margin: -36px auto 36px;
    padding: 12px 18px;
    text-align: center;
    color: var(--text-light);
    background: rgba(99, 102, 241, 0.07);
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 14px;
}

body.page-register .register-location-context strong {
    color: var(--text-dark);
    font-weight: 700;
}

body.page-register .register-card-empty {
    grid-column: 1 / -1;
    max-width: 680px;
    width: 100%;
    justify-self: center;
}

@media (max-width: 520px) {
    body.page-register .register-location-context {
        margin-top: -28px;
        margin-bottom: 28px;
    }
}
