/* ==========================================================================
   Merchant Register — 2 step wizard
   Loads on top of merchant-login.css and reuses its .ml-* design system.
   Everything here is scoped to body.merchant-register-page.
   ========================================================================== */

/* the signin_bg.jpg backdrop comes from merchant-login.css — the register page
   only swaps the centring for normal flow, since the form can outgrow the screen */
body.merchant-register-page {
    display: block;
    padding: 34px 24px;
}

.mr-card {
    max-width: 1080px;
    margin: 0 auto;
    overflow: visible;
}

/* the pane stretches with the card so the brand rail always runs full height,
   whichever step is open */
.mr-card .ml-pane-left {
    flex: 0 0 38%;
    max-width: 38%;
    min-height: calc(100vh - 88px);
}

.mr-card .ml-pane-right {
    padding: 26px 38px 32px;
    justify-content: center;
}

.mr-card .ml-form-wrap {
    max-width: 100%;
}

.mr-card .ml-features li {
    padding: 12px 0;
}

/* ------------------------------------------------------------ step header */

.mr-steps .steps ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.mr-steps .steps li {
    display: flex;
    align-items: center;
}

.mr-steps .steps li + li::before {
    content: "";
    width: 70px;
    height: 1px;
    background: #dbe3f0;
    margin: 0 16px;
    flex: none;
}

/* jquery.steps renders the step title straight into the anchor */
.mr-steps .steps li a,
.mr-steps .steps li a:hover,
.mr-steps .steps li a:focus {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #8a9cbb;
    white-space: nowrap;
    text-decoration: none;
}

.mr-steps .steps li.current a,
.mr-steps .steps li.current a:hover {
    color: #1d5be0;
}

.mr-steps .steps li.done a,
.mr-steps .steps li.done a:hover {
    color: #14274e;
}

.mr-steps .steps .number {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e7ecf5;
    color: #7186a8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.mr-steps .steps li.current .number {
    background: #2f74f5;
    color: #ffffff;
}

.mr-steps .steps li.done .number {
    background: #1d5be0;
    color: #ffffff;
}

.mr-steps .audible {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.mr-steps .content {
    margin: 0;
}

/* the source headings stay in the DOM once jquery.steps has copied them
   into the step bar — they must not render twice */
.mr-steps .content > h5,
.mr-steps .content > .title {
    display: none;
}

/* ---------------------------------------------------------------- layout */

.mr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.mr-span-2 {
    grid-column: 1 / -1;
}

.mr-section-title {
    grid-column: 1 / -1;
    margin: 6px 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #64789f;
}

/* ---------------------------------------------------------------- fields */

body.merchant-register-page .mr-field {
    margin-bottom: 16px;
}

body.merchant-register-page .mr-field > label,
body.merchant-register-page .mr-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #14274e;
}

body.merchant-register-page .mr-control {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #e3e9f4;
    border-radius: 10px;
    background: #ffffff;
    font-family: inherit;
    font-size: 13.5px;
    color: #14274e;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

body.merchant-register-page textarea.mr-control {
    height: auto;
    min-height: 88px;
    padding: 13px 16px;
    line-height: 1.55;
    resize: vertical;
}

body.merchant-register-page .mr-control::placeholder {
    color: #9fb0cc;
    opacity: 1;
}

body.merchant-register-page .mr-control:focus {
    border-color: #2f74f5;
    box-shadow: 0 0 0 3px rgba(47, 116, 245, .12);
}

/* select */
.mr-select-wrap {
    position: relative;
    display: block;
}

body.merchant-register-page select.mr-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    cursor: pointer;
}

.mr-select-wrap .mr-caret {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    color: #64789f;
    pointer-events: none;
}

.mr-select-wrap .mr-caret svg {
    width: 16px;
    height: 16px;
}

/* ------------------------------------------------------- service tiles */

.mr-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

