/*body { background: #f4f7fb; color:#263238; font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; }
.portal-shell { min-height:100vh; display:flex; align-items:center; }
.payment-card { background:#fff; max-width:560px; margin:auto; padding:32px; border-radius:18px; box-shadow:0 12px 40px rgba(31,45,61,.10); }
.payment-card.wide { max-width:1000px; }
.brand-mark { color:#007fff; font-weight:700; letter-spacing:.02em; margin-bottom:28px; }
.security-icon { width:56px; height:56px; display:grid; place-items:center; margin:0 auto 18px; border-radius:50%; background:#eef2ff; color:#007fff; font-size:24px; font-weight:700; }
.stepper { display:flex; gap:8px; margin-bottom:30px; overflow:auto; padding-bottom:5px; }
.stepper span { white-space:nowrap; padding:7px 10px; border-radius:8px; background:#f1f3f5; color:#8a94a6; font-size:13px; }
.stepper .active { background:#007fff; color:#fff; }
.stepper .done { background:#e9f7ef; color:#198754; }
.summary-card { border:1px solid #e9edf2; border-radius:14px; padding:22px; height:100%; }
.payment-option { border:1px solid #e5e9ef; border-radius:12px; padding:16px; margin-top:12px; cursor:pointer; }
.payment-option:has(input:checked) { border-color:#007fff; background:#f7f8fc; }
.form-control { border-radius:10px; }
.btn { border-radius:10px; }
@media (max-width: 576px) { .payment-card { padding:22px; border-radius:12px; } .portal-shell { align-items:flex-start; } }*/

:root {
    --portal-primary: #007fff;
    --portal-primary-dark: #0066cc;
    --portal-text: #212529;
    --portal-muted: #6c757d;
    --portal-border: #e9ebec;
    --portal-background: #f5f7fa;
    --portal-white: #ffffff;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--portal-text);
    background: var(--portal-background);
}


/* =========================================================
   HEADER
   ========================================================= */

.portal-header {
    background: var(--portal-white);
    border-bottom: 1px solid var(--portal-border);
}

.portal-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.portal-brand-logo {
    display: block;
    width: 190px;
    max-width: 42vw;
    height: auto;
    object-fit: contain;
}

.portal-brand-copy {
    padding-left: 16px;
    border-left: 1px solid var(--portal-border);
}

    .portal-brand:hover {
        color: var(--portal-text);
    }

.portal-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--portal-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.portal-brand-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.portal-brand-subtitle {
    color: var(--portal-muted);
    font-size: 12px;
    margin-top: 2px;
}

.portal-security {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #198754;
    font-size: 13px;
    font-weight: 500;
}

    .portal-security i {
        font-size: 17px;
    }


/* =========================================================
   MAIN
   ========================================================= */

.portal-main {
    min-height: calc(100vh - 76px - 180px);
    padding: 22px 0 30px;
}


/* =========================================================
   PAYMENT PAGE
   ========================================================= */

.payment-page {
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================================
   STEPPER
   ========================================================= */

.payment-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 35px;
}

.progress-step {
    min-width: 90px;
    text-align: center;
    color: #adb5bd;
}

