:root {
    --brand-950: #123b2a;
    --brand-900: #155438;
    --brand-800: #176542;
    --brand-700: #0f7a43;
    --brand-600: #16884d;
    --brand-500: #28a463;
    --brand-100: #e6f4ec;
    --brand-050: #f4faf6;
    --ink: #14231b;
    --muted: #66756d;
    --line: rgba(21, 84, 56, 0.16);
    --danger: #d92d20;
    --card: rgba(255, 255, 255, 0.78);
    --card-border: rgba(255, 255, 255, 0.74);
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #eef7f2 !important;
}

#ajaxBusy {
    z-index: 9999;
}

.mm-reg-wrap,
.mm-reg-wrap * {
    box-sizing: border-box;
}

.mm-reg-wrap {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    color: var(--ink);
    background: repeating-linear-gradient( 90deg, rgba(255,255,255,.00) 0, rgba(255,255,255,.00) 11%, rgba(255,255,255,.18) 11%, rgba(255,255,255,.18) 18% ), linear-gradient( 120deg, #eef9f4 0%, #dff4ea 25%, #edf5e8 46%, #f7ece4 68%, #e4f0ea 100% );
    font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

    .mm-reg-wrap::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 7% 82%, rgba(244, 181, 170, .28), transparent 27%), radial-gradient(circle at 92% 10%, rgba(52, 141, 98, .16), transparent 31%);
    }

    .mm-reg-wrap.mm-arabic,
    .mm-reg-wrap.mm-arabic input,
    .mm-reg-wrap.mm-arabic select,
    .mm-reg-wrap.mm-arabic textarea,
    .mm-reg-wrap.mm-arabic button {
        font-family: "Readex Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    }

.mm-reg-row {
    position: relative;
    z-index: 1;
    width: min(1360px, calc(100% - 64px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(500px, .92fr);
    gap: clamp(44px, 7vw, 120px);
    align-items: center;
    padding: 94px 0 48px;
}

.mm-brandbar {
    position: absolute;
    z-index: 5;
    top: 26px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mm-brand-logo {
    width: 190px;
    max-height: 62px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.mm-lang-switcher {
    position: static;
}

    .mm-lang-switcher select {
        appearance: none;
        min-width: 102px;
        height: 38px;
        border: 1px solid rgba(20, 35, 27, .16);
        border-radius: 999px;
        padding: 0 34px 0 15px;
        font-size: 13px;
        font-weight: 600;
        color: var(--ink);
        background: linear-gradient(45deg, transparent 50%, #52635a 50%) calc(100% - 16px) 16px / 5px 5px no-repeat, linear-gradient(135deg, #52635a 50%, transparent 50%) calc(100% - 12px) 16px / 5px 5px no-repeat, rgba(255,255,255,.78);
        backdrop-filter: blur(12px);
        cursor: pointer;
        box-shadow: 0 8px 24px rgba(29, 73, 51, .08);
    }

        .mm-lang-switcher select:focus {
            outline: none;
            border-color: var(--brand-500);
            box-shadow: 0 0 0 4px rgba(40, 164, 99, .12);
        }

.mm-reg-hero {
    align-self: center;
    padding-left: clamp(6px, 2vw, 30px);
    max-width: 690px;
}

.mm-reg-wrap.mm-arabic .mm-reg-hero {
    padding-left: 0;
    padding-right: clamp(6px, 2vw, 30px);
    text-align: right;
}

.mm-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #000000;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

    .mm-hero-kicker::before {
        content: "";
        width: 34px;
        height: 3px;
        border-radius: 999px;
        background: #000000;
    }


.mm-hero-title {
    margin: 0;
    max-width: 650px;
    color: var(--brand-700);
    font-size: clamp(58px, 5.5vw, 92px);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 800;
    white-space: nowrap;
}

.mm-reg-wrap.mm-arabic .mm-hero-title {
    letter-spacing: 0;
    line-height: 1.08;
    font-size: clamp(48px, 4.8vw, 78px);
}

.mm-hero-copy {
    max-width: 600px;
    margin: 28px 0 0;
    color: #24342b;
    font-size: clamp(19px, 1.65vw, 27px);
    line-height: 1.48;
    font-weight: 400;
}

.mm-hero-proof {
    margin-top: 48px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 12px 12px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 20px;
    background: rgba(255,255,255,.52);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 32px rgba(27, 79, 53, .06);
}

.mm-hero-proof-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand-700);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.04em;
}

.mm-hero-proof-copy strong,
.mm-hero-proof-copy span {
    display: block;
}

.mm-hero-proof-copy strong {
    color: var(--brand-950);
    font-size: 14px;
    margin-bottom: 3px;
}

.mm-hero-proof-copy span {
    color: var(--muted);
    font-size: 12px;
}

.mm-reg-panel {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.mm-reg-box {
    width: 100%;
    max-width: 560px;
    padding: 34px 36px 28px;
    border: 1px solid var(--card-border);
    border-radius: 40px;
    background: var(--card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 28px 70px rgba(31, 83, 56, .13), inset 0 1px 0 rgba(255,255,255,.85);
}

.mm-reg-title {
    margin: 0 0 6px;
    color: var(--ink);
    text-align: center;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 800;
}

.mm-reg-subtitle {
    display: block;
    margin: 0 auto 24px;
    max-width: 390px;
    color: var(--muted);
    text-align: center;
    font-size: 13.5px;
    line-height: 1.45;
}

.mm-reg-fieldset {
    margin: 0;
}

.mm-reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 14px;
}

    .mm-reg-grid.mm-rtl-columns {
        direction: rtl;
    }

        .mm-reg-grid.mm-rtl-columns > .inputs {
            direction: rtl;
        }

    .mm-reg-grid .inputs.full-width {
        grid-column: 1 / -1;
    }

.mm-reg-box .inputs {
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mm-reg-section-title {
    grid-column: 1 / -1;
    margin: 8px 0 -2px;
    color: var(--brand-950);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    text-align: left;
}

.mm-reg-grid .mm-reg-section-title:first-child {
    margin-top: 0;
}

.mm-reg-grid.mm-rtl-columns .mm-reg-section-title {
    text-align: right;
}

.mm-field-label {
    display: none;
}

.input-icon-wrap {
    position: relative;
    width: 100%;
}

.mm-reg-box .inputs input[type="text"],
.mm-reg-box .inputs input[type="password"],
.mm-reg-box .inputs input[type="email"],
.mm-reg-box .inputs input[type="tel"],
.mm-reg-box .inputs select {
    width: 100%;
    height: 44px;
    margin: 0;
    border: 1px solid rgba(23, 101, 66, .32);
    border-radius: 999px;
    padding: 0 16px;
    background: rgba(255,255,255,.58);
    color: var(--ink);
    font-size: 13.5px;
    line-height: 44px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.mm-reg-box .inputs select {
    line-height: normal;
    cursor: pointer;
}

.mm-reg-box .inputs input::placeholder {
    color: #77877f;
    opacity: 1;
}

.mm-reg-box .inputs input:hover,
.mm-reg-box .inputs select:hover {
    border-color: rgba(15, 122, 67, .55);
    background: rgba(255,255,255,.75);
}

.mm-reg-box .inputs input:focus,
.mm-reg-box .inputs select:focus {
    outline: none;
    border-color: var(--brand-600);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 136, 77, .11);
}

.mm-reg-box .field-validation-error {
    display: block;
    margin: 5px 10px 0;
    color: var(--danger);
    font-size: 11px;
    line-height: 1.25;
}

.mm-reg-box .required {
    color: var(--danger);
    margin-left: 2px;
}

.message-error,
.validation-summary-errors {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(217, 45, 32, .07);
    color: #b42318;
    font-size: 12px;
}

.accept-privacy-policy {
    margin: 15px 2px 0;
    color: #4a5b52;
    font-size: 11.5px;
    line-height: 1.45;
}

    .accept-privacy-policy input {
        width: 14px;
        height: 14px;
        margin: 0 6px 0 0;
        accent-color: var(--brand-700);
        vertical-align: -2px;
    }

.mm-reg-wrap.mm-arabic .accept-privacy-policy input {
    margin: 0 0 0 6px;
}

.accept-privacy-policy .read {
    color: var(--brand-700) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.mm-reg-buttons {
    margin-top: 16px;
}

    .mm-reg-buttons input[type="submit"] {
        width: 100%;
        height: 48px;
        border: 0;
        border-radius: 999px;
        background: var(--brand-700);
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .02em;
        cursor: pointer;
        box-shadow: 0 12px 24px rgba(15, 122, 67, .19);
        transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    }

        .mm-reg-buttons input[type="submit"]:hover {
            background: var(--brand-900);
            transform: translateY(-1px);
            box-shadow: 0 16px 30px rgba(15, 122, 67, .24);
        }

        .mm-reg-buttons input[type="submit"]:active {
            transform: translateY(0);
        }

.mm-reg-login-link {
    margin-top: 13px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

    .mm-reg-login-link a {
        margin-left: 4px;
        color: var(--brand-700);
        font-weight: 800;
        text-decoration: none;
    }

.mm-reg-wrap.mm-arabic .mm-reg-login-link a {
    margin-left: 0;
    margin-right: 4px;
}

.mm-reg-login-link a:hover {
    text-decoration: underline;
}

.external-authentication {
    margin-top: 12px !important;
    text-align: center;
}

.captcha-box {
    margin-top: 14px !important;
}

.mm-reg-footer {
    margin-top: 16px;
    padding: 0;
    color: rgba(20, 35, 27, .58);
    text-align: center;
    font-size: 10.5px;
    line-height: 1.4;
}

    .mm-reg-footer a {
        color: var(--brand-700);
        font-weight: 700;
        text-decoration: none;
    }

@media (max-width: 1100px) {
    .mm-reg-row {
        width: min(100% - 44px, 1040px);
        grid-template-columns: minmax(0, .9fr) minmax(480px, 1fr);
        gap: 42px;
    }

    .mm-hero-title {
        font-size: clamp(50px, 6vw, 70px);
    }

    .mm-hero-copy {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .mm-reg-row {
        width: min(100% - 32px, 720px);
        display: block;
        min-height: 100vh;
        padding: 90px 0 36px;
    }

    .mm-brandbar {
        top: 18px;
    }

    .mm-brand-logo {
        width: 150px;
        max-height: 48px;
    }

    .mm-reg-hero {
        max-width: 620px;
        margin: 18px auto 30px;
        padding: 0 8px;
        text-align: center;
    }

    .mm-reg-wrap.mm-arabic .mm-reg-hero {
        padding: 0 8px;
        text-align: center;
    }

    .mm-hero-kicker {
        justify-content: center;
    }

    .mm-hero-title,
    .mm-reg-wrap.mm-arabic .mm-hero-title {
        max-width: 620px;
        margin: 0 auto;
        font-size: clamp(42px, 9vw, 64px);
    }

    .mm-hero-copy {
        max-width: 560px;
        margin: 18px auto 0;
        font-size: 18px;
    }

    .mm-hero-proof {
        display: none;
    }

    .mm-reg-panel {
        justify-content: center;
    }

    .mm-reg-box {
        max-width: 620px;
    }
}

@media (max-width: 620px) {
    .mm-reg-row {
        width: min(100% - 22px, 560px);
        padding-top: 82px;
    }

    .mm-brand-logo {
        width: 132px;
    }

    .mm-lang-switcher select {
        min-width: 88px;
        height: 34px;
        font-size: 12px;
    }

    .mm-reg-hero {
        margin: 8px auto 22px;
    }

    .mm-hero-kicker {
        margin-bottom: 12px;
        font-size: 11px;
    }

    .mm-hero-title,
    .mm-reg-wrap.mm-arabic .mm-hero-title {
        font-size: clamp(38px, 12vw, 52px);
    }

    .mm-hero-copy {
        font-size: 16px;
    }

    .mm-reg-box {
        padding: 28px 18px 22px;
        border-radius: 28px;
    }

    .mm-reg-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mm-reg-section-title {
        margin-top: 10px;
    }

    .mm-reg-grid .inputs.full-width {
        grid-column: auto;
    }

    .mm-reg-box .inputs input[type="text"],
    .mm-reg-box .inputs input[type="password"],
    .mm-reg-box .inputs input[type="email"],
    .mm-reg-box .inputs input[type="tel"],
    .mm-reg-box .inputs select {
        height: 46px;
        line-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mm-reg-buttons input[type="submit"],
    .mm-reg-box .inputs input,
    .mm-reg-box .inputs select {
        transition: none;
    }
}
/* Prevent horizontal and vertical scrollbars caused by decorative elements */
.mm-reg-wrap {
    overflow: hidden;
}

    /* Stethoscope Watermark (Slanted, Enlarged & Shifted Down) */
    .mm-reg-wrap::before {
        content: "";
        position: absolute;
        top: 100px; /* Shifted down so the top tips clear the top edge */
        left: -10px; /* Keeps horizontal placement aligned with text */
        width: 850px;
        height: 950px;
        pointer-events: none;
        z-index: 0;
        /* SVG vector graphic */
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 700' fill='none' stroke='%23107b44' stroke-opacity='0.16' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M140 60 C140 180 170 230 250 230 C330 230 360 180 360 60'/><circle cx='140' cy='60' r='12' fill='%23107b44' fill-opacity='0.16'/><circle cx='360' cy='60' r='12' fill='%23107b44' fill-opacity='0.16'/><path d='M250 230 L250 430 C250 540 340 590 410 520 C460 470 430 380 340 410 L310 415'/><circle cx='310' cy='415' r='32' stroke-width='4'/><circle cx='310' cy='415' r='12' fill='%23107b44' fill-opacity='0.16'/></svg>");
        background-repeat: no-repeat;
        background-size: contain;
        /* Slant and scale configuration */
        transform: rotate(-18deg) scale(1.15);
        transform-origin: top left;
    }
    /* Mirror Stethoscope Watermark for Arabic Layout */
    .mm-reg-wrap.mm-arabic::before {
        left: auto;
        top: -200px; /* Shifted down so the top tips clear the top edge */
        right: 950px;
        /* Flips the SVG horizontally with scaleX(-1) while maintaining the rotation */
        transform: rotate(18deg) scaleX(-1) scale(1.15);
        transform-origin: top right;
    }

/* Ensure hero section stays above the background SVG */
.mm-reg-hero {
    position: relative;
    z-index: 1;
}

/* Ensure foreground content text stays elevated */
.mm-hero-kicker,
.mm-hero-title,
.mm-hero-copy,
.mm-hero-proof {
    position: relative;
    z-index: 1;
}
/* Ensure the proof link card layouts nicely on desktop */
a.mm-hero-proof {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 12px 12px;
    border-radius: 20px;
    border: 1px solid rgba(21, 84, 56, 0.16);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

    a.mm-hero-proof:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 10px 25px rgba(27, 79, 53, 0.12);
    }

/* Force it to stay visible and centered on Mobile */
@media (max-width: 900px) {
    a.mm-hero-proof,
    .mm-hero-proof {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 20px auto 0 !important;
        text-align: left; /* keeps text aligned next to the MD mark */
    }
}

/* Extra tweaking for small screens so text doesn't overflow */
@media (max-width: 480px) {
    a.mm-hero-proof {
        padding: 10px 12px;
        gap: 10px;
        max-width: 100%;
    }

    .mm-hero-proof-mark {
        width: 44px;
        height: 44px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .mm-hero-proof-copy strong {
        font-size: 13px;
    }

    .mm-hero-proof-copy span {
        font-size: 11px;
    }
}
/* =========================================================
   PHONE FIELD
   English = LTR
   Arabic = RTL layout, but phone digits stay LTR
   ========================================================= */

/* English */
.mm-reg-wrap:not(.mm-arabic)
.phone-input-wrap input {
    direction: ltr !important;
    text-align: left !important;
}


/* Arabic */
.mm-reg-wrap.mm-arabic
.phone-input-wrap input {
    direction: ltr !important;
    text-align: right !important;
}


    /* Arabic placeholder */
    .mm-reg-wrap.mm-arabic
    .phone-input-wrap input::placeholder {
        direction: ltr !important;
        text-align: right !important;
    }


/* English placeholder */
.mm-reg-wrap:not(.mm-arabic)
.phone-input-wrap input::placeholder {
    direction: ltr !important;
    text-align: left !important;
}