:root {
    --white: #ffffff;
    --black: #000000;
    --bg-green: #178944;
    --grey: #8D8D8D;
    --blue: #174C82;
    --grey1: #151515;
}

.white { color: var(--white); }
.black { color: var(--black); }
.green { color: var(--bg-green); }
.grey { color: var(--grey); }
.grey1 { color: var(--grey1); }
.blue { color: var(--blue); }
.medium { font-weight: 500; }
.semibold { font-weight: 600; }
.bold { font-weight: 700; }

.fs-60 { font-size: 60px; }
.fs-45 { font-size: 45px; }
.fs-40 { font-size: 40px; }
.fs-30 { font-size: 30px; }
.fs-25 { font-size: 25px; }
.fs-20 { font-size: 20px; }
.fs-15 { font-size: 15px; }

.lh-72 { line-height: 72px; }
.lh-50 { line-height: 40px; }
.lh-48 { line-height: 48px; }
.lh-35 { line-height: 28px; }
.lh-30 { line-height: 24px; }
.lh-24 { line-height: 24px; }
.lh-20 { line-height: 24px; }

/* ============================================
   BASE STYLES - OPTIMIZED FOR FOOTER VISIBILITY
   ============================================ */
body {
    font-family: "Raleway", sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 48px; 
    background-size: cover;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

/* ============================================
   NAVBAR - EXACT SIZE FROM index.html
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
     height: 48px;
}

header .navbar {
    padding: 0; 
    margin: 0;
    height: 48px; 
    display: flex;
    align-items: center;
}

header .navbar-brand img {
   padding: 0;
}

header .navbar-brand img,
.logo-img {
    height: 24px; 
    width: auto;
    cursor: pointer;
}
/* ============================================
   HERO SECTION - OPTIMIZED HEIGHT
   ============================================ */
.hero-section {
    background-size: cover; 
    min-height: calc(100vh - 48px - 44px);    
    position: relative;
    overflow: hidden;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

/* ============================================
   FORM CARD - REDUCED PADDING
   ============================================ */
.bike-form-card {
    background: var(--white);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px 28px 15px 28px; 
    margin: 1rem 0; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-right: 6vw;
    min-height: auto;
}

.form-title {
    margin-bottom: 0.5rem; 
}

.form-subtitle {
    margin-bottom: 0.5rem; 
}

.form-section {
    padding-top: 10px; 
}

.form-instruction {
    margin-bottom: 10px; 
    margin-top: 0;
}

.form-group {
    margin-bottom: 6px; 
    position: relative;
}

.forminner {
    width: 80%;
    margin: 0 auto;
}

.form-instruction {
    width: 80%;
    margin: 0 auto 6px auto; 
}

.form-section .form-control {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--grey);
    border-radius: 0;
    font-weight: 600;
    color: #6c757d;
    font-size: 20px;
    line-height: 24px;
    padding-bottom: 6px; 
    padding-left: 0;
    padding-top: 0;
}

.form-section .form-control:focus {
    outline: none;
    box-shadow: none;
}

 .form-group span { 
    position: absolute;
    /* top: 6px; */
    right: 15px;
}

.form-section .form-select {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--grey);
    border-radius: 0;
    font-weight: 600;
    color: rgb(108, 117, 125);
    font-size: 20px;
    line-height: 24px;
    padding-bottom: 6px; 
    padding-top: 0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23178944' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-size: 2em 2em;
}

.form-section .form-select:focus {
    outline: none;
    box-shadow: none;
}

.form-section .btn-next {
    background: var(--bg-green);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    color: var(--white);
    padding: 8px 24px; 
    margin: 20px auto 0; 
    display: flex; 
    width: 120px !important;
    justify-content: center;
}

.form-section .btn-next:hover,
.form-section .btn-next:active {
    background: var(--bg-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    background-color: var(--bg-green);
    border-color: var(--bg-green);
}

.bikevariant {
    text-align: center;
    color: var(--white);
    position: relative;
    top: 20px; 
}

.changevariant {
    padding-top: 10px;
}

.formwidth {
    width: 100%;
}

span.mobrightadju {
    position: absolute;
    right: 0;
    bottom: 12px;
    top: inherit;
}

.mobrightadju button {
    color: #777 !important;
    background: #eee !important;
    border: 0px;
    font-weight: 600;
    border-radius: .5rem;
    padding: 5px 10px !important;
    opacity: 1 !important;
}

.form-check-input {
    width: 30px;
    height: 30px;
    position: absolute;
    border: 1px solid var(--grey);
}

.form-check-label {
    padding-left: 30px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
}

label.form-check-label a {
    color: var(--bg-green);
    text-decoration: none;
}

.step2var {
    padding-bottom: 10px; 
}

.downpay {
    color: #ffffff;
    font-size: 15px;
    line-height: 18px;
}

#calendarIcon {
    cursor: pointer;
}

