.ins-donate {
    --primary: #045d88;
    --primary-dark: #023b57;
    --green: #1c7a4d;
    --green-dark: #145c3a;
    --paper: #fbfcfd;
    --surface: #fff;
    --ink: #172522;
    --muted: #64716e;
    --line: #e4e9e7;
    --danger: #b3261e;

    max-width: 100%;
    color: var(--ink);
    font-family: "Anek Bangla", system-ui, sans-serif;
    line-height: 1.6;
}

.ins-donate * {
    box-sizing: border-box;
}


/* =========================================================
   WRAPPER
========================================================= */

.ins-donate-wrap {
    max-width: 920px;
    margin: auto;
}


/* =========================================================
   HERO
========================================================= */

.ins-donate-hero {
    padding: 10px 0 30px;
}

.ins-donate-eyebrow {
    display: inline-block;

    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ins-donate-hero h1 {
    margin: 6px 0 8px;

    color: var(--primary-dark);
    font-size: 34px;
    line-height: 1.25;
}

.ins-donate-hero p {
    max-width: 680px;
    margin: 0;

    color: var(--muted);
    font-size: 15px;
}


/* =========================================================
   STEPPER
========================================================= */

.ins-stepper {
    display: flex;
    align-items: center;
    gap: 5px;

    margin: 0 0 24px;
    padding: 14px;

    border: 1px solid var(--line);
    background: var(--surface);
}

.ins-step {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #8b9693;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ins-step span {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    border: 1px solid #d6dedb;
    border-radius: 50%;

    background: #f7f9f8;
}

.ins-step.is-active,
.ins-step.is-complete {
    color: var(--primary-dark);
}

.ins-step.is-active span,
.ins-step.is-complete span {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.ins-step.is-complete span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    background: #1d7856;
}

.ins-step i {
    flex: 1;

    height: 1px;
    margin: 0 12px;

    background: var(--line);
}


/* =========================================================
   MAIN CARDS
========================================================= */

.ins-donation-form,
.ins-my-donations {
    overflow: hidden;

    border: 1px solid var(--line);
    background: var(--surface);
}


/* =========================================================
   DONATION PANELS
========================================================= */

.ins-donate-panel {
    display: none;
    background: #fff;
    padding: 20px;
}

.ins-panel-heading {
    padding: 20px;
    margin: -22px -20px 0;
    background: #f6f6f6;
    border-bottom: 1px solid var(--line);
}

.ins-donate-panel.is-active {
    display: block;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.ins-field-block {
    margin-top: 18px;
}

.ins-field-block label, .ins-donate-payment-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
}

.ins-donate-payment-label {
    margin-top: 18px;
}

.ins-field-block label span {
    margin-left: 3px;

    color: var(--green);
}

.ins-field-block input,
.ins-field-block select,
.ins-field-block textarea {
    width: 100%;
    border: 1px solid #d7dfdc !important;
    border-radius: 0 !important;
    outline: none;
    background: #f6f6f6;
    color: var(--ink) !important;
    font: inherit;
    font-size: 14px;
}

.ins-field-block input,
.ins-field-block select {
    height: 46px;
    padding: 0 13px !important;
}

.ins-field-block textarea {
    min-height: 110px;
    padding: 11px 13px !important;

    resize: vertical;
    line-height: 1.6;
}

.ins-field-block input:focus,
.ins-field-block select:focus,
.ins-field-block textarea:focus {
    border-color: var(--primary) !important;

    box-shadow: 0 0 0 3px rgba(4, 93, 136, 0.09);
}


/* =========================================================
   FUND DROPDOWN
========================================================= */

.ins-fund-select {
    position: relative;
}

.ins-fund-select select {
    cursor: pointer;
}


/* =========================================================
   FUND INFORMATION ACCORDION
========================================================= */

.ins-donate-accordion {
    margin-top: 14px;
    border: 1px solid var(--line);
    background: #fff;
}

.ins-donate-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 12px 14px;

    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
    list-style: none;
}

.ins-donate-accordion summary::-webkit-details-marker {
    display: none;
}