body.merchant-register-page .mr-check {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #e3e9f4;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    font-weight: 400;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

body.merchant-register-page .mr-check:hover {
    border-color: #c8d6ee;
}

/* the native control keeps a real box so jQuery validate does not treat it
   as ":hidden" — it is simply laid over the custom box at zero opacity */
.mr-check input {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.mr-box {
    flex: none;
    width: 17px;
    height: 17px;
    border: 1.5px solid #cfd9ea;
    border-radius: 5px;
    background: #ffffff;
    position: relative;
    transition: background .15s ease, border-color .15s ease;
}

.mr-box::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .15s ease;
}

.mr-check input:checked ~ .mr-box,
.mr-check.is-checked .mr-box {
    background: #2f74f5;
    border-color: #2f74f5;
}

.mr-check input:checked ~ .mr-box::after,
.mr-check.is-checked .mr-box::after {
    transform: rotate(45deg) scale(1);
}

body.merchant-register-page .mr-check.is-checked {
    border-color: #2f74f5;
    background: #f5f8ff;
}

.mr-check input:focus-visible ~ .mr-box {
    box-shadow: 0 0 0 3px rgba(47, 116, 245, .18);
}

.mr-check-icon {
    flex: none;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: #eef3fd;
    color: #2f74f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mr-check-icon svg {
    width: 15px;
    height: 15px;
}

.mr-check-text {
    font-size: 12.8px;
    font-weight: 500;
    line-height: 1.35;
    color: #243a63;
}

/* ------------------------------------------------------------ yes / no */

.mr-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.merchant-register-page .mr-radio {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 10px 20px;
    border: 1px solid #e3e9f4;
    border-radius: 10px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    color: #243a63;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

body.merchant-register-page .mr-radio:hover {
    border-color: #c8d6ee;
}

.mr-radio input {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.mr-dot {
    flex: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #cfd9ea;
    background: #ffffff;
    position: relative;
    transition: border-color .15s ease, background .15s ease;
}

.mr-dot::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    transform: scale(0);
    transition: transform .15s ease;
}

.mr-radio input:checked ~ .mr-dot,
.mr-radio.is-checked .mr-dot {
    border-color: #2f74f5;
    background: #2f74f5;
}

.mr-radio input:checked ~ .mr-dot::after,
.mr-radio.is-checked .mr-dot::after {
    transform: scale(1);
}

body.merchant-register-page .mr-radio.is-checked {
    border-color: #2f74f5;
    background: #f5f8ff;
}

.mr-radio input:focus-visible ~ .mr-dot {
    box-shadow: 0 0 0 3px rgba(47, 116, 245, .18);
}

/* --------------------------------------------------------------- errors */

body.merchant-register-page .ml-error-slot:not(:empty) {
    margin-top: 6px;
}

body.merchant-register-page label.error {
    display: block;
    margin: 0;
    font-size: 12.5px;
    font-weight: 500;
    color: #e02b20;
}

/* -------------------------------------------------------- step actions */

.mr-steps .actions {
    margin-top: 26px;
}

.mr-steps .actions ul {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mr-steps .actions li {
    flex: 1 1 auto;
    padding: 0;
}

.mr-steps .actions li.disabled {
    display: none;
}

.mr-steps .actions li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 50px;
    padding: 0 18px;
    border-radius: 10px;
    background: linear-gradient(90deg, #2f74f5 0%, #1543bf 100%);
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(29, 74, 200, .25);
    transition: filter .15s ease, background .15s ease, border-color .15s ease;
}

.mr-steps .actions li a:hover {
    filter: brightness(1.06);
    color: #ffffff;
    text-decoration: none;
}

.mr-steps .actions li a svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.mr-steps .actions li:has(a[href="#previous"]) {
    flex: 0 0 160px;
}

.mr-steps .actions li a[href="#previous"] {
    background: #ffffff;
    border: 1px solid #e3e9f4;
    color: #1f2d4d;
    box-shadow: none;
}

.mr-steps .actions li a[href="#previous"]:hover {
    background: #f7f9fd;
    border-color: #d3dcec;
    color: #1f2d4d;
    filter: none;
}

/* ------------------------------------------------------------ thank you */

.mr-thanks {
    max-width: 460px;
    margin: 24px auto;
    text-align: center;
}

.mr-thanks-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #eefaf1;
    color: #1c9a4b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mr-thanks-icon svg {
    width: 28px;
    height: 28px;
}

.mr-thanks h2 {
    margin: 0 0 10px;
    font-size: 25px;
    font-weight: 700;
    color: #0f1f45;
}

.mr-thanks p {
    margin: 0 0 22px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #4b6ea8;
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 991px) {
    body.merchant-register-page {
        padding: 16px;
    }

    .mr-card {
        max-width: 640px;
    }

    .mr-card .ml-pane-left {
        position: static;
        flex: 1 1 auto;
        max-width: 100%;
        min-height: 0;
    }

    .mr-card .ml-pane-right {
        padding: 22px 22px 28px;
    }
}

@media (max-width: 575px) {
    body.merchant-register-page {
        padding: 0;
    }

    .mr-card {
        border-radius: 0;
        padding: 8px;
        box-shadow: none;
    }

    .mr-grid,
    .mr-check-grid {
        grid-template-columns: 1fr;
    }

    .mr-steps .steps li + li::before {
        width: 26px;
        margin: 0 8px;
    }

    .mr-steps .steps .title {
        font-size: 12.5px;
    }

    .mr-steps .actions li:has(a[href="#previous"]) {
        flex: 0 0 120px;
    }
}