#datepicker {
    font-family: sans-serif;
}

.bikeback {
    position: relative;
}

.bikeback img {
    position: absolute;
    left: -25px;
    top: -12px;
}

.thankyousubmain {
    display: flex;
    align-items: center;
    padding-bottom: 12px; 
}

.thankprofcontent {
    padding-left: 15px; 
}

.thnkyumain {
    padding: 0px 15px; 
}

.thankprof {
    display: contents;
}

.clc-icon-r {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--blue);
    padding: 1.5px;
    border-bottom: 1px solid #999999;
}

.border-bottom-hide {
    border-bottom: 0;
}

.dropdown-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px; 
}

.dropdown-container .form-select {
    font-size: 16px;
    line-height: 19px;
    color: var(--grey1);
    padding-bottom: 8px;
    width: 50%;
    padding-left: 0;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
}

.principalamtprice {
    border-bottom: 2px solid var(--grey);
}

.principalamtprice span {
    color: var(--bg-green);
    position: relative;
    padding-left: 15px;
}

.principalamtprice span:after {
    content: "";
    width: 1px;
    height: 76%;
    background: var(--bg-green);
    position: absolute;
    left: 0px;
    bottom: 5px;
}

.slider-value {
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 500;
    color: #000;
}

input[type="range"] {
    width: 100%;
    height: 10px;
    outline: none;
    border-radius: 5px;
    margin-top: 20px; 
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 5px;
}

.slider-container {
    margin-bottom: 12px; 
}

.slider-container .range,
.slider-container .range .range-input,
#range2.range-input,
input[type="range"].range-input {
    box-sizing: border-box;
}

.slider-container .range .range-input,
#range2.range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: transparent;
    cursor: pointer;
    margin: 0;
    margin-top: 12px; 
    padding: 0;
    display: block;
    position: relative;
}

.slider-container .range .range-input::-webkit-slider-runnable-track,
#range2.range-input::-webkit-slider-runnable-track {
    height: 10px;
    background: transparent;
    border: none;
    border-radius: 999px;
}

.slider-container .range .range-input::-webkit-slider-thumb,
#range2.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #108A43;
    border: 3px solid #fff;
    margin-top: -4px;
    box-shadow: 0 0 0 2px rgba(16,138,67,0.06);
}

.slider-container .range .range-input::-moz-range-track,
#range2.range-input::-moz-range-track {
    height: 10px;
    background: transparent;
    border-radius: 999px;
}

.slider-container .range .range-input::-moz-range-thumb,
#range2.range-input::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #108A43;
    border: 3px solid #fff;
    transform: translateY(-4px);
}

.slider-container .range .range-input::-ms-track,
#range2.range-input::-ms-track {
    height: 10px;
    background: transparent;
    border: none;
    color: transparent;
}

/* ============================================
   FOOTER - EXACT SIZE FROM index.html
   ============================================ */
footer {
    background: var(--bg-green);
    padding: 10px 0; 
    z-index: 50 !important;
    flex-shrink: 0;
    margin-top: auto;
    max-height: 44px;
}

.footercopy p,
.termsprivacy ul li a {
    font-size: 16px;
    line-height: 20px;
    color: var(--white);
    text-decoration: none;
}

.termsprivacy ul li {
    list-style: none;
}

