html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.page-header {
    background: #0b1f3a;
    color: white;
    padding: 130px 0 60px;
}

    .page-header h1 {
        font-weight: 700;
    }

.loan-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
}

    .loan-card label {
        color: #0b1f3a;
        font-weight: 600;
    }

.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px;
}

.calculation-result {
    background: #f5f7fa;
    border-radius: 15px;
    padding: 25px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

    .result-row.total {
        font-size: 1.2rem;
        color: #0b1f3a;
    }

.monthly-payment {
    background: #0b1f3a;
    color: white;
    margin-top: 20px;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

    .monthly-payment h2 {
        color: #ff8c00;
        font-weight: 700;
    }


.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    gap: 20px;
}

    .dashboard-card i {
        background: rgba(255,140,0,.12);
        color: #ff8c00;
        width: 60px;
        height: 60px;
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 25px;
    }

    .dashboard-card h2 {
        margin: 5px 0 0;
        color: #0b1f3a;
    }

.status-badge {
    background: #fff3cd;
    color: #856404;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: .85rem;
}


.readonly-financial-field {
    background: #f1f4f8;
    border: 1px solid #dce2e8;
    border-radius: 10px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b1f3a;
    font-weight: 600;
}

    .readonly-financial-field i {
        color: #ff8c00;
    }

.readonly-label {
    margin-left: auto;
    font-size: .75rem;
    color: #777;
}

.loan-value {
    color: #0b1f3a;
    font-weight: 700;
}

.loan-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 140, 0, 0.12);
    color: #ff8c00;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.cost-row,
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

    .cost-row strong {
        color: #0b1f3a;
    }

.total-row {
    font-size: 1.05rem;
}

.total-repayable-box {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient( 135deg, #0b1f3a, #123968 );
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .total-repayable-box small {
        color: #ffb347;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .total-repayable-box h2 {
        margin: 5px 0 0;
        color: white;
        font-weight: 700;
    }

    .total-repayable-box i {
        font-size: 2rem;
        color: #ff8c00;
    }

.text-orange {
    color: #ff8c00 !important;
}

.installment-number {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0b1f3a;
    color: white;
    font-weight: 600;
}

.payment-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
}

    .payment-status.paid {
        background: #dff6e7;
        color: #198754;
    }

    .payment-status.pending {
        background: #fff3cd;
        color: #997404;
    }

.loan-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
}

.status-badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(255, 140, 0, .12);
    color: #d66f00;
    font-size: .85rem;
    font-weight: 700;
}

.calculator-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto;
    border-radius: 18px;
    background: rgba(255, 140, 0, .12);
    color: #ff8c00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.readonly-financial-field {
    min-height: 48px;
    padding: 12px 15px;
    border-radius: 10px;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .readonly-financial-field i {
        color: #ff8c00;
    }

.readonly-label {
    margin-left: auto;
    color: #6c757d;
    font-size: .8rem;
    font-weight: 600;
}

    .readonly-label i {
        color: #6c757d;
    }

.calculation-result {
    background: #f8f9fa;
    border-radius: 18px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.result-icon {
    color: #ff8c00;
    font-size: 28px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

    .result-row strong {
        color: #0b1f3a;
    }

    .result-row.total {
        font-size: 1.15rem;
    }

        .result-row.total strong {
            color: #ff8c00;
            font-size: 1.3rem;
        }

.monthly-payment {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient( 135deg, #0b1f3a, #123968 );
    color: white;
    text-align: center;
}

    .monthly-payment small {
        color: #ffb347;
        font-weight: 600;
    }

    .monthly-payment h2 {
        margin: 5px 0 0;
        color: white;
        font-weight: 700;
    }


/* ==========================================================
   NKALA LOANS - SHARED IDENTITY PAGES
   Login / Register / Forgot Password / 2FA / Confirmation
   ========================================================== */

:root {
    --nkala-navy: #0b1f3a;
    --nkala-navy-light: #123968;
    --nkala-orange: #ff8c00;
    --nkala-orange-dark: #e67600;
    --nkala-light: #f5f7fb;
    --nkala-muted: #6c757d;
}


/* ==========================================================
   IDENTITY PAGE BACKGROUND
   ========================================================== */

.identity-page {
    min-height: calc(100vh - 80px);
    padding: 120px 15px 80px;
    background: linear-gradient( rgba(11, 31, 58, 0.94), rgba(11, 31, 58, 0.94) ), url('/images/transport-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-start;
}


/* ==========================================================
   IDENTITY CONTAINER
   ========================================================== */

.identity-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}


/* ==========================================================
   IDENTITY CARD
   ========================================================== */

.identity-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.15);
}


/* ==========================================================
   HEADER ICON
   ========================================================== */

.identity-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--nkala-navy);
    color: var(--nkala-orange);
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(11, 31, 58, 0.25);
}


