:root {
    --bg: #f5f6f7;
    --card: #ffffff;
    --text: #1e3a3b;
    --muted: #728288;
    --border: #e6ece8;
    --green: #1f8b73;
    --green-dark: #166b59;
    --green-soft: #e9f5f0;
    --green-soft-2: #f4fbf7;
    --danger: #ef5577;
    --warn-soft: #fff7e7;
    --warn: #e9a11b;
    --shadow: 0 10px 30px rgba(16,24,40,.05);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg,#f7f7f7 0%,#f2f4f5 100%);
    font-family: "Manrope",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color: var(--text);
    padding: 16px;
}

.page {
    max-width: 1540px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 15px;
    margin-bottom: 14px;
    color: #7f8b91;
    font-weight: 600;
}

    .breadcrumb .current {
        color: #ef5577;
        margin-left: 6px;
    }

.card {
    background: var(--card);
    border: 1px solid #edf1ef;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    height: 40px;
    background: #fafafa;
    border-bottom: 1px solid #eff2f1;
}

.card-body {
    padding: 20px 20px 14px;
}

.section-block {
    border: 1px solid #edf2ef;
    border-radius: 16px;
    background: #fff;
    padding: 16px;
    margin-bottom: 16px;
}

.section-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: #1d3e40;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-wrap {
    margin-bottom: 12px;
}

.row {
    display: grid;
    gap: 16px;
}

.two {
    grid-template-columns: 1fr 1fr;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}

.choice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e6ece8;
    border-radius: 14px;
    background: #fff;
    min-height: 78px;
    transition: .2s ease;
    cursor: pointer;
}

    .choice-item.active {
        background: var(--green-soft-2);
        border-color: #b8dece;
        box-shadow: 0 0 0 4px rgba(31,139,115,.06);
    }

    .choice-item input[type="radio"] {
        width: 22px;
        height: 22px;
        accent-color: var(--green);
        margin-top: 2px;
        flex: 0 0 auto;
    }

.choice-title {
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f3f40;
}

.choice-sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.45;
    font-weight: 500;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #c7d1cd;
    color: #86959a;
    font-size: 11px;
    font-weight: 800;
    background: #fff;
}

.label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1e3f40;
}

    .label .req {
        color: var(--danger);
    }

.input,
.select {
    width: 100%;
    height: 50px;
    border: 1px solid #d8e1dd;
    background: #fff;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    color: #244345;
    outline: none;
    transition: .2s ease;
}

    .input:focus,
    .select:focus {
        border-color: #7bc5aa;
        box-shadow: 0 0 0 4px rgba(31,139,115,.08);
    }

    .input.error,
    .select.error,
    .upload-box.error,
    .input-validation-error,
    select.input-validation-error {
        border-color: var(--danger) !important;
        box-shadow: 0 0 0 4px rgba(239,85,119,.08) !important;
    }

.error-text {
    margin-top: 6px;
    font-size: 12px;
    color: var(--danger);
    font-weight: 700;
}

.field-validation-valid {
    display: none;
}

.field-validation-error {
    display: block;
}

.hint {
    margin-top: 6px;
    font-size: 13px;
    color: #71858a;
    font-weight: 500;
    line-height: 1.4;
}

.info-banner {
    background: var(--green-soft);
    border: 1px solid #dbece3;
    border-radius: 14px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.info-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #2db47e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin-top: 1px;
}

.info-banner h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: #234944;
}

.info-points {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
}

.point {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #355d57;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.tick {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #28b16e;
    color: #fff;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    margin-top: 1px;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3faf7;
    border: 1px solid #dbece3;
    color: var(--green-dark);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 14px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.status-pending {
    background: #fff7e7;
    color: #9b6b00;
    border: 1px solid #f3deb0;
}

.status-success {
    background: #edf9f3;
    color: #138055;
    border: 1px solid #b7e2cb;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
}

.upload-box {
    border: 1.5px dashed #b8d6cb;
    border-radius: 14px;
    padding: 16px 14px;
    text-align: center;
    background: #fbfefd;
    transition: .2s ease;
}

    .upload-box:hover,
    .upload-box.dragover {
        border-color: #1f8b73;
        background: #f1faf6;
        box-shadow: 0 0 0 4px rgba(31,139,115,.08);
    }

.upload-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: var(--green-soft);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

.upload-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.35;
}

.upload-sub {
    color: #71858a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    min-height: 34px;
}

.file-input {
    display: none;
}

.upload-btn {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    height: 38px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(31,139,115,.18);
}

.file-name {
    margin-top: 10px;
    color: #2c5c55;
    font-size: 12px;
    font-weight: 700;
    word-break: break-word;
    display: none;
}

.verified-mark {
    margin-top: 8px;
    color: #138055;
    font-size: 13px;
    font-weight: 800;
    display: none;
}

.warning-box {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--warn-soft);
    border: 1px solid #f4e6be;
    border-radius: 12px;
    padding: 14px 16px;
    color: #6a5830;
    font-weight: 600;
    font-size: 13px;
}