.footermain {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.termsprivacy ul {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.vertline {
    color: var(--white);
    padding: 0 14px;
}

/* Container Styles */
.container {
    width: 100%;
    padding-right: var(--bs-gutter-x,.75rem);
    padding-left: var(--bs-gutter-x,.75rem);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) { .container { max-width: 100%; } }
@media (min-width: 768px) { .container { max-width: 100%; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1300px) { .container { max-width: 1170px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }
@media (min-width: 1540px) { .container { max-width: 1480px; } }

/* ============================================
   RESPONSIVE BREAKPOINTS - ALL OPTIMIZED
   ============================================ */

@media screen and (max-width: 1680px) {
    .fs-60 { font-size: 55px; }
    .fs-45 { font-size: 42px; }
    .fs-40 { font-size: 37px; }
    .fs-30 { font-size: 27px; }
    .fs-25 { font-size: 22px; }
    .fs-20 { font-size: 17px; }
    .form-section .form-control { font-size: 17px; }
    .form-section .btn-next { font-size: 27px; }
    .footercopy p, .termsprivacy ul li a { font-size: 17px; }
}

@media screen and (max-width: 1600px) {
    .fs-45 { font-size: 40px; }
    .fs-40 { font-size: 34px; }
    .fs-30 { font-size: 25px; }
    .fs-25 { font-size: 20px; }
    .fs-20 { font-size: 15px; }
}

@media screen and (max-width: 1540px) {
    .fs-45 { font-size: 37px; }
    .fs-40 { font-size: 31px; }
    .fs-30 { font-size: 22px; }
    .lh-50 { line-height: 35px; }
    .form-section { padding-top: 15px; } /* Reduced from 25px */
    .bikeback img { top: -18px; }
}

@media screen and (max-width: 1399px) {
    .fs-45 { font-size: 28px; }
    .fs-40 { font-size: 28px; }
    .fs-25 { font-size: 16px; }
    .lh-30 { line-height: 20px; }
    .fs-30 { font-size: 20px; }
    .form-subtitle { margin-bottom: 0.75rem; }
    .form-instruction { margin-bottom: 12px; }
    .form-section .form-select { font-size: 16px; padding-bottom: 5px; }
    .form-section .btn-next {
        font-size: 16px;
        margin-top: 20px; 
        padding: 8px 20px;
        width: auto;
    }
    .bike-form-card { padding: 20px 28px 20px 28px; } /* Reduced all sides */
    .footercopy p, .termsprivacy ul li a { font-size: 12px; }
    .thankyousubmain { padding-bottom: 15px; }
    .thnkyumain { padding: 0px 10px; }
    .bikeback img { width: 60px; }
    .lh-50 { line-height: 32px; }
    .form-group { margin-bottom: 12px; }
    .form-section .form-control { font-size: 14px; padding-bottom: 5px; }
    .mobrightadju button { font-size: 12px; }
    span.mobrightadju { bottom: 8px; }
    .form-check-label { padding-left: 10px; font-size: 10px; line-height: 16px; }
    .form-check-input { width: 20px; height: 20px; }
    .downpay { font-size: 12px; }
    .fs-60 { font-size: 35px; }
    .lh-72 { line-height: 50px; }
    .bikeback img { top: -10px; }
}

@media screen and (max-width: 1280px) {
    .fs-45 { font-size: 30px; }
    .fs-40 { font-size: 25px; }
}

@media (max-width: 1199px) {
     header {
        height: 48px; 
    }
    header .navbar { padding: 0; } 
    header .navbar-brand { padding-top: 0; padding-bottom: 0; }
    header .navbar-brand img { height: 24px; width: auto; } /* Ensure logo stays 24px */
    .fs-45 { font-size: 20px; }
    .form-section .btn-next { padding: 6px 16px; width: auto; font-size: 14px; }
    .bike-form-card { padding: 15px 20px 15px 20px; }
    .downpay { font-size: 12px; }
    .lh-50 { line-height: 21px; }
    .bikevariant { top: 30px; } 
    .form-subtitle { margin-bottom: 0rem; }
    .form-section .form-control { font-size: 12px; }
    .mobrightadju button { font-size: 10px; }
    .form-group { margin-bottom: 10px; }
    .form-section .btn-next { margin-top: 20px; }
    .bikeback img { top: -15px; left: -15px; }
}

@media (max-width: 991px) {
    .bike-form-card { margin: 20px 16px !important; padding: 20px 16px !important; }
    .fs-60 { font-size: 55px; }
    .fs-45 { font-size: 25px; }
    .lh-50 { line-height: 25px; }
    .fs-40 { font-size: 37px; }
    .fs-30 { font-size: 27px; }
    .fs-25 { font-size: 15px; }
    .lh-30 { line-height: 18px; }
    .fs-20 { font-size: 17px; }
    .form-section .form-control { font-size: 15px; line-height: 18px; }
    .form-section .form-select { font-size: 15px; line-height: 18px; }
    .form-section .btn-next { font-size: 16px; width: auto; padding: 8px 24px;
        min-width: 100px; }
    .footercopy p, .termsprivacy ul li a { font-size: 12px; }
    .bikevariant { top: 0; margin: 20px 0; } /* Reduced margin */
    .fs-40 { font-size: 30px; }
    .lh-48 { line-height: 36px; }
    .bike-form-card { margin-left: 20px; min-height: inherit; }
    .loanstepone { margin-right: 20px !important; margin-left: 20px !important; }
    /* .form-group span { line-height: 5px; } */
    span.mobrightadju { bottom: 8px; top: inherit !important; }
    .bike-form-card { margin: 0rem 0 1rem 0; }
    .fs-60 { font-size: 40px; }
    .lh-72 { line-height: 50px; }
    .hero-section {
        background-size: cover !important;
        background-attachment: scroll;
        padding-top:20px 0 40px 0 !important;
        width: 100vw;
    }
    .container.p-0 { height: 100%; }
    .form-group .error-msg {
        position: static !important;
        bottom: auto !important;
        right: auto !important;
        top: auto !important;
        left: auto !important;
        margin-top: 8px !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 767px) {
    .form-section .btn-next {  width: auto; padding: 8px 32px; min-width: 120px; }
    .footermain { display: block; text-align: center; }
    .termsprivacy ul { margin-bottom: 0; padding-left: 0; justify-content: center; }
    .thnkyu .form-subtitle.fs-30 { font-size: 15px; }
    .thnkyu .bike-form-card { margin-left: 0; }
    .loanstepone { margin-right: 20px !important; margin-left: 20px !important; }
    .form-check-label { font-size: 12px; line-height: 20px; }
    .downpay { font-size: 12px; padding: 0px 20px; }
       footer {
        padding: 16px 0 !important;
        min-height: 60px;
    }
    .footermain {
        padding: 0 16px;
    }
    
    .footercopy p, 
    .termsprivacy ul li a {
        font-size: 11px !important;
        line-height: 16px !important;
    }
}

@media (max-width: 651px) {
    .custom-select-wrapper { width: 45%; }
    .custom-select-wrapper-model { position: relative; width: 100%; }
    .custom-select-wrapper-model .custom-select-trigger { color: rgb(108, 117, 125) !important; }
    .custom-select-trigger {
        border-left: 0;
        border-right: 0;
        border-top: 0;
        border-bottom: 1px solid var(--grey);
        border-radius: 0;
        font-weight: 600;
        color: rgb(108, 117, 125) !important;
        font-size: 14px;
        line-height: 2px;
        padding-bottom: 14px;
        padding-left: 0;
        padding-top: 10px;
        padding-right: 2.5em;
        cursor: pointer;
        background-color: transparent;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23178944' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right bottom;
        background-size: 2em 2em;
        font-family: "Figtree", "Raleway", sans-serif;
    }
    .custom-select-options li { font-size: 14px; line-height: 18px; }
}

@media (max-width: 370px) {
    .bikeback img { left: -25px; }
}

@media (max-width: 344px) {
    .bikeback img { left: -35px; }
}

@media (max-width: 320px) {
    .loanstepone { padding-top: 40px; }
    .bikeback img { left: -20px; top: -45px; }
}

/* ============================================
   LARGE SCREENS - OPTIMIZED
   ============================================ */
@media screen and (min-width: 1399px) {
    .fs-25 { font-size: 16px !important; }
    .fs-30 { font-size: 20px !important; }
    .fs-40 { font-size: 28px !important; }
    .fs-45 { font-size: 28px !important; }
    .fs-60 { font-size: 35px !important; }
    
    .form-section .form-select { font-size: 16px !important; }
    .form-section .form-control { font-size: 16px !important; }
    .form-section .btn-next { font-size: 16px !important; font-weight: 600 !important; margin-top: 30px !important; }
    
    .bike-form-card {
        max-width: 800px !important;
        width: 38vw !important;
        padding: 20px 40px 20px 40px !important; /* Reduced all sides */
        margin-left: -10px !important;
        box-sizing: border-box !important;
    }
    
    .downpay {
        width: 40vw !important;
        margin-left: -40px !important;
        box-sizing: border-box !important;
    }
    
    .container { max-width: 1320px !important; }
    .form-group { margin-bottom: 15px !important; }
    .form-instruction { margin-bottom: 15px !important; margin-top: -15px !important; }
}

@media screen and (min-width: 1900px) {
    .hero-section {
        
        background-size: cover !important;
        background-attachment: fixed;
        min-height: calc(100vh - 48px - 44px) !important; /* Changed to match */
        overflow: auto !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        max-width: 100% !important;
        width: 100% !important;
        align-items: left !important;
    }
    
    .bikevariant {
        position: relative !important;
        top: 0 !important;
        margin-top: 20px; 
        text-align: center;
        z-index: 10;
    }
    
    header .navbar {
        justify-content: flex-start !important;
    }
    
    header .navbar-brand {
        margin-right: auto;
        margin-left: 50px;
    }
    
    .bike-form-card {
        width: 40vw !important;
        max-width: 900px !important;
        margin-left: 0 !important;
    }
    
    .downpay {
        width: 40vw !important;
        max-width: 900px !important;
        margin-left: 0 !important;
    }
}

/* ============================================
   FONT FAMILY & TYPOGRAPHY
   ============================================ */
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/figtree/v9/_Xms-HUzqDCFdgfMm4q9DbZs.woff2) format('woff2');
    unicode-range: U+0030-0039;
}

.money-txt,
.principalamtprice,
.value2,
.rangemin span,
.rangemax span,
.slider-value,
.nums-tenure,
.form-control.mobrightpad,
#otpfield,
.footer-num,
#dob,
.bikevariantname {
    font-family: "Figtree", "Raleway", sans-serif !important;
}

.form-section .form-select.tenure,
.tenure-option {
    font-family: "Figtree", "Raleway", sans-serif !important;
}

#pincode {
    font-family: "Figtree", "Raleway", sans-serif;
}

.biketitle span {
    font-family: "Figtree", "Raleway", sans-serif;
}

/* ============================================
   CUSTOM SELECT DROPDOWNS
   ============================================ */
.custom-select-wrapper {
    position: relative;
    width: 50%;
}

.custom-select-wrapper-model {
    position: relative;
    width: 100%;
}

.custom-select-wrapper-model .custom-select-trigger {
    color: rgb(108, 117, 125) !important;
    display: block !important;
    text-align: left !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 2px !important;
}

.custom-select-wrapper-model .custom-select-trigger .num {
    display: inline !important;
}

.custom-select-wrapper .form-select {
    display: none !important;
}

.custom-select-trigger {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 2px !important;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--grey);
    border-radius: 0;
    font-weight: 600;
    color: rgb(108, 117, 125);
    font-size: 14px;
    padding-bottom: 14px;
    padding-left: 0;
    padding-top: 10px;
    padding-right: 2.5em;
    cursor: pointer;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23178944' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 2em 2em;
    font-family: "Raleway", "Figtree", sans-serif !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

.custom-select-trigger:focus {
    outline: none;
    box-shadow: none;
}

.custom-select-trigger .num {
    font-family: "Figtree", sans-serif !important;
    font-weight: 510 !important;
    display: inline !important;
    position: static !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-select-options {
    position: absolute;
    top: auto;
    bottom: auto;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--grey);
    border-radius: 4px;
    margin: 0;
    padding: 5px 0;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 99999 !important;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    white-space: normal !important;
}

.custom-select-wrapper.open .custom-select-options,
.custom-select-wrapper-model.open .custom-select-options {
    display: block;
    top: calc(100% + 5px);
    bottom: auto;
}

.custom-select-options.top {
    bottom: calc(100% + 5px) !important;
    top: auto !important;
}

.custom-select-wrapper,
.custom-select-wrapper-model {
    position: relative;
    z-index: 1;
}

.custom-select-wrapper.open,
.custom-select-wrapper-model.open {
    z-index: 9999 !important;
}

.custom-select-options li {
    padding: 5px 10px;
    white-space: normal !important;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: rgb(108, 117, 125);
    font-family: "Raleway", "Figtree", sans-serif !important;
    word-wrap: break-word !important;
    max-width: 100%;
    max-height: 60px;
    overflow-wrap: break-word;
    transition: background 0.15s ease;
}

.custom-select-options li .num {
    font-family: "Figtree", sans-serif !important;
    display: inline !important;
    position: static !important;
    float: none !important;
}

.custom-select-options li:hover {
    background-color: #f0f0f0;
    color: var(--black);
}

.custom-select-options li.selected {
    background-color: var(--bg-green);
    color: white;
}

/* ============================================
   OTP & ERROR MESSAGES
   ============================================ */
span.error,
#otpfield + span,
#datepicker>.error-msg,
.form-group span.success,
.form-group span.help-block,
#otperror,
#verpinonam,
#PhoneError {
    display: block !important;
    position: static !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
    font-size: 12px !important;
    line-height: 2px !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    left: 0 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    position: relative !important;
    z-index: 5 !important;
}

#verpinonam>span[style="color:red"] {
    left:0 !important;
    display: block !important;
    font-size: 12px !important;
}