.ins-donate-accordion summary i {
    flex: 0 0 auto;

    color: var(--green);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.ins-donate-accordion[open] summary {
    border-bottom: 1px solid var(--line);
    background: #f6f6f6;
}

.ins-donate-accordion summary i::before {
    content: "\f067";
}

.ins-donate-accordion[open] summary i::before {
    content: "\f068";
}

.ins-donate-accordion-content {
    padding: 4px 14px 10px;

    background: #fff;
    font-size: 13px;
}

.ins-donate-accordion-item {
    padding: 10px 0;
    border-bottom: 1px solid #edf1ef;
}

.ins-donate-accordion-item:last-child {
    border-bottom: 0;
}

.ins-donate-accordion-item strong {
    display: block;

    margin-bottom: 2px;

    color: var(--ink);
    font-size: 13px;
}

.ins-donate-accordion-item p {
    margin: 0;

    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   PAYMENT OPTIONS
========================================================= */

.ins-payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ins-payment-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px;

    border: 1px solid var(--line);
    border-radius: 0;

    background: #fff;

    cursor: pointer;
    transition: 0.18s ease;
}

.ins-payment-card:hover {
    border-color: #aac0c9;
    transform: translateY(-1px);
}

.ins-payment-card input {
    position: absolute;

    opacity: 0;
}

.ins-payment-card:has(input:checked) {
    border-color: var(--primary);
    background: #fbfdfe;

    box-shadow: 0 0 0 3px rgba(4, 93, 136, 0.08);
}

.ins-payment-card strong {
    font-size: 14px;
}

.ins-payment-card small {
    margin-top: 2px;

    color: var(--muted);
    font-size: 12px;
}

.ins-payment-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: none;
    color: var(--green);

    font-weight: 900;
}

.ins-payment-card > span:last-child {
    display: flex;
    flex-direction: column;
}


.ins-payment-instruction {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #e1e5b4;
    background: #fcffe0;
}

.ins-payment-instruction strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.ins-payment-instruction p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.ins-payment-instruction p strong {
    display: inline;
    margin: 0;
    font-size: inherit;
}



/* =========================================================
   FIELD ERRORS
========================================================= */

.ins-field-error {
    display: block;

    min-height: 0;
    margin-top: 5px;

    color: var(--danger);
    font-size: 12px;
}

.ins-field-error:not(:empty) {
    min-height: 18px;
}


/* =========================================================
   TWO COLUMN FIELDS
========================================================= */

.ins-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}


/* =========================================================
   MONEY INPUT
========================================================= */

.ins-money-input {
    display: flex;
    align-items: center;
    height: 46px;
    overflow: hidden;
    border: 1px solid #d7dfdc;
    border-radius: 0;
    background: #f6f6f6;
}

.ins-money-input:focus-within {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(4, 93, 136, 0.09);
}

.ins-money-input b {
    padding: 0 12px;

    border-right: 1px solid var(--line);

    color: var(--green);
}

