@import url(
'https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap'
);

:root {
    --app-blue: #013a8b;
    --app-blue-dark: #011b4e;
    --app-yellow: #fcbd0c;

    --app-red: #e93939;
    --app-green: #00a94f;

    --app-text: #101b38;
    --app-muted: #7a8397;

    --app-bg: #f5f7f9;
    --app-border: #dce1e8;
}


/* ==========================================
   BASE
========================================== */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--app-text);
    background: #f5f7f9;
    font-family: "DM Sans", Arial, sans-serif;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* ==========================================
   PAGE
========================================== */

.loan-app-shell {
    width: 100%;
    min-height: 100vh;
    padding: 35px 15px 55px;
}

.loan-app-logo {
    margin-bottom: 22px;
    text-align: center;
}

.loan-app-logo img {
    width: 190px;
    /* max-height: 82px; */
    object-fit: contain;
}


/* ==========================================
   CARD
========================================== */

.loan-app-card {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 38px 36px 30px;
    border: 1px solid #f1f1f1;
    border-radius: 20px;
    background: #fff;
    box-shadow:
        0 14px 34px rgba(23, 35, 60, .12);
}


/* ==========================================
   HEADING
========================================== */

.loan-app-heading {
    text-align: center;
}

.loan-app-heading h1 {
    margin: 0 0 5px;
    color: var(--app-blue-dark);
    font-size: 30px;
    font-weight: 700;
}

.loan-app-heading p {
    margin: 0;
    color: var(--app-muted);
    font-size: 15px;
}

.app-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
    color: var(--app-green);
    font-size: 14px;
    font-weight: 600;
}


/* ==========================================
   PROGRESS
========================================== */

.app-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 40px 5px 45px;
}

.progress-line {
    position: absolute;
    top: 12px;
    left: 7%;
    right: 7%;
    height: 3px;
    overflow: hidden;
    background: #e4e7ec;
}

.progress-line-fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--app-blue);
    transition: width .35s ease;
}

.progress-step {
    position: relative;
    z-index: 2;
    width: 32%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #929aac;
    text-align: center;
}

.progress-circle {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #777f8c;
    background: #e3e6eb;
    box-shadow:
        0 0 0 2px #e3e6eb;
    font-size: 11px;
    font-weight: 700;
}

.progress-step small {
    font-size: 13px;
    font-weight: 700;
}

.progress-step.active,
.progress-step.completed {
    color: var(--app-blue-dark);
}

.progress-step.active .progress-circle {
    color: var(--app-blue-dark);
    background: var(--app-yellow);
    box-shadow:
        0 0 0 2px var(--app-yellow);
}

.progress-step.completed .progress-circle {
    color: #fff;
    background: var(--app-green);

    box-shadow:
        0 0 0 2px var(--app-green);
}


/* ==========================================
   STEPS
========================================== */

.application-step {
    display: none;
}

.application-step.active {
    display: block;

    animation:
        stepFade .3s ease;
}

@keyframes stepFade {

    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ==========================================
   STEP BANNER
========================================== */

.step-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #f3d7d7;
    border-radius: 13px;
    background: radial-gradient(circle at 20% 80%, rgba(255, 249, 218, .7), transparent 35%),        linear-gradient(105deg, #cbd3da, #ECF7FF 60%, #FCC61C);
}

.step-banner-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border: 1px solid #d09902;
    border-radius: 50%;
    color: #013378;
    background: #FDBE0E;
    font-size: 22px;
}

.step-banner span {
    color: #e31d2b;
    font-size: 14px;
    font-weight: 700;
}

.step-banner h2 {
    margin: 2px 0 2px;
    color: var(--app-blue-dark);
    font-size: 22px;
    font-weight: 700;
}

.step-banner p {
    margin: 0;
    color: #687187;
    font-size: 14px;
}


