html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

body, p, #info-pane p {
    font-family: Arial, Helvetica, sans-serif;
    color: #192838;
    font-size: 12px;
    background-color: #ffffff;
    font-weight: normal;
}

.body-container {
    min-width: 724px;
    max-width: 724px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.required {
    color: #d62b2f;
}


.required-header {
    color: #d62b2f;
    display: flex;
    justify-content: flex-end;
}

.required.fa {
    margin-left: 0rem;
    padding: 0;
    font-size: .3rem;
    vertical-align: text-top;
}

h1, .ChooseHeader, .ApplyHeader, .LearnHeader, .MoreHeader {
    font-weight: bold;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 24px;
    color: #124869; /*#AB111A;*/
}

.legend-header {
    font-family: Arial, Helvetica, Sans-Serif;
    color: #444444;
    border: none;
    font-weight: bold;
    padding: .5rem 2rem .5rem 1.5rem;
    text-transform: uppercase;
    background-color: #dedede;
    width: 100%;
    /*margin-left: -.5rem;*/
    border-radius: .4rem;
    height: 2rem;
    font-size: .75rem
}



.tooltip_icon {
    display: inline-block;
    height: .7rem;
    width: .5rem;
    padding: .5rem;
    position: relative;
    background-image: url('../assets/Info_Black.png');
    background-repeat: no-repeat;
    background-position: .1rem .1rem;
    text-decoration: none;
    vertical-align: text-bottom;
}

.req-grid {
    width: calc(100% - 1rem);
    display: flex;
    flex-direction: column
    /*  grid-template-columns: auto auto;
        grid-gap: .5rem;
        grid-auto-flow: row;
        padding: 1rem;
        margin-left: .5rem;*/
}

.req-grid-row {
    width: 100%;
    display: grid;
    grid-template-columns: 6fr 3fr 3fr;
    grid-gap: .5rem;
    grid-auto-flow: column;
    padding: .25rem;
    margin-left: .5rem;
}

.req-grid-col1 {
    margin-left: .5rem;
    font-weight: bold;
}

.req-grid-col2 {
    font-weight: bold;
}

.req-grid-col2sp2 {
    font-weight: bold;
    grid-column: span 2;
}

.req-grid-col3 {
    color: #c10000;
    margin-left: 2rem;
}

.req-grid-colsp3 {
    font-weight: bold;
    grid-column: span 3;
    padding-right: 1rem;
}


.req-grid-colspan3 {
    grid-column: span 3;
}

a:link {
    color: #007c89;
    background-color: transparent;
}

.compareButton {
    color: #fff;
}

a:visited {
    color: #c10000;
    background-color: transparent;
}

.mr-2 {
    margin-right: .2rem
}

.custom-tooltip {
    --bs-tooltip-bg: #DEDEDE; /*rgb(68, 68, 68);*/
    --bs-tooltip-color: #124869;
    --bs-tooltip-border-radius: 0.5rem;
    --bs-tooltip-opacity: 1;
    /*--bs-tooltip-padding-x: 1rem;*/
    --bs-tooltip-font-size: .8rem;
    /*    --bs-tooltip-arrow-width: .5rem;
    --bs-tooltip-arrow-height: 1rem;*/
    --bs-tooltip-max-width: 40rem;
}

.tooltip-inner {
    text-align: left;
    font-weight: bold;
}

.form-textbox {
    height: 1.2rem;
}

.cs-max-wid {
    max-width: 3rem;
    margin-left: .5rem;
}

.rdo-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rb-group {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    grid-auto-flow: column;
}

.req-grid-colsp2 {
    grid-column: span 2;
    padding-right: 1rem;
}

.rdo-item {
    display: flex;
    font-weight: 600;
}

    .rdo-item input {
        margin-top: .1rem;
    }


    .rdo-item label {
        display: flex;
        padding: .1rem;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: start;
        gap: 0.25rem;
    }

.sf-option {
    display: none;
}

.mh-option {
    display: none;
}

.spacer {
    margin-top: 1rem;
}

.btn-container {
    width: 100%;
    display: flex;
}


.rate-button {
    background-color: #007c89;  /*linear-gradient(to bottom, #bd272f 0%, #a72028 50%, #8e1a21 100%);*/
    border-radius: 50px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 6px rgba(0, 0, 0, 0.4);
    color: white;
    border: 1px solid #7a161c;
    font-family: sans-serif;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Adds depth to the text */

    height: 1.6rem;
    width: 9rem;
    margin-left: auto;
    opacity: .9;
}

    .rate-button:active {
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
        transform: translateY(1px);
    }

#PropertyCounty, #PropertyState, #PropertyCity, #PropertyZip {
    max-width: 10.5rem;
    min-width: 10.5rem;
    margin-left: -4px;
}

