@font-face {
    font-family: 'Inter';
    src: url('./../fonts/Inter/Inter-VariableFont_slnt,wght.ttf');
}

@font-face {
    font-family: 'Poppins';
    src: url('./../fonts/Poppins/Poppins-Thin.ttf');
    font-weight: 100;
}

@font-face {
    font-family: 'Poppins';
    src: url('./../fonts/Poppins/Poppins-ExtraLight.ttf');
    font-weight: 200;
}

@font-face {
    font-family: 'Poppins';
    src: url('./../fonts/Poppins/Poppins-Light.ttf');
    font-weight: 300;
}

@font-face {
    font-family: 'Poppins';
    src: url('./../fonts/Poppins/Poppins-Regular.ttf');
    font-weight: 400;
}

@font-face {
    font-family: 'Poppins';
    src: url('./../fonts/Poppins/Poppins-Medium.ttf');
    font-weight: 500;
}

@font-face {
    font-family: 'Poppins';
    src: url('./../fonts/Poppins/Poppins-SemiBold.ttf');
    font-weight: 600;
}

@font-face {
    font-family: 'Poppins';
    src: url('./../fonts/Poppins/Poppins-Bold.ttf');
    font-weight: 700;
}

@font-face {
    font-family: 'Poppins';
    src: url('./../fonts/Poppins/Poppins-ExtraBold.ttf');
    font-weight: 800;
}

@font-face {
    font-family: 'Poppins';
    src: url('./../fonts/Poppins/Poppins-Black.ttf');
    font-weight: 900;
}

:root {
    --heading-font-family: 'Poppins';
    --content-font-family: 'Inter';
    --heading1-font-size: 2.5rem;
    --heading-line-height: 3.5rem;
    --content-font-size: 1rem;
    --content-line-height: 2rem;
    --content-font-size-small: 0.875rem;
    --transition: 0.3s ease-in-out;
    --button-radius: 4px;
    --tile-radius: 16px;
    --font-normal: 400;
    --font-bold: 600;
    --font-extra-bold: 700;
    --font-normal-bold: 500;
    --screen-view-max-width: 1320px;
    --heading-color: #18294C;
    --content-color: #344054;
    --span-color: #29302B;
    --label-color: #344054;
    --required-color: #FF4444;
    --theme-color: #7F56D9;
    --light-theme-color: #FFFFFF;
    --input-border-color: #D1D5DB;
    --input-content-color: #6B7280;
    --tile-border-color: #E6E6E6;
    --no-color: transparent;
    --tile-border: 1px solid var(--tile-border-color);
    --input-border: 1px solid var(--input-border-color);
    --disabled-cursor: no-drop;
    --no-border: none;
    --progress-value: 0%;
    --duration: 2000ms;
    --delay: 0ms;
    --btn-secondary-color: #6941C6;
}

/*Home Loan Wrapper Styles Start*/
.option {
    height: 44px;
    border: none;
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
}
.option:hover {
    background: #F9F5FF;
    color: var(--btn-secondary-color);
}

.step-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0px 20px 20px 20px;
}

.step-labels .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: var(--font-extra-bold);
    pointer-events: none;
}

.step-labels .step.active {
    color: var(--theme-color);
}
.hl-container {
    margin-top: 63px;
}

/* Add horizontal lines between the steps */
#download-text {
    padding: 8px;
}
#downloadBtn {
    padding: 12px 32px;
}
#homeBtn, #homeBtn:hover {
    color: #344054;
    padding: 12px 32px;
    margin-top: 12px;
}
a.home-page-logo:hover {
    background: var(--no-color);
}

.logo img {
    height: 60px;
}
.line {
    flex-grow: 1;
    height: 2px;
    background-color: #007bff;
    margin: 0 10px;
    align-self: center;
}

.stepper-progressbar {
    position: absolute;
    /* center the track and inset it so it sits between the first and last circle */
    left: 50%;
    top: 53px;
    width: calc(100% - 259px);
    transform: translateX(-50%);
    height: 2px;
    background-color: var(--input-border-color);
}

.stepper-progressbar > .stepper-progressbar-value {
    display: block;
    height: 100%;
    width: var(--progress-value);
    background-color: var(--theme-color);
    transition: width var(--duration) var(--delay);
    border-radius: 2px;
}

/* When a step is active, highlight its circle (checkmark) */
.step-labels .step.active .checkmark {
    border-color: var(--theme-color);
    background-color: var(--theme-color);
}

.form-step {
    display: none; /* Hide all steps initially */
}

.form-step.active {
    display: block; /* Show the active step */
}

.banner-wrapper {
    position: relative;
    text-align: center;
    color: white;
}