/* ==========================================
   FORM
========================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group > label,
.form-group legend {
    width: auto;
    margin-bottom: 8px;
    color: var(--app-blue-dark);
    font-size: 14px;
    font-weight: 700;
}

.form-group label i,
.form-group legend i {
    margin-right: 5px;
    color: #0e6cff;
}

.form-control,
.form-select {
    min-height: 47px;
    border: 1px solid #d4dae3;
    border-radius: 8px;
    color: #30394c;
    background-color: #fff;
    font-size: 13px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, .04);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--app-blue);

    box-shadow:
        0 0 0 3px rgba(1, 58, 139, .09);
}

.form-control::placeholder {
    color: #9299a6;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: #778095;
    font-size: 13px;
}


/* ==========================================
   MOBILE INPUT
========================================== */

.mobile-field {
    display: flex;
    overflow: hidden;
    border: 1px solid #d4dae3;
    border-radius: 8px;
    background: #fff;
    box-shadow:
        0 1px 3px rgba(0,0,0,.04);
}

.mobile-field:focus-within {
    border-color: var(--app-blue);
    box-shadow:
        0 0 0 3px rgba(1,58,139,.09);
}

.country-code {
    min-width: 80px;

    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #e0e4e9;
    color: #4a5365;
    font-size: 13px;
    font-weight: 600;
}

.country-code i {
    margin-right: 5px;
}

.mobile-field .form-control {
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
}


/* ==========================================
   ICON INPUT
========================================== */

.input-icon-field {
    position: relative;
}

.input-icon-field > span {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    transform: translateY(-50%);
    color: #555f73;
    font-weight: 600;
}

.input-icon-field .form-control {
    padding-left: 36px;
}


/* ==========================================
   MIN / MAX
========================================== */

.field-minmax {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: #788195;
    font-size: 13px;
}

/* ==========================================
   OTP
========================================== */

.otp-panel {
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #d6e2ff;
    border-radius: 12px;
    background: #f4f7ff;
}

.otp-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.otp-panel-heading strong {
    color: var(--app-blue);
    font-size: 14px;
}

.resend-btn {
    padding: 0;
    border: 0;
    color: #1261df;
    background: transparent;
    font-size: 13px;
}

.resend-btn:disabled {
    color: #8f99ab;
    cursor: not-allowed;
}

.otp-inputs {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 11px;
}

.otp-inputs input {
    width: 100%;
    height: 50px;
    border: 1px solid #d5dbe4;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--app-blue-dark);
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.otp-inputs input:focus {
    border-color: var(--app-blue);
    box-shadow:
        0 0 0 3px rgba(1,58,139,.08);
}

.otp-panel > small {
    color: #778095;
    font-size: 13px;
}


/* ==========================================
   PAYMENT METHOD
========================================== */

.payment-options {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);
    gap: 9px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.payment-option > span {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dce1e7;
    border-radius: 10px;
    color: #40495a;
    background: #fafbfc;
    transition: .2s ease;
}

.payment-option i {
    color: #1672ff;
    font-size: 20px;
}

.payment-option strong {
    font-size: 14px;
}

.payment-option input:checked + span {
    border-color: #9cbbff;
    color: var(--app-blue);
    background: #edf2ff;
    box-shadow:
        0 0 0 2px rgba(31,105,255,.05);
}


/* ==========================================
   GENDER
========================================== */

.gender-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.gender-options label {
    cursor: pointer;
}

.gender-options input {
    position: absolute;
    opacity: 0;
}

.gender-options span {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9dfe7;
    border-radius: 7px;
    color: #6e7686;
    background: #fafbfc;
    font-size: 12px;
}

.gender-options input:checked + span {
    border-color: #a7c4ff;
    color: #145fd7;
    background: #eef4ff;
}


/* ==========================================
   PERSONAL HEADING
========================================== */

.personal-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 27px 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.personal-heading > i {
    color: #0969ff;
    font-size: 22px;
}

.personal-heading h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}


/* ==========================================
   VERIFICATION
========================================== */

.verification-field {
    display: grid;
    grid-template-columns: 1fr 125px;
    gap: 10px;
}

.verify-btn {
    min-height: 47px;
    border: 1px solid #00a94f;
    color: #008a40;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.verify-btn:hover {
    color: #fff;
    background: #009e49;
}