.wireframe_box {
    color: #666666;
    padding: 12px;
    margin: 0 0 8px 0;
    border: 1px solid #666666;
    background-color: #FFFFFF;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #CCCCCC;
}

input[type="checkbox" i] {
    background-color: initial;
    cursor: default;
    appearance: auto;
    box-sizing: border-box;
    margin: 3px 3px 3px 4px;
    padding: initial;
    border: initial;
}

.child-quotes .rate-row {
    display: none; 
}
    
    .child-quotes .rate-row:first-child {
        display: table-row;
    }

.child-quotes.is-expanded .rate-row {
    display: table-row;
}

.rate-row.current-top-match {
    /*border-left: 4px solid #007bff;*/ /* Add a blue accent to the active row */
    /*background-color: #f8f9fa;*/
}

.rate-row {
    display: none;
}
    .rate-row.initial-visible {
        display: table-row;
    }



/*Rate Slider*/
.loanWizardControls {
    color: #666666;
    background-color: #FFFFFF;
    font-family: Arial;
    font-size: 12px;
    font-weight: normal;
    margin: 0;
    border: 1px solid #FFFFFF;
    text-align: left;
    float: left;
    width: 168px;
    border-radius: 6px;
}


.rate-slider-container {
    width: 176px; /* Reduced width to match your "Narrow Results" sidebar */
    padding: 10px;
    border-bottom: 1px dotted #ccc; /* Matches the dotted line in your image */
}

/* Header Text (By Rate) */
.slider-title {
    color: #007c89;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: #666;
    margin-bottom: 3px;
}

    .slider-labels.bottom {
        justify-content: flex-end;
        margin-top: 2px;
        font-weight: bold; /* The bottom number in your image looks a bit bolder */
    }

/* The Track */
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px; /* Thinner track */
    background: #fff;
    border: 1px solid #bcbcbc;
    border-radius: 2px;
    outline: none;
    margin: 0;
}

    /* Removes the blue outline in most browsers */
    .custom-slider:focus {
        outline: none;
        box-shadow: none;
        outline-color: #cecece;
        border-color: #cecece;
    }

    /* Specifically for Chrome/Safari/Edge to remove the default focus ring */
    .custom-slider::-webkit-slider-runnable-track {
        outline: none;
        box-shadow: none;
        outline-color: #cecece;
    }

    /* For Firefox to remove the dotted border inside the track */
    .custom-slider::-moz-focus-outer {
        border: 0;
        box-shadow: none;
        outline-color: #cecece;
    }



    /* The Red Pointer */
    .custom-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 11px; /* Scaled down */
        height: 22px;
        background: #007c89; 
        cursor: pointer;
        /* The "House" shape */
        clip-path: polygon(0% 25%, 50% 0%, 100% 25%, 100% 100%, 0% 100%);
        border: none;
        position: relative;
        z-index: 2;
    }

    .custom-slider::-moz-range-thumb {
        width: 14px;
        height: 20px;
        background: #007c89;
        cursor: pointer;
        clip-path: polygon(0% 25%, 50% 0%, 100% 25%, 100% 100%, 0% 100%);
        border: none;
    }


.smaller-text {
    color: #737373;
    margin-left: .3rem;
    font-size: 10px;
    font-weight: normal;
}


select {
    margin-left: -4px;
}




/*Rate Comparison*/

#compareRates {
    width: 768px;
    display: grid;
    grid-template-columns: 12rem 8rem 8rem 8rem auto;
    grid-auto-flow: column;

}
    #compareRates h3 {
        font-size: larger;
    }

.column-container {
    width: 128px;
}

.compare-hdr-row {
    height: 1.5rem;
    margin-bottom: .25rem;
}

.compare-hdr-row ~ .compare-hdr-row {
    margin-top: 1.75rem;
}

.compare-data-item {
    padding: 2px 12px 2px 4px;
}

.compare-hdroption-row {
    height: 1.5rem;
    color: #757575;
    font-weight: bolder;
}

.compare-hdroption-row.compare-data-item{
    margin-top: .5rem;
    color: #757575;
    font-weight: bolder;
}


.hidden-checkbox {
    display: none;
}

.back-link {
    cursor: pointer;
    user-select: none;
}

.moreOptions-container {
    margin-top: 1.9rem;
    margin-left: .2rem;
    position: absolute;
}
