/* ============================================================
 *  Combined Membership Registration — 4-step wizard styles
 *  (ported from the approved design preview)
 * ============================================================ */
:root {
    --ink: #0f1633; --ink-2: #1b264f;
    --indigo: #3b5bdb; --indigo-600: #314ec0; --indigo-100: #e7ecff;
    --gold: #e3a008; --gold-100: #fff5e0;
    --green: #2f9e44; --green-100: #e7f6ec;
    --red: #e03131; --bg: #f5f6fb; --card: #ffffff; --line: #e4e7f2;
    --text: #1d2238; --muted: #6b7190; --muted-2: #9aa0bd;
    --radius: 14px;
    --shadow: 0 18px 50px -20px rgba(20, 27, 60, .35);
    --shadow-sm: 0 6px 18px -10px rgba(20, 27, 60, .35);
}
* { box-sizing: border-box; }
body.mr-body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Poppins', system-ui, sans-serif !important; -webkit-font-smoothing: antialiased; }
.mr-body a { color: var(--indigo); text-decoration: none; }

/* one consistent typeface — beats the old theme's `body { font-family: Roboto !important }`.
   Icon fonts (<i>/.fa) are intentionally NOT listed, so they stay intact. */
body.mr-body h1, body.mr-body h2, body.mr-body h3, body.mr-body h4, body.mr-body h5, body.mr-body h6,
body.mr-body p, body.mr-body a, body.mr-body li, body.mr-body td, body.mr-body th,
body.mr-body label, body.mr-body input, body.mr-body select, body.mr-body textarea,
body.mr-body button, body.mr-body .btn, body.mr-body .control {
    font-family: 'Poppins', system-ui, sans-serif !important;
}
.mr-body a:hover { text-decoration: underline; }
.mr-layout { display: flex; min-height: 100vh; }

.mr-brand { flex: 0 0 33.333%; min-width: 340px; position: relative; color: #fff;
    /* matches the site brand gradient (.bg-grad): #41ace1 -> #012752 */
    background: radial-gradient(120% 90% at 15% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(10deg, #41ace1 0%, #012752 100%);
    padding: 40px 34px; display: flex; flex-direction: column; overflow: hidden; }
.mr-brand::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; opacity: .6; pointer-events: none; }
.mr-brand > * { position: relative; z-index: 1; }
.mr-brand .logo { max-width: 100%; margin-bottom: 6px; }
.mr-brand .lead { margin-top: 18px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.78); font-weight: 300;  }
.vsteps { margin-top: 44px; display: flex; flex-direction: column; gap: 4px; }
.vstep { display: flex; gap: 16px; padding: 14px 0; position: relative; }
.vstep:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 44px; bottom: -6px; width: 2px; background: rgba(255,255,255,.14); }
.vstep.done:not(:last-child)::before { background: var(--gold); }
.vstep .dot { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 600; font-size: 14px; border: 2px solid rgba(255,255,255,.28); color: rgba(255,255,255,.7); background: rgba(255,255,255,.05); transition: .25s; }
.vstep.active .dot { border-color: #fff; background: #fff; color: var(--ink); box-shadow: 0 0 0 6px rgba(255,255,255,.12); }
.vstep.done .dot { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.vstep .vt { font-size: 14px; font-weight: 600; line-height: 1.3; }
.vstep .vs { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 300; }
.vstep:not(.active):not(.done) .vt { color: rgba(255,255,255,.7); font-weight: 500; }
.legal-ids { margin-top: 30px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.05); }
.legal-ids-title { display: flex; align-items: center; gap: 8px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.5); font-weight: 600; margin-bottom: 12px; }
.legal-ids-title i { color: var(--gold); font-size: 12px; }
.legal-id { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 12.5px; }
.legal-id + .legal-id { border-top: 1px solid rgba(255,255,255,.08); }
.legal-id span { color: rgba(255,255,255,.5); font-weight: 600; letter-spacing: .08em; }
.legal-id b { color: rgba(255,255,255,.92); font-weight: 500; letter-spacing: .03em; font-feature-settings: "tnum"; }
.mr-brand .foot { margin-top: 22px; font-size: 12px; color: rgba(255,255,255,.5); font-weight: 300; }