.digilocker-btn {
    width: 100%;
    min-height: 46px;
    margin: -4px 0 5px;
    color: #fff;
    background: var(--app-blue);
    font-size: 12px;
    font-weight: 700;
}

.digilocker-btn:hover {
    color: #fff;
    background: var(--app-blue-dark);
}

.external-verification-note {
    margin: 0 0 20px;
    color: #7c8495;
    text-align: center;
    font-size: 9px;
}


/* ==========================================
   CONSENT
========================================== */

.application-consents {
    margin: 20px 0 27px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.consent-check {
    display: grid;
    grid-template-columns: 17px 1fr;
    gap: 10px;
    margin-bottom: 14px;
    color: #475064;
    font-size: 11px;
    line-height: 1.55;
    cursor: pointer;
}

.consent-check input {
    margin-top: 3px;
    accent-color: var(--app-blue);
}

.consent-check a {
    color: var(--app-blue);
    font-weight: 700;
    text-decoration: underline;
}


/* ==========================================
   BUTTONS
========================================== */

.app-primary-btn {
    width: 100%;
    min-height: 50px;
    line-height: 36px;
    border: 1px solid var(--app-blue);
    color: var(--app-blue);
    background: var(--app-yellow);
    font-size: 14px;
    font-weight: 700;
    box-shadow:
        0 5px 12px rgba(0, 0, 0, .08);
}

.app-primary-btn:hover {
    color: #fff;
    background: var(--app-blue-dark);
    border-color: var(--app-blue-dark);
}

.app-primary-btn:disabled {
    color: #040404;
    border-color: #FBC720;
    background: #fcbd0c3d;
    opacity: 1;
    cursor: not-allowed;
}

.step-actions {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 10px;
}

.app-back-btn {
    min-height: 50px;
    border: 1px solid #d6dce5;
    color: #586174;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}

.app-back-btn:hover {
    border-color: var(--app-blue);
    color: var(--app-blue);
}


/* ==========================================
   ALERT
========================================== */

.app-alert {
    display: none;
    margin: -20px 0 20px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 14px;
}

.app-alert.error {
    display: block;

    border: 1px solid #ffc9c9;

    color: #a31d25;
    background: #fff0f0;
}

.app-alert.success {
    display: block;

    border: 1px solid #bce9cd;

    color: #14753b;
    background: #effcf4;
}


/* ==========================================
   SECURITY
========================================== */

.app-security {
    margin: 18px 0 28px;
    color: #8a93a3;
    text-align: center;
    font-size: 14px;
}

.app-security i {
    margin-right: 5px;
    color: #00a950;
}


/* ==========================================
   BENEFITS
========================================== */

.app-benefits {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 5px;
    padding: 15px 9px;
    border-radius: 12px;
    background: #edfff4;
}

.app-benefits > div {
    text-align: center;
}

.app-benefits i,
.app-benefits strong,
.app-benefits small {
    display: block;
}

.app-benefits i {
    margin-bottom: 4px;
    color: #00a94f;
    font-size: 22px;
}

.app-benefits strong {
    color: #111c34;
    font-size: 14px;
}

.app-benefits small {
    color: #737d8d;
    font-size: 13px;
}


/* ==========================================
   INVALID STATES
========================================== */

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767.98px) {

    .loan-app-shell {
        padding:
            20px 12px
            calc(30px + env(safe-area-inset-bottom));
    }

    .loan-app-logo {
        margin-bottom: 15px;
    }

    .loan-app-logo img {
        width: 115px;
        max-height: 65px;
    }

    .loan-app-card {
        padding: 27px 18px 22px;
        border-radius: 15px;
    }

    .loan-app-heading h1 {
        font-size: 24px;
    }

    .loan-app-heading p {
        font-size: 11px;
    }

    .app-trust {
        gap: 9px;
        font-size: 10px;
    }

    .app-progress {
        margin:
            32px -3px
            37px;
    }

    .progress-line {
        left: 10%;
        right: 10%;
    }

    .progress-step small {
        font-size: 8px;
    }

    .step-banner {
        align-items: flex-start;
        padding: 13px;
    }

    .step-banner-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 18px;
    }

    .step-banner h2 {
        font-size: 16px;
    }

    .step-banner p {
        font-size: 9px;
    }

    .form-group {
        margin-bottom: 17px;
    }

    .form-group > label,
    .form-group legend {
        font-size: 11px;
    }

    .form-control,
    .form-select {
        min-height: 46px;
        font-size: 12px;
    }

    .otp-inputs {
        gap: 6px;
    }

    .otp-inputs input {
        height: 45px;

        font-size: 17px;
    }

    .payment-option > span {
        min-height: 72px;
    }

    .verification-field {
        grid-template-columns: 1fr;
    }

    .personal-heading h2 {
        font-size: 16px;
    }

    .step-actions {
        grid-template-columns: 92px 1fr;
    }

    .app-benefits {
        padding: 13px 4px;
    }

    .app-benefits i {
        font-size: 18px;
    }

    .app-benefits strong {
        font-size: 8px;
    }

    .app-benefits small {
        font-size: 7px;
    }
}