.banner-wrapper img {
    width: 100%;
    height: 450px;
    display: block;
    object-fit: cover;
    -webkit-user-drag: none;
    user-drag: none;
}

.overlay-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: -33px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--light-theme-color);
    z-index: 1;
    padding: 10px;
    box-sizing: border-box;
    margin-top: 63px;
}

.overlay-wrapper {
    max-width: 70%;
}

.title {
    font-weight: var(--font-extra-bold);
    font-size: 40px;
    margin: 0;
    padding: 0 20px;
}

.subtitle {
    font-weight: var(--font-normal);
    font-size: 18px;
    margin-top: 15px;
}

.container {
    min-height: calc(100vh - 135px);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 65px;
}
.submit-wrapper {
    flex-direction: column;
    text-align:center;
}
input:focus, select:focus {
    border: 1px solid #D6BBFB!important;
    box-shadow: 0px 0px 0px 4px #9E77ED3D !important;
    outline: none; /* Remove default outline */
}

.form-container-wrapper {
    position: relative;
    height: 480px;
}

.form-container {
    position: absolute;
    top: -177px;
    left: 50%;
    transform: translate(-50%);
    background-color: rgba(255, 255, 255);
    padding: 40px;
    width: 80%;
    max-width: 895px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.content-container {
    text-align: center;
    color: var(--light-theme-color);
    margin-top: 80px;
}

.content-container h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.content-container p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    margin: 0 auto;
}

/*Home Loan Wrapper Styles End*/
.pb-3 {
    padding-bottom: 0 !important;
}

h1 {
    font-size: var(--heading1-font-size);
    color: var(--heading-color);
    font-weight: var(--font-bold);
    line-height: var(--heading-line-height);
    margin-bottom: 1.5rem;
    /*text-transform: capitalize;*/
}

p {
    font-size: var(--content-font-size);
    color: var(--content-color);
    line-height: var(--content-line-height);
    font-weight: var(--font-normal);
}

span {
    font-size: var(--content-font-size);
    color: var(--span-color);
    text-align: center;
    font-weight: var(--font-bold);
}

label {
    font-weight: var(--font-normal-bold);
    font-size: var(--content-font-size-small);
    line-height: 18px;
    color: var(--label-color);
    margin-bottom: 8px;
}

button, .Submit-btn, .Submit-btn:hover {
    font-weight: var(--font-bold);
    font-size: var(--content-font-size);
    line-height: 22px;
    display: flex;
    align-items: center;
    color: var(--light-theme-color);
    padding: 8px 32px;
    background: var(--theme-color);
    border-radius: var(--button-radius);
    border: var(--no-border);
    transition: var(--transition);
    cursor: var(--clickable-cursor);
    margin-top: 20px;
}
.nav-btns {
    color: var(--btn-secondary-color);
    padding: 8px 32px;
    background-color: var(--light-theme-color);
    border-radius: 8px;
    border: 1px solid #3C41E8;
}
.prev-btns {
    color: #475467;
    background-color: var(--light-theme-color);
    border: var(--no-border);
    font-size: 16px;
}
.res-text p {
    padding: 0 72px;
}

.btn-wrapper button:hover, a:hover {
    background: var(--button-hover-color);
}

button.Submit-btn.spin {
    position: relative;
}

.spin::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: var(--light-theme-color);
    border-bottom-color: var(--light-theme-color);
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

.Submit-btn.spin span {
    visibility: hidden;
    opacity: 0;
}

.Submit-btn span {
    color: var(--light-theme-color);
}

a {
    display: inline-block !important;
    text-decoration: none;
}

    a:hover {
        color: var(--light-theme-color);
        text-decoration: none;
    }

input, textarea {
    box-sizing: border-box;
    width: 398px!important;
    background: var(--light-theme-color);
    border: var(--input-border);
    border-radius: var(--button-radius);
    font-weight: var(--font-normal);
    font-size: var(--content-font-size-small);
    line-height: 18px;
    user-select: none;
    outline: none!important;
    display: block;
    padding: 6px 8px;
    color: var(--input-content-color);
}
.mb-3 {
    margin-bottom: 2rem!important;
}
input {
    height: 40px;
}

textarea {
    height: 80px;
    resize: none;
}

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font-family);
}

span, p, label, div, button, a {
    font-family: var(--content-font-family);
}

#iframeID {
    width: 100%;
    height: 100vh;
}