.warn-icon {
    color: var(--warn);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    flex: 0 0 auto;
}

.footer-bar {
    margin-top: 16px;
    background: #eef6f2;
    border-top: 1px solid #e0ebe5;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.support {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #345250;
}

.support-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dbeee4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 17px;
    font-weight: 800;
    flex: 0 0 auto;
}

.support-title {
    font-weight: 800;
    margin-bottom: 2px;
    font-size: 14px;
}

.support-text {
    font-size: 13px;
    color: #5b706f;
    font-weight: 600;
}

    .support-text a {
        color: #2b8d76;
        text-decoration: none;
        font-weight: 800;
    }

.actions {
    display: flex;
    gap: 10px;
}

.btn {
    height: 46px;
    min-width: 118px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.btn-secondary {
    background: #fff;
    color: #2f5d58;
    border-color: #86baa8;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 8px 18px rgba(31,139,115,.18);
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
}

.hidden {
    display: none !important;
}

.otp-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(32,42,45,.38);
    z-index: 9999;
    padding: 16px;
}

    .otp-modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.otp-dialog {
    width: min(860px,100%);
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0,0,0,.16);
}

.otp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid #eef1f0;
}

    .otp-head h2 {
        margin: 0;
        font-size: 24px;
        color: #274446;
        line-height: 1.2;
    }

.otp-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #8b9792;
    cursor: pointer;
    font-weight: 700;
}

.otp-body {
    padding: 24px;
}

.otp-chip {
    display: inline-flex;
    padding: 12px 16px;
    border-radius: 999px;
    background: #edf4f1;
    border: 1px solid #cadad2;
    color: #3d6f63;
    font-weight: 800;
    font-size: 14px;
}

.otp-text {
    font-size: 16px;
    line-height: 1.6;
    color: #708087;
    margin: 18px 0 8px;
    max-width: 760px;
}

.otp-mobile {
    color: #234944;
    font-weight: 800;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 8px;
}

.otp-digit {
    width: 52px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid #d8e1dd;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #234944;
    outline: none;
}

    .otp-digit:focus {
        border-color: #7bc5aa;
        box-shadow: 0 0 0 4px rgba(31,139,115,.08);
    }

    .otp-digit.error {
        border-color: var(--danger);
        box-shadow: 0 0 0 4px rgba(239,85,119,.08);
    }

.otp-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.otp-resend-title {
    font-size: 16px;
    font-weight: 900;
    color: #3f8a72;
}

.otp-resend-sub {
    margin-top: 6px;
    font-size: 15px;
    color: #7a8888;
    font-weight: 700;
}

.otp-resend-link {
    margin-top: 6px;
    background: none;
    border: none;
    padding: 0;
    color: #1f8b73;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    display: none;
}

.otp-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.otp-btn {
    height: 50px;
    min-width: 160px;
    border-radius: 14px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.otp-btn-secondary {
    background: #fff;
    border: 2px solid #9ac2b2;
    color: #345d55;
}

.otp-btn-primary {
    background: #5a957d;
    border: 0;
    color: #fff;
    box-shadow: 0 18px 30px rgba(31,139,115,.18);
}

.otp-error {
    font-size: 13px;
    color: var(--danger);
    font-weight: 800;
    display: none;
    margin-top: 8px;
}

@media (max-width:1100px) {
    .info-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width:900px) {
    .choice-grid,
    .two,
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 16px 14px 12px;
    }

    .section-block {
        padding: 14px;
        margin-bottom: 14px;
    }

    .footer-bar {
        padding: 14px;
    }

    .otp-dialog {
        border-radius: 18px;
    }

    .otp-head {
        padding: 18px 16px;
    }

    .otp-body {
        padding: 18px 16px;
    }

    .otp-head h2 {
        font-size: 22px;
    }

    .otp-text {
        font-size: 15px;
    }

    .otp-btn {
        min-width: 145px;
    }

    body {
        padding: 10px;
    }
}
.sewa-top-header {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e5e9e7;
    border-bottom: 1px solid #e5e9e7;
    box-shadow: 0 6px 22px rgba(16,24,40,.04);
}