/* ==========================================================
   BRAND BADGE
   ========================================================== */

.identity-brand {
    display: inline-block;
    background: var(--nkala-orange);
    color: #ffffff;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .3px;
}


/* ==========================================================
   TITLE
   ========================================================== */

.identity-title {
    color: var(--nkala-navy);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 8px;
}


.identity-subtitle {
    color: var(--nkala-muted);
    margin-bottom: 0;
    line-height: 1.6;
}


/* ==========================================================
   SECTION
   ========================================================== */

.identity-section-first {
    margin-top: 30px;
}


.identity-section {
    border-top: 1px solid #e8ebef;
    padding-top: 28px;
    margin-top: 30px;
}


.identity-section-title {
    color: var(--nkala-navy);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
}


/* ==========================================================
   FORM CONTROLS
   ========================================================== */

.identity-card .form-control,
.identity-card .form-select {
    min-height: 56px;
    border: 1px solid #dce2e8;
    border-radius: 12px;
    background: #ffffff;
    color: #212529;
    transition: border-color .2s ease, box-shadow .2s ease;
}


.identity-card textarea.form-control {
    min-height: 120px;
}


.identity-card .form-control:focus,
.identity-card .form-select:focus {
    border-color: var(--nkala-orange);
    box-shadow: 0 0 0 .2rem rgba(255, 140, 0, .15);
}


.identity-card .form-floating > label {
    color: #6c757d;
}


/* ==========================================================
   VALIDATION
   ========================================================== */

.identity-card .text-danger {
    display: block;
    margin-top: 5px;
    font-size: .85rem;
}


.identity-validation {
    border-radius: 12px;
    border: none;
}


/* ==========================================================
   ORANGE BUTTON
   ========================================================== */

.btn-orange {
    background: var(--nkala-orange);
    border: 2px solid var(--nkala-orange);
    color: #ffffff;
    font-weight: 700;
    border-radius: 30px;
    transition: all .25s ease;
}


    .btn-orange:hover {
        background: var(--nkala-orange-dark);
        border-color: var(--nkala-orange-dark);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(255, 140, 0, .30);
    }


/* ==========================================================
   IDENTITY SUBMIT BUTTON
   ========================================================== */

.identity-submit {
    width: 100%;
    border: none;
    border-radius: 30px;
    background: var(--nkala-orange);
    color: #ffffff;
    padding: 14px 25px;
    font-size: 1rem;
    font-weight: 700;
    transition: all .25s ease;
}


    .identity-submit:hover {
        background: var(--nkala-orange-dark);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(255, 140, 0, .30);
    }


/* ==========================================================
   LINKS
   ========================================================== */

.identity-card a {
    color: var(--nkala-navy);
    text-decoration: none;
    font-weight: 600;
}


    .identity-card a:hover {
        color: var(--nkala-orange);
        text-decoration: none;
    }


/* ==========================================================
   DIVIDER
   ========================================================== */

.identity-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 35px 0 25px;
    color: #8a929b;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
}


    .identity-divider::before,
    .identity-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #dee2e6;
    }


/* ==========================================================
   SECONDARY LOGIN BUTTON
   ========================================================== */

.identity-login {
    display: block;
    width: 100%;
    padding: 13px 20px;
    border: 2px solid var(--nkala-navy);
    border-radius: 30px;
    color: var(--nkala-navy) !important;
    background: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}


    .identity-login:hover {
        background: var(--nkala-navy);
        color: #ffffff !important;
        transform: translateY(-1px);
    }


/* ==========================================================
   INFORMATION BOXES
   ========================================================== */

.identity-info {
    background: #f5f7fb;
    border: 1px solid #e2e7ed;
    border-radius: 15px;
    padding: 20px;
    color: #495057;
}


    .identity-info i {
        color: var(--nkala-orange);
    }