/* #otpfield + span {
    margin-top: 20px !important;
} */

#otperror,
#PhoneError {
    color: #d32f2f !important;
    font-size: 12px !important;
}

#verpinonam {
    color: #2e7d32 !important;
    font-size: 12px !important;
}

.form-group .error-msg {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
    top: auto !important;
    left: 0 !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    font-size: 12px !important;
    line-height: 2px !important;
    text-align: left !important;
    color: #d32f2f !important;
}

#otp-group,
#otpfield {
    position: relative !important;
    overflow: visible !important;
}

#otp-group #otperror {
    color: #d32f2f !important;
}

#otp-group #verpinonam {
    color: #2e7d32 !important;
    font-size: 12px !important;
}

#otpfield {
    padding-right: 16px !important;
    box-sizing: border-box !important;
}

/* ============================================
   MISC UTILITIES
   ============================================ */
.form-section .form-group:first-of-type {
    margin-bottom: 20px !important;
}

.input-group-addon {
    pointer-events: none;
    cursor: default;
}

.footer-num {
    font-weight: 100 !important;
    -webkit-text-stroke: 0.2px transparent !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    font-family: "Figtree", "Raleway", sans-serif !important;
}

#dob[readonly] {
    background-color: transparent !important;
    cursor: pointer;
}