.progress-step-number {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.progress-step-label {
    font-size: 12px;
    font-weight: 500;
}

.progress-step.active {
    color: var(--portal-primary);
}

    .progress-step.active .progress-step-number {
        background: var(--portal-primary);
        color: white;
    }

.progress-line {
    width: 70px;
    height: 1px;
    background: #dee2e6;
    margin-top: 17px;
}


/* =========================================================
   PAYMENT CARD
   ========================================================= */

.payment-card {
    background: white;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.payment-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
}

.security-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(0, 127, 255, 0.1);
    color: var(--portal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.payment-card-header h1 {
    margin: 0 0 5px;
    font-size: 25px;
    font-weight: 700;
}

.payment-card-header p {
    margin: 0;
    color: var(--portal-muted);
    font-size: 14px;
}


/* =========================================================
   FORM
   ========================================================= */

.payment-card .form-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.payment-card .input-group-text {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #74788d;
}

.payment-card .form-control {
    border-color: #ced4da;
}

    .payment-card .form-control:focus {
        border-color: var(--portal-primary);
        box-shadow: 0 0 0 0.2rem rgba(0, 127, 255, 0.12);
    }

.payment-card .form-text {
    font-size: 12px;
    color: #878a99;
    margin-top: 8px;
}

.payment-card .btn-primary {
    background: var(--portal-primary-dark);
    border-color: var(--portal-primary-dark);
    font-weight: 600;
}

    .payment-card .btn-primary:hover {
        background: var(--portal-primary-dark);
        border-color: var(--portal-primary-dark);
    }


/* =========================================================
   ERROR
   ========================================================= */

.portal-alert {
    border-radius: 8px;
    border: 0;
    font-size: 14px;
    margin-bottom: 25px;
}


/* =========================================================
   SECURITY NOTE
   ========================================================= */

.payment-security-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 30px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #495057;
}

    .payment-security-note > i {
        color: #198754;
        font-size: 20px;
        margin-top: 2px;
    }

    .payment-security-note strong {
        display: block;
        font-size: 13px;
        margin-bottom: 3px;
    }

    .payment-security-note p {
        margin: 0;
        color: #74788d;
        font-size: 12px;
    }


/* =========================================================
   HELP
   ========================================================= */

.payment-help {
    margin-top: 20px;
    font-size: 13px;
    color: var(--portal-muted);
}

    .payment-help a {
        margin-left: 5px;
        color: var(--portal-primary);
        text-decoration: none;
        font-weight: 600;
    }

        .payment-help a:hover {
            text-decoration: underline;
        }


/* =========================================================
   FOOTER
   ========================================================= */

.portal-footer {
    background: #ffffff;
    border-top: 1px solid var(--portal-border);
}

.portal-footer-main {
    min-height: 110px;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
}

.footer-brand-logo {
    display: block;
    width: 155px;
    height: auto;
    object-fit: contain;
}

    .footer-brand i {
        color: var(--portal-primary);
    }

.footer-description {
    margin: 5px 0 0;
    color: var(--portal-muted);
    font-size: 12px;
}

.footer-security {
    display: flex;
    gap: 25px;
}

.footer-security-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #74788d;
    font-size: 12px;
}

    .footer-security-item i {
        color: #198754;
    }

