:root {
    --background: #f6f5f0;
    --paper: #ffffff;
    --ink: #282035;
    --muted: #727c75;
    --green: #1c183e;
    --green-hover: #402453;
    --line: #e5e8e1;
    --soft: #eef2eb;
    --accent: #9bb2c7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--background);
    font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.page {
    max-width: 1220px;
    padding: 0 44px;
    margin: auto;
}

.header {
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--green);
    color: #fff;
    border-radius: 12px 12px 3px 12px;
    font-size: 26px;
}

.logo {
    max-width: 135px;
    max-height: 58px;
    object-fit: contain;
}

.header-label {
    color: var(--muted);
    font-size: 13px;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 75px;
    padding: 64px 0 76px;
    min-height: calc(100vh - 185px);
}

.intro {
    padding-top: 35px;
    position: sticky;
    top: 35px;
}

.eyebrow,
.section-label {
    color: #677c60;
    font-size: 12px;
    font-weight: 600;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 23px;
    height: 2px;
    background: #879a70;
}

h1 {
    font-size: clamp(32px, 3.5vw, 46px);
    line-height: 1.55;
    letter-spacing: -1.3px;
    margin: 20px 0 18px;
    font-weight: 600;
}

h1 span {
    color: #809173;
}

.intro > p {
    color: var(--muted);
    max-width: 330px;
    line-height: 1.9;
}

.steps {
    padding: 0;
    margin: 42px 0;
    list-style: none;
}

.steps li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 29px;
}

.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 23px;
    right: 20px;
    top: 47px;
    background: #d9dfd4;
}

.step-number {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid #d9dfd4;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #91998d;
    font-size: 13px;
    background: var(--background);
}

.steps strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #737d71;
}

.steps small {
    font-size: 12px;
    color: #7e877a;
}

.steps .active .step-number {
    background: var(--green);
    border-color: var(--green);
    color: white;
    box-shadow: 0 0 0 5px #e9ede3;
}

.steps .active strong,
.steps .done strong {
    color: var(--ink);
}

.steps .done .step-number {
    background: #e2eadb;
    color: var(--green);
    border-color: #e2eadb;
}

.intro-note {
    display: flex;
    align-items: stretch;
    gap: 13px;
    max-width: 300px;
}

.note-line {
    width: 3px;
    flex-shrink: 0;
    background: var(--accent);
}

.intro-note p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.card {
    min-width: 0;
    background: var(--paper);
    border: 1px solid #e7e9e2;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 18px 60px -35px #33432c55;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.pill {
    padding: 4px 11px;
    background: #f3f5ef;
    border-radius: 6px;
    font-size: 11px;
    color: #6e7b62;
}

h2 {
    font-size: 29px;
    font-weight: 600;
    margin: 0 0 7px;
    letter-spacing: -0.7px;
}

.muted {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 27px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 8px;
}

.field input {
    width: 100%;
    height: 53px;
    border: 1px solid #dce2d9;
    border-radius: 9px;
    background: #fdfefb;
    padding: 0 15px;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}

.field input::placeholder {
    color: #91988d;
    font-size: 12px;
    opacity: 1;
}

.field input:focus {
    outline: none;
    border-color: #829970;
    background: white;
    box-shadow: 0 0 0 3px #edf2e8;
}

input[type="tel"],
input[inputmode="numeric"] {
    direction: ltr;
    text-align: right;
}

.privacy {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
    margin: 22px 0;
}

.button {
    width: 100%;
    min-height: 53px;
    border-radius: 9px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 19px;
    font-size: 14px;
    font-weight: 500;
}

.primary {
    background: var(--green);
    color: white;
}

.primary:hover {
    background: var(--green-hover);
}

.button:disabled {
    opacity: .65;
    cursor: wait;
}

.button span {
    font-size: 22px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid #91ac76;
    outline-offset: 4px;
}

.support {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 25px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.support a {
    color: var(--green);
    font-weight: 600;
    margin-right: 4px;
    text-underline-offset: 4px;
}

.alert {
    border: 1px solid #eed1c6;
    color: #874a37;
    background: #fff7f2;
    padding: 13px 16px;
    margin-bottom: 22px;
    border-radius: 9px;
    font-size: 13px;
}

.person-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 12px 0 20px;
    font-size: 13px;
}

.person-row > span {
    overflow-wrap: anywhere;
}

.text-button {
    border: 0;
    background: none;
    color: #62794e;
    padding: 5px 0;
    white-space: nowrap;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bank-card {
    border: 1px solid #dce4d5;
    border-radius: 12px;
    padding: 22px;
    background: #f6f8f2;
}

.bank-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-bottom: 19px;
    border-bottom: 1px solid #dfe5d8;
}

.bank-caption {
    color: #738168;
    font-size: 11px;
}

