* {
    font-family: "Inter", sans-serif;
}

h1 {
    font-weight: 700;
    color: #1E2A3B;
    font-size: 66px;
    margin-top: -95px;
}

.topContent {
    position: relative;
    z-index: 99;
}

.justify-content-center {
    justify-content: center !important;

}

.p-4 {
    padding: 0.1rem !important;
}

.custom-tabs {
    background-color: #FCFAFB;
    border: none;
    margin-bottom: 1rem;
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

.custom-tabs::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome, Safari and Opera */
}

.custom-tabs .nav-item {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
}

.custom-tabs .nav-link {
    border: none;
    color: #878A97;
    font-weight: 500;
    font-size: 18px;
    background: transparent;
    position: relative;
    padding: 15px 10px;
    width: 100%;
    text-align: center;
    margin: 0;
    white-space: nowrap;
}

.custom-tabs .nav-link.active {
    color: #a7b2c2;
    font-weight: 500;
}

.custom-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    height: 3px;
    background-color: #353638;
    width: 100%;
    left: 0;
    bottom: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: #0F1A2A;
    border-color: #dee2e6 #dee2e6 #fff;
    background-color: #f0e8ec8c;
}

.heroSec {
    background-size: cover;
    background-position: center 50%;
    padding: 0px 0px 90px 0;
}

.heroSec h2 {
    font-weight: 700;
    font-size: 20px;
    color: #27364B;
}

.tab-content>.tab-pane {
    display: none;
}

.tab-content>.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}


.tabs-btn button.active {
    background-color: #f2e3eb;
    color: #fff;
}

.heroSec p {
    font-weight: 400;
    font-size: 19px;
    text-transform: capitalize;
    color: #0F1A2A;
    text-align: justify;
}

.heroImg {
    margin-left: -20px;
    width: 100%;
    height: auto;
    object-fit: cover;

}

.heroSec ul {
    list-style: none;
    padding-left: 0;
}

.heroSec ul li {
    font-weight: 500;
    font-size: 18px;
    text-transform: capitalize;
    color: #000;
    position: relative;
    padding-left: 30px;
    margin: 20px 0px;
    margin-left: 0px;
}

.heroSec ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-size: contain;

}

.features ul:last-child {
    margin-left: 0px;
    margin-top: 0px;
}

form {
    background-color: #fff;
    border: 2px solid #000000;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0px 4px 55px 0px #BDDDDE;
    margin-top: -90px;
    position: relative;
    z-index: 2;
}

form h2 {
    font-weight: 600;
    font-size: 18px;
    color: #27364B;
    margin: 10px 0px 25px 0px;
}

form h3 {
    font-weight: 700;
    font-size: 16px;
    color: #1E2A3B;
    margin: 20px 0px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    margin-bottom: 3px;
}

