:root {
    --bf-bg: #f7f8fb;
    --bf-card: #ffffff;
    --bf-text: #1f2937;
    --bf-muted: #6b7280;
    --bf-line: #e5e7eb;
    --bf-primary: #2563eb;
    --bf-primary-dark: #1d4ed8;
    --bf-primary-soft: #eff6ff;
    --bf-success: #15803d;
    --bf-success-bg: #ecfdf5;
    --bf-danger: #b91c1c;
    --bf-danger-bg: #fef2f2;
    --bf-warning-bg: #fffbeb;
    --bf-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    --bf-shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.06);
    --bf-radius: 22px;
}

body {
    background: var(--bf-bg);
}

.beneficiary-shell,
.beneficiary-shell * {
    box-sizing: border-box;
}

.beneficiary-shell {
    max-width: 1120px;
    margin: 34px auto 0;
    padding: 0 16px 36px;
    color: var(--bf-text);
    font-family: inherit;
}

.beneficiary-shell a {
    text-decoration: none;
}

.beneficiary-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border-radius: 24px;
    background:
            radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 34%),
            linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--bf-shadow);
    border: 1px solid rgba(229, 231, 235, 0.75);
}

.beneficiary-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    color: var(--bf-primary);
    background: var(--bf-primary-soft);
    font-size: 13px;
    font-weight: 700;
}

.beneficiary-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.4;
    font-weight: 900;
}

.beneficiary-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--bf-muted);
    font-size: 15px;
    line-height: 2;
}

.beneficiary-hero-badge {
    min-width: 126px;
    padding:10px 20px;
    border-radius: 24px;
    text-align: center;
    background: #111827;
    color: #fff;
    box-shadow: 0 18px 35px rgba(17, 24, 39, 0.18);
}

.beneficiary-hero-badge span {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.68);
}

.beneficiary-hero-badge strong {
    font-size: 20px;
}

.beneficiary-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.beneficiary-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    opacity: 0.72;
    color: var(--bf-text);
    transition: 0.2s ease;
}

.beneficiary-step:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.beneficiary-step.is-active {
    opacity: 1;
    border-color: rgba(37, 99, 235, 0.32);
    background: var(--bf-primary-soft);
}

.beneficiary-step.is-done {
    opacity: 1;
    border-color: rgba(21, 128, 61, 0.22);
}

.beneficiary-step span {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 900;
}

.beneficiary-step.is-active span {
    background: var(--bf-primary);
    color: #fff;
}

.beneficiary-step.is-done span {
    background: var(--bf-success-bg);
    color: var(--bf-success);
}

.beneficiary-step strong,
.beneficiary-step small {
    display: block;
}

.beneficiary-step strong {
    font-size: 15px;
}

.beneficiary-step small {
    margin-top: 4px;
    color: var(--bf-muted);
    font-size: 12px;
}

.beneficiary-alert {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 16px;
    line-height: 1.8;
    font-weight: 700;
}

.beneficiary-alert-success {
    color: var(--bf-success);
    background: var(--bf-success-bg);
    border: 1px solid rgba(21, 128, 61, 0.16);
}

.beneficiary-alert-danger {
    color: var(--bf-danger);
    background: var(--bf-danger-bg);
    border: 1px solid rgba(185, 28, 28, 0.16);
}

.beneficiary-form {
    display: grid;
    gap: 18px;
}

.beneficiary-card {
    padding: 24px;
    border-radius: var(--bf-radius);
    background: var(--bf-card);
    box-shadow: var(--bf-shadow);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.beneficiary-card-title {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bf-line);
}

.beneficiary-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.beneficiary-card-title h2 {
    margin: 0 0 6px;
    font-size: 19px;
    line-height: 1.6;
    font-weight: 900;
}

.beneficiary-card-title p {
    margin: 0;
    color: var(--bf-muted);
    font-size: 13px;
    line-height: 1.9;
}

.beneficiary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.beneficiary-field,
.beneficiary-upload {
    display: grid;
    gap: 8px;
}

.beneficiary-field-wide {
    grid-column: 1 / -1;
}

.beneficiary-field span,
.beneficiary-upload span {
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.beneficiary-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--bf-line);
    border-radius: 15px;
    outline: none;
    background: #fff;
    color: var(--bf-text);
    font-size: 14px;
    line-height: 1.7;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.beneficiary-input[readonly] {
    background: #f9fafb;
    cursor: not-allowed;
}

textarea.beneficiary-input {
    resize: vertical;
}

.beneficiary-input:focus {
    border-color: rgba(37, 99, 235, 0.62);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
    background: #fcfdff;
}

