:root {
    --ink: #10233f;
    --muted: #607089;
    --line: #dfe6ee;
    --surface: #fff;
    --soft: #f4f7fa;
    --primary: #b7192e;
    --primary-dark: #8e1021;
    --accent: #e7b24a;
    --shadow: 0 24px 70px rgba(16,35,63,.12)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter,"Noto Kufi Arabic",sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6
}

html[dir=rtl] body {
    font-family: "Noto Kufi Arabic",Tahoma,Arial,sans-serif;
    direction: rtl;
    text-align: right
}

.container {
    width: min(1180px,calc(100% - 40px));
    margin: auto
}

.site-header {
    height: 78px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(223,230,238,.7);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    -webkit-backdrop-filter: none;
    backdrop-filter: none
}

.header-inner, .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--ink);
    text-decoration: none
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--primary);
    color: white;
    font-weight: 700
}

.brand strong, .brand small {
    display: block
}

.brand small {
    color: var(--muted);
    font-size: 11px
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px
}

.language-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 11px;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: .2s
}

.button-primary {
    background: var(--primary);
    color: white
}

    .button-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-1px)
    }

.button-secondary {
    border-color: var(--line);
    background: white;
    color: var(--ink)
}

.button-small {
    min-height: 40px;
    padding: 0 17px
}

.button-large {
    min-height: 54px;
    padding: 0 28px
}

.hero {
    padding: 88px 0 96px;
    background: radial-gradient(circle at 80% 25%,rgba(231,178,74,.18),transparent 28%),linear-gradient(145deg,#fff 45%,#f6f8fb)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 80px;
    align-items: center
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700
}

.hero h1 {
    font-size: clamp(42px,5.8vw,74px);
    line-height: 1.05;
    letter-spacing: -.045em;
    margin: 18px 0 24px;
    max-width: 760px
}

.hero-lead {
    font-size: 19px;
    color: var(--muted);
    max-width: 660px
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 34px 0
}

.trust-row {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted)
}

.hero-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow);
    transform: rotate(1.5deg)
}

.status-pill {
    display: inline-block;
    background: #eff8f1;
    color: #28743a;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 30px 0 18px
}

    .mock-header small, .mock-upload small {
        display: block;
        color: var(--muted)
    }

.mock-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg,var(--primary),#d95262)
}

.mock-progress {
    height: 8px;
    background: var(--soft);
    border-radius: 99px;
    overflow: hidden
}

    .mock-progress span {
        display: block;
        width: 55%;
        height: 100%;
        background: var(--primary)
    }

.mock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 26px 0
}

    .mock-grid i {
        height: 54px;
        border: 1px solid var(--line);
        border-radius: 9px
    }

.mock-upload {
    padding: 22px;
    border: 1.5px dashed #c8d2df;
    border-radius: 12px;
    text-align: center
}

.section {
    padding: 94px 0
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px
}

    .section-heading h2 {
        font-size: 40px;
        margin: 12px 0
    }

.steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px
}

    .steps article {
        padding: 32px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: white
    }

        .steps article > span {
            font-size: 13px;
            font-weight: 700;
            color: var(--primary)
        }

    .steps h3 {
        font-size: 20px
    }

    .steps p {
        color: var(--muted)
    }

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px
}

.signup-shell {
    padding: 54px 0 90px;
    background: var(--soft);
    min-height: calc(100vh - 78px)
}

.signup-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 42px;
    align-items: start
}

.signup-aside {
    position: sticky;
    top: 120px;
    padding: 20px 8px
}

    .signup-aside h1 {
        font-size: 38px;
        line-height: 1.15;
        margin: 16px 0
    }

    .signup-aside > p {
        color: var(--muted)
    }

.progress-list {
    list-style: none;
    padding: 0;
    margin: 38px 0
}

    .progress-list li {
        display: flex;
        gap: 14px;
        margin: 20px 0;
        opacity: .55
    }

        .progress-list li.active {
            opacity: 1
        }

        .progress-list li > span {
            display: grid;
            place-items: center;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            border: 1px solid var(--line);
            background: white;
            font-weight: 700
        }

        .progress-list li.active > span {
            background: var(--primary);
            color: white;
            border-color: var(--primary)
        }

    .progress-list b, .progress-list small {
        display: block
    }

    .progress-list small {
        color: var(--muted)
    }

.form-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 42px;
    box-shadow: 0 12px 42px rgba(16,35,63,.07)
}