a#changevariant1,
a#changevariant1:link,
a#changevariant1:visited,
a#changevariant1:hover,
a#changevariant1:active {
    color: var(--white) !important;
}

a#changevariant1:hover {
    color: var(--bg-green) !important;
    text-decoration: underline !important;
}

.white a#changevariant1:hover {
    color: var(--bg-green) !important;
}

a#changevariant1 {
    color: white !important;
    text-decoration: underline !important;
}

a#changevariant1:hover {
    color: #ecf5f0 !important;
    text-decoration: underline !important;
}
#tw-step-1 .form-instruction {
    margin-bottom: 20px; 
}
.form-group, .dropdown-container, .mb-3, .row {
    margin-bottom: 15px; 
}
#tw-step-3 .formrow .row {
    margin-bottom: -5px !important;
}
.form-group, .dropdown-container, .mb-3, .row {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
}
.clc-table, .summary-container, .finance-summary, .clc-icon-r {
    margin-top: 0 !important;
}
@media (min-width: 768px) and (max-height: 654px) {
  .form-group:nth-child(2) .custom-select-options,
  .dropdown-container:nth-child(2) .custom-select-options {
    max-height: 150px;  
    overflow-y: auto;
  }
}

@media (min-width: 768px) and (max-height: 551px) {
  .form-group:nth-child(2) .custom-select-options,
  .dropdown-container:nth-child(2) .custom-select-options {
    max-height: 120px;  
    overflow-y: auto;
  }
}
#three_wheeler_response {
display: block !important;
text-align: center !important;
width: 100% !important;
margin: 16px 0 0 0 !important;
padding: 0 !important;
}