.input-wrapper {
    margin-bottom: 15px;
}
/* hide the original radio button */
.custom-radio input[type="radio"] {
    display: none;
}
/* style the custom radio button */
.custom-radio .checkmark {
    display: inline-block;
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--input-border-color);
    vertical-align: middle;
    margin-bottom: 12px;
    background-color: #fff;
}
.custom-radio .tick{
    display: inline-block;
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--theme-color);
    vertical-align: middle;
    margin-bottom: 12px;
    background-color: var(--theme-color);
    color: #fff;
}
/* style the custom radio button when selected */
.custom-radio input[type="radio"]:checked + .checkmark:after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-theme-color);
}

.checkmark::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--input-border-color);
}
/* add some gap between the label and the custom radio button when selected */
.custom-radio input[type="radio"]:checked + .checkmark {
    margin-right: 0;
    border: 2px solid var(--theme-color);
    background-color: var(--theme-color);
}

label.radio {
    display: block;
    margin-bottom: 12px;
}

.required {
    color: var(--required-color);
}
/* Vertically & Horozontally Center containers*/
.centered {
    text-align: center;
}

.center-block {
    float: none;
    display: block;
    margin: 0 auto;
}

/* Signing Page Styles */
.loan-review-header-wrapper {
    display: flex;
    align-items: center;
    flex-direction:column;
}
.loading-document h1 {
    margin-top: 40px;
    margin-bottom: 8px;
}

.loading-document p {
    margin-bottom: 40px;
    font-size: 20px;
    line-height: 30px;
}

#iframeID {
    width: 100%;
    height: 100vh;
}

.loading-document h2 {
    margin-bottom: 20px;
}

.pb-3 {
    width: 100%;
    min-height: 100vh;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 63px;
    background-color: var(--light-theme-color);
    border: 1px solid var(--input-border-color);
    z-index:1000;
}

.header-shadow {
    background-color: var(--light-theme-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    max-width: var(--screen-view-max-width);*/
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px 0 0;
}
.mobile-menu {
    display: none; /* Hide mobile menu by default */
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.field-validation {
    font-size: 12px;
    font-weight: normal;
}

nav li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: var(--content-font-size);
    line-height: 19px;
    color: var(--content-color);
    transition: var(--transition);
    font-family: var(--heading-font-family);
}

nav a:hover {
    background: var(--no-color);
    color: var(--theme-color);
}

.footer-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: var(--screen-view-max-width);
    margin-top: auto;
    padding: 10px;
}

footer {
    border-top: 1px solid var(--input-border-color);
}

.copy-right {
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    display: flex;
    align-items: center;
    color: #68758E;
}

/* About Us page */
.container.about-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 20px;
}

.container.about-wrapper h5 {
    padding: 20px 0 10px 0;
}

.about-boldsign-wrapper h5 {
    margin-bottom: 0;
}

.container.about-wrapper h6 {
    padding-top: 15px;
}

.container.about-wrapper h1 {
    margin-top: 30px;
    font-size: 32px;
    line-height: 34px;
}

li.key-item, .highlight {
    font-size: 14px;
    padding-bottom: 6px;
}

span.content.highlight-content {
    color: #544f4f;
}

span.highlight-big {
    font-weight: 700;
}

.container.about-wrapper a:hover {
    background: var(--no-color);
    color: var(--theme-color);
}

ul.key-features-list {
    margin-bottom: 0;
}

.box-shadow {
    box-shadow: 0 1px 8px 2px rgba(40, 58, 94, 0.25);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 49%;
}

.container.features {
    margin-top: 20px;
}

a#btnSignUp {
    margin-left: 20px;
    margin-top: 0;
}

span.normal, .container.about-wrapper a, .banner-desc {
    font-size: 14px;
    font-weight: var(--font-normal);
}

.about-right-container {
    margin-left: 20px;
}

.banner-desc {
    width: 80%;
    line-height: 24px;
}