/* ==========================================================
   SUCCESS BOX
   ========================================================== */

.identity-success {
    background: #eaf8ef;
    border: 1px solid #c9ecd5;
    color: #198754;
    border-radius: 15px;
    padding: 20px;
}


/* ==========================================================
   WARNING BOX
   ========================================================== */

.identity-warning {
    background: #fff8e6;
    border: 1px solid #ffe3a3;
    color: #856404;
    border-radius: 15px;
    padding: 20px;
}


/* ==========================================================
   DANGER BOX
   ========================================================== */

.identity-danger {
    background: #fff0f0;
    border: 1px solid #f1c5c5;
    color: #b02a37;
    border-radius: 15px;
    padding: 20px;
}


/* ==========================================================
   BIG STATUS ICON
   ========================================================== */

.identity-status-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 140, 0, .12);
    color: var(--nkala-orange);
    font-size: 30px;
}


/* ==========================================================
   IDENTITY PAGE TEXT
   ========================================================== */

.identity-card h1,
.identity-card h2,
.identity-card h3,
.identity-card h4,
.identity-card h5 {
    color: var(--nkala-navy);
}


.identity-card p {
    line-height: 1.6;
}


/* ==========================================================
   CHECKBOX
   ========================================================== */

.identity-card .form-check-input {
    border-color: #cbd2d9;
}


    .identity-card .form-check-input:checked {
        background-color: var(--nkala-orange);
        border-color: var(--nkala-orange);
    }


    .identity-card .form-check-input:focus {
        border-color: var(--nkala-orange);
        box-shadow: 0 0 0 .2rem rgba(255, 140, 0, .15);
    }


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .identity-page {
        padding: 100px 12px 45px;
        background-attachment: scroll;
    }


    .identity-card {
        padding: 30px 20px;
        border-radius: 18px;
    }


    .identity-title {
        font-size: 1.6rem;
    }


    .identity-logo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* ==========================================================
   NKALA LOANS - UNIFIED IDENTITY DESIGN
   ========================================================== */

.identity-page {
    min-height: calc(100vh - 80px);
    padding: 125px 15px 80px;
    background: linear-gradient( rgba(11, 31, 58, 0.94), rgba(11, 31, 58, 0.94) ), url('/images/transport-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.identity-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.identity-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.30);
}

.identity-logo {
    width: 68px;
    height: 68px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0b1f3a;
    color: #ff8c00;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(11, 31, 58, 0.25);
}

.identity-brand {
    display: inline-block;
    background: #ff8c00;
    color: #ffffff;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .3px;
}

.identity-title {
    color: #0b1f3a;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 8px;
}

.identity-subtitle {
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.6;
}

.identity-card .form-control,
.identity-card .form-select {
    min-height: 58px;
    border: 1px solid #dce2e8;
    border-radius: 12px;
    background: #ffffff;
    color: #222;
}

.identity-card textarea.form-control {
    min-height: 120px;
}

.identity-card .form-control:focus,
.identity-card .form-select:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 .2rem rgba(255, 140, 0, .15);
}

.identity-card .form-floating > label {
    color: #6c757d;
}

.identity-card .form-check-input:checked {
    background-color: #ff8c00;
    border-color: #ff8c00;
}

.identity-card .text-danger {
    display: block;
    margin-top: 5px;
    font-size: .85rem;
}

.identity-validation {
    border-radius: 12px;
}

/* Orange primary button */

.identity-submit {
    width: 100%;
    border: none;
    border-radius: 30px;
    background: #ff8c00;
    color: #ffffff;
    padding: 14px 25px;
    font-size: 1rem;
    font-weight: 700;
    transition: all .25s ease;
}

    .identity-submit:hover {
        background: #e67600;
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(255, 140, 0, .30);
    }

/* Divider */

.identity-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 35px 0 25px;
    color: #8a929b;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

    .identity-divider::before,
    .identity-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #dee2e6;
    }

/* Login / secondary button */

.identity-login {
    display: block;
    width: 100%;
    padding: 13px 20px;
    border: 2px solid #0b1f3a;
    border-radius: 30px;
    color: #0b1f3a;
    background: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}

    .identity-login:hover {
        background: #0b1f3a;
        color: #ffffff;
        transform: translateY(-1px);
    }