.form-heading {
    border-bottom: 1px solid var(--line);
    padding-bottom: 28px
}

.step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .1em
}

.form-heading h2 {
    font-size: 31px;
    margin: 7px 0
}

.form-heading p {
    margin: 0;
    color: var(--muted)
}

.form-section {
    padding: 30px 0 10px;
    border-bottom: 1px solid var(--line)
}

    .form-section h3 {
        font-size: 17px;
        margin: 0 0 20px
    }

.form-grid {
    display: grid;
    gap: 20px
}

    .form-grid.two {
        grid-template-columns: 1fr 1fr
    }

.span-two {
    grid-column: span 2
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px
}

.field em {
    color: var(--primary);
    font-style: normal
}

.field small {
    display: block;
    color: var(--muted);
    margin-top: 6px
}

.input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    padding: 10px 13px;
    font: inherit;
    background: white;
    color: var(--ink);
    transition: .2s
}

    .input:focus {
        outline: 0;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(183,25,46,.1)
    }

textarea.input {
    min-height: 110px;
    resize: vertical
}

.field-error {
    display: block;
    color: #ad1729;
    font-size: 12px;
    margin-top: 5px
}

.validation-summary, .alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin: 20px 0
}

.validation-summary, .alert-error {
    background: #fff0f2;
    color: #8c1423;
    border: 1px solid #f2c7cd
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 28px 0
}

    .consent label {
        font-size: 13px;
        color: var(--muted)
    }

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.completion {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 70px 20px;
    background: var(--soft)
}

.completion-card {
    max-width: 650px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow)
}

.success-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eaf7ed;
    color: #27823c;
    font-size: 32px;
    margin: 0 auto 22px
}

.completion-card h1 {
    font-size: 36px
}

.completion-card p {
    color: var(--muted)
}

.reference {
    background: var(--soft);
    padding: 18px;
    border-radius: 12px;
    margin: 26px 0
}

    .reference small, .reference strong {
        display: block
    }

    .reference strong {
        font-size: 22px;
        letter-spacing: .05em
    }

@media(max-width:900px) {
    .hero-grid, .signup-container {
        grid-template-columns: 1fr
    }

    .hero-card {
        max-width: 620px
    }

    .signup-aside {
        position: static
    }

    .steps {
        grid-template-columns: 1fr
    }

    .signup-aside .progress-list {
        display: none
    }
}

@media(max-width:620px) {
    .container {
        width: calc(100% - 24px);
        max-width: 1180px
    }

    .site-header {
        height: 68px
    }

    .brand small {
        display: none
    }

    .header-actions .button {
        display: none
    }

    .hero {
        padding: 60px 0
    }

        .hero h1 {
            font-size: 43px
        }

    .hero-actions {
        flex-direction: column
    }

    .hero-card {
        padding: 20px
    }

    .form-card {
        padding: 24px 18px
    }

    .form-grid.two {
        grid-template-columns: 1fr
    }

    .span-two {
        grid-column: auto
    }

    .form-actions {
        flex-direction: column-reverse
    }

        .form-actions .button {
            width: 100%
        }

    .footer-inner {
        display: block;
        text-align: center
    }

        .footer-inner span {
            display: block
        }
}


/* QRCS public header logo */
.brand-logo-link {
    display: flex;
    align-items: center;
    line-height: 0;
    min-width: 0
}

.qrcs-header-logo {
    display: block;
    width: auto;
    height:50px;
    max-width: 260px;
    object-fit: cover
}

.brand-logo-link:hover .qrcs-header-logo {
    opacity: .96
}

@media(max-width:620px) {
    .qrcs-header-logo {
        height: 40px;
        max-width: 214px
    }
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

form,
.site-header,
.signup-shell,
.signup-container,
.form-card {
    max-width: 100%;
}

.select2-container,
.select2-dropdown {
    max-width: 100vw !important;
}

.select2-container--open .select2-dropdown {
    overflow-x: hidden;
}

.select2-search,
.select2-search__field {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* RTL / Edge repaint hardening */
html[dir=rtl],
html[dir=rtl] body,
html[dir=rtl] form,
html[dir=rtl] main {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

html[dir=rtl] body {
    overflow-x: hidden;
}

html[dir=rtl] .container,
html[dir=rtl] .header-inner,
html[dir=rtl] .footer-inner {
    min-width: 0;
}