::-webkit-scrollbar {
    width: 2px;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.signup-wrapper {
    padding: 40px 0 20px 0;
}

.reference {
    padding-top: 5px;
}

.container.about-wrapper .signup-wrapper {
    background: #ecfaff;
    border: 1px solid #5accf1;
    padding: 40px;
    border-radius: 4px;
    margin: 40px 0;
}

.container.about-wrapper .signup-wrapper a:hover {
    background: var(--button-hover-color);
    color: var(--light-theme-color);
}

.about-reference-links-wrapper.new-start, .question {
    padding-top: 20px;
}
.mobile-options {
    display: none; /* Hide options by default */
    position: fixed; /* Use fixed positioning to keep it on top of all elements */
    top: 60px;
    right: 0px;
    padding: 10px;
    background: var(--light-theme-color);
    color: #101828;
    box-shadow: 0px 4px 6px -2px #1018280D;
}

.mobile-options .option {
    border: none;
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
}

    .mobile-options .option:hover {
        background: #F9F5FF;
        color: var(--btn-secondary-color);
    }

.mobile-options.active {
    display: block; /* Show options when menu is active */
}
/* Responsible Media Queries */
/* Tablet */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    .desktop-options {
        display: none; /* Hide desktop options in mobile mode */
    }

    .mobile-menu {
        display: block; /* Show mobile menu */
    }
    
    .center-block {
        max-width: 50%;
    }

    .col-md-5.center-block.responsive {
        align-self: center;
    }

    .col-md-7.center-block.responsive {
        padding-top: 20px;
    }

    h1 {
        font-size: 24px;
        line-height: 34px;
    }

    p {
        font-size: 16px;
        line-height: 26px;
    }

    .title {
        font-size: 35px; 
    }
    input, select {
        width: 100% !important;
    }
    .overlay-wrapper {
        max-width: 95%;
    }
}
/* Mobile */
@media (max-width: 767px) {
    .desktop-options {
        display: none; /* Hide desktop options in mobile mode */
    }
    .mobile-menu {
        display: block; /* Show mobile menu */
    }
    
    .responsive {
        width: 100%;
    }
    .subtitle {
        font-size: 14px;
    }
    .row {
        width: 100% !important;
        flex-direction: column;
    }

    .center-block {
        max-width: 100%;
    }

    .overlay-wrapper {
        max-width: 95%;
    }

    /* Ensure the labels fill the available width and don't force the track out of alignment */
    .step-labels {
        width: 100%;
        padding: 0 24px;
        box-sizing: border-box;
    }

    .step-labels .step {
        margin: 0;
        min-width: 0; /* allow flex items to shrink on small screens */
        font-size: 13px;
    }

    .stepper-progressbar {
        position: absolute;
        left: 54%;
        top: 33px; /* slightly lower so the circles sit visually centered above the track */
        width: calc(100% - 195px); /* tablet: inset ~48px each side */
        transform: translateX(-50%);
        height: 2px;
        background-color: var(--input-border-color);
        border-radius: 2px;
    }

    .row {
        margin: 0!important;
    }
    .mb-3 {
        margin: 0 !important;
    }
    .col-md-6 {
        padding: 0;
        margin-bottom: 24px;
    }
    .form-container {
        left: 50%;
        transform: translate(-50%);
        width: 92%;
        max-width: 520px;
        padding: 20px;
        top: -172px;
        overflow: visible;
    }
    input, select {
        width: 100% !important;
    }
}
/* Extra Small Device */
@media (max-width: 480px) {
    .container {
        flex-direction: column;
    }

    .overlay-text {
        top: -54px;
    }

    .center-block {
        max-width: 100%;
    }

    .overlay-wrapper {
        max-width: 95%;
    }

    .title {
        font-size: 28px;
        margin: 0;
    }

    .subtitle {
        font-size: 14px;
    }
    .form-container {
        padding:12px;
        transform: translate(-50%);
        width: 96%;
        max-width: 420px;
        top: -174px;
    }
    .step-labels .step {
        margin: 0;
        text-align: center;
        font-size: 12px;
        padding: 6px 6px 0 6px;
    }

    .stepper-progressbar {
        position: absolute;
        left: 50%;
        top: 32px;
        width: calc(100% - 153px); /* extra-small: inset ~24px each side */
        transform: translateX(-50%);
        height: 2px;
        background-color: var(--input-border-color);
        border-radius: 2px;
    }
    .desktop-options {
        display: none; /* Hide desktop options in mobile mode */
    }
    input, select {
        width: 100%!important;
    }
    .mobile-menu {
        display: block; /* Show mobile menu */
    }
    .step-labels {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        margin: 8px 0px 20px 0px;
        position: relative;
        z-index: 2;
        width: 100%;
        box-sizing: border-box;
        padding: 0 0px;
    }

    /* Each step takes equal width and centers its content */
    .step-labels .step {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-weight: var(--font-extra-bold);
        color: var(--content-color);
        padding: 6px 8px 0 8px;
        min-width: 0;
    }

    /* Active step label styles */
    .step-labels .step.active {
        color: var(--heading-color);
    }

    /* Put the checkmark (circle) above the label text */
    .step-labels .step .checkmark {
        margin-bottom: 8px;
        transform: translateY(-8px);
    }
    /* slightly smaller checkmark on very small screens */
    .custom-radio .checkmark, .custom-radio .tick {
        width: 24px;
        height: 24px;
        border-width: 2px;
    }
    .custom-radio input[type="radio"]:checked + .checkmark:after {
        width: 10px;
        height: 10px;
    }
    .loan-review-header-wrapper {
        text-align: center;
    }
}