/* Links */

.identity-link {
    color: #0b1f3a;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

    .identity-link:hover {
        color: #ff8c00;
        text-decoration: none;
    }

/* Alerts */

.identity-card .alert {
    border-radius: 12px;
    border: none;
}

/* Success */

.identity-card .alert-success {
    background: #e8f7ee;
    color: #176b3a;
}

/* Info */

.identity-card .alert-info {
    background: #e9f4ff;
    color: #14527d;
}

/* Mobile */

@media (max-width: 767px) {

    .identity-page {
        padding: 105px 12px 50px;
        background-attachment: scroll;
    }

    .identity-card {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .identity-title {
        font-size: 1.6rem;
    }

    .identity-logo {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }
}

/* ==========================================================
   NKALA LOANS - GLOBAL THEME
   ========================================================== */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f5f7fb;
    color: #212529;
}

main {
    min-height: calc(100vh - 180px);
}


/* ==========================================================
   NKALA LOANS - BRAND COLORS
   ========================================================== */

:root {
    --nkala-navy: #0b1f3a;
    --nkala-navy-light: #123968;
    --nkala-orange: #ff8c00;
    --nkala-orange-dark: #e67600;
    --nkala-light: #f5f7fb;
    --nkala-muted: #6c757d;
}


/* ==========================================================
   NAVIGATION
   ========================================================== */

.glass-navbar {
    background: rgba(11, 31, 58, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.nkala-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff !important;
}

    .nkala-brand i {
        color: var(--nkala-orange);
        margin-right: 8px;
    }

.glass-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all .2s ease;
}

    .glass-navbar .nav-link:hover {
        color: var(--nkala-orange) !important;
    }

    .glass-navbar .nav-link i {
        margin-right: 5px;
    }

.glass-navbar .navbar-toggler {
    border: none;
    color: #ffffff;
}

    .glass-navbar .navbar-toggler:focus {
        box-shadow: none;
    }


/* ==========================================================
   ORANGE BUTTON
   ========================================================== */

.btn-orange {
    background: var(--nkala-orange);
    border: 1px solid var(--nkala-orange);
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px;
    transition: all .25s ease;
}

    .btn-orange:hover {
        background: var(--nkala-orange-dark);
        border-color: var(--nkala-orange-dark);
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(255, 140, 0, .25);
    }


/* ==========================================================
   IDENTITY PAGES
   ========================================================== */

.identity-page {
    min-height: calc(100vh - 80px);
    padding: 130px 15px 80px;
    background: linear-gradient( rgba(11, 31, 58, 0.94), rgba(11, 31, 58, 0.94) ), url('/images/transport-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-start;
}

    .identity-page .container {
        width: 100%;
    }

.identity-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}


/* ==========================================================
   IDENTITY CARD
   ========================================================== */

.identity-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(255, 255, 255, .5);
}


/* ==========================================================
   IDENTITY HEADER
   ========================================================== */

.identity-logo {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--nkala-navy);
    color: var(--nkala-orange);
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(11, 31, 58, 0.25);
}

.identity-brand {
    display: inline-block;
    background: var(--nkala-orange);
    color: #ffffff;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .3px;
}

.identity-title {
    color: var(--nkala-navy);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 8px;
}

.identity-subtitle {
    color: var(--nkala-muted);
    margin-bottom: 0;
    line-height: 1.6;
}


/* ==========================================================
   IDENTITY SECTIONS
   ========================================================== */

.identity-section-first {
    margin-top: 30px;
}

.identity-section {
    border-top: 1px solid #e8ebef;
    padding-top: 28px;
    margin-top: 30px;
}

.identity-section-title {
    color: var(--nkala-navy);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
}


/* ==========================================================
   FORM CONTROLS
   ========================================================== */

.identity-card .form-control,
.identity-card .form-select {
    border: 1px solid #dce2e8;
    border-radius: 12px;
    background: #ffffff;
    color: #222;
    min-height: 58px;
}

.identity-card textarea.form-control {
    min-height: 120px;
}

.identity-card .form-control:focus,
.identity-card .form-select:focus {
    border-color: var(--nkala-orange);
    box-shadow: 0 0 0 .2rem rgba(255, 140, 0, .15);
}