.portal-footer-bottom {
    min-height: 55px;
    border-top: 1px solid var(--portal-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #878a99;
    font-size: 11px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

    .footer-links a {
        color: #74788d;
        text-decoration: none;
    }

        .footer-links a:hover {
            color: var(--portal-primary);
        }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .portal-brand {
        gap: 10px;
    }

    .portal-brand-logo {
        width: 140px;
        max-width: 38vw;
    }

    .portal-brand-copy {
        padding-left: 10px;
    }

    .portal-brand-name {
        font-size: 14px;
    }

    .portal-brand-subtitle {
        font-size: 10px;
    }

    .portal-header-inner {
        min-height: 68px;
    }

    .portal-security {
        display: none;
    }

    .portal-main {
        padding: 16px 0 24px;
    }

    .payment-progress {
        margin-bottom: 25px;
    }

    .progress-step {
        min-width: 55px;
    }

    .progress-step-label {
        font-size: 10px;
    }

    .progress-line {
        width: 25px;
    }

    .payment-card {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .payment-card-header {
        align-items: flex-start;
    }

        .payment-card-header h1 {
            font-size: 21px;
        }

        .payment-card-header p {
            font-size: 13px;
        }

    .security-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .portal-footer-main {
        display: block;
        padding: 25px 0;
    }

    .footer-security {
        margin-top: 20px;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .portal-footer-bottom {
        padding: 15px 0;
        display: block;
    }

    .footer-links {
        margin-top: 10px;
    }
}

.progress-step.completed .progress-step-number {
    background: var(--portal-primary-dark);
    color: #fff;
    border-color: var(--portal-primary);
}

.progress-step.completed .progress-step-label {
    color: var(--portal-primary);
    font-weight: 600;
}

.progress-line.completed {
    background: var(--portal-primary);
}

.progress-step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    background: #fff;
    border: 2px solid #dfe3e8;
    color: #8a9199;
    font-size: 14px;
    font-weight: 600;
}

.progress-step.active .progress-step-number {
    background: var(--portal-primary-dark);
    color: #fff;
    border-color: var(--portal-primary);
}

.progress-step.active .progress-step-label {
    color: var(--portal-primary);
    font-weight: 600;
}



/* for payment page */
/* =========================================
   Payment Summary
   ========================================= */

.account-summary-card {
    height: 100%;
    padding: 28px;
    background: #f8f9fb;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 127, 255, 0.10);
    color: var(--portal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.summary-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--portal-text);
}

.summary-header span {
    display: block;
    margin-top: 3px;
    color: var(--portal-muted);
    font-size: 13px;
}

.verified-badge {
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 20px;
    background: #e8f7ef;
    color: #198754;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.summary-divider {
    height: 1px;
    background: var(--portal-border);
    margin: 24px 0;
}

.summary-balance-label {
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 500;
}

.summary-balance-amount {
    margin-top: 6px;
    color: var(--portal-text);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.summary-balance-note {
    margin-top: 8px;
    color: #198754;
    font-size: 12px;
}

.summary-info {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--portal-border);
}

.summary-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 13px;
}

    .summary-info-row span {
        color: var(--portal-muted);
    }

    .summary-info-row strong {
        color: var(--portal-text);
    }

.summary-security {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
}

    .summary-security > i {
        color: #198754;
        font-size: 18px;
    }

    .summary-security strong {
        display: block;
        font-size: 13px;
    }

    .summary-security p {
        margin: 3px 0 0;
        color: var(--portal-muted);
        font-size: 12px;
        line-height: 1.5;
    }


/* =========================================
   Payment Selection
   ========================================= */

.payment-selection-card {
    padding: 28px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: #fff;
}

.payment-selection-header h2 {
    margin-bottom: 5px;
    font-size: 19px;
    font-weight: 700;
}

.payment-selection-header p {
    margin-bottom: 22px;
    color: var(--portal-muted);
    font-size: 14px;
}


/* Payment Option */

.payment-option-card {
    display: block;
    position: relative;
    margin-bottom: 12px;
    padding: 17px;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .payment-option-card:hover {
        border-color: var(--portal-primary);
        background: rgba(0, 127, 255, 0.02);
    }

    .payment-option-card.selected {
        border-color: var(--portal-primary);
        background: rgba(0, 127, 255, 0.04);
    }

    .payment-option-card .form-check-input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.payment-option-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f1f3f5;
    color: var(--portal-muted);
}

.payment-option-card.selected .payment-option-icon {
    background: var(--portal-primary);
    color: #fff;
}

.payment-option-text {
    flex: 1;
}

    .payment-option-text strong {
        display: block;
        color: var(--portal-text);
        font-size: 14px;
    }

    .payment-option-text span {
        display: block;
        margin-top: 3px;
        color: var(--portal-muted);
        font-size: 12px;
    }

.payment-option-arrow {
    color: #adb5bd;
}

.payment-option-card.selected .payment-option-arrow {
    color: var(--portal-primary);
}


/* Partial Payment */

.partial-payment-wrap {
    padding: 18px;
    margin-top: 15px;
    background: #f8f9fb;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
}

    .partial-payment-wrap .input-group-text {
        background: #fff;
        color: var(--portal-muted);
    }


/* Security note */

.payment-method-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.5;
}

    .payment-method-note i {
        color: #198754;
        font-size: 15px;
        margin-top: 1px;
    }



/* =========================================
   Failed Payment
   ========================================= */

.payment-status-icon.failed {
    background: rgba(220, 53, 69, 0.10);
    color: #dc3545;
}

.processing-badge.failed {
    background: rgba(220, 53, 69, 0.10);
    color: #dc3545;
}

.status-badge.failed {
    background: rgba(220, 53, 69, 0.10);
    color: #dc3545;
}

.payment-processing-note.failed {
    background: rgba(220, 53, 69, 0.04);
    border-color: rgba(220, 53, 69, 0.15);
}

.processing-note-icon.failed {
    background: rgba(220, 53, 69, 0.10);
    color: #dc3545;
}