.ins-money-input input {
    border: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   AMOUNT HELP TEXT
========================================================= */

.ins-min-amount {
    color: var(--muted);
}


/* =========================================================
   INFO BOX
========================================================= */

.ins-info-box {
    margin-top: 18px;
    padding: 13px 15px;

    border: 1px solid #dce9e5;
    border-radius: 0;

    background: #f7fbf9;

    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   PAYMENT DETAILS
========================================================= */

.ins-payment-detail {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 0px;
    background: #f7f9f8;
}

.ins-payment-detail.is-active {
    display: flex;
    flex-direction: column;
}

.ins-payment-detail-info {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.ins-bank-row, .ins-bkash-details {
    display: flex;
    flex-direction: column;
}

.ins-payment-detail span {
    color: var(--muted);
    font-size: 12px;
}


/* =========================================================
   COPY BUTTON
========================================================= */

.ins-copy-btn {
    padding: 7px 11px;
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ins-copy-btn.copied {
    border-color: var(--green);

    background: var(--green);
    color: #fff;
}


/* =========================================================
   REVIEW
========================================================= */

.ins-donate-panel-4-p {
    margin: 0px;
}

.ins-review-card {
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 0;
}

.ins-review-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 12px 15px;

    border-bottom: 1px solid var(--line);

    font-size: 13px;
}

.ins-review-row:last-child {
    border-bottom: 0;
}

.ins-review-row span {
    color: var(--muted);
}

.ins-review-row strong {
    max-width: 65%;

    text-align: right;
    overflow-wrap: anywhere;
}


/* =========================================================
   CONFIRMATION
========================================================= */

.ins-confirm-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 13px;
}

.ins-confirm-check input {
    margin-top: 5px;
}


/* =========================================================
   FORM FOOTER
========================================================= */

.ins-form-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 30px;
    border-top: 1px solid var(--line);
    background: #f6f6f6;
}


/* =========================================================
   BUTTONS
========================================================= */

.ins-donation-btn {
    padding: 5px 10px;
    border: 0;
    border-radius: 0px;
    font: inherit;
    cursor: pointer;
}

.ins-donation-btn.ins-btn-primary {
    margin-left: auto;

    background: var(--green);
    color: #fff;
}

.ins-donation-btn.ins-btn-primary:hover {
    background: var(--green-dark);
}

.ins-donation-btn.ins-btn-secondary {
    background: #747474;
    color: #fff;
    min-width: 80px;
}

.ins-donation-btn.ins-btn-secondary:hover {
    background: #646464;
}

.ins-donation-btn:disabled {
    opacity: 0.55;

    cursor: not-allowed;
}


/* =========================================================
   FORM STATUS
========================================================= */

.ins-form-status {
    color: var(--danger);
    font-size: 12px;
}

.ins-form-status.is-ok {
    color: var(--green-dark);
}


/* =========================================================
   SUCCESS
========================================================= */

.ins-donate-success {
    padding: 28px;

    border-top: 1px solid #d9eee2;

    background: #f4fbf7;
    color: var(--green-dark);

    text-align: center;
}

.ins-donate-success[hidden] {
    display: none;
}

.ins-donate-success strong {
    display: block;

    margin: 6px 0;

    color: var(--primary-dark);
    font-size: 22px;
}


/* =========================================================
   MY DONATIONS
========================================================= */

.ins-my-donations {
    position: relative;
    margin-top: 30px;
    padding: 20px;
}


/* ---------------------------------------------------------
   CONTENT STATES
--------------------------------------------------------- */

.ins-my-donations .ins-info-box {
    margin-top: 20px;

    border-color: #dce9e5;
    background: #f7fbf9;
}

.ins-my-donations .ins-loading,
.ins-my-donations .ins-empty {
    padding: 20px;
    margin-top: 20px;
    border: 1px dashed var(--line);
    background: #fafcfb;
}


/* ---------------------------------------------------------
   DONATION TABLE
--------------------------------------------------------- */

.ins-table-wrap {
    margin-top: 18px;
    overflow: auto;

    border: 1px solid var(--line);

    background: #fff;
}

.ins-table-wrap table {
    width: 100%;
    min-width: 650px;

    margin: 0;

    border: none;
    border-collapse: collapse;

    font-size: 12px;
}

.ins-table-wrap th,
.ins-table-wrap td {
    padding: 11px 12px;

    border-bottom: 1px solid var(--line);

    text-align: left;
    white-space: nowrap;
}

.ins-table-wrap th {
    background: #f7f9f8;

    color: var(--primary-dark);
    font-weight: 800;
}

.ins-table-wrap tbody tr {
    transition: background 0.15s ease;
}

.ins-table-wrap tbody tr:hover {
    background: #f9fbfa;
}

.ins-table-wrap tbody tr:last-child td {
    border-bottom: 0;
}


/* ---------------------------------------------------------
   MY DONATIONS TABLE
--------------------------------------------------------- */

.ins-my-donations .ins-table-wrap table {
    min-width: 650px;
}

.ins-my-donations .ins-table-wrap th {
    padding: 12px 14px;

    border-bottom-color: #dfe6e3;

    color: #52605c;
    font-size: 11px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ins-my-donations .ins-table-wrap td {
    padding: 13px 14px;

    color: var(--ink);
}

.ins-my-donations .ins-table-wrap td:first-child {
    color: var(--primary);
    font-weight: 800;
}

.ins-my-donations .ins-table-wrap td:nth-child(4) {
    font-weight: 800;
    white-space: nowrap;
}


/* =========================================================
   STATUS PILLS
========================================================= */

.ins-status-pill {
    display: inline-flex;

    padding: 3px 9px;

    border: 1px solid transparent;
    border-radius: 99px;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}

.ins-status-pill.pending {
    border-color: #f0dfae;

    background: #fff6dc;
    color: #956e00;
}

.ins-status-pill.completed {
    border-color: #cfe8da;

    background: #eaf7ef;
    color: var(--green-dark);
}

.ins-status-pill.rejected {
    border-color: #f1d0cd;

    background: #fdeceb;
    color: var(--danger);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    /* Hero */

    .ins-donate-hero h1 {
        font-size: 27px;
    }


    /* Stepper */

    .ins-stepper {
        padding: 10px;
    }

    .ins-step strong {
        font-size: 10px;
        margin-left: -2px;
    }

    .ins-step span {
        width: 22px;
        height: 22px;
    }

    .ins-step i {
        margin: 0 7px;
    }


    /* Donation panel */

    .ins-donate-panel {
        padding: 22px 17px;
    }


    /* Grids */

    .ins-payment-options,
    .ins-two-col {
        grid-template-columns: 1fr;
    }


    /* Form footer */

    .ins-form-footer {
        padding: 14px 17px;
    }


    /* Review */

    .ins-review-row {
        gap: 12px;
        padding: 11px 13px;
    }

    .ins-review-row strong {
        max-width: 58%;
    }


    /* Payment details */

    .ins-payment-detail {
        align-items: flex-start;
        flex-direction: column;
    }


    /* My donations */

    .ins-my-donations {
        margin-top: 18px;
    }

    .ins-my-donations .ins-panel-heading {
        padding: 18px;
    }

    .ins-my-donations .ins-panel-heading h2 {
        font-size: 18px;
    }

    .ins-my-donations .ins-table-wrap th,
    .ins-my-donations .ins-table-wrap td {
        padding: 11px 12px;
    }
}