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

h1 {
    font-weight: 700;
    font-size: 50px;
    color: #1E2A3B;
}

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

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

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

.heroSec p {
    font-weight: 400;
    font-size: 20px;
    text-transform: capitalize;
    color: #27364B;
}

.heroSec p strong {
    font-size: 20px;
    text-transform: capitalize;
    color: #27364B;
}

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

.heroSec ul li {
    font-weight: 400;
    color: #36364A;
    font-size: 14px;
    text-align: center;
    background-color: #fff;
    padding: 2px 15px;
    border-radius: 6px;
    margin-right: 15px;
    margin-bottom: 15px;
    box-shadow: 0px 2px 6px 0px #12078F14;

}

.heroImg img {
    width: 100%;
}

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

.custom-tabs::-webkit-scrollbar {
    display: none;
}

.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: 16px;
    padding: 15px 10px;
    background: transparent;
    position: relative;
    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;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #353638;
    border-radius: 10px;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: #0F1A2A;
    border: none;
    background-color: transparent;
    position: relative;
    font-weight: 500;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: #50899E;
}

.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;
    padding: 20px 0;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Form elements */
.form-group {
    margin-bottom: 1.5rem;
}

/* 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;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #4EB543;
    box-shadow: 0 0 0 0.2rem rgba(78, 181, 67, 0.25);
    outline: none;
}

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

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

/* Form Styles */
#basic-details-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: -90px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
}

.card-header h4 {
    color: #27364B;
    font-weight: 600;
    font-size: 18px;
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 45px;
}

.form-control:focus {
    border-color: #4EB543;
    box-shadow: 0 0 0 0.2rem rgba(78, 181, 67, 0.25);
    outline: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 35px;
}

/* Buttons */
.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;
    letter-spacing: 0.5px;
}

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

.spinnerBtn {
    display: none;
}


@media (max-width: 767.98px) {
    #basic-details-form {
        padding: 20px 15px;
    }

    .card-header h4 {
        font-size: 16px;
    }

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

form {
    background-color: #fff;
    border: 2px solid #50899E;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0px 4px 28px 0px #BFC2BE;
    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 label {
    margin-bottom: 3px;
}

.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(95px / 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;
}

.custom-tabs .nav-link {
    padding: 8px 15px;
    margin: 0 5px;
    font-size: 14px;
}

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

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

@media screen and (max-width: 991.98px) {
    .custom-tabs .nav-link {
        font-size: 14px;
        padding: 10px 15px;
        min-width: 100px;
    }

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

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

    .heroSec {
        margin-top: 52px;
    }

    .heroSec p {
        font-size: 16px;
    }

    .features ul {
        margin: 0;
    }

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

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

    .card {
        margin-bottom: 20px;
    }

    .heroSec .topcontent ul br {
        display: none;
    }
}

@media screen and (max-width: 991.98px) and (min-width: 768px) {
    .heroImg {
        width: 40%;
        margin-left: 400px;
        margin-top: -275px;
    }

    .list-unstyled {
        margin-right: 400px;

    }
}

@media screen and (max-width: 767.98px) {
    .custom-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }

    .custom-tabs .nav-link {
        font-size: 13px;
        padding: 8px 12px;
        min-width: auto;
        white-space: nowrap;
    }

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

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


    .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;
    }

    h1 {
        font-size: 33px;
    }

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

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

    .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;
    }

    .heroSec ul li {
        text-align: left;
        display: inline-block;
    }

    .heroMobileImg {
        height: fit-content;
    }

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

}

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

    form {
        padding: 20px;
    }

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

    .heroSec p br {
        display: none;
    }

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

    .heroSec {
        background-size: cover;
        background-position: center 8% !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);
    }

    .heroSec ul li {
        font-size: 14px;
    }

    .heroSec {
        margin-top: 17px;
    }

    .heroSec p strong {
        font-size: inherit;
    }

    .heroMobileImg {
        width: 50%;
    }

    form {
        margin-top: -100px;
    }
}

@media screen and (max-width: 480.98px) {
    .heroSec ul li {
        padding: 2px 10px;
        font-size: 12px;
    }
}

@media screen and (max-width: 374.98px) {
    form {
        margin-top: -110px;
    }

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

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

    .heroSec ul li {
        font-size: 13px;
    }

    .loans {
        min-height: auto;
    }

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

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

    .heroMobileImg {
        width: 50%;
        position: absolute;
        right: 0;
        top: 0;
    }

    .heroSec .topcontent ul {
        position: relative;
        z-index: 99;
    }

    .heroSec .topcontent ul br {
        display: block;
    }
}