* {
    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 300px 0;
}

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

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

.heroSec p {
    font-weight: 400;
    font-size: 18px;
    color: #27364B;
}

/* Tab Styling */
.custom-tabs {
    background-color: #F2FDFD;
    border: none;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0;
}

.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: 3px;
    background-color: #48AFAF;
    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;
}

.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 Styling */
form {
    background-color: #fff;
    border: 2px solid #00A5A4;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0px 4px 55px 0px #BDDDDEA1;
    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;
}

.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 {
    color: #4EB543;
    background-color: #FFFFFF;
    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;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    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(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;
}


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

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

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

@media screen and (max-width: 991.98px) {
    .heroSec {
        margin-top: 52px;
    }

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

@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 35%;
        padding: 20px 0px 500px 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;
    }

    .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 50% !important;
        padding: 20px 0px 350px 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);
    }
}

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

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

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

    .loans {
        min-height: auto;
    }

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

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

    .submitBtn {
        width: 100%;
        margin: 0px;
        padding: 0px 48px;

    }
}