/* Confirmation step failure state */

.progress-step.failed .progress-step-number {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.progress-step.failed .progress-step-label {
    color: #dc3545;
    font-weight: 600;
}


/* =========================================
   Successful Payment
   ========================================= */

.payment-status-icon.success {
    background: rgba(25, 135, 84, 0.10);
    color: #198754;
}

.processing-badge.success {
    background: rgba(25, 135, 84, 0.10);
    color: #198754;
}

.status-badge.success {
    background: rgba(25, 135, 84, 0.10);
    color: #198754;
}

.payment-processing-note.success {
    background: rgba(25, 135, 84, 0.04);
    border-color: rgba(25, 135, 84, 0.15);
}

.processing-note-icon.success {
    background: rgba(25, 135, 84, 0.10);
    color: #198754;
}


/* Confirmation amount */

.payment-confirmation-amount {
    padding: 4px 0;
    text-align: center;
}

    .payment-confirmation-amount span {
        display: block;
        color: var(--portal-muted);
        font-size: 13px;
    }

    .payment-confirmation-amount strong {
        display: block;
        margin-top: 5px;
        color: #198754;
        font-size: 32px;
        line-height: 1.2;
        font-weight: 700;
    }


/* Confirmation step */

.progress-step.success .progress-step-number {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.progress-step.success .progress-step-label {
    color: #198754;
    font-weight: 600;
}


.customer-name-section {
    padding: 18px 0 20px;
}

.customer-name-label {
    color: var(--portal-muted);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.customer-name {
    color: var(--portal-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.summary-header-content {
    flex: 1;
    min-width: 0;
}

    .summary-header-content h2 {
        margin: 0;
    }

    .summary-header-content span {
        display: block;
        margin-top: 3px;
        color: var(--portal-muted);
        font-size: 12px;
    }






    /* Redesign payment page*/

/* ============================================================
   PAYMENT PAGE
   ============================================================ */

.payment-page {
    width: 100%;
    padding: 14px 20px 22px;
}

.payment-container {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}


/* ============================================================
   Progress
   ============================================================ */

.payment-progress {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.progress-step {
    min-width: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.progress-step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #d9dee7;
    background: #fff;
    color: #8993a4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.progress-step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #8a94a6;
}

.progress-step.completed .progress-step-number {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.progress-step.completed .progress-step-label {
    color: #198754;
}

.progress-step.active .progress-step-number {
    background: #007fff;
    border-color: #007fff;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(0, 127, 255, 0.10);
}

.progress-step.active .progress-step-label {
    color: #007fff;
    font-weight: 700;
}

.progress-line {
    height: 2px;
    flex: 1;
    min-width: 45px;
    max-width: 100px;
    margin-top: 16px;
    background: #e4e8ee;
}

    .progress-line.completed {
        background: #198754;
    }


/* ============================================================
   Page heading
   ============================================================ */

.payment-page-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-page-heading-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 127, 255, 0.09);
    color: #007fff;
    font-size: 22px;
}

.payment-step-caption {
    color: #8a94a6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.payment-page-heading h1 {
    margin: 0;
    color: #212529;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}

.payment-page-heading p {
    margin: 5px 0 0;
    color: #747e8c;
    font-size: 14px;
}


/* ============================================================
   Validation alert
   ============================================================ */

.payment-alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 42px 14px 15px;
    border: 1px solid #f1b9b7;
    border-radius: 10px;
    background: #fff5f5;
    color: #842029;
}

.payment-alert-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8d7da;
    color: #b02a37;
}

.payment-alert-content {
    min-width: 0;
    font-size: 13px;
    line-height: 1.5;
}

    .payment-alert-content strong {
        display: block;
        margin-bottom: 2px;
    }

.payment-alert-message {
    color: #8c4a50;
}

.payment-alert-close {
    position: absolute;
    top: 12px;
    right: 13px;
    border: 0;
    background: transparent;
    color: #842029;
    opacity: .65;
    padding: 3px;
}

    .payment-alert-close:hover {
        opacity: 1;
    }


/* ============================================================
   Account / balance card
   ============================================================ */

.account-balance-card {
    overflow: hidden;
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.05);
    margin-bottom: 22px;
}

.account-balance-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px 28px;
}

.customer-info {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.customer-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    background: #f0f2f8;
    color: #007fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.customer-details {
    min-width: 0;
}

.customer-label {
    display: block;
    margin-bottom: 3px;
    color: #98a1b2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
}

.customer-details h2 {
    margin: 0;
    color: #212529;
    font-size: 18px;
    font-weight: 700;
}

.customer-account {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    color: #747e8c;
    font-size: 12px;
}

    .customer-account > i {
        color: #98a1b2;
    }

.verified-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #198754;
    font-weight: 600;
}

.balance-section {
    flex: 0 0 auto;
    text-align: right;
}

.balance-label {
    display: block;
    margin-bottom: 5px;
    color: #98a1b2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
    color: #212529;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.balance-currency {
    color: #747e8c;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.account-balance-footer {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 28px;
    border-top: 1px solid #edf0f4;
    background: #fafbfc;
    color: #7a8494;
    font-size: 11px;
}

    .account-balance-footer > div {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .account-balance-footer i {
        color: #198754;
    }

.balance-updated {
    white-space: nowrap;
}


/* ============================================================
   Payment selection
   ============================================================ */

.payment-selection {
    border: 1px solid #e6e9ef;
    border-radius: 14px;
    background: #fff;
    padding: 26px 28px 25px;
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.05);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-heading-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f0f2f8;
    color: #007fff;
    font-size: 17px;
}

.section-heading h2 {
    margin: 0;
    color: #212529;
    font-size: 17px;
    font-weight: 700;
}

.section-heading p {
    margin: 3px 0 0;
    color: #8a94a6;
    font-size: 12px;
}


/* ============================================================
   Payment choices
   ============================================================ */

.payment-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 72px;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid #e2e6ed;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

    .payment-choice:hover {
        border-color: #aeb7c9;
        background: #fcfcfd;
    }

    .payment-choice.selected {
        border-color: #007fff;
        background: rgba(0, 127, 255, 0.035);
        box-shadow: 0 0 0 1px rgba(0, 127, 255, 0.08);
    }

.payment-choice-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-choice-check {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid #c8ced8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
}

.payment-choice.selected .payment-choice-check {
    border-color: #007fff;
    background: #007fff;
}

.payment-choice-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.payment-choice-title {
    color: #343a40;
    font-size: 14px;
    font-weight: 700;
}

.payment-choice-description {
    color: #8a94a6;
    font-size: 12px;
}

.payment-choice-amount {
    flex: 0 0 auto;
    color: #343a40;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

    .payment-choice-amount span {
        color: #8a94a6;
        font-size: 10px;
        font-weight: 600;
        margin-right: 3px;
    }

.payment-choice-arrow {
    color: #9aa3b2;
    font-size: 13px;
    padding-left: 8px;
}


/* ============================================================
   Partial payment
   ============================================================ */

.partial-payment-container {
    /*display: none;*/
    margin: 14px 0 3px;
    padding: 17px;
    border: 1px solid #e1e5ec;
    border-radius: 10px;
    background: #fafbfc;
}

    .partial-payment-container.visible {
        /*display: block;*/
        animation: partialPaymentIn .18s ease-out;
    }

@keyframes partialPaymentIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.partial-payment-label {
    display: block;
    margin-bottom: 7px;
    color: #343a40;
    font-size: 12px;
    font-weight: 700;
}

.partial-payment-input {
    display: flex;
    align-items: stretch;
    height: 48px;
}

.partial-payment-currency {
    min-width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce1e8;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f2f4f7;
    color: #5f6978;
    font-size: 13px;
    font-weight: 700;
}

.partial-payment-input .form-control {
    height: 48px;
    border-radius: 0 8px 8px 0;
    border-color: #dce1e8;
    font-size: 17px;
    font-weight: 600;
    box-shadow: none;
}

    .partial-payment-input .form-control:focus {
        border-color: #007fff;
        box-shadow: 0 0 0 .15rem rgba(0, 127, 255, .10);
    }

.partial-payment-input.has-error .form-control {
    border-color: #dc3545;
}

.partial-payment-input.has-error .partial-payment-currency {
    border-color: #dc3545;
}

.partial-payment-help {
    margin-top: 6px;
    color: #8a94a6;
    font-size: 11px;
}

.partial-payment-error {
    display: none;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #dc3545;
    font-size: 11px;
}

.partial-payment-error.visible {
        display: flex;
    }

.selected-payment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #b6dcff;
    border-radius: 10px;
    background: #eaf5ff;
    color: #475569;
    font-size: 13px;
}

.selected-payment-summary strong {
    color: #0059b3;
    font-size: 18px;
    white-space: nowrap;
}


/* ============================================================
   Payment action
   ============================================================ */

.payment-action {
    margin-top: 22px;
}

.payment-submit-button {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 9px;
    background: #0066cc;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 127, 255, .18);
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

    .payment-submit-button:hover:not(:disabled) {
        background: #0066cc;
        box-shadow: 0 5px 12px rgba(0, 127, 255, .22);
        transform: translateY(-1px);
    }

    .payment-submit-button:active:not(:disabled) {
        transform: translateY(0);
    }

    .payment-submit-button:disabled {
        cursor: not-allowed;
        opacity: .75;
    }

.payment-submit-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.payment-submit-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.payment-submit-button.loading .payment-submit-content {
    display: none;
}

.payment-submit-button.loading .payment-submit-spinner {
    display: flex;
}

.payment-provider-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 11px;
    color: #8993a2;
    font-size: 11px;
    text-align: center;
}

    .payment-provider-note i {
        color: #198754;
        font-size: 13px;
    }


/* ============================================================
   Security
   ============================================================ */

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin: 20px 0 14px;
    padding: 15px 18px;
    border: 1px solid #e8ebf0;
    border-radius: 10px;
    background: #fafbfc;
}