.beneficiary-input::placeholder {
    color: #a3aab7;
}

.beneficiary-upload {
    min-height: 118px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #f8fafc;
}

.beneficiary-upload input[type="file"] {
    width: 100%;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--bf-line);
}

.beneficiary-upload small {
    color: var(--bf-muted);
    line-height: 1.8;
}

.beneficiary-actions {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(249, 249, 249, 0.82);
    border: 1px solid rgba(229, 231, 235, 0.3);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
}

.beneficiary-actions-static {
    position: static;
    justify-content: center;
    margin-top: 18px;
}

.beneficiary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 15px;
    padding: 12px 18px;
    min-height: 46px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-align: center;
    line-height: 1.5;
}

.beneficiary-btn:active {
    transform: translateY(1px);
}

.beneficiary-btn-primary {
    color: #fff !important;
    background: var(--bf-primary);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.beneficiary-btn-primary:hover {
    background: var(--bf-primary-dark);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32);
}

.beneficiary-btn-light {
    color: #374151 !important;
    background: #f3f4f6;
}

.beneficiary-btn-danger {
    color: var(--bf-danger);
    background: var(--bf-danger-bg);
}

.beneficiary-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.beneficiary-type-card {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid var(--bf-line);
    cursor: pointer;
    transition: 0.2s ease;
}

.beneficiary-type-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bf-shadow-soft);
}

.beneficiary-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.beneficiary-type-card span {
    font-size: 17px;
    font-weight: 900;
    color: var(--bf-text);
}

.beneficiary-type-card small {
    color: var(--bf-muted);
    line-height: 1.8;
}

.beneficiary-type-card:has(input:checked) {
    border-color: rgba(37, 99, 235, 0.45);
    background: var(--bf-primary-soft);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.10);
}

.beneficiary-member-fields.is-hidden {
    display: none;
}

.beneficiary-members-list {
    display: grid;
    gap: 12px;
}

.beneficiary-member-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--bf-line);
}

.beneficiary-member-avatar {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.beneficiary-member-info {
    display: grid;
    gap: 4px;
}

.beneficiary-member-info strong {
    font-size: 15px;
}

.beneficiary-member-info span {
    color: var(--bf-muted);
    font-size: 13px;
    line-height: 1.7;
}

.beneficiary-empty-state {
    padding: 20px;
    border-radius: 18px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    text-align: center;
}

.beneficiary-empty-state strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.beneficiary-empty-state p {
    margin: 0;
    color: var(--bf-muted);
    line-height: 1.9;
}

.beneficiary-final-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-radius: var(--bf-radius);
    background: #111827;
    color: #fff;
    box-shadow: var(--bf-shadow);
}

.beneficiary-final-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.beneficiary-final-box p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.9;
}

.beneficiary-thanks-card {
    max-width: 720px;
    margin: 28px auto 0;
    text-align: center;
}

.beneficiary-thanks-icon {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 26px;
    background: var(--bf-success-bg);
    color: var(--bf-success);
    font-size: 38px;
    font-weight: 900;
}

.beneficiary-thanks-card h2 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 900;
}

.beneficiary-thanks-card p {
    margin: 0;
    color: var(--bf-muted);
    line-height: 2;
}

@media (max-width: 768px) {
    .beneficiary-shell {
        margin-top: 18px;
        padding-inline: 10px;
    }

    .beneficiary-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .beneficiary-hero p {
        font-size: 12px;
    }

    .beneficiary-hero-badge {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px;
    }

    .beneficiary-hero-badge span {
        display: inline;
        margin: 0;
    }

    .beneficiary-steps,
    .beneficiary-grid,
    .beneficiary-type-grid {
        grid-template-columns: 1fr;
    }

    .beneficiary-card {
        padding: 18px;
        border-radius: 20px;
    }

    .beneficiary-title-row,
    .beneficiary-final-box {
        flex-direction: column;
        align-items: stretch;
    }

    .beneficiary-member-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .beneficiary-member-card form {
        grid-column: 1 / -1;
    }

    .beneficiary-actions {
        position: static;
        flex-direction: column;
    }

    .beneficiary-btn {
        width: 100%;
    }
}

/* Patch: hide/show member form wrapper */
.beneficiary-member-form-wrap.is-hidden {
    display: none;
}



/* ================================
   Step 1 Internal Wizard - User Form Only
   مرحله داخلی برای مرحله ۱ فرم مددجو
   ================================ */

.beneficiary-form.is-step1-wizard {
    position: relative;
    padding-bottom: 118px;
}