@media (max-width: 390px) {

    .loan-app-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .loan-app-heading h1 {
        font-size: 22px;
    }

    .otp-inputs input {
        height: 42px;
    }

    .country-code {
        min-width: 68px;
    }
}


/* ==========================================
   THANK YOU PAGE
========================================== */

.thank-you-shell {
    width: 100%;
    min-height: 100vh;
    padding: 40px 15px 60px;
}

.thank-you-card {
    width: 100%;
    max-width: 580px;
    margin: auto;
    padding: 42px 40px 35px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow:
        0 14px 35px rgba(23, 35, 60, .12);
}

.thank-you-icon {
    width: 75px;
    height: 75px;
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    border-radius: 50%;
    color: #fff;
    background: #00a94f;
    box-shadow:
        0 0 0 10px #e9faef;
    font-size: 37px;
}

.thank-you-label {
    /* margin-top: 30px; */
    color: #00a94f;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .8px;
}

.thank-you-card h1 {
    margin: 6px 0;
    color: var(--app-blue-dark);
    font-size: 35px;
    font-weight: 700;
}

.thank-you-lead {
    color: #666f81;
    font-size: 16px;
}

.application-reference {
    margin: 20px 0;
    padding: 13px;
    border: 1px dashed #bad0ff;
    border-radius: 8px;
    background: #f4f7ff;
}

.application-reference span,
.application-reference strong {
    display: block;
}

.application-reference span {
    color: #778094;

    font-size: 9px;
}

.application-reference strong {
    margin-top: 3px;
    color: var(--app-blue);
    font-size: 17px;
}

.thank-you-message {
    display: flex;
    gap: 10px;
    margin: 22px 0;
    padding: 14px;
    border-radius: 9px;
    color: #525d70;
    background: #fff9e5;
    text-align: left;
}

.thank-you-message i {
    color: #d49a00;
}

.thank-you-message p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.thank-you-next {
    margin: 25px 0;
    text-align: left;
}

.thank-you-next h2 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.thank-you-next-item {
    display: grid;
    grid-template-columns: 33px 1fr;
    gap: 15px;
    margin-bottom: 13px;
}

.thank-you-next-item > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--app-blue);
    background: #edf4ff;
    font-size: 15px;
    font-weight: 700;
}

.thank-you-next-item strong {
    display: block;
    font-size: 14px;
}

.thank-you-next-item p {
    margin: 2px 0 0;
    color: #778094;
    font-size: 13px;
}

.thank-you-security {
    margin-top: 18px;
    color: #7c8494;
    font-size: 13px;
}

.thank-you-security i {
    margin-right: 4px;
    color: #00a94f;
}


@media (max-width: 575.98px) {

    .thank-you-shell {
        padding: 22px 12px 35px;
    }

    .thank-you-card {
        padding: 32px 20px 27px;
        border-radius: 15px;
    }

    .thank-you-card h1 {
        font-size: 29px;
    }
}

.salary-error {
    display: none;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #ffb3b3;
    border-radius: 10px;
    background: #fff5f5;
    color: #ff0000;
    font-size: 13px;
    line-height: 1.5;
}

.salary-error.show {
    display: block;
}

.salary-error strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}