.payment-security-item {
    display: flex;
    align-items: center;
    gap: 9px;
}

.payment-security-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef7f1;
    color: #198754;
    font-size: 14px;
}

.payment-security-item div:last-child {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.payment-security-item strong {
    color: #49515e;
    font-size: 11px;
    font-weight: 700;
}

.payment-security-item span {
    color: #929aa8;
    font-size: 10px;
}

.payment-security-divider {
    width: 1px;
    height: 30px;
    background: #e2e6eb;
}


/* ============================================================
   Support
   ============================================================ */

.payment-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #929aa8;
    font-size: 11px;
}

    .payment-support i {
        font-size: 13px;
    }

    .payment-support a {
        color: #007fff;
        font-weight: 600;
        text-decoration: none;
    }

        .payment-support a:hover {
            text-decoration: underline;
        }


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 767.98px) {

    .payment-page {
        padding: 10px 14px 20px;
    }

    .payment-container {
        max-width: 100%;
    }

    .payment-progress {
        margin-bottom: 20px;
    }

    .progress-step {
        min-width: 55px;
    }

    .progress-step-label {
        font-size: 10px;
    }

    .progress-line {
        min-width: 15px;
    }

    .payment-page-heading {
        gap: 12px;
        margin-bottom: 18px;
    }

    .payment-page-heading-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 18px;
    }

    .payment-page-heading h1 {
        font-size: 22px;
    }

    .payment-page-heading p {
        font-size: 12px;
    }

    .account-balance-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .balance-section {
        width: 100%;
        text-align: left;
        padding-top: 16px;
        border-top: 1px solid #edf0f4;
    }

    .balance-amount {
        justify-content: flex-start;
        font-size: 27px;
    }

    .account-balance-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 10px 20px;
    }

    .payment-selection {
        padding: 20px;
    }

    .payment-choice {
        min-height: 68px;
        padding: 13px;
    }

    .payment-choice-description {
        font-size: 11px;
    }

    .payment-choice-amount {
        font-size: 13px;
    }

    .payment-security {
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
    }

    .payment-security-divider {
        width: 100%;
        height: 1px;
    }
}