.identity-card .form-floating > label {
    color: #6c757d;
}

.identity-card .form-check-input:checked {
    background-color: var(--nkala-orange);
    border-color: var(--nkala-orange);
}

.identity-card .form-check-input:focus {
    border-color: var(--nkala-orange);
    box-shadow: 0 0 0 .2rem rgba(255, 140, 0, .15);
}


/* ==========================================================
   VALIDATION
   ========================================================== */

.identity-card .text-danger {
    display: block;
    margin-top: 5px;
    font-size: .85rem;
}

.identity-validation {
    border-radius: 12px;
}


/* ==========================================================
   PRIMARY IDENTITY BUTTON
   ========================================================== */

.identity-submit {
    width: 100%;
    border: none;
    border-radius: 30px;
    background: var(--nkala-orange);
    color: #ffffff;
    padding: 14px 25px;
    font-size: 1rem;
    font-weight: 700;
    transition: all .25s ease;
}

    .identity-submit:hover {
        background: var(--nkala-orange-dark);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(255, 140, 0, .30);
    }


/* ==========================================================
   IDENTITY DIVIDER
   ========================================================== */

.identity-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 35px 0 25px;
    color: #8a929b;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

    .identity-divider::before,
    .identity-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #dee2e6;
    }


/* ==========================================================
   IDENTITY LOGIN / SECONDARY BUTTON
   ========================================================== */

.identity-login {
    display: block;
    width: 100%;
    padding: 13px 20px;
    border: 2px solid var(--nkala-navy);
    border-radius: 30px;
    color: var(--nkala-navy);
    background: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}

    .identity-login:hover {
        background: var(--nkala-navy);
        color: #ffffff;
        transform: translateY(-1px);
        text-decoration: none;
    }


/* ==========================================================
   IDENTITY LINKS
   ========================================================== */

.identity-card a {
    color: var(--nkala-navy);
}

    .identity-card a:hover {
        color: var(--nkala-orange-dark);
    }


/* ==========================================================
   IDENTITY ALERTS
   ========================================================== */

.identity-card .alert {
    border-radius: 14px;
    border: none;
}

.identity-card .alert-info {
    background: #eaf4ff;
    color: #24516f;
}

.identity-card .alert-success {
    background: #e9f8ef;
    color: #176b3a;
}

.identity-card .alert-danger {
    background: #fff0f0;
    color: #842029;
}


/* ==========================================================
   ACCOUNT ICON
   ========================================================== */

.account-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--nkala-navy);
    color: var(--nkala-orange);
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(11, 31, 58, .20);
}


/* ==========================================================
   IDENTITY PAGE CARD
   For Login, Forgot Password, Reset Password etc.
   ========================================================== */

.identity-simple-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .30);
}

    .identity-simple-card h1 {
        color: var(--nkala-navy);
        font-weight: 700;
    }

    .identity-simple-card .form-control {
        min-height: 58px;
        border-radius: 12px;
        border: 1px solid #dce2e8;
    }

        .identity-simple-card .form-control:focus {
            border-color: var(--nkala-orange);
            box-shadow: 0 0 0 .2rem rgba(255, 140, 0, .15);
        }


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .identity-page {
        padding: 105px 12px 45px;
        background-attachment: scroll;
    }

    .identity-card,
    .identity-simple-card {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .identity-title {
        font-size: 1.6rem;
    }

    .identity-logo,
    .account-icon {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }
}


.document-upload-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    background: #fff;
}

.document-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 10px;
    background: rgba(255, 152, 0, 0.12);
    color: #f39c12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.document-upload-card .form-control {
    cursor: pointer;
}

.document-upload-card .alert {
    margin-bottom: 1rem;
}

/* =========================================================
   LOAN DETAILS STATUS CARDS
   ========================================================= */