.bf-step1-wizard-head {
    display: grid;
    gap: 14px;
    margin-bottom: 2px;
    padding: 18px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 36%),
        #ffffff;
    box-shadow: var(--bf-shadow);
}

.bf-step1-wizard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.bf-step1-wizard-top strong {
    display: block;
    color: var(--bf-text);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.7;
}

.bf-step1-wizard-top p {
    margin: 3px 0 0;
    color: var(--bf-muted);
    font-size: 12px;
    line-height: 1.9;
}

#bf-step1-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--bf-primary-soft);
    color: var(--bf-primary);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.bf-step1-progress-track {
    overflow: hidden;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: #e5e7eb;
}

#bf-step1-progress-fill {
    width: 20%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bf-primary), var(--bf-primary-dark));
    transition: width .25s ease;
}

.bf-step1-mini-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.bf-step1-mini-steps button {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 72px;
    padding: 10px 8px;
    border: 1px solid var(--bf-line);
    border-radius: 17px;
    background: #f8fafc;
    color: var(--bf-muted);
    cursor: pointer;
    transition: .2s ease;
}

.bf-step1-mini-steps button span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.bf-step1-mini-steps button strong {
    color: inherit;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.6;
    white-space: nowrap;
}

.bf-step1-mini-steps button.is-active {
    border-color: rgba(37, 99, 235, .34);
    background: var(--bf-primary-soft);
    color: var(--bf-primary);
    box-shadow: 0 12px 24px rgba(37, 99, 235, .08);
}

.bf-step1-mini-steps button.is-active span {
    background: var(--bf-primary);
    color: #ffffff;
}

.bf-step1-mini-steps button.is-done {
    border-color: rgba(21, 128, 61, .20);
    background: var(--bf-success-bg);
    color: var(--bf-success);
}

.bf-step1-mini-steps button.is-done span {
    background: var(--bf-success);
    color: #ffffff;
    font-size: 0;
}

.bf-step1-mini-steps button.is-done span::before {
    content: "✓";
    font-size: 14px;
}

.beneficiary-step1-panel {
    display: none;
    animation: bfPanelIn .22s ease;
}

.beneficiary-step1-panel.is-active {
    display: block;
}

@keyframes bfPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bf-step1-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 9990;
    width: min(1120px, calc(100% - 24px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(229, 231, 235, .70);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, .14);
}

.bf-step1-bottom-info {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 0 4px;
}

.bf-step1-bottom-info strong {
    color: var(--bf-text);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bf-step1-bottom-info small {
    color: var(--bf-muted);
    font-size: 11px;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#bf-step1-submit {
    display: none;
}

/* وقتی مرورگر backdrop-filter ندارد، نوار همچنان تمیز بماند */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .bf-step1-bottom-nav {
        background: #ffffff;
    }
}

@media (max-width: 768px) {
    .beneficiary-form.is-step1-wizard {
        padding-bottom: 142px;
    }

    .bf-step1-wizard-head {
        padding: 14px;
        border-radius: 20px;
    }

    .bf-step1-wizard-top {
        align-items: flex-start;
        flex-direction: column;
    }

    #bf-step1-counter {
        width: 100%;
    }

    .bf-step1-mini-steps {
        grid-template-columns: repeat(5, minmax(74px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .bf-step1-mini-steps button {
        min-height: 68px;
    }

    .bf-step1-bottom-nav {
        bottom: 10px;
        width: calc(100% - 18px);
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        border-radius: 20px;
        padding: 10px;
    }

    .bf-step1-bottom-info {
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 4px 6px 0;
        text-align: center;
    }

    .bf-step1-bottom-info strong,
    .bf-step1-bottom-info small {
        white-space: normal;
    }

    #bf-step1-prev {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
    }

    #bf-step1-next,
    #bf-step1-submit {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
    }
}
.beneficiary-hero h1 span{
    font-size: 13px;color: #999;
}
/* =========================================================
   Mobile compact polish for Step 1 internal wizard
   ========================================================= */
