/* Custom dropdown styling */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    outline: none;
}

.custom-select-trigger:hover {
    border-color: #86b7fe;
}

.custom-select-trigger:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.custom-select-trigger.active {
    border-color: #86b7fe;
    outline: none;
    box-shadow: none;
}

.custom-select-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-arrow {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.custom-select-trigger.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-select-options.active {
    display: block;
}

.custom-select-option {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.custom-select-option:hover {
    background-color: #e9ecef;
}

.custom-select-option.selected {
    background-color: var(--color-primary);
    color: white;
}

.custom-select-option[data-value="None"] {
    color: #6c757d;
}

.custom-select-option strong {
    font-weight: 500;
}

.custom-select-option .mobile-br {
    display: none;
}

@media (max-width: 768px) {
    .custom-select-trigger,
    .custom-select-option {
        font-size: 12px;
    }

    .custom-select-option .mobile-br {
        display: block;
    }
}