.bank-heading h3 {
    font-size: 18px;
    margin: 3px 0 0;
    font-weight: 600;
}

.amount {
    text-align: left;
}

.amount strong {
    display: block;
    font-size: 25px;
    line-height: 1.3;
}

.amount span {
    color: var(--muted);
    font-size: 10px;
}

.bank-row {
    padding: 17px 0 12px;
}

.bank-row > span,
.account-block > label {
    display: block;
    color: #718064;
    font-size: 11px;
    margin-bottom: 5px;
}

.bank-row strong {
    font-size: 14px;
    font-weight: 500;
}

.account-block {
    margin-top: 10px;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.bank-value {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 8px 0;
    color: var(--green);
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}

.copy-button {
    flex-shrink: 0;
    border: 1px solid #d5dfcb;
    background: white;
    color: var(--green);
    padding: 6px 13px;
    border-radius: 6px;
    font-size: 11px;
}

.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 23px;
    margin-top: 17px;
    border-top: 1px solid #dfe5d8;
}

.qr-section a {
    background: white;
    padding: 14px;
    border: 1px solid #e5e9df;
    border-radius: 10px;
    line-height: 0;
    max-width: 100%;
}

.qr-section img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.qr-section strong {
    font-size: 12px;
    font-weight: 500;
    margin-top: 12px;
}

.qr-section > span {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}

.upload-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 12px;
}

.upload-heading h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.upload-heading > span {
    color: var(--muted);
    font-size: 11px;
}

.upload-box {
    border: 1px dashed #bbc9af;
    background: #fcfdf9;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
}

.upload-box label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.upload-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    background: #edf2e6;
    color: #61794c;
    border-radius: 8px;
    font-size: 22px;
    margin-bottom: 10px;
}

.upload-box strong {
    font-size: 13px;
    font-weight: 500;
}

.upload-box label > span:last-child {
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
}

.upload-box input {
    width: 100%;
    max-width: 300px;
    font-size: 11px;
    margin-top: 15px;
}

.upload-box input::file-selector-button {
    background: #edf2e6;
    border: 0;
    padding: 8px 11px;
    border-radius: 5px;
    font: inherit;
    color: var(--green);
    cursor: pointer;
    margin-left: 10px;
}

#file-info {
    display: block;
    color: #557049;
    font-size: 11px;
    overflow-wrap: anywhere;
    margin-top: 8px;
}

.success {
    text-align: center;
    padding: 25px 0 8px;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    background: #eaf1e2;
    color: #426637;
    border: 1px solid #dce8cf;
    border-radius: 50%;
    font-size: 35px;
    margin: 0 auto 25px;
}

.success h2 {
    margin-top: 10px;
}

.success > p {
    color: var(--muted);
    font-size: 14px;
}

.reference-box {
    padding: 20px 12px;
    background: #f6f8f2;
    border: 1px solid #e3e8da;
    border-radius: 10px;
    margin: 26px 0;
}

.reference-box span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 8px;
}

.reference-box strong {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 17px;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 23px 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #7b8475;
    font-size: 11px;
}

.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #fff;
    border-radius: 9px;
    padding: 11px 22px;
    font-size: 13px;
    box-shadow: 0 8px 25px #183e3525;
    z-index: 10;
    width: max-content;
    max-width: calc(100vw - 30px);
    text-align: center;
}

@media (max-width: 950px) {
    .layout {
        gap: 35px;
    }

    .page {
        padding: 0 25px;
    }

    .card {
        padding: 27px;
    }
}

@media (max-width: 720px) {
    .page {
        padding: 0 18px;
    }

    .header {
        min-height: 83px;
    }

    .brand {
        font-size: 14px;
    }

    .header-label {
        font-size: 11px;
    }

    .layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 28px 0 38px;
    }

    .intro {
        position: static;
        padding-top: 0;
    }

    h1 {
        font-size: 31px;
        line-height: 1.45;
        margin: 12px 0 8px;
    }

    .intro > p {
        margin: 8px 0 0;
        font-size: 13px;
        max-width: none;
    }

    .steps {
        display: flex;
        justify-content: space-between;
        gap: 6px;
        margin: 23px 0 4px;
    }

    .steps li {
        flex: 1;
        padding-bottom: 0;
        flex-direction: column;
        gap: 9px;
        text-align: center;
    }

    .steps li:not(:last-child)::after {
        display: none;
    }

    .steps strong {
        font-size: 10px;
    }

    .steps small,
    .intro-note {
        display: none;
    }

    .step-number {
        width: 34px;
        height: 34px;
        font-size: 11px;
    }

    .card {
        padding: 23px 19px;
        border-radius: 15px;
    }

    h2 {
        font-size: 25px;
    }

    .bank-card {
        padding: 17px;
    }

    .bank-value {
        font-size: 13px;
    }

    .footer {
        font-size: 10px;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}