@media (max-width: 768px) {
    .beneficiary-shell {
        margin-top: 8px;
        padding: 0 9px 28px;
    }

    .beneficiary-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 17px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
    }

    .beneficiary-kicker {
        font-size: 13px;

    }

    .beneficiary-hero h1 {
        margin: 0;
        font-size: 17px;
        line-height: 1.55;
    }


    .beneficiary-hero p {
        display: none;
    }

    .beneficiary-hero-badge {
        min-width: 68px;
        padding: 8px 10px;
        border-radius: 15px;
        box-shadow: none;
    }

    .beneficiary-hero-badge span {
        margin-bottom: 1px;
        font-size: 10px;
    }

    .beneficiary-hero-badge strong {
        font-size: 15px;
        line-height: 1.25;
    }

    .beneficiary-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 10px 0 9px;
    }

    .beneficiary-step {
        min-height: 54px;
        gap: 8px;
        padding: 9px 10px;
        border-radius: 15px;
    }

    .beneficiary-step span {
        width: 30px;
        height: 30px;
        font-size: 12px;
        box-shadow: none;
    }

    .beneficiary-step strong {
        font-size: 12px;
        line-height: 1.45;
    }

    .beneficiary-step small {
        display: none;
    }

    .beneficiary-alert {
        margin: 8px 0;
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 12px;
        line-height: 1.8;
    }

    .beneficiary-form.is-step1-wizard {
        padding-bottom: 104px;
    }

    .bf-step1-wizard-head {
        position: sticky;
        top: 0;
        z-index: 40;
        gap: 8px;
        margin: 0 0 8px;
        padding: 9px;
        border-radius: 16px;
        box-shadow: 0 10px 26px rgba(15, 23, 42, .075);
    }

    .bf-step1-wizard-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .bf-step1-wizard-top strong {
        font-size: 12px;
        line-height: 1.4;
    }

    .bf-step1-wizard-top p {
        display: none;
    }

    #bf-step1-counter {
        width: auto;
        min-width: 74px;
        min-height: 26px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .bf-step1-progress-track {
        height: 4px;
    }

    .bf-step1-mini-steps {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        padding: 0 0 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .bf-step1-mini-steps::-webkit-scrollbar {
        display: none;
    }

    .bf-step1-mini-steps button {
        flex: 0 0 auto;
        min-width: 68px;
        min-height: 38px;
        display: inline-flex;
        flex-direction: row;
        gap: 5px;
        padding: 6px 8px;
        border-radius: 999px;
    }

    .bf-step1-mini-steps button span {
        width: 21px;
        height: 21px;
        font-size: 10px;
        box-shadow: none;
    }

    .bf-step1-mini-steps button strong {
        font-size: 10px;
        line-height: 1;
    }

    .beneficiary-card {
        border-radius: 17px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
    }

    .beneficiary-card-title {
        padding: 13px 13px 8px;
    }

    .beneficiary-card-title h2 {
        margin-bottom: 2px;
        font-size: 15px;
        line-height: 1.55;
    }

    .beneficiary-card-title p {
        display: none;
    }

    .beneficiary-grid {
        gap: 10px;
        padding: 12px;
    }

    .beneficiary-field span,
    .beneficiary-upload span {
        margin-bottom: 5px;
        font-size: 11px;
    }

    .beneficiary-input {
        min-height: 43px;
        border-radius: 13px;
        font-size: 13px;
    }

    .beneficiary-upload {
        padding: 12px;
        border-radius: 14px;
    }

    .beneficiary-upload small {
        font-size: 10px;
        line-height: 1.6;
    }

    .bf-step1-bottom-nav {
        bottom: 8px;
        width: calc(100% - 14px);
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        padding: 8px;
        border-radius: 17px;
    }

    .bf-step1-bottom-info {
        display: none;
    }

    #bf-step1-prev,
    #bf-step1-next,
    #bf-step1-submit {
        min-height: 43px;
        padding: 9px 10px;
        border-radius: 13px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .bf-step1-mini-steps button {
        min-width: 62px;
        padding-inline: 7px;
    }

    .bf-step1-mini-steps button strong {
        font-size: 9.5px;
    }
}




/* ================================
   Simple beneficiary user registration
   ================================ */

.beneficiary-simple-hero {
    margin-bottom: 14px;
}

.beneficiary-simple-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}

.beneficiary-simple-strip > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 13px 15px;
    border: 1px solid var(--bf-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--bf-shadow-soft);
}

.beneficiary-simple-strip > div.is-active {
    border-color: rgba(37, 99, 235, .28);
    background: var(--bf-primary-soft);
}

.beneficiary-simple-strip span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 950;
}

.beneficiary-simple-strip .is-active span {
    background: var(--bf-primary);
    color: #fff;
}

.beneficiary-simple-strip strong,
.beneficiary-simple-strip small {
    display: block;
}

.beneficiary-simple-strip strong {
    color: var(--bf-text);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.7;
}

.beneficiary-simple-strip small {
    margin-top: 2px;
    color: var(--bf-muted);
    font-size: 11px;
    line-height: 1.6;
}

.beneficiary-simple-user-form {
    gap: 14px;
}

