/* Scoped to the identity choices in onboarding step 4. */
.onboarding-premium .identity-choice {
    --identity-ink: #193b2b;
    --identity-muted: #59695f;
    --identity-green: #20573a;
    min-width: 0;
    margin: 12px 0 24px;
    padding: 28px;
    border: 1px solid #dfe7e1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px #193b2b06;
}
.identity-choice__legend { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.identity-choice__eyebrow { display: block; margin-bottom: 9px; color: #617267; font-size: .69rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.identity-choice__intro h4 { margin: 0 0 10px; color: var(--identity-ink); font-size: clamp(1.2rem, 3.8vw, 1.5rem); line-height: 1.3; font-weight: 650; letter-spacing: -.035em; }
.identity-choice__intro > p { margin: 0 0 24px; color: var(--identity-muted); font-size: .88rem; line-height: 1.65; }
.identity-choice__methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.identity-method { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 15px 20px 19px; border: 1px solid #dce4df; border-radius: 14px; background: #fff; color: var(--identity-ink); cursor: pointer; transition: border-color .18s, box-shadow .18s, background-color .18s; }
.identity-method:hover { border-color: #8ca998; background: #fbfdfb; }
.identity-method:has(.identity-method__input:checked) { border-color: #387652; background: #f6faf7; box-shadow: inset 0 0 0 1px #387652; }
.identity-method:focus-within { outline: 3px solid #387652; outline-offset: 3px; }
.identity-method__input { position: absolute; top: 22px; right: 20px; width: 19px; height: 19px; margin: 0; accent-color: #20573a; cursor: pointer; }
.onboarding-premium .identity-method__input:focus-visible { outline: none; }
/* The official iDIN logo keeps its original artwork and 15px clear space. */
.identity-method__brand { display: flex; align-items: center; justify-content: center; align-self: flex-start; width: 72px; height: 67px; margin: 0 0 9px -5px; padding: 15px; }
.identity-method__logo { display: block; width: 42px; height: auto; max-width: none; flex-shrink: 0; }
.identity-method__brand > .bi { color: var(--identity-green); font-size: 27px; line-height: 1; }
.identity-method__brand--upload { background: #eef3ef; border-radius: 12px; width: 42px; height: 42px; margin: 12px 0 22px 10px; padding: 0; }
.identity-method__title { display: block; margin-bottom: 7px; font-size: 1rem; font-weight: 650; letter-spacing: -.018em; line-height: 1.4; }
.identity-method__description { display: block; margin-bottom: 17px; color: var(--identity-muted); font-size: .84rem; line-height: 1.65; }
.identity-method__detail { display: flex; align-items: center; gap: 7px; margin-top: auto; color: #346446; font-size: .74rem; font-weight: 550; line-height: 1.5; }
.identity-method__detail > .bi { font-size: 1rem; }
.identity-provider { margin-top: 18px; padding: 23px 22px 18px; background: #f3f7f4; border: 1px solid #e2ebe5; border-radius: 14px; }
.identity-provider[hidden], #identityUploadPanel[hidden] { display: none !important; }
.identity-provider__main { display: flex; align-items: center; gap: 22px; }
.identity-provider__main > div { flex: 1; min-width: 0; }
.identity-provider h5 { margin: 0 0 7px; color: var(--identity-ink); font-size: .96rem; line-height: 1.4; font-weight: 650; letter-spacing: -.02em; }
.identity-provider__main p, .identity-provider__success p { margin: 0; color: var(--identity-muted); font-size: .82rem; line-height: 1.65; }
.onboarding-premium .identity-provider__button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; flex-shrink: 0; min-height: 48px; padding: 12px 19px; border: 1px solid #20573a; border-radius: 10px; background: #20573a; color: #fff; font-size: .83rem; font-weight: 600; white-space: nowrap; box-shadow: 0 3px 8px #163a2410; }
.onboarding-premium .identity-provider__button:hover { background: #173f2a; border-color: #173f2a; color: #fff; }
.onboarding-premium .identity-provider__button:focus-visible { outline: 3px solid #518468; outline-offset: 3px; }
.identity-provider__privacy { display: flex; align-items: flex-start; gap: 7px; margin: 17px 0 0; padding-top: 14px; border-top: 1px solid #dde7df; color: #617166; font-size: .72rem; line-height: 1.6; }
.identity-provider__privacy .bi { flex-shrink: 0; font-size: .9rem; }
.identity-provider__status { margin: 14px 0 0; color: #5a4824; font-size: .83rem; line-height: 1.6; }
.identity-provider__success { display: flex; align-items: center; gap: 14px; }
.identity-provider__check { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; background: #dcece1; border-radius: 50%; color: #20573a; font-size: 1.2rem; }
@media (max-width: 680px) {
    .onboarding-premium .identity-choice { padding: 22px 18px; }
    .identity-provider__main { flex-direction: column; align-items: stretch; gap: 18px; }
    .identity-provider__button { width: 100%; }
}
@media (max-width: 640px) {
    .onboarding-premium form.onboarding-final-form { padding: 0 !important; }
    .identity-choice__methods { grid-template-columns: 1fr; gap: 12px; }
    .identity-method { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 14px; padding: 18px 16px; }
    .identity-method__brand { grid-column: 1; grid-row: 1 / 4; align-self: start; width: 60px; height: 57px; margin: 0; padding: 15px; }
    .identity-method__logo { width: 30px; }
    .identity-method__brand--upload { width: 40px; height: 40px; margin: 8px 10px; padding: 0; }
    .identity-method__title, .identity-method__description, .identity-method__detail { grid-column: 2; }
    .identity-method__title { padding-right: 22px; }
    .identity-method__description { margin-bottom: 12px; }
    .identity-method__input { right: 16px; top: 20px; }
    .identity-provider { padding: 20px 17px 16px; }
}
@media (prefers-reduced-motion: reduce) { .identity-method { transition: none; } }
@media (forced-colors: active) {
    .identity-method:has(.identity-method__input:checked) { border: 2px solid Highlight; }
    .identity-method:focus-within { outline-color: Highlight; }
}