#three_wheeler_response .error-msg {
width: 100% !important;
display: inline-block !important;
position: static !important;
float: none !important;
text-align: center !important;
margin: 0 auto !important;
word-wrap: break-word !important;
overflow-wrap: break-word !important;
font-size: 12px !important;
line-height: 18px !important;
color: #d32f2f !important;
border-radius: 4px !important;
left: auto !important;
right: auto !important;
top: auto !important;
bottom: auto !important;
transform: none !important;
}

span.mobrightadju {
    position: absolute;
    right: 0;
    bottom: auto !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important; 
}
span.mobrightadju {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important; 
    bottom: auto !important;
    transform: none !important;
    margin-top: 0 !important;
}

.mobrightadju button {
    color: #777 !important;
    background: #eee !important;
    border: 0px;
    font-weight: 600;
    border-radius: .5rem;
    padding: 5px 10px !important;
    opacity: 1 !important;
    margin-top: -5px !important;
}
.mobrightadju {
  display: flex !important;
  align-items: center !important;
}
.mobrightadju .loadingGif {
  vertical-align: middle !important;
  height: 18px !important; 
  margin-right: 15px !important;
  position: static !important; 
}
@media (min-width: 992px) {
  body {
    background: url(https://betauattest.tvscredit.com/wp-content/themes/tvscredit/images/two-wheeler-campaign/bike-bg.png) no-repeat center center;
    background-size: cover;
    min-height: 100vh;
  }
  .hero-section {
    background: none !important;
  }
}
/* Success message styling - GREEN */
.success-msg,
#three_wheeler_response .success-msg,
#three_wheeler_response > .success-msg {
    color: #2e7d32 !important; 
    font-size: 12px !important;
}