@media (max-width: 420px) {

    .payment-progress {
        width: calc(100% + 8px);
        margin-left: -4px;
    }

    .progress-step-number {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .progress-line {
        margin-top: 14px;
    }

    .payment-page-heading-icon {
        display: none;
    }

    .payment-page-heading h1 {
        font-size: 20px;
    }

    .customer-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .customer-details h2 {
        font-size: 16px;
    }

    .customer-account {
        font-size: 11px;
    }

    .payment-choice {
        gap: 9px;
    }

    .payment-choice-content {
        min-width: 0;
    }

    .payment-choice-title {
        font-size: 13px;
    }

    .payment-choice-description {
        line-height: 1.3;
    }

    .payment-choice-amount {
        font-size: 12px;
    }
}



.partial-payment-container {
    display: none;
}

.partial-payment-container.visible {
        display: block;
    }


.receipt-card {
    position: relative;
}

.receipt-download-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid #b6dcff;
    border-radius: 999px;
    background: #eaf5ff;
    color: #0059b3;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 127, 255, 0.12);
    transition: transform .15s ease, background-color .15s ease;
}

.receipt-download-badge:hover {
    background: #d9eeff;
    color: #0059b3;
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .receipt-download-badge {
        position: static;
        margin: 0 auto 20px;
    }
}


