.custom-multiline-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
}

.custom-multiline-dropdown-button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #ececec;
    border-radius: 4px;
    background-color: var(--light);
    color: #333;
    text-align: left;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: border-color 0.3s ease; /* Optional transition for border color */
    text-transform: uppercase;
    font-family: 'Montserrat';
}

.custom-multiline-dropdown-button .fa {
    font-size: 11px;
    color: var(--dark);
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.custom-multiline-dropdown-button.open .fa {
    transform: rotate(180deg); /* Rotates arrow when dropdown is open */
}

.custom-multiline-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--light);
    min-width: 100%;
    box-shadow: 0px 24px 25px 1px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-bottom: 10px solid #ac0049; /* Adds a 5px height border at the bottom */
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease; /* Smooth transition for opening and closing */
}

.custom-multiline-dropdown-content.show {
    display: block;
    max-height: 250px; /* Adjust as needed */
    opacity: 1;
    overflow-y: auto;
}

.custom-multiline-dropdown-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #dddddd7a; /* Border below each item */
}

.custom-multiline-dropdown-item:last-child {
    border-bottom: none; /* Removes border from the last item */
}

.custom-multiline-dropdown-item:hover {
    background-color: #f1f1f14a;
}

.custom-multiline-dropdown-item .dropdown-title {
    display: block;
    font-size: 16px;
    color: #ac0049; /* Heading color */
    font-weight: 600;
    text-transform: uppercase;
}
.custom-multiline-dropdown-label{
    text-transform: uppercase;
    color: var(--dark);
    opacity: 0.6;
}
.custom-multiline-dropdown-label .required{
    color: var(--danger);
}
.custom-multiline-dropdown-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Custom Scrollbar Styles */
.custom-multiline-dropdown-content::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.custom-multiline-dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1; /* Background of the scrollbar track */
}

.custom-multiline-dropdown-content::-webkit-scrollbar-thumb {
    background: #888; /* Color of the scrollbar thumb */
    border-radius: 4px; /* Roundness of the scrollbar thumb */
}

.custom-multiline-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #555; /* Darker color on hover */
}

/* Firefox scrollbar styles */
.custom-multiline-dropdown-content {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #888 #f1f1f1; /* Thumb color and track color */
}

/* Media Query for Smaller Screens */
@media (max-width: 600px) {
    .custom-multiline-dropdown-button {
        font-size: 14px;
        padding: 8px;
    }
}