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

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

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

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

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

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

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

.heroSec ul li {
    font-weight: 500;
    font-size: 16px;
    text-transform: capitalize;
    color: #000;

    position: relative;
    padding-left: 25px;
    margin: 8px 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: 50px;
}

/* Tab Styling */
.custom-tabs {
    background-color: #F3F5F1;
    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: 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;
    bottom: 0;
    left: 0;
    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: #353638;
    border-radius: 3px;
}

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

/* Form Styling */
form {
    background-color: #fff;
    border: 2px solid #1C1E29;
    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;
}

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

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

.btns button {
    width: 100%;
    display: block;
    background-color: #4EB543;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    border: none;
    outline: none;
    padding: 12px 46px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

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

.btn-secondary {
    color: #4EB543;
    background-color: #FFFFFF;
    border: 1px solid #4EB543;

}

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

.submitBtn {
    background-color: #4EB543;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin: 0 auto;
    justify-content: center !important;
}

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

.btns button.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(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;
}

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


@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) {
    .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%;
    }
}

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

    h1 {
        font-size: 33px;
        word-break: break-word;
    }

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

    .heroSec p {
        font-size: 16px;
        line-height: 1.4;
        word-break: break-word;
        hyphens: auto;
    }

    .steps {
        margin-bottom: 80px;
    }

    .loans {
        display: flex;
        align-items: center;
        text-align: left;
        min-height: auto;
        padding: 15px;
        margin-bottom: 15px;
    }

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

    .loans h3 {
        margin-left: 10px;
        font-size: 13px;
        line-height: 1.3;
        word-break: break-word;
    }

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

    /* Form adjustments */
    form {
        padding: 15px;
        margin-top: 20px;
    }

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

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

    form {
        margin-top: -90px;
    }

}

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

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

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

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

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