body {
    overflow-x: hidden !important;
}

.form {
    margin: 80px auto;
    position: relative;
    display: flex;
    width: 700px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    background-clip: border-box;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    font-family: Arial;
}

.form-header {
    color: #000;
    text-align: center;
    align-items: center;
    margin-top: 2rem;
    border-bottom: 0 solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem 0.5rem 0;
}

.form-header>p {
    padding: 0 2.5rem;
    color: #73757A;
    font-size: 18px;
}

.form-header>h5 {
    font-size: 28px;
    margin-bottom: 0;
}

.form-header>h5>span {
    color: #D2504A;
}

.form-body {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0;
    margin: 0 auto;
    padding: 20px;
}

.form-body>p {
    text-align: center;
}

/* index page */
.index-body {
    margin: auto;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}

.start-btn {
    background-color: #2E6CE6;
    cursor: pointer;
    color: white;
    font-size: 18px;
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    justify-self: center;
}

.start-btn:hover {
    background-color: #3b77ed;
}

/* form footer and buttons */
.form-footer {
    width: 100%;
    padding: 0;
    background-color: #2E6CE6;
    margin: 0 auto;
    border-top: 0 solid rgba(0, 0, 0, 0.125);
    border-radius: 0 0 0.5rem 0.5rem;
}

.nav-btn {
    background-color: #2E6CE6;
    cursor: pointer;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 20px;
    border: none;
    width: 50%;
}

.nav-btn:hover {
    background-color: #3b77ed;
}

.next {
    float: right;
    border-left: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0 0 0.5rem 0;
    text-align: end;
}

.previous {
    float: left;
    color: #ABC4F5;
    border-radius: 0 0 0 0.5rem;
    text-align: start;
}

.submit {
    float: right;
    border-left: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0 0 0.5rem 0;
    text-align: end;
}

.form>.nav-btns {
    height: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

/* error */
.err {
    color: red;
    margin: 4px 0;
    font-size: 14px;
}

/* dropdown */
select {
    font-size: 14px;
    line-height: 1.5;
    padding: 10px;
    margin: 0;
    border: 1px solid #67728A;
    border-radius: 4px;
    outline: 0;
    background-color: transparent;
    width: 100%;
}

select:invalid {
    color: #C3CAD4;
}

.select-label {
    color: #67728A;
    font-size: 10px;
    font-weight: normal;
    transform: translate(0, 0.2rem);
}

option {
    color: black;
}

/* form input */
.input-group {
    width: 600px;
    justify-content: space-between;
    font-weight: normal;
}

input {
    font-size: 18px;
    line-height: 1.5;
    padding: 8px 10px;
    border: 1px solid #67728A;
    border-radius: 4px;
    outline: 0;
    background-color: transparent;
    width: 100%;
    transition: border-color 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #609DF8
}

@supports (not (-ms-ime-align:auto)) {
    /* Floating label styles - only for apply forms */
    .form label,
    .form-body label {
        color: #67728A;
        font-weight: normal;
        transform: translate(0.75rem, -1.9rem);
        transition: all 0.2s ease-out;
    }

    .form input:focus+label,
    .form input:not(:placeholder-shown)+label,
    .form-body input:focus+label,
    .form-body input:not(:placeholder-shown)+label {
        color: #67728A;
        font-size: 10px;
        font-weight: normal;
        transform: translate(0, 0.2rem);
    }
}

/* yes and no buttons */
.bool-btn-group {
    width: 600px;
    justify-content: space-between;
    display: flex;
    padding: 2rem 0;
    margin: 0 auto;
}

.bool-btn {
    position: relative;
    width: 100%;
    height: 60px;
    float: left;
    border: 2px solid #609DF8;
    box-sizing: border-box;
    color: #609DF8;
    margin: 0 4px;
}

.bool-btn>div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 25px;
    transition: .5s ease;
    cursor: pointer;
}

.bool-btn__input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

input[type=radio]:checked~div {
    background-color: #2E6CE6;
    border-color: #2E6CE6;
    color: white;
}

/* slider styling */
input[type=range] {
    height: 34px;
    -webkit-appearance: none;
    margin: 10px 0;
    width: 100%;
    border: none;
}

input[type=range]:focus {
    outline: none;
}

.range-wrap {
    position: relative;
    margin: 0 auto 3rem;
}

.range-value {
    position: absolute;
    top: -50%;
}

.range-value span {
    width: 30px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #03a9f4;
    color: #fff;
    font-size: 12px;
    display: block;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    border-radius: 6px;
}

.range-value span:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid #03a9f4;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    margin-top: -1px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    /* animate: 0.2s; */
    box-shadow: 0px 0px 0px #000000;
    background: #504F4F;
    border-radius: 5px;
    border: 2px solid #50B1F9;
}

input[type=range]::-webkit-slider-thumb {
    box-shadow: 1px 1px 2px #9A9A9A;
    border: 2px solid #FFFFFF;
    height: 25px;
    width: 25px;
    border-radius: 20px;
    background: #E5A539;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -9.5px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #504F4F;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    /* animate: 0.2s; */
    box-shadow: 0px 0px 0px #000000;
    background: #504F4F;
    border-radius: 5px;
    border: 2px solid #50B1F9;
}