/* ============================================================
   Global Payments hosted checkout
   ============================================================ */

.gp-hosted-shell {
    max-width: 820px;
    margin: 0 auto;
}

.gp-hosted-page {
    padding-top: 0;
    padding-bottom: 0;
}

.portal-main.portal-main-compact {
    padding-top: 16px;
    padding-bottom: 24px;
}

.gp-hosted-page .payment-progress {
    margin-bottom: 14px;
}

.gp-hosted-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    max-width: 760px;
    margin: 0 auto 14px;
}

.gp-secure-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #2f9e68;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gp-hosted-heading h1 {
    margin: 0 0 4px;
    color: #26304a;
    font-size: 24px;
    font-weight: 750;
}

.gp-hosted-heading p {
    margin: 0;
    color: #747c8c;
    font-size: 13px;
}

.gp-payment-summary {
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid #dfe4ed;
    border-radius: 12px;
    background: #fff;
    text-align: right;
    box-shadow: 0 5px 18px rgba(37, 48, 74, .06);
}

.gp-payment-summary span,
.gp-payment-summary small {
    display: block;
    color: #838b99;
    font-size: 10px;
}

.gp-payment-summary strong {
    display: block;
    margin: 2px 0;
    color: #007fff;
    font-size: 18px;
}

.gp-payment-summary .gp-payment-summary-divider {
    height: 1px;
    margin: 8px 0;
    background: #e8edf4;
}

.gp-hosted-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 760px;
    min-height: 570px;
    margin: 0 auto;
    border: 1px solid #dfe4ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(37, 48, 74, .10);
}

.gp-hosted-loader {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    color: #007fff;
    transition: opacity .2s ease, visibility .2s ease;
}

.gp-hosted-loader span {
    color: #8a92a0;
    font-size: 12px;
}

.gp-hosted-loader.hidden {
    visibility: hidden;
    opacity: 0;
}

.gp-hosted-frame {
    display: block;
    width: 100%;
    height: 570px;
    margin: 0 auto;
    border: 0;
    background: #fff;
    opacity: 0;
    transition: opacity .2s ease;
}

.gp-hosted-frame.loaded {
    opacity: 1;
}

.gp-hosted-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
    padding: 10px 4px 0;
    color: #8991a0;
    font-size: 11px;
}

.gp-hosted-footer a {
    color: #007fff;
    font-weight: 650;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .gp-hosted-page {
        padding-top: 0;
        padding-bottom: 0;
    }

    .portal-main.portal-main-compact {
        padding-top: 12px;
        padding-bottom: 18px;
    }

    .gp-hosted-page .payment-progress {
        margin-bottom: 12px;
    }

    .gp-hosted-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 11px;
    }

    .gp-payment-summary {
        text-align: left;
    }

    .gp-hosted-card,
    .gp-hosted-frame {
        min-height: 650px;
        height: 650px;
        border-radius: 12px;
    }

    .gp-hosted-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}