.beneficiary-simple-card {
    box-shadow: var(--bf-shadow-soft);
}

.beneficiary-simple-title {
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.bf-simple-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #eff6ff;
}

.bf-simple-note strong {
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.bf-simple-note span {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.9;
}

.beneficiary-simple-grid {
    gap: 14px;
}

.bf-national-card-upload {
    min-height: auto;
}

.bf-compress-status {
    min-height: 22px;
    margin-top: 4px;
    color: var(--bf-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.8;
}

.bf-compress-status.is-info {
    color: #1d4ed8;
}

.bf-compress-status.is-success {
    color: var(--bf-success);
}

.bf-compress-status.is-error {
    color: var(--bf-danger);
}

.bf-simple-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.bf-simple-summary > div {
    padding: 13px;
    border: 1px solid var(--bf-line);
    border-radius: 16px;
    background: #f8fafc;
}

.bf-simple-summary span,
.bf-simple-summary strong {
    display: block;
}

.bf-simple-summary span {
    color: var(--bf-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.8;
}

.bf-simple-summary strong {
    color: var(--bf-text);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.8;
    word-break: break-word;
}

@media (max-width: 768px) {
    .beneficiary-shell {
        margin-top: 14px;
        padding: 0 10px 98px;
    }

    .beneficiary-simple-hero {
        align-items: flex-start;
        padding: 13px;
        border-radius: 18px;
    }

    .beneficiary-simple-hero h1 {
        margin-bottom: 4px;
        font-size: 20px;
        line-height: 1.5;
    }

    .beneficiary-simple-hero p {
        font-size: 12px;
        line-height: 1.8;
    }

    .beneficiary-simple-hero .beneficiary-kicker {
        margin-bottom: 6px;
        padding: 5px 9px;
        font-size: 11px;
    }

    .beneficiary-simple-hero .beneficiary-hero-badge {
        min-width: 82px;
        padding: 10px 11px;
        border-radius: 16px;
    }

    .beneficiary-simple-hero .beneficiary-hero-badge span {
        font-size: 10px;
    }

    .beneficiary-simple-hero .beneficiary-hero-badge strong {
        font-size: 13px;
        line-height: 1.5;
    }

    .beneficiary-simple-strip {
        /*grid-template-columns: 1fr;*/
        gap: 8px;
        margin: 10px 0 12px;
    }

    .beneficiary-simple-strip > div {
        min-height: 54px;
        padding: 9px 10px;
        border-radius: 15px;
        box-shadow: none;
    }

    .beneficiary-simple-strip span {
        width: 30px;
        height: 30px;
        border-radius: 11px;
        font-size: 12px;
    }

    .beneficiary-simple-strip strong {
        font-size: 12px;
    }

    .beneficiary-simple-strip small {
        display: none;
    }

    .beneficiary-card.beneficiary-simple-card {
        padding: 15px;
        border-radius: 18px;
    }

    .beneficiary-simple-title {
        margin-bottom: 10px;
        padding-bottom: 9px;
    }

    .beneficiary-simple-title h2 {
        margin-bottom: 2px;
        font-size: 16px;
    }

    .beneficiary-simple-title p {
        font-size: 11px;
        line-height: 1.7;
    }

    .bf-simple-note {
        display: none;
    }

    .beneficiary-simple-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .beneficiary-field,
    .beneficiary-upload {
        gap: 5px;
    }

    .beneficiary-field span,
    .beneficiary-upload span {
        font-size: 12px;
    }

    .beneficiary-input {
        min-height: 43px;
        padding: 9px 11px;
        border-radius: 13px;
        font-size: 13px;
    }

    textarea.beneficiary-input {
        min-height: 96px;
    }

    .beneficiary-upload {
        padding: 13px;
        border-radius: 15px;
    }

    .beneficiary-upload input[type="file"] {
        padding: 8px;
        border-radius: 12px;
        font-size: 12px;
    }

    .beneficiary-upload small,
    .bf-compress-status {
        font-size: 11px;
        line-height: 1.7;
    }

    .beneficiary-actions.beneficiary-simple-actions {
        left: 10px;
        right: 10px;
        bottom: 10px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
        border-radius: 18px;
    }

    .beneficiary-simple-actions .beneficiary-btn {
        width: 100%;
        min-height: 42px;
        padding: 9px 12px;
        border-radius: 13px;
        font-size: 13px;
    }

    .beneficiary-simple-actions .beneficiary-btn-light {
        display: none;
    }

    .bf-simple-summary {
        grid-template-columns: 1fr;
    }
}
