﻿.mainAreaContainer {
    display: none;
}

#equityHelpButton {
    display: none;
}

#upfrontQuestionsLoanPlanFooterCustomTextSection {
    display: none;
}

@media screen and (max-width: 575px) {
    #equityHelpButtonSection {
        margin-left: -20px;
    }
}

@media screen and (max-width: 427px) {
    #equityHelpButtonSection {
        margin-left: -25px;
    }
}

@media screen and (min-width: 576px) {
    #equityHelpButton {
        float: right;
    }
}

#upfrontQuestions .custom-dropdown {
    position: relative;
    display: inline-block;
    padding: 0;
    /*width: 400px;*/ /* Uniform width */
}

#upfrontQuestions .dropdown-toggle {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    #upfrontQuestions .dropdown-toggle:focus-visible {
        outline: none;
    }

#upfrontQuestions .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 1000;
    display: none;
    margin-top: 0 !important;
    border-radius: 0 !important;
}

#upfrontQuestions .options-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

    #upfrontQuestions .options-list li {
        display: flex;
        line-height: 1.4;
        padding: .25rem .7rem;
        cursor: pointer;
        font-weight: normal !important;
        font-size: 1.05em;
    }

/*    #AppForm .options-list li:hover {
background-color: #1967d2;
color: #fff
}*/

#upfrontQuestions .options-list li:last-child {
    border-bottom: none;
}

#upfrontQuestions .dropdown-menu .options-list li.selected {
    background-color: #1967d2;
    color: #fff
}

#upfrontQuestions .col {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 0 !important;
    padding-right: 5px !important;
}

#upfrontQuestions button.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    white-space: nowrap;
}

#upfrontQuestions button.dropdown-toggle .selected-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; /* critical — allows flex item to shrink below its content width */
    font-size: 1.2em;
}

#upfrontQuestions button.dropdown-toggle::after {
    /*content: "▾";*/ /* or whatever you already have */
    flex-shrink: 0; /* keeps the arrow from being squeezed away */
    margin-left: 0.5em; /* small gap between text and arrow */
}


