/* Pendaftaran & Aktivasi Anggota — tampilan OPAC.
   Memakai token tema Glassbook bila ada, dengan nilai cadangan untuk tema lain. */
.mrm {
    --mrm-accent: var(--g-accent, #C8432F);
    --mrm-accent-hover: var(--g-accent-hover, #A93623);
    --mrm-text: var(--g-text, #2B2622);
    --mrm-muted: var(--g-muted, #5F564F);
    --mrm-line: var(--g-line, rgba(95, 86, 79, .16));
    max-width: 860px;
    margin: 0 auto;
    color: var(--mrm-text);
}
.mrm--narrow { max-width: 520px; }
.mrm-alert { border-radius: 14px; }
.mrm-card {
    margin-bottom: 20px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: var(--g-radius, 20px);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 32px rgba(31, 38, 135, .08);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .mrm-card { background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.mrm-card__title { margin: 0 0 8px; font-size: 1.3rem; font-weight: 700; }
.mrm-center { text-align: center; }
.mrm-muted { color: var(--mrm-muted); }
.mrm-small { margin: 16px 0 0; font-size: .9rem; }
.mrm-eyebrow { margin: 0; color: var(--mrm-muted); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mrm-req { color: #B42318; }
.mrm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.mrm-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 20px;
    background: var(--mrm-accent);
    color: #fff;
    font-size: 1.6rem;
}
.mrm-icon--ok { background: #146C2E; }

.mrm-steps { display: flex; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.mrm-steps li {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .04);
    color: var(--mrm-muted);
    font-size: .9rem;
    font-weight: 700;
}
.mrm-steps span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; font-size: .8rem; }
.mrm-steps .is-current { background: var(--mrm-accent); color: #fff; }
.mrm-steps .is-current span { color: var(--mrm-accent); }

.mrm-note { margin: 12px 0 16px; padding: 12px 16px; border-radius: 14px; background: #FFF6E0; color: #6B4A00; }
.mrm-note--info { background: #E0F0FB; color: #0B4F7A; }

.mrm-form { text-align: left; }
.mrm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.mrm-field { display: block; margin: 0 0 14px; font-size: .9rem; font-weight: 700; }
.mrm-field input:not([type=radio]):not([type=checkbox]), .mrm-field select, .mrm-field textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    padding: 10px 14px;
    border: 1px solid var(--mrm-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    color: var(--mrm-text);
    font: inherit;
    font-weight: 400;
}
.mrm-field input:focus, .mrm-field select:focus, .mrm-field textarea:focus {
    border-color: var(--mrm-accent);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(200, 67, 47, .18);
}
.mrm-field small { display: block; margin-top: 4px; color: var(--mrm-muted); font-weight: 400; }
.mrm-radio { border: 0; padding: 0; min-width: 0; }
.mrm-radio legend { margin: 0 0 6px; font-size: .9rem; font-weight: 700; }
.mrm-radio label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-right: 18px; font-weight: 400; }
.mrm-captcha { margin: 4px 0 16px; }
.mrm-captcha input { max-width: 140px; }

.mrm-otp input {
    max-width: 260px;
    margin: 6px auto 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
    font-size: 1.8rem !important;
    letter-spacing: .5em;
    text-align: center;
}
.mrm-otp-form { text-align: center; }
.mrm-otp { text-align: center; }

.mrm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--mrm-accent);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}
.mrm-btn:hover { background: var(--mrm-accent-hover); }
.mrm-btn[disabled] { opacity: .5; cursor: not-allowed; }
.mrm-btn--ghost { background: rgba(255, 255, 255, .85); color: var(--mrm-text) !important; box-shadow: inset 0 0 0 1px var(--mrm-line); }
.mrm-btn--ghost:hover { background: #fff; }
.mrm-link-btn { padding: 0; border: 0; background: none; color: var(--mrm-muted); text-decoration: underline; cursor: pointer; }

.mrm-resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mrm-line); font-size: .9rem; }
.mrm-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.mrm-details { margin: 14px 0; }
.mrm-details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--mrm-muted); }
.mrm-restart { margin-top: 18px; text-align: right; }

@media (max-width: 767.98px) {
    .mrm-card { padding: 20px 16px; }
    .mrm-grid { grid-template-columns: minmax(0, 1fr); }
    .mrm-steps { flex-direction: column; }
    .mrm-btn { width: 100%; }
}