/* Required field indicator */
.control-label.required:after,
.form-group>label.required:after,
.form-group.required>label:after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Style for error state */
.form-group.has-error .form-control,
.form-group.has-error .form-select {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-group.has-error .form-control:focus,
.form-group.has-error .form-select:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.form-group.has-error .invalid-feedback {
    display: block;
}

.btn {
    background-color: #4EB543;
    border-radius: 3px;
    width: 171px;
    height: 46px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 15px;
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #4EB543;
    color: #fff;
}

.btn-primary:hover,
.submitBtn:hover {
    background-color: #33a127;
    color: #fff;
    border-color: #4EB543;
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #4EB543;
    border: 1px solid #4EB543 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    border: none;
    outline: none;
    cursor: pointer;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #4EB543;
    border-color: #4EB543;
}

.submitBtn {
    background-color: #4EB543;
    color: #fff;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center !important;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    outline: none;
    cursor: pointer;
    padding: 12px 85px;
}

.spinnerBtn {
    display: none;
}


.has-error .help-block {
    display: block;
    font-size: 12px;
    color: red;
}

.loanSteps h2 {
    text-align: center;
    font-weight: 600;
    font-size: 28px;
    color: #000;
}

.steps {
    text-align: center;
    position: relative;
}

.steps img {
    max-width: 95px;
}

.steps h3 {
    font-weight: 500;
    font-size: 17px;
    color: #1E2A3B;
    margin: 15px 0px 10px 0px;
}

.steps p {
    font-weight: 400;
    font-size: 14px;
    color: #64748B;
}

.step2::after,
.step1::after {
    position: absolute;
    top: calc(65px / 2);
    left: 100%;
    width: 100%;
    text-align: left;
}

.loanType {
    background-color: #EFFDFD;
    padding: 50px 0px;
}

.loanType h2 {
    text-align: center;
    font-weight: 600;
    font-size: 28px;
    color: #000;
}

.professionalDetails {
    display: none;
}

.loans {
    background-color: #FFFFFF;
    border: 2px solid transparent;
    border-radius: 24px;
    transition: all 0.3s ease;
    padding: 20px;
    min-height: 160px;
    text-align: center;
    box-shadow: 0px 1px 4px 0px #00000026;
}

.loans:hover {
    border: 2px solid #5FBCB0;
    transition: all 0.3s ease;
    box-shadow: 0px 1px 46px 0px #00000026;
}

.loans img {
    max-width: 60px;
}

.loans h3 {
    font-weight: 500;
    font-size: 13px;
    margin: 15px 0px;
    color: #222222;
    text-transform: uppercase;
}

.heroMobileImg {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
}

@media screen and (max-width: 1399.98px) {
    h1 {
        font-size: 55px;
    }

    .heroImg {
        margin-left: -120px;
        width: 100%;
        height: auto;
        object-fit: cover;

    }

    .heroMobileImg {
        display: none;
    }

    .step2::after,
    .step1::after {
        top: calc(72px / 2);
        left: 100%;
    }

    form {
        margin-top: -90px;
    }

    .custom-tabs {
        background-color: #FAF6F8;
        border: none;
        margin-bottom: 1rem;
        padding: 0px 0px;
    }


    .custom-tabs .nav-link {
        border: none;
        color: #878A97;
        font-weight: 500;
        font-size: 18px;
        background: transparent;
        position: relative;
        padding: 12px 45px;
    }

}


@media screen and (max-width: 1199.98px) {
    h1 {
        font-size: 45px;
    }

    .heroImg {
        margin-left: -190px;
        width: 80%;
        height: auto;
        object-fit: cover;

    }

    .heroSec p {
        font-weight: 400;
        font-size: 19px;
        text-transform: capitalize;
        color: #0F1A2A;
        margin-right: 50px;
        text-align: justify;
    }

    .step2::after,
    .step1::after {
        top: calc(72px / 2);
        left: 100%;
    }

    form {
        margin-top: -150px;
    }

    .custom-tabs {
        background-color: #FAF6F8;
        border: none;
        margin-bottom: 1rem;
        padding: 0px 0px;
    }


    .custom-tabs .nav-link {
        border: none;
        color: #878A97;
        font-weight: 500;
        font-size: 18px;
        background: transparent;
        position: relative;
        padding: 12px 15px;
    }


}

@media screen and (max-width: 991.98px) {
    .heroSec {
        margin-top: 50px;
        background-size: cover;
        background-position: center 50%;
        padding: 15px 0px 170px 0;
    }

    .step2::after,
    .step1::after {
        top: calc(72px / 2);
        left: 73%;
    }

    h1 {
        font-size: 35px;
        margin-top: 60px;
    }

    .heroSec p {
        font-weight: 400;
        font-size: 17px;
        color: #0F1A2A;
        margin-right: 25px;
        letter-spacing: -1px;
    }

    form {
        margin-top: -200px;
    }

    .custom-tabs {
        display: flex;
        width: 100%;
        justify-content: flex-start;

    }

    .d-sm-block {
        padding: 0px 0px 30px 10px;
        line-height: 20px;
    }


    .custom-tabs .nav-link {
        border: none;
        background: transparent;
        font-weight: 500;
        font-size: 16px;
        color: #878A97;
        text-align: center;
        display: inline-block;
        position: relative;
        margin: 0 10px;
        padding: 8px 12px;
        min-width: 100px;
    }

    .nav-link.active::after {
        content: "";
        position: absolute;
        height: 3px;
        background-color: #353638;
        width: 100%;
        left: 0;
        bottom: 0;
        border-radius: 10px;
    }

    .custom-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        padding-bottom: 5px;
    }

    .custom-tabs .nav-link {
        font-size: 14px;
        padding: 10px 15px;
        min-width: auto;
        white-space: nowrap;
        margin: 0 5px;
    }

    .tab-pane {
        padding: 15px 0;
    }


    .heroImg img {
        margin-left: 60px;
        width: 200%;
    }


    .heroMobileImg {
        display: block;
        width: 100%;
        height: auto;
    }


    .btn-secondary {
        background-color: #FFFFFF;
        color: #4EB543;
        border: 1px solid #4EB543 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 600;
        border-radius: 4px;
        transition: all 0.3s ease;
        text-align: center;
        white-space: nowrap;
        border: none;
        outline: none;
        cursor: pointer;
        width: 171px;
        height: 46px;
    }

}