.status-card {
    display: flex;
    gap: 24px;
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.status-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.status-content {
    flex: 1;
}

    .status-content h3 {
        margin: 0 0 8px;
        font-size: 24px;
        font-weight: 700;
        color: #0b1f3a;
    }

    .status-content h4 {
        margin-top: 22px;
        margin-bottom: 12px;
        font-size: 18px;
        font-weight: 700;
        color: #0b1f3a;
    }

    .status-content p {
        color: #64748b;
        line-height: 1.7;
    }

    .status-content hr {
        margin: 24px 0;
        border-color: #e9ecef;
    }


/* =========================================================
   STATUS COLOURS
   ========================================================= */

.pending-card {
    border-left: 5px solid #6c757d;
}

    .pending-card .status-icon {
        background: #f1f3f5;
        color: #6c757d;
    }

.review-card {
    border-left: 5px solid #f59e0b;
}

    .review-card .status-icon {
        background: #fff7df;
        color: #f59e0b;
    }

.approved-card {
    border-left: 5px solid #198754;
}

    .approved-card .status-icon {
        background: #eaf7ef;
        color: #198754;
    }

.accepted-card {
    border-left: 5px solid #0d6efd;
}

    .accepted-card .status-icon {
        background: #eaf2ff;
        color: #0d6efd;
    }

.ready-card {
    border-left: 5px solid #198754;
}

    .ready-card .status-icon {
        background: #eaf7ef;
        color: #198754;
    }

.success-card {
    border-left: 5px solid #198754;
}

    .success-card .status-icon {
        background: #eaf7ef;
        color: #198754;
    }

.rejected-card {
    border-left: 5px solid #dc3545;
}

    .rejected-card .status-icon {
        background: #fdecec;
        color: #dc3545;
    }

.cancelled-card {
    border-left: 5px solid #495057;
}

    .cancelled-card .status-icon {
        background: #f1f3f5;
        color: #495057;
    }


/* =========================================================
   DOCUMENT STATUS
   ========================================================= */

.document-status {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    border-radius: 12px;
    margin-top: 15px;
}

    .document-status > i {
        font-size: 22px;
    }

    .document-status strong {
        display: block;
        margin-bottom: 3px;
    }

    .document-status span {
        display: block;
        font-size: 14px;
        color: #64748b;
    }

    .document-status.success {
        background: #edf9f1;
        color: #198754;
        border: 1px solid #c9efd5;
    }

    .document-status.pending {
        background: #fff8e6;
        color: #a66b00;
        border: 1px solid #f7df9e;
    }

    .document-status.warning {
        background: #fff4e5;
        color: #b45309;
        border: 1px solid #fed7aa;
    }


/* =========================================================
   UPLOAD FORM
   ========================================================= */

.upload-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    margin-top: 18px;
}

    .upload-form .form-label {
        font-weight: 600;
        color: #0b1f3a;
    }

    .upload-form .form-control {
        border-radius: 10px;
        padding: 11px 13px;
    }

    .upload-form .btn {
        border-radius: 10px;
        padding: 11px 20px;
        font-weight: 600;
    }


/* =========================================================
   APPROVED LOAN OFFER
   ========================================================= */

.loan-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.offer-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 17px;
}

    .offer-item span {
        display: block;
        color: #64748b;
        font-size: 13px;
        margin-bottom: 5px;
    }

    .offer-item strong {
        display: block;
        color: #0b1f3a;
        font-size: 20px;
    }

.contract-check {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 18px 18px 42px;
}

    .contract-check .form-check-input {
        margin-left: -25px;
        margin-top: 4px;
    }

    .contract-check .form-check-label {
        line-height: 1.6;
        color: #334155;
    }


/* =========================================================
   READY FOR DISBURSEMENT
   ========================================================= */

.ready-amount {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 22px;
    margin-top: 22px;
}

    .ready-amount span {
        display: block;
        color: #64748b;
        font-size: 14px;
        margin-bottom: 5px;
    }

    .ready-amount strong {
        display: block;
        color: #15803d;
        font-size: 30px;
        font-weight: 800;
    }

.verification-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 10px 16px;
    background: #198754;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 600;
}


/* =========================================================
   DISBURSED
   ========================================================= */

.disbursed-amount {
    color: #198754;
    font-size: 34px;
    font-weight: 800;
    margin: 15px 0 5px;
}


/* =========================================================
   STATUS NOTE
   ========================================================= */

.status-note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    color: #475569;
    font-size: 14px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .status-card {
        padding: 22px;
        gap: 16px;
    }

    .status-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 19px;
    }

    .status-content h3 {
        font-size: 20px;
    }

    .loan-offer-grid {
        grid-template-columns: 1fr;
    }
}