@media (max-width: 767px) {
  .form-group { position: relative !important; }
  .mobrightadju {
    position: absolute !important;
    right: 0 !important;
    top: -10px !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 2;
  }
  .mobrightadju button {
    width: auto !important;
    padding: 4px 12px !important;
    margin-top: -10px !important;
    font-size: 14px !important;
  }
  #mobile_number {
    padding-right: 100px !important;
  }
}
#otperror span[style*="color:green"],
#PhoneError span[style*="color:green"],
#verpinonam span[style*="color:green"] {
    margin-top: -8px !important;  
    margin-bottom: 5px !important;
    display: block;
    font-weight: 500;
}
@media (max-width: 767.98px) {
    .form-group,
    .dropdown-container {
        margin-bottom: 16px !important;
    }
    
    .form-title {
        margin-bottom: 12px !important;
    }
    
    .form-subtitle {
        margin-bottom: 20px !important;
    }
    
    .price-display {
        margin-bottom: 16px !important;
    }
    
    .range-info {
        margin-bottom: 20px !important;
    }
    
    .dropdown-container {
        margin-top: 16px !important;
        margin-bottom: 20px !important;
    }
    
    .info-table {
        margin-top: 20px !important;
    }
    
    .totla-area {
        margin-bottom: 12px !important;
    }
    
    .btn-next,
    .btn-primary {
        margin-top: 20px !important;
    }
}
#otperror span[style*="color:green"],
#PhoneError span[style*="color:green"],
input#otpfield + span[style*="color:green"] {
    color: #2e7d32 !important;  
    font-size: 12px !important;
    font-weight: 500;
}

.error-msg,
#otperror,
#PhoneError,
#verpinonam,
/* .form-group span.error, */
span[style*="color:red"],
#otperror span[style*="color:red"] {
    color: #d32f2f !important;  
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;  
}

#firstname-error .error-msg,
#email-error .error-msg,
#dob-error .error-msg {
    color: #d32f2f !important;
}

@media (max-width: 767.98px) {
    #three_wheeler_response,
    #three_wheeler_response > *,
    #three_wheeler_response span {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        margin: 10px 0 !important;
        line-height: normal !important;
        box-sizing: border-box !important;
    }
  
    #verpinonam {
        margin-bottom: -6px !important;
        padding-top: 0 !important;
    }
    #otperror span[style*="color:green"],
    #PhoneError span[style*="color:green"],
    input#otpfield + span[style*="color:green"] {
    padding-bottom: 2px;
    color: #2e7d32 !important;  
    font-size: 12px !important;
    font-weight: 500;
}
}

.input-group.form-group.date {
    position: relative;
}

.input-group.form-group.date input.form-control {
    width: 100%;
    padding-right: 44px;
    box-sizing: border-box;
    z-index: 1;
    background: transparent;
    position: relative;
}

.input-group.form-group.date .input-group-addon {
    position: absolute;
    right: 12px; 
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 24px; 
    pointer-events: none; 
}

.input-group.form-group.date .input-group-addon img {
    width: 20px;  
    height: 20px;
    object-fit: contain;
    display: block;
}

.input-group.form-group.date input.form-control {
    border-bottom: 1px solid var(--grey);
}
@media (max-width: 767.98px) and (max-height: 865px) {
    .custom-select-options {
        position: absolute;
        bottom: 100% !important;  /* Position above the trigger */
        top: auto !important;
        max-height: 200px;
        overflow-y: auto;
        box-shadow: 0 -4px 8px rgba(0,0,0,0.15);
        border-radius: 8px 8px 0 0;  /* Rounded top corners */
        z-index: 999;
    }
    
    .custom-select-wrapper {
        position: relative;
    }
}