@media screen and (max-width: 767.98px) {


    .step2::after,
    .step1::after {
        left: 45%;
        transform: rotate(90deg) translate(50%, 0);
        top: calc(100% + 10px);
        width: 50px;
        height: 5px;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
    }

    form {
        margin-top: -525px;
        position: relative;
        z-index: 99;
    }

    .custom-tabs {
        display: flex;
        width: 100%;
        justify-content: flex-start;

    }


    .custom-tabs .nav-link {
        border: none;
        background: transparent;
        font-weight: 500;
        font-size: 14px;
        color: #878A97;
        padding: 10px 15px;
        text-align: center;
        display: inline-block;
        position: relative;
        line-height: 20px;
        margin-left: 22px;
        margin-right: 24px;
        min-width: auto;
        white-space: nowrap;
        margin: 0 5px;
    }

    .custom-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        padding-bottom: 5px;
    }

    .nav-link.active::after {
        content: "";
        position: absolute;
        height: 3px;
        background-color: #353638;
        width: 100%;
        left: 0;
        bottom: 0;
        border-radius: 10px;
    }

    .tab-pane {
        padding: 15px 0;
    }

    h1 {
        font-size: 43px;
    }

    .heroSec {
        background-size: cover;
        background-position: center 35%;
        padding: 20px 0px 440px 0;
    }

    .heroSec p {
        font-size: 16px;
        line-height: normal;
        margin-right: 0px;
    }

    .features {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .p-4 {
        padding: 0.1rem !important;
    }

    .features ul {
        width: 48%;
        padding-left: 0;
        margin: 0;
    }

    .heroMobileImg {
        display: block;
        width: 100%;
        height: auto;
        margin-top: -20px;
    }


    .steps {
        margin-bottom: 80px;
    }

    .loans {
        display: flex;
        align-items: center;
        text-align: left;
        min-height: auto;
        padding: 10px;

    }

    .loanType h2 {
        font-size: 24px;
    }

    .loans h3 {
        margin-left: 10px;
    }

    .loans img {
        height: fit-content;
        max-height: 33px;
    }

    .btn-secondary {
        margin: 0;
        width: 171px;
        height: 46px;
    }
}

@media screen and (min-width: 768px) {
    .features {
        display: block !important;
    }

    .features ul {
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }

    .d-flex.justify-content-center.gap-3 {
        flex-wrap: wrap;
        gap: 10px !important;
    }
}



@media screen and (max-width: 576.98px) {
    h1 {
        font-size: 37px;
    }

    form {
        margin-top: -150px;
        padding: 20px;
    }

    .custom-tabs {
        display: flex;
        width: 100%;
        justify-content: flex-start;

    }

    .custom-tabs .nav-link {
        border: none;
        background: transparent;
        font-weight: 500;
        font-size: 12px;
        color: #878A97;
        padding: 12px 0;
        text-align: center;
        display: inline-block;
        position: relative;
        line-height: 20px;
        margin-left: 5px;
        margin-right: 0px;
    }

    .heroSec h2 {
        font-weight: 600;
        font-size: 16px;
        color: #27364B;
    }

    .heroSec p br {
        display: none;
    }

    .heroSec p {
        font-size: 14px;
        line-height: normal;
        margin-right: 5px;
    }

    .heroSec {
        background-size: cover;
        background-position: center 50% !important;
        padding: 20px 0px 100px 0;
    }

    .loanSteps h2,
    .loanType h2 {
        font-size: 20px;
    }

    .loans {
        min-height: 80px;
        border-radius: 15px;
    }

    .step2::after,
    .step1::after {
        left: 50%;
        top: calc(100% + 30px);
        transform: translateX(-50%) rotate(90deg);
    }

    .features ul:last-child {
        margin-left: 0px;
        margin-top: 0px;
    }

    .d-flex.justify-content-center.gap-3 {
        flex-wrap: wrap;
        gap: 10px !important;
    }
}

@media screen and (max-width: 374.98px) {

    h1 {
        font-size: 32px;
    }

    .heroSec p,
    .heroSec h2 {
        font-size: 13px;
    }

    .heroSec {
        background-size: cover;
        background-position: center 30% !important;
        padding: 20px 0px 125px 0;
    }

    .loans {
        min-height: auto;
    }

    .loans img {
        max-width: 30px;
    }

    .loans h3 {
        margin-left: 5px;
        font-size: 12px;
    }

    .custom-tabs {
        display: flex;
        width: 100%;
        justify-content: flex-start;

    }


    .custom-tabs .nav-link {
        border: none;
        background: transparent;
        font-weight: 500;
        font-size: 11px;
        color: #878A97;
        padding: 12px 0;
        text-align: center;
        display: inline-block;
        position: relative;
        line-height: 10px;
        margin-left: 4px;
        margin-right: 2px;
    }

    .features ul:last-child {
        margin-left: 0px;
        margin-top: 10px;
    }

    .d-flex.justify-content-center.gap-3 {
        flex-wrap: wrap;
        gap: 10px !important;
    }
}