.mr-panel { flex: 1; padding: 44px clamp(20px, 5vw, 72px); display: flex; justify-content: center; }
.mr-panel-inner { width: 100%; max-width: 720px; }
.phead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.phead h1 { font-family: 'Poppins', system-ui, sans-serif; font-size: 30px; margin: 0; font-weight: 700; }
.phead p { margin: 0; color: var(--muted); font-size: 14.5px; }
.btn-signin { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 8px; background: #fff; color: var(--indigo); border: 1.5px solid var(--indigo); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: .15s; }
.btn-signin:hover { background: var(--indigo); color: #fff; }
.topsteps { display: none; gap: 8px; margin: 22px 0 4px; }
.topsteps .ts { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.topsteps .ts.active, .topsteps .ts.done { background: var(--indigo); }
.mr-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 26px; padding: 30px clamp(18px, 3vw, 34px); }

.step { display: none; animation: mrfade .35s ease; padding-top: 0; padding-bottom: 0; }
.step.active { display: block; }
@keyframes mrfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-title { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
.step-sub { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.resume-bar { font-size: 13px; color: #2c3a86; background: var(--indigo-100); border-radius: 10px; padding: 11px 14px; margin-bottom: 18px; }
.resume-bar a { font-weight: 600; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px 18px; }
.field { margin-bottom: 16px; }
.field.col-span { grid-column: 1 / -1; }
label.fl { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
label.fl .req { color: var(--red); }
label.fl .opt { color: var(--muted-2); font-weight: 400; }
.control, select.control, textarea.control { width: 100%; padding: 12px 14px; font: inherit; font-size: 14px; color: var(--text); background: #fbfbfe; border: 1.5px solid var(--line); border-radius: 10px; outline: none; transition: .18s; }
textarea.control { min-height: 78px; resize: vertical; }
.control:focus, select.control:focus, textarea.control:focus { border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px var(--indigo-100); }
.control::placeholder { color: var(--muted-2); }
.control.autofilled { background: var(--gold-100); border-color: var(--gold); }
.control.locked { background: #eef0f7; border-color: var(--line); color: #3a4060; cursor: not-allowed; }
.control.locked.autofilled { background: #eef0f7; }
.lockhint { display: none; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.lockhint i { color: var(--gold); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

.typeselect { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 6px; }
.typecard { border: 1.5px solid var(--line); border-radius: 12px; padding: 18px; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; background: #fbfbfe; transition: .18s; }
.typecard:hover { border-color: var(--indigo); }
.typecard.sel { border-color: var(--indigo); background: var(--indigo-100); box-shadow: var(--shadow-sm); }
.typecard .ic { font-size: 22px; line-height: 1; color: var(--indigo); width: 26px; text-align: center; }
.typecard h4 { margin: 0 0 3px; font-size: 15px; }
.typecard p { margin: 0; font-size: 12.5px; color: var(--muted); }
.typecard input { display: none; }

.verify-row { display: flex; gap: 10px; align-items: stretch; }
.verify-row .control { flex: 1; }
.btn-verify { white-space: nowrap; border: 1.5px solid var(--indigo); background: #fff; color: var(--indigo); border-radius: 10px; padding: 0 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; display: inline-flex; align-items: center; gap: 7px; }
.btn-verify:hover { background: var(--indigo); color: #fff; }
.btn-verify:disabled { opacity: .6; cursor: not-allowed; }
.btn-verify.wa { border-color: #1faf53; color: #128c3e; }
.btn-verify.wa:hover { background: #1faf53; color: #fff; }
.otp-box { display: none; margin-top: 10px; padding: 14px; border: 1.5px dashed var(--indigo); border-radius: 10px; background: var(--indigo-100); }
.otp-box.show { display: block; }
.otp-box .otp-line { display: flex; gap: 10px; align-items: center; }
.otp-box input { max-width: 160px; letter-spacing: 4px; text-align: center; font-weight: 600; }
.otp-note { font-size: 12px; color: var(--indigo-600); margin-top: 8px; }
.badge-verified { display: none; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--green); background: var(--green-100); border-radius: 99px; padding: 5px 12px; margin-top: 8px; width: fit-content; }
.badge-verified.show { display: inline-flex; }

.panel-box { border: 1.5px solid var(--line); background: #fbfbfe; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.chk { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.chk input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--indigo); }
.collapse2 { display: none; margin-top: 14px; }
.collapse2.show { display: block; }
.pills { display: flex; gap: 10px; }
.pill { flex: 1; text-align: center; cursor: pointer; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px; font-size: 14px; font-weight: 500; background: #fbfbfe; transition: .15s; }
.pill.sel { border-color: var(--indigo); background: var(--indigo-100); color: var(--indigo-600); font-weight: 600; }
.pill input { display: none; }

.gst-result { display: none; margin-top: 14px; border: 1.5px solid var(--green); background: var(--green-100); border-radius: 12px; padding: 16px; }
.gst-result.show { display: block; }
.gst-result.bad { border-color: var(--gold); background: var(--gold-100); }
.gst-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 12px 0; }
.gst-grid .col-span { grid-column: 1 / -1; }
.gst-grid > div { display: flex; flex-direction: column; gap: 2px; }
.gst-grid .gl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.gst-grid .gv { font-size: 14px; font-weight: 600; color: var(--text); }

.eyebrow-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tag { font-size: 11.5px; font-weight: 600; border-radius: 99px; padding: 4px 11px; display: inline-flex; align-items: center; gap: 6px; }
.tag-warn { background: var(--gold-100); color: #b5790a; }
.tag-info { background: var(--indigo-100); color: var(--indigo-600); }
.tier-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.tier-table th, .tier-table td { padding: 14px 16px; text-align: left; font-size: 14px; }
.tier-table thead th { background: #f4f5fb; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; border-bottom: 1.5px solid var(--line); }
.tier-table thead th.col-eb { background: var(--gold-100); color: #9a6a05; }
.tier-table tbody tr { cursor: pointer; transition: .15s; }
.tier-table tbody tr + tr td { border-top: 1px solid var(--line); }
.tier-table tbody tr:hover td { background: #fafbff; }
.tier-table tbody tr.sel td { background: var(--indigo-100); }
.tier-table .tname { font-weight: 600; }
.tier-table .price-orig { color: var(--muted-2); text-decoration: line-through; font-weight: 500; }
.tier-table small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; margin-top: 3px; }
.tier-table td.col-eb { background: rgba(227,160,8,.06); font-weight: 700; color: var(--ink); font-size: 16px; }
.tier-table tbody tr.sel td.col-eb { background: var(--indigo-100); }
.tier-table .col-pick { width: 44px; text-align: center; }
.tier-table .radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: inline-grid; place-items: center; }
.tier-table tr.sel .radio-dot { border-color: var(--indigo); background: var(--indigo); }
.tier-table tr.sel .radio-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.tier-table input { display: none; }
.save-pill { font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-100); border-radius: 6px; padding: 2px 7px; margin-left: 8px; }

.file { border: 1.5px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; font-size: 13px; color: var(--muted); background: #fbfbfe; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; overflow: hidden; }
.file:hover { border-color: var(--indigo); color: var(--indigo); }
.file input { display: none; }
.file i { flex-shrink: 0; }
.file span { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.file.has-file { border-style: solid; border-color: var(--green); color: var(--green); }
.taginput { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; background: #fbfbfe; min-height: 46px; }
.taginput input { border: none; outline: none; background: transparent; font: inherit; font-size: 14px; flex: 1; min-width: 120px; padding: 4px; }
.chiptag { background: var(--ink); color: #fff; border-radius: 7px; padding: 4px 9px; font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.chiptag i { cursor: pointer; opacity: .7; font-size: 11px; }
.chiptag i:hover { opacity: 1; }
.checkchips { display: flex; flex-wrap: wrap; gap: 9px; }
.checkchips label { border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 14px; font-size: 13px; cursor: pointer; background: #fbfbfe; transition: .15s; }
.checkchips input { display: none; }
.checkchips label.on { border-color: var(--indigo); background: var(--indigo-100); color: var(--indigo-600); font-weight: 600; }

.gateways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gw { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; background: #fbfbfe; transition: .18s; display: flex; align-items: center; gap: 12px; }
.gw.sel { border-color: var(--indigo); background: var(--indigo-100); box-shadow: var(--shadow-sm); }
.gw input { display: none; }
.gw .gwlogo { font-weight: 700; font-size: 15px; }
.gw .gwtag { font-size: 11.5px; color: var(--muted); }
.gw .gwmark { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.gw.sel .gwmark { border-color: var(--indigo); background: var(--indigo); }
.gw.sel .gwmark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }

.summary { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.summary .row { display: flex; justify-content: space-between; padding: 12px 18px; font-size: 14px; }
.summary .row + .row { border-top: 1px solid var(--line); }
.summary .row .lbl { color: var(--muted); }
.summary .row.total { background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; }
.summary .row.total .lbl { color: rgba(255,255,255,.8); }

.note { border-radius: 10px; padding: 14px 16px; font-size: 13.5px; line-height: 1.55; display: flex; gap: 11px; align-items: flex-start; }
.note .ni { font-size: 16px; line-height: 1.4; }
.note-info { background: var(--indigo-100); color: #2c3a86; } .note-info .ni { color: var(--indigo); }
.note-warn { background: var(--gold-100); color: #8a5a06; } .note-warn .ni { color: var(--gold); }
.note-ok { background: var(--green-100); color: #1f6b30; } .note-ok .ni { color: var(--green); }
.note-err { background: #ffeaea; color: #a81f1f; } .note-err .ni { color: var(--red); }

.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 14px; }
.btn { font: inherit; font-size: 14.5px; font-weight: 600; border-radius: 11px; padding: 13px 26px; cursor: pointer; border: 1.5px solid transparent; transition: .18s; display: inline-flex; align-items: center; gap: 9px; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-600); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted-2); }
.btn-pay { background: var(--green); color: #fff; }
.btn-pay:hover { background: #268a3a; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.nav .spacer { flex: 1; }
.mr-err { color: var(--red); font-size: 13px; margin-top: 10px; }
.signin-note { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.done-screen { display: none; text-align: center; padding: 30px 10px; }
.done-screen.show { display: block; }
.done-screen .circle { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 34px; }
.done-screen.review .circle { background: var(--gold-100); color: var(--gold); }
.done-screen.paid .circle { background: var(--green-100); color: var(--green); }
.done-screen h2 { font-family: 'Poppins', system-ui, sans-serif; margin: 0 0 10px; }
.done-screen p { color: var(--muted); max-width: 440px; margin: 0 auto; line-height: 1.6; font-size: 14.5px; }

/* error / message popup */
.mr-modal { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(15,22,51,.5); align-items: center; justify-content: center; padding: 20px; }
.mr-modal.show { display: flex; }
.mr-modal-box { background: #fff; border-radius: 14px; max-width: 440px; width: 100%; padding: 24px; box-shadow: var(--shadow); animation: mrfade .25s ease; }
.mr-modal-head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--red); margin-bottom: 14px; }
.mr-modal.ok .mr-modal-head { color: var(--green); }
.mr-modal-body { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 20px; max-height: 50vh; overflow: auto; }
.mr-modal-body ul { margin: 0; padding-left: 18px; }
.mr-modal-body li { margin-bottom: 5px; }
.mr-modal-body p { margin: 0; }
.mr-modal-box .btn { width: 100%; justify-content: center; }

@media (max-width: 960px) {
    .mr-layout { flex-direction: column; }
    .mr-brand { flex: none; width: 100%; min-width: 0; padding: 22px 20px 20px; }
    .mr-brand .logo { max-width: 160px; }
    .mr-brand .lead { margin-top: 10px; max-width: none; font-size: 13.5px; }
    .vsteps { display: none; }            /* progress shown by the horizontal bar below */
    .legal-ids { margin-top: 16px; }
    .topsteps { display: flex; }
    .mr-panel { padding: 28px 18px 60px; }
}
@media (max-width: 620px) { .grid, .grid-3, .typeselect, .gateways, .gst-grid { grid-template-columns: 1fr; } .phead h1 { font-size: 24px; } .tier-table small { display: block; } }

/* ============================================================
 *  Selling-points variant of the brand sidebar
 *  (login / partner login / forgot- & change-password pages)
 * ============================================================ */
.vpoints { margin-top: 40px; }
.vpoints .vstep { padding: 12px 0; }
.vpoints .vstep::before { display: none !important; }
.vpoints .vstep .dot { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.08); color: #fff; }
.vpoints .vstep .dot i { font-size: 14px; }
.vpoints .vstep .vt { color: #fff; font-weight: 600; }
.vpoints .vstep .vs { color: rgba(255,255,255,.62); }


/* ---------------------------------------------------------------------------
   Candidate form pages (job / job_seeker / update_job)
   The legacy sign-in template uses .form-control inputs + .btn-grad buttons
   with no card. Map them to the member-auth look. These legacy classes appear
   ONLY on the candidate pages (member auth uses .control / .btn-primary), so
   the member pages are not affected.
--------------------------------------------------------------------------- */
body.mr-body .panel-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 28px clamp(18px, 3vw, 34px); margin: 8px 0 24px;
}
body.mr-body .form-control,
body.mr-body select.form-control,
body.mr-body textarea.form-control {
    width: 100%; padding: 12px 14px; font-size: 14px; line-height: 1.4;
    color: var(--text); background: #fbfbfe;
    border: 1.5px solid var(--line); border-radius: 10px;
    outline: none; box-shadow: none; height: auto; transition: .18s;
}
body.mr-body textarea.form-control { min-height: 78px; resize: vertical; }
body.mr-body .form-control:focus {
    border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px var(--indigo-100);
}
body.mr-body .form-control::placeholder { color: var(--muted-2); }
body.mr-body .form-group { margin-bottom: 16px; }
body.mr-body .form-check-label { font-weight: 500; }
/* labels written as <p> in the legacy form */
body.mr-body form .text-left.mb-2 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 7px; }
/* gradient buttons -> primary indigo, matching .btn-primary */
body.mr-body .btn-grad {
    background: var(--indigo); color: #fff; border: 1.5px solid transparent;
    border-radius: 11px; font-weight: 600; padding: 12px 22px; box-shadow: none;
}
body.mr-body .btn-grad:hover { background: var(--indigo-600); color: #fff; }