.sewa-header-inner {
    max-width: 1540px;
    margin: 0 auto;
    height: 92px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sewa-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sewa-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.sewa-title-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sewa-title {
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    color: #20272d;
}

.sewa-subtitle {
    margin-top: 6px;
    font-size: 18px;
    color: #6d7588;
    font-weight: 500;
}

.sewa-language {
    display: flex;
    align-items: center;
}

    /* Make default language dropdown look like SEWA style */
    .sewa-language select {
        min-width: 260px;
        height: 58px;
        border-radius: 12px;
        border: 1px solid #dfe5e2;
        background: #fff;
        padding: 0 18px;
        font-size: 18px;
        color: #173f3a;
        outline: none;
    }

/* Remove old header spacing if existing theme CSS affects it */
.header,
.header-content,
.navbar {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .sewa-header-inner {
        height: auto;
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sewa-logo {
        height: 62px;
    }

    .sewa-title {
        font-size: 22px;
    }

    .sewa-subtitle {
        font-size: 16px;
    }

    .sewa-language,
    .sewa-language select {
        width: 100%;
    }
}
.toast-message {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-success {
    background: #edf9f3;
    color: #138055;
    border: 1px solid #b7e2cb;
}

.toast-error {
    background: #fff1f4;
    color: #c92f55;
    border: 1px solid #ffc9d6;
}
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

/* Error */

.alert-error {
    background: linear-gradient(180deg, #fff5f7 0%, #fff0f3 100%);
    border: 1px solid #ffc9d6;
    color: #b42346;
}

/* Success */

.alert-success {
    background: linear-gradient(180deg, #f0faf5 0%, #e8f7ef 100%);
    border: 1px solid #b7e2cb;
    color: #117a55;
}

/* Icon */

.alert-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    flex: 0 0 auto;
}

.alert-error .alert-icon {
    background: #ffe3ea;
    color: #d92d54;
}

.alert-success .alert-icon {
    background: #dff5e8;
    color: #1f8b73;
}

/* Text */

.alert-content {
    line-height: 1.5;
}
/* RTL support */

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

    /* Flip layouts */

    [dir="rtl"] .row,
    [dir="rtl"] .choice-item,
    [dir="rtl"] .alert-box {
        flex-direction: row-reverse;
    }

    /* Align labels */

    [dir="rtl"] .label {
        text-align: right;
    }

    /* Input alignment */

    [dir="rtl"] .input,
    [dir="rtl"] .select {
        text-align: right;
    }

    /* Upload box text */

    [dir="rtl"] .upload-box {
        text-align: right;
    }

    /* Header alignment */

    [dir="rtl"] .sewa-header-inner {
        flex-direction: row-reverse;
    }

    /* Breadcrumb */

    [dir="rtl"] .breadcrumb {
        direction: rtl;
    }
.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.choice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e6ece8;
    border-radius: 14px;
    background: #fff;
    min-height: 78px;
    transition: .2s ease;
    cursor: pointer;
}

    .choice-item.active {
        background: var(--green-soft-2);
        border-color: #b8dece;
        box-shadow: 0 0 0 4px rgba(31,139,115,.06);
    }

    .choice-item.choice-error {
        border-color: var(--danger) !important;
        box-shadow: 0 0 0 4px rgba(239,85,119,.08) !important;
    }

    .choice-item input[type="radio"] {
        width: 22px;
        height: 22px;
        accent-color: var(--green);
        margin-top: 3px;
        flex: 0 0 auto;
    }

.choice-content {
    flex: 1;
}

.choice-title {
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f3f40;
}

.choice-sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.45;
    font-weight: 500;
}

/* Base */
.choice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
}

    /* Radio default */
    .choice-item input[type="radio"] {
        margin-top: 4px;
        flex-shrink: 0;
    }

/* ===== RTL PERFECT FIX ===== */
[dir="rtl"] .choice-item {
    flex-direction: row-reverse;
    align-items: flex-start;
}

    /* Move radio to right properly */
    [dir="rtl"] .choice-item input[type="radio"] {
        order: 2;
        margin-left: 0;
        margin-right: 8px; /* spacing from text */
    }

/* Text block */
[dir="rtl"] .choice-content {
    order: 1;
    text-align: right;
    width: 100%;
}

/* Fix title + description alignment */
[dir="rtl"] .choice-title,
[dir="rtl"] .choice-sub {
    text-align: right;
}

/* Remove unwanted left spacing */
.choice-item input[type="radio"] {
    margin-right: 8px;
}

[dir="rtl"] .choice-item input[type="radio"] {
    margin-left: 0;
}
.choice-item {
    align-items: center;
}

[dir="rtl"] .choice-item {
    align-items: center;
}
.sewa-top-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e9e7;
    box-shadow: 0 6px 22px rgba(16,24,40,.04);
}

/* Important: force header layout left-to-right always */
.sewa-header-inner {
    max-width: 1540px;
    margin: 0 auto;
    min-height: 92px;
    padding: 0 24px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    direction: ltr !important;
}

/* Logo group always image first, text second */
.sewa-brand {
    display: flex !important;
    align-items: center;
    gap: 14px;
    direction: ltr !important;
    flex-direction: row !important;
}

.sewa-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.sewa-title-wrap {
    direction: ltr !important;
    text-align: left !important;
}

.sewa-title {
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    color: #20272d;
}

.sewa-subtitle {
    margin-top: 6px;
    font-size: 18px;
    color: #6d7588;
    font-weight: 500;
}

.sewa-language {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    /* Language dropdown */
    .sewa-language select {
        min-width: 260px;
        height: 58px;
        border-radius: 12px;
        border: 1px solid #dfe5e2;
        background: #fff;
        padding: 0 18px;
        font-size: 16px;
        color: #173f3a;
        outline: none;
    }
.alert-box {
    display: flex;
}

    .alert-box:empty {
        display: none;
    }