/* Merchant registration (single-page onboarding). Scoped to .mo-root so the Raxa theme and Bootstrap don't leak in. */
.mo-root {
    --primary: #31358b;
    --primary-deep: #262a70;
    --green: #009247;
    --green-deep: #007338;

    --primary-tint: color-mix(in srgb, var(--primary) 8%, #fff);
    --primary-tint-b: color-mix(in srgb, var(--primary) 26%, #fff);
    --green-tint: color-mix(in srgb, var(--green) 8%, #fff);
    --green-tint-b: color-mix(in srgb, var(--green) 32%, #fff);
    --primary-dark: color-mix(in srgb, var(--primary) 70%, #0A0722);
    --ring: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
    --grad: linear-gradient(90deg, var(--primary), var(--green));

    --bg: #f0f2f5;
    --card: #fff;
    --line: #E6E8F1;
    --line2: #D8DCE9;
    --ink: #272B4A;
    --muted: #666D8F;
    --faint: #9AA0B8;
    --ph: #A6AEBD;
    --red: #E31C25;

    --sans: "Barlow", system-ui, sans-serif;
    --mono: var(--sans);
    --disp: "Roboto", var(--sans);

    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14.5px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}
.mo-root *, .mo-root *::before, .mo-root *::after { box-sizing: border-box; }
.mo-root ::selection { background: var(--primary); color: #fff; }
.mo-root button { font-family: inherit; cursor: pointer; }
.mo-root p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; font-weight: inherit; }
.mo-root h1, .mo-root h2, .mo-root h4 { margin: 0; font-family: var(--disp); color: var(--ink); line-height: 1.25; }
.mo-root .mo-mono { font-family: var(--mono); }

/* ---------- site header: theme makes .header-wrap absolute, which overlaps content when its nav wraps ---------- */
.merchant-registration-page .header-wrap { position: relative; background: #fff; z-index: 100; }
hr.full-width-line { border: 0; height: 1px; background: rgba(0, 146, 71, 0.25); }

/* Match shurjopay.com.bd responsive helpers (from frontend responsive.css) */
@media only screen and (max-width: 1199px) {
    .merchant-registration-page .lg-none { display: none !important; }
    .merchant-registration-page .header-wrap .header-bottom .navbar .navbar-collapse.main-menu-wrap:not(.open) {
        display: block !important;
        visibility: hidden;
        pointer-events: none;
    }
    .merchant-registration-page .header-wrap .header-bottom .navbar .navbar-collapse.main-menu-wrap.open {
        display: block !important;
        visibility: visible;
        pointer-events: auto;
    }
}
@media only screen and (min-width: 1200px) {
    .merchant-registration-page .xl-none { display: none !important; }
    .merchant-registration-page .mobile-bar-wrap { display: none !important; }
}

@media only screen and (max-width: 767px) {
    .merchant-registration-page .header-wrap .header-top .close-sidebar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 2;
        width: 36px;
        height: 36px;
        padding: 0;
        background: transparent;
        border: 0;
        cursor: pointer;
    }
    .merchant-registration-page .header-wrap .header-top .close-sidebar i {
        color: #030734 !important;
        font-size: 24px;
        line-height: 1;
    }
}

/* ---------- page ---------- */
.mo-page { max-width: 1180px; margin: 0 auto; padding: 14px 14px 40px; }
.mo-hero { margin-bottom: 12px; }
.mo-kick { display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--mono); letter-spacing: .08em; color: #fff;
    background: var(--green); border: 1px solid var(--green); padding: 3px 10px; border-radius: 99px; }
.mo-kick::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.mo-root .mo-hero h1 { font: 700 clamp(22px, 3.5vw, 30px)/1.2 var(--disp); margin: 8px 0 6px; }
.mo-root .mo-hero .mo-lead { max-width: 62ch; color: var(--muted); line-height: 1.5; font-size: 13.5px; }
.mo-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mo-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; }
.mo-trust i { color: var(--green); font-size: 14px; }

.mo-layout { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: start; }
.mo-layout[hidden] { display: none; }

/* ---------- sticky rail ---------- */
.mo-rail { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; }
.mo-railCard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px; }
.mo-railTop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.mo-railTop span { font: 600 11px var(--mono); letter-spacing: .08em; color: var(--muted); }
.mo-railTop b { font: 700 13px var(--mono); color: var(--primary); font-variant-numeric: tabular-nums; }
.mo-railBar { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.mo-railBar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .35s; }
.mo-railList { list-style: none; display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; }
.mo-railList li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; font-weight: 600;
    font-size: 12.5px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; user-select: none; }
.mo-railList li:hover { background: var(--bg); color: var(--ink); }
.mo-railList li .mo-ri { flex: none; width: 22px; height: 18px; display: grid; place-items: center; border-radius: 5px;
    font: 600 11px var(--mono); font-variant-numeric: tabular-nums; background: #EEF0F7; color: var(--muted); transition: all .15s; }
.mo-railList li .mo-tick { margin-left: auto; width: 16px; height: 16px; flex: none; display: grid; place-items: center;
    border: 1.5px solid var(--line2); border-radius: 50%; transition: all .2s; font-style: normal; color: #fff; font-size: 11px; }
.mo-railList li .mo-tick i { opacity: 0; }
.mo-railList li.done { color: var(--ink); }
.mo-railList li.done .mo-tick { background: var(--green); border-color: var(--green); }
.mo-railList li.done .mo-tick i { opacity: 1; }
.mo-railList li.cur { background: var(--primary-tint); color: var(--ink); }
.mo-railList li.cur .mo-ri { background: var(--primary); color: #fff; }
.mo-railHelp { background: var(--primary-dark); color: #EAEBF7; border-radius: 10px; padding: 12px; }
.mo-root .mo-railHelp h4 { font: 700 13.5px var(--disp); margin-bottom: 3px; color: #fff; }
.mo-root .mo-railHelp p { font-size: 12px; color: #B4BAE0; line-height: 1.45; margin-bottom: 8px; }
.mo-railHelp a { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; font-size: 12.5px;
    padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .09); overflow-wrap: anywhere; }
.mo-railHelp a:first-of-type { border-top: 0; }
.mo-railHelp a:hover { color: #fff; opacity: .85; }
.mo-railHelp a i { color: #5fd39a; font-size: 14px; }
.mo-railHelp small { display: block; margin-top: 8px; font-size: 11px; color: #969CC7; line-height: 1.45; }

/* ---------- form cards ---------- */
.mo-form { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mo-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; scroll-margin-top: 14px; }
.mo-cardHead { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mo-secNo { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px;
    background: var(--primary-tint); color: var(--primary); font: 700 12px var(--mono); font-variant-numeric: tabular-nums; }
.mo-root .mo-cardHead h2 { font: 700 15px var(--disp); }
.mo-root .mo-cardHead p { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.mo-subhead { grid-column: span 12; font: 600 10.5px var(--mono); letter-spacing: .08em; color: var(--muted);
    text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.mo-subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.mo-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px 12px; }
.mo-sp12 { grid-column: span 12; }
.mo-sp6 { grid-column: span 6; }
.mo-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mo-field > label, .mo-flabel { font-size: 11.5px; font-weight: 600; color: var(--ink); margin: 0; }
.mo-req { color: var(--red); }
.mo-opt { color: var(--faint); font-weight: 500; font-size: 11px; }
.mo-root .mo-hint { font-size: 10.5px; color: var(--faint); margin-top: -1px; }

.mo-root .mo-in { width: 100%; border: 1.5px solid var(--line2); border-radius: 7px; padding: 6px 10px; height: auto;
    font: 500 13px var(--sans); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.mo-root .mo-in:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.mo-root .mo-in::placeholder { color: var(--ph); font-weight: 400; }
.mo-root .mo-in.mo-digit { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mo-root .mo-in:disabled,
.mo-root .mo-in[readonly] { background: #F6F7FA; color: var(--muted); cursor: not-allowed; }

/* Read-only value cells (ops details view) */
.mo-root .mo-val {
    margin: 0;
    min-height: 34px;
    border: 1.5px solid var(--line);
    border-radius: 7px;
    padding: 7px 10px;
    font: 500 13.5px var(--sans);
    color: var(--ink);
    background: #F6F7FA;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.mo-root .mo-val.mo-empty { color: var(--faint); font-weight: 500; }
.mo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mo-chip {
    display: inline-block;
    border: 1.5px solid var(--primary-tint-b);
    background: var(--primary-tint);
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-deep);
}
.mo-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    padding: 4px 9px;
    font: 700 11px var(--mono);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.mo-status.is-pending { background: #FFF6E5; color: #A66B00; }
.mo-status.is-approved { background: var(--green-tint); color: var(--green-deep); }
.mo-status.is-rejected { background: color-mix(in srgb, var(--red) 10%, #fff); color: var(--red); }
.mo-viewHead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.mo-viewHead .mo-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font: 600 12.5px var(--sans);
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 6px;
}
.mo-viewHead .mo-back:hover { color: var(--primary-deep); text-decoration: underline; }
.mo-root .mo-viewHead h1 { font: 700 clamp(20px, 3vw, 26px)/1.2 var(--disp); margin: 0 0 4px; }
.mo-viewMeta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: 13px; }
.mo-viewMeta b { color: var(--primary); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mo-docCard {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    padding: 10px;
    background: #fff;
    min-height: 100%;
}
.mo-docCard a { color: inherit; text-decoration: none; }
.mo-docCard .mo-docPreview {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
}
.mo-docCard img { width: 100%; max-height: 96px; object-fit: contain; border-radius: 7px; background: #F6F7FA; }
.mo-docCard .mo-docIco {
    display: grid;
    place-items: center;
    min-height: 80px;
    border-radius: 7px;
    background: var(--green-tint);
    color: var(--green-deep);
    font-size: 32px;
}
.mo-docCard .mo-docName { font: 600 12.5px var(--sans); color: var(--ink); }
.mo-previewModal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.mo-previewModal[hidden] { display: none !important; }
.mo-previewBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.mo-previewDialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}
.mo-previewHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}
.mo-previewHead h3 {
    margin: 0;
    font: 700 15px var(--sans);
    color: var(--ink);
}
.mo-previewActions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mo-previewOpen {
    font: 600 12.5px var(--sans);
    color: var(--primary-deep);
    text-decoration: none;
}
.mo-previewOpen:hover { text-decoration: underline; }
.mo-previewClose {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
}
.mo-previewBody {
    padding: 12px;
    overflow: auto;
    background: #F6F7FA;
    min-height: 280px;
}
.mo-previewBody img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    margin: 0 auto;
    border-radius: 8px;
    background: #fff;
}
.mo-previewBody iframe {
    width: 100%;
    height: calc(100vh - 160px);
    min-height: 420px;
    border: 0;
    border-radius: 8px;
    background: #fff;
}
.mo-docCard.mo-docMissing {
    border-style: dashed;
    background: #FAFBFC;
}
.mo-docCard .mo-docIcoMuted {
    background: #F1F3F7;
    color: var(--muted);
}
.mo-docMissingNote {
    font: 500 11.5px var(--sans);
    color: #B45309;
}
.mo-docReplace {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-top: 2px;
}
.mo-docReplaceInput {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.mo-docReplaceBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: #fff;
    font: 600 12px var(--sans);
    color: var(--primary-deep);
}
.mo-docReplaceBtn:hover { border-color: var(--primary); }
.mo-docReplace.is-busy .mo-docReplaceBtn { opacity: 0.6; pointer-events: none; }
.mo-pocPick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 600 12.5px var(--sans);
    color: var(--ink);
}
.mo-pocPick select {
    min-width: 160px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font: 500 13px var(--sans);
}
.mo-decideBar {
    position: sticky;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px -4px 0;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 -6px 24px rgba(39, 43, 74, .08);
}
.mo-decideBar.is-focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    animation: mo-decidePulse 1.2s ease-out 1;
}
@keyframes mo-decidePulse {
    from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 35%, transparent); }
    to { box-shadow: 0 -6px 24px rgba(39, 43, 74, .08); }
}
.mo-decideBar .mo-decideText { font-size: 13px; color: var(--muted); max-width: 48ch; }
.mo-decideBar .mo-decideText b { color: var(--ink); }
.mo-decideActions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.mo-btnReject {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--red);
    border: 1.5px solid var(--red);
    border-radius: 7px;
    padding: 10px 18px;
    font: 700 13.5px var(--sans);
    transition: background .15s, color .15s;
}
.mo-btnReject:hover { background: var(--red); color: #fff; }

.mo-payActions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 6px; }
.mo-payActions .mo-field { min-width: 140px; flex: 1; }
.mo-fileIn {
    width: 100%;
    border: 1.5px dashed var(--line2);
    border-radius: 7px;
    padding: 7px 10px;
    background: #fff;
    font: 500 12.5px var(--sans);
}

/* bank / branch suggestions */
.mo-ac { position: relative; }
.mo-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none;
    max-height: 264px; overflow-y: auto; background: #fff; border: 1px solid var(--line2); border-radius: 10px;
    box-shadow: 0 14px 34px rgba(39, 43, 74, .14); font-family: var(--sans); }
.mo-suggest[hidden] { display: none; }
.mo-suggest li { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.mo-suggest li b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mo-suggest li span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mo-suggest li:hover, .mo-suggest li.on { background: var(--primary-tint); }
.mo-suggest li.on b { color: var(--primary); }

.mo-selwrap { position: relative; }
.mo-root .mo-selwrap select { appearance: none; -webkit-appearance: none; background-image: none; width: 100%;
    border: 1.5px solid var(--line2); border-radius: 7px; padding: 6px 30px 6px 10px; font: 500 13px var(--sans);
    color: var(--ink); background-color: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mo-root .mo-selwrap select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.mo-root .mo-selwrap select:invalid { color: var(--ph); }
.mo-selwrap::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; pointer-events: none;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }

/* Searchable closed selects (Business Type / Category) */
.mo-searchSel { position: relative; }
.mo-searchSel > .mo-in { padding-right: 30px; }
.mo-searchSel::after { content: ""; position: absolute; right: 12px; top: 14px; width: 7px; height: 7px; pointer-events: none;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); z-index: 1; }
.mo-srSelect {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.mo-root .mo-field.invalid .mo-searchSel > .mo-in { border-color: var(--red); }

/* pills (radio / checkbox chips) */
.mo-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.mo-pill { position: relative; margin: 0; }
.mo-pill input { position: absolute; opacity: 0; pointer-events: none; }
.mo-pill span { display: inline-block; border: 1.5px solid var(--line2); background: #fff; border-radius: 7px; padding: 6px 11px;
    font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; user-select: none; transition: all .15s; }
.mo-pill span:hover { border-color: var(--primary); }
.mo-pill input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.mo-pill input:focus-visible + span { outline: 2px solid var(--primary-deep); outline-offset: 2px; }

/* errors */
.mo-err { display: none; font-size: 12.5px; font-weight: 600; color: var(--red); }
.mo-field.invalid .mo-err { display: block; }
.mo-root .mo-field.invalid .mo-in,
.mo-root .mo-field.invalid .mo-selwrap select { border-color: var(--red); }
.mo-field.invalid .mo-pill span { border-color: var(--red); }
.mo-field.invalid .mo-uprow { border-color: var(--red); }
.mo-field.invalid .mo-box { border-color: var(--red); }

/* uploads */
.mo-uprow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px dashed var(--line2);
    border-radius: 9px; transition: border-color .15s, background .15s; flex-wrap: wrap; }
.mo-uprow.drag { border-color: var(--primary); background: var(--primary-tint); }
.mo-uprow.hasfile { border-style: solid; border-color: var(--green-tint-b); background: var(--green-tint); }
.mo-upIco { flex: none; width: 32px; height: 32px; border-radius: 7px; background: #F3F4FA; display: grid; place-items: center;
    font-size: 16px; color: var(--ink); }
.mo-upMeta { flex: 1; min-width: 160px; }
.mo-upMeta b { display: block; font-size: 13px; color: var(--ink); }
.mo-root .mo-upMeta p { font-size: 11px; color: var(--faint); margin-top: 1px; }
.mo-upRight { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.mo-upBtn { border: 1.5px solid var(--ink); border-radius: 7px; padding: 6px 12px; font-size: 12px; font-weight: 700; margin: 0;
    color: var(--ink); cursor: pointer; user-select: none; transition: all .15s; }
.mo-upBtn:hover { background: var(--ink); color: #fff; }
.mo-upFile { display: none; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--green-tint-b);
    border-radius: 7px; padding: 5px 6px 5px 10px; font-size: 12px; font-weight: 600; color: var(--green-deep); max-width: 260px; }
.mo-uprow.hasfile .mo-upFile { display: inline-flex; }
.mo-upFile em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mo-upFile b { flex: none; font-weight: 500; }
.mo-upFile button { flex: none; width: 18px; height: 18px; border: 0; background: transparent; color: var(--green-deep);
    font-size: 14px; line-height: 1; border-radius: 4px; display: grid; place-items: center; padding: 0; }
.mo-upFile button:hover { background: color-mix(in srgb, var(--green) 15%, transparent); }
.mo-upPreview {
    display: none;
    border: 1.5px solid var(--primary);
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: all .15s;
}
.mo-uprow.hasfile .mo-upPreview { display: inline-flex; align-items: center; }
.mo-upPreview:hover { background: var(--primary); color: #fff; }
.mo-upThumb {
    display: none;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--green-tint-b);
    background: #fff;
}
.mo-uprow.hasfile .mo-upThumb.is-on { display: block; }
.mo-previewBody .mo-previewUnavailable {
    margin: 48px auto;
    max-width: 36ch;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.mo-docgroup { grid-column: span 12; }
.mo-docgroup > .mo-grid { gap: 10px; }

/* checkbox rows */
.mo-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink); cursor: pointer; margin: 0; position: relative; }
.mo-check input { position: absolute; opacity: 0; pointer-events: none; }
.mo-box { flex: none; width: 17px; height: 17px; border: 1.5px solid var(--line2); border-radius: 4px; margin-top: 1px;
    position: relative; background: #fff; transition: all .15s; }
.mo-check input:checked ~ .mo-box { background: var(--primary); border-color: var(--primary); }
.mo-check input:checked ~ .mo-box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(42deg); }
.mo-check input:focus-visible ~ .mo-box { outline: 2px solid var(--primary-deep); outline-offset: 2px; }
.mo-check .mo-link { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.mo-banner { display: none; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 8px;
    background: color-mix(in srgb, var(--red) 7%, #fff); border: 1px solid color-mix(in srgb, var(--red) 30%, #fff); color: var(--red); }
.mo-banner.show { display: flex; }
.mo-banner i { font-size: 16px; }
.mo-root .mo-banner b { display: block; font-size: 13px; }
.mo-root .mo-banner p { font-size: 12px; color: var(--ink); }

.mo-submitRow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px;
    padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mo-root .mo-privacy { font-size: 11.5px; color: var(--faint); max-width: 44ch; line-height: 1.45; }
.mo-btnP { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; border: 0;
    border-radius: 7px; padding: 10px 18px; font: 700 13.5px var(--sans); letter-spacing: .01em; transition: background .15s, transform .1s, opacity .15s; }
.mo-btnP i { font-size: 15px; }
.mo-btnP:hover { background: var(--primary-deep); color: #fff; }
.mo-btnP:active { transform: translateY(1px); }
.mo-btnP:disabled { opacity: .55; cursor: not-allowed; }
.mo-btnP.loading { cursor: wait; opacity: .8; }
.mo-btnP.loading i { display: none; }
.mo-btnP.loading::after { content: ""; width: 15px; height: 15px; border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: mo-spin .7s linear infinite; }
@keyframes mo-spin { to { transform: rotate(360deg); } }

/* ---------- success ---------- */
.mo-success { max-width: 740px; margin: 0 auto; }
.mo-success[hidden] { display: none; }
.mo-sCard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px 22px;
    animation: mo-sIn .45s cubic-bezier(.22, .9, .3, 1) both; }
@keyframes mo-sIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.mo-sCheck { width: 52px; height: 52px; margin-bottom: 12px; color: var(--green); }
.mo-sCheck .ckC { stroke-dasharray: 190; stroke-dashoffset: 190; animation: mo-draw .7s .15s ease-out forwards; }
.mo-sCheck .ckP { stroke-dasharray: 60; stroke-dashoffset: 60; animation: mo-draw .4s .8s ease-out forwards; }
@keyframes mo-draw { to { stroke-dashoffset: 0; } }
.mo-root .mo-sCard h2 { font: 700 22px var(--disp); }
.mo-root .mo-sCard .mo-lead { color: var(--muted); line-height: 1.5; margin-top: 6px; font-size: 13.5px; }
.mo-ticket { margin: 10px 0; border: 1.5px dashed #C9CEDE; border-radius: 9px; background: #FBFCFE; padding: 12px 14px; }
.mo-tkTop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap;
    padding-bottom: 10px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.mo-tkTop b { font: 700 16px var(--mono); color: var(--primary); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.mo-tkTop span { font: 500 12px var(--mono); color: var(--faint); }
.mo-tkRow { display: flex; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #EAECF4; font-size: 13px; }
.mo-tkRow:last-child { border-bottom: 0; }
.mo-tkRow .k { flex: none; width: 140px; font: 600 11px var(--mono); letter-spacing: .06em; color: var(--faint); padding-top: 1px; }
.mo-tkRow .v { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.mo-tkRow .v.mo-empty { color: var(--faint); font-weight: 500; }
.mo-root .mo-detailsTicket .mo-tkRow .k { width: 180px; }
.mo-tkHtml { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.mo-tl { margin: 6px 0 16px; }
.mo-tlItem { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.mo-tlItem:last-child { padding-bottom: 0; }
.mo-tlItem::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.mo-tlItem:last-child::before { display: none; }
.mo-tlDot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line2); margin-top: 2px; }
.mo-tlItem.now .mo-tlDot { border-color: var(--green); background: var(--green); }
.mo-tlItem b { display: block; font-size: 13px; color: var(--ink); }
.mo-root .mo-tlItem p { font-size: 12px; color: var(--muted); margin-top: 1px; }
.mo-ctaRow { display: flex; gap: 10px; flex-wrap: wrap; }
.mo-btnGhost { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink);
    border-radius: 7px; padding: 9px 16px; font: 700 13px var(--sans); transition: all .15s; }
.mo-btnGhost:hover { background: var(--ink); color: #fff; }

/* ---------- terms modal ---------- */
.overlay#modalOverlay { display: none; position: fixed; inset: 0; background: rgba(10, 7, 34, .55); justify-content: center; align-items: center; z-index: 2000; }
.modalterms { background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); max-width: min(880px, 92vw); width: 100%;
    max-height: 78vh; overflow-y: auto; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 28px 30px;
    font-family: "Barlow", system-ui, sans-serif; }
.modalterms h2 { font: 700 20px "Roboto", "Barlow", sans-serif; color: #272B4A; text-align: center; margin-bottom: 16px; }
.modalterms p { font-size: 14px; line-height: 1.6; color: #444; }
.close-btn { cursor: pointer; color: #333; font-size: 24px; position: absolute; top: 10px; right: 16px; line-height: 1; }
.alignText { text-align: justify; }

/* ---------- responsive / print ---------- */
@media (max-width: 1024px) {
    .mo-layout { grid-template-columns: 1fr; }
    .mo-rail { display: none; }
    .mo-page { padding: 12px 12px 36px; }
}
@media (max-width: 640px) {
    .mo-sp6 { grid-column: span 12; }
    .mo-page { padding: 10px 10px 32px; }
    .mo-card { padding: 12px 10px; }
    .mo-upRight { margin-left: 0; width: 100%; }
    .mo-submitRow .mo-btnP { width: 100%; justify-content: center; }
    .mo-sCard { padding: 18px 14px; }
    .mo-tkRow .k { width: 110px; }
    .mo-root .mo-detailsTicket .mo-tkRow .k { width: 120px; }
}
/* ---------- merchant payment (compact, matches shurjoPay onboard) ---------- */
.mo-payPage { max-width: 640px; }
.mo-payHero { margin-bottom: 14px; }
.mo-payHero h1 { font-size: clamp(20px, 3vw, 26px) !important; }
.mo-payHero .mo-lead { font-size: 13px; }
.mo-payCard { padding: 14px 16px 16px; }
.mo-payTicket { margin: 0 0 14px; padding: 8px 12px; }
.mo-payTicket .mo-tkRow { padding: 5px 0; }
.mo-payTicket .mo-tkRow .k { width: 92px; font-size: 10.5px; }
.mo-payTicket .mo-tkRow .v { font-size: 13px; }
.mo-payAmountHead { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.mo-payInputRow {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mo-payInputRow .mo-in { flex: 1 1 auto; min-width: 0; }
.mo-payInputRow .mo-btnP {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 16px;
    white-space: nowrap;
}
.mo-root .mo-in.mo-invalid,
.mo-root .mo-in.is-invalid {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent);
    background: color-mix(in srgb, var(--red) 4%, #fff);
}
.mo-root .mo-in.mo-invalid:focus,
.mo-root .mo-in.is-invalid:focus {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent);
}
.mo-payForm .mo-hint { color: var(--red); min-height: 16px; margin: 2px 0 0; }
.mo-payPaid {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--green-tint);
    border: 1px solid var(--green-tint-b);
}
.mo-payPaid i { color: var(--green); font-size: 20px; line-height: 1; margin-top: 1px; }
.mo-payPaid b { display: block; font-size: 13.5px; color: var(--ink); }
.mo-payPaid p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.mo-payHelp {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
}
.mo-payHelp a { color: var(--primary); font-weight: 600; text-decoration: none; }
.mo-payHelp a:hover { text-decoration: underline; }

@media print {
    .header-wrap,
    .mo-hero,
    .mo-rail,
    .mo-ctaRow,
    .errormsg,
    .merchant-registration-footer { display: none !important; }
    .mo-root { background: #fff; }
}