input[type=range]::-moz-range-thumb {
    box-shadow: 1px 1px 2px #9A9A9A;
    border: 2px solid #FFFFFF;
    height: 25px;
    width: 25px;
    border-radius: 20px;
    background: #E5A539;
    cursor: pointer;
}

input[type=range]::-ms-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    /* animate: 0.2s; */
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: #504F4F;
    border: 2px solid #50B1F9;
    border-radius: 10px;
    box-shadow: 0px 0px 0px #000000;
}

input[type=range]::-ms-fill-upper {
    background: #504F4F;
    border: 2px solid #50B1F9;
    border-radius: 10px;
    box-shadow: 0px 0px 0px #000000;
}

input[type=range]::-ms-thumb {
    margin-top: 1px;
    box-shadow: 1px 1px 2px #9A9A9A;
    border: 2px solid #FFFFFF;
    height: 25px;
    width: 25px;
    border-radius: 20px;
    background: #E5A539;
    cursor: pointer;
}

input[type=range]:focus::-ms-fill-lower {
    background: #504F4F;
}

input[type=range]:focus::-ms-fill-upper {
    background: #504F4F;
}

input[type=range]:focus::-ms-fill-upper {
    background: #504F4F;
}

.bubble {
    background: none;
    font-weight: bold;
    color: #E5A539;
    padding: 4px 12px;
    position: absolute;
    border-radius: 4px;
    left: 50%;
    transform: translate(-35%, 120%);
}

.bubble::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 2px;
    left: 50%;
}

/* checkbox styling */
input[type=checkbox] {
    box-sizing: border-box;
    padding: 0;
    cursor: pointer;
}

input[type=checkbox]:disabled {
    background-color: #D9D9D9;
}

@media (max-width:768px) {
    .checkbox-button {
        width: 100%;
    }

    .form {
        width: auto;
    }
}

.checkbox-button {
    display: block;
    position: relative;
    padding: 0.8rem 1rem;
    margin-bottom: 12px;
    cursor: pointer;
    border: 1px solid #67728A;
    border-radius: 4px;
    font-size: 18px;

    &:hover {
        background-color: #DBEAFD;
        border-color: #6FABF7;
    }
}

.checkbox-button__input {
    opacity: 0;
    position: absolute;
}

.checkbox-button__control {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    vertical-align: middle;
    background-color: white;
    color: #017b5f;
    border: 1px solid #67728A;
    transform: scale(1);

}

.checkbox-button__input:checked+.checkbox-button__control:after {
    content: "";
    display: block;
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    background-color: #6FABF7;
    border-color: #6FABF7;
}

.chk-box-group {
    justify-content: space-between;
    padding: 2rem 2rem 0 0;
}

.chk-box-err {
    color: red;
    font-size: 14px;
    display: none;
}

.column {
    flex: 50%;
    padding: 0 4px;
}

.row {
    display: flex;
    padding-bottom: 4px;
}

/* =================================================================
   IBV Dashboard Styles
   ================================================================= */

/* Summary Cards */
.ibv-summary-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.08);
}

.ibv-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Risk Level Colors */
.ibv-risk-high {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #f44336 !important;
}

.ibv-risk-medium {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left: 4px solid #ff9800 !important;
}

.ibv-risk-low {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50 !important;
}

/* Trend Indicators */
.ibv-trend-up {
    color: #4caf50;
}

.ibv-trend-down {
    color: #f44336;
}

.ibv-trend-stable {
    color: #9e9e9e;
}

/* Progress Bars in Risk Section */
.progress {
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Account Tabs */
#accountTabs .nav-link {
    border: 1px solid #dee2e6;
    margin-right: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#accountTabs .nav-link:hover {
    background-color: #f8f9fa;
}

#accountTabs .nav-link.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

#accountTabs .nav-link.active .text-success,
#accountTabs .nav-link.active .text-danger {
    color: white !important;
}

/* Transaction Table */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Expense Chart Progress Bars */
.ibv-expense-bar {
    height: 12px;
    border-radius: 6px;
}

/* Icon Shapes */
.icon-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Modal Improvements */
.modal-xl {
    max-width: 1140px;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Card Header Icons */
.card-header i {
    opacity: 0.7;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ibv-summary-card .card-body {
        padding: 0.75rem;
    }

    .ibv-summary-card h5 {
        font-size: 1rem;
    }

    #accountTabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #accountTabs .nav-link {
        white-space: nowrap;
    }
}

/* Lead Show Page IBV Tab Specific */
.lead-show-tabs #ibv-info .card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.lead-show-tabs #ibv-info .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Legacy Data Accordion Styling */
#legacyIbvData .accordion-button {
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.875rem;
}

#legacyIbvData .accordion-button:not(.collapsed) {
    background-color: #e9ecef;
    color: #495057;
}

/* Clickable Cards */
.ibv-clickable-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.ibv-clickable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.ibv-clickable-card:active {
    transform: translateY(-2px);
}

/* Highlight Effect for Target Sections */
.ibv-detail-section {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ibv-detail-section.ibv-highlight {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.5), 0 8px 25px rgba(13, 110, 253, 0.2) !important;
    animation: ibv-pulse 0.5s ease-in-out;
}

@keyframes ibv-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.4);
    }
    100% {
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.5), 0 8px 25px rgba(13, 110, 253, 0.2);
    }
}