.select2-container {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    position: relative;
    vertical-align: middle;
    border-radius: 8px;
}

.select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    user-select: none;
    -webkit-user-select: none
}

.select2-container .select2-selection--single .select2-selection__rendered {
    display: block;
    padding: 0 1rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 38px !important;
    font-size: 0.9rem !important;
    color: var(--text-primary) !important;
    font-weight: 500 !important;
}

.select2-container .select2-selection--single .select2-selection__clear {
    background-color: transparent;
    border: none;
    font-size: 1em
}

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
    padding-right: 8px;
    padding-left: 20px
}

.select2-container .select2-selection--multiple {
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 6px !important;
    line-height: normal !important;
    max-height: 70px !important;
    overflow-y: auto !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 0
}

.select2-container .select2-selection--multiple .select2-selection__clear {
    background-color: transparent;
    border: none;
    font-size: 1em
}

.select2-container .select2-search--inline .select2-search__field {
    box-sizing: border-box;
    border: none;
    padding: 0;
    font-weight: 500;
    flex: 1 1 auto;
    resize: none;
    height: 24px;
    font-size: 0.8rem;
    vertical-align: middle;
    overflow: hidden;
    word-break: keep-all;
    color: var(--text-primary);
}

.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
    -webkit-appearance: none
}

@keyframes select2FadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select2-dropdown {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(13px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(13px) saturate(180%) !important;
    border: 1.5px solid rgba(var(--brand-primary-rgb), 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    display: block;
    position: absolute;
    left: -100000px;
    width: 100%;
    animation: select2FadeIn 0.2s ease-out;
    overflow: hidden !important;
    padding: 5px 10px;
}

.select2-results {
    display: block
}

.select2-results__options {
    list-style: none;
    margin: 0;
    padding: 0
}

.select2-results__option {
    padding: 8px 12px !important;
    user-select: none;
    -webkit-user-select: none;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    margin: 2px 6px !important;
    transition: background 0.15s ease !important;
    color: var(--text-primary) !important;
    background: transparent !important;
}

/* Default Separator or Base Style */
.select2-results__option--selectable {
    cursor: pointer;
}



.select2-results__option--selectable {
    cursor: pointer;
}

.select2-container--open .select2-dropdown {
    left: 0
}

.select2-container--open .select2-dropdown--above {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
}

.select2-container--open .select2-dropdown--below {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0
}

.select2-search--dropdown {
    display: block;
    padding: 4px
}

.select2-search--dropdown .select2-search__field {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    color: var(--text-primary) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    width: 100%;
    box-sizing: border-box
}

.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
    -webkit-appearance: none
}

.select2-search--dropdown.select2-search--hide {
    display: none
}

.select2-close-mask {
    border: 0;
    margin: 0;
    padding: 0;
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    min-height: 100%;
    min-width: 100%;
    height: auto;
    width: auto;
    opacity: 0;
    z-index: 99;
    background-color: #fff;
    filter: alpha(opacity=0)
}

.select2-hidden-accessible {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important
}

.select2-container--default .select2-selection--single {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: var(--radius-md) !important;
    height: 40px !important;
    min-height: 40px !important;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-primary) !important;
    font-weight: 500 !important;
    padding-left: 1rem !important;
    padding-right: 2rem !important;
    font-size: 0.9rem !important;
    line-height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
    height: 100%;
    margin-right: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(0, 0, 0, 0.4) !important;
    font-size: 16px !important;
    line-height: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #dc3545 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(0, 0, 0, 0.45) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    position: absolute !important;
    top: 2px !important;
    right: 4px !important;
    width: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 6px 5px 0 5px;
    /* Slightly larger */
    height: 0;
    width: 0;
    margin-left: -5px;
    margin-top: -3px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: scale(1.2);
    /* Scale up the arrow */
}

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
    float: left
}

.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
    left: 1px;
    right: auto
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #eee;
    cursor: default
}

.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
    display: none
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #888 transparent;
    border-width: 0 4px 5px 4px
}

.select2-container--default .select2-selection--multiple {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: var(--radius-md) !important;
    min-height: 40px !important;
    max-height: 64px !important;
    overflow-y: auto !important;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    padding: 4px 8px !important;
    cursor: text;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.select2-container--default .select2-selection--multiple.select2-selection--clearable {
    padding-right: 25px
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    cursor: pointer;
    font-weight: bold;
    height: 20px;
    margin-right: 10px;
    margin-top: 5px;
    position: absolute;
    right: 0;
    padding: 1px
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: rgba(var(--brand-primary-rgb), 0.15) !important;
    color: var(--brand-primary) !important;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.75) !important;
    border-radius: 4px !important;
    padding: 0 6px 0 18px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 2px !important;
    height: 24px !important;
    line-height: normal !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
}



.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: absolute !important;
    left: 5px !important;
    top: 47.5% !important;
    transform: translateY(-50%) !important;
    color: var(--brand-primary) !important;
    /* Match text color for glass look */
    font-size: 16px !important;
    font-weight: bold !important;
    border: none !important;
    background: transparent !important;
    /* Ensure no background */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0.7 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    background: none !important;
    color: #dc3545 !important;
    /* Red hover for remove action */
    outline: none !important;
    opacity: 1 !important;
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
    margin-left: 5px;
    margin-right: auto
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 5px;
    padding-right: 2px
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
    border-left: 1px solid #aaa;
    border-right: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__clear {
    float: left;
    margin-left: 10px;
    margin-right: auto
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--brand-primary) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    outline: 0;
}

.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #eee;
    cursor: default
}

.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
    display: none
}

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
    border-top-left-radius: 0;
    border-top-right-radius: 0
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #aaa
}

.select2-container--default .select2-search--inline .select2-search__field {
    background: transparent;
    border: none;
    outline: 0;
    box-shadow: none;
    -webkit-appearance: textfield
}

.select2-container--default .select2-results>.select2-results__options {
    max-height: 200px;
    overflow-y: auto
}

.select2-container--default .select2-results__option .select2-results__option {
    padding-left: 1em
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
    padding-left: 0
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -1em;
    padding-left: 2em
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -2em;
    padding-left: 3em
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -3em;
    padding-left: 4em
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -4em;
    padding-left: 5em
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -5em;
    padding-left: 6em
}

.select2-container--default .select2-results__option--group {
    padding: 0
}

.select2-container--default .select2-results__option--disabled {
    color: #999
}





.select2-container--default .select2-results__group {
    cursor: default;
    display: block;
    padding: 6px
}

.select2-container--classic .select2-selection--single {
    background-color: #f7f7f7;
    border: 1px solid #aaa;
    border-radius: 4px;
    outline: 0;
    background-image: -webkit-linear-gradient(top, #fff 50%, #eee 100%);
    background-image: -o-linear-gradient(top, #fff 50%, #eee 100%);
    background-image: linear-gradient(to bottom, #fff 50%, #eee 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)
}

.select2-container--classic .select2-selection--single:focus {
    border: 1px solid #5897fb
}

.select2-container--classic .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 28px
}

.select2-container--classic .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
    height: 26px;
    margin-right: 20px
}

.select2-container--classic .select2-selection--single .select2-selection__placeholder {
    color: #999
}

.select2-container--classic .select2-selection--single .select2-selection__arrow {
    background-color: #ddd;
    border: none;
    border-left: 1px solid #aaa;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    height: 26px;
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px;
    background-image: -webkit-linear-gradient(top, #eee 50%, #ccc 100%);
    background-image: -o-linear-gradient(top, #eee 50%, #ccc 100%);
    background-image: linear-gradient(to bottom, #eee 50%, #ccc 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)
}

.select2-container--classic .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0
}

.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
    float: left
}

.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
    border: none;
    border-right: 1px solid #aaa;
    border-radius: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    left: 1px;
    right: auto
}

.select2-container--classic.select2-container--open .select2-selection--single {
    border: 1px solid #5897fb
}

.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
    background: transparent;
    border: none
}

.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #888 transparent;
    border-width: 0 4px 5px 4px
}

.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    background-image: -webkit-linear-gradient(top, #fff 0%, #eee 50%);
    background-image: -o-linear-gradient(top, #fff 0%, #eee 50%);
    background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)
}

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-image: -webkit-linear-gradient(top, #eee 50%, #fff 100%);
    background-image: -o-linear-gradient(top, #eee 50%, #fff 100%);
    background-image: linear-gradient(to bottom, #eee 50%, #fff 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)
}

.select2-container--classic .select2-selection--multiple {
    background-color: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: text;
    outline: 0;
    padding-bottom: 5px;
    padding-right: 5px
}

.select2-container--classic .select2-selection--multiple:focus {
    border: 1px solid #5897fb
}

.select2-container--classic .select2-selection--multiple .select2-selection__clear {
    display: none
}

.select2-container--classic .select2-selection--multiple .select2-selection__choice {
    background-color: #e4e4e4;
    border: 1px solid #aaa;
    border-radius: 4px;
    display: inline-block;
    margin-left: 5px;
    margin-top: 5px;
    padding: 0
}

.select2-container--classic .select2-selection--multiple .select2-selection__choice__display {
    cursor: default;
    padding-left: 2px;
    padding-right: 5px
}

.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
    background-color: transparent;
    border: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    color: #888;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    padding: 0 4px
}

.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #555;
    outline: none
}

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
    margin-left: 5px;
    margin-right: auto
}

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 5px;
    padding-right: 2px
}

.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px
}

.select2-container--classic.select2-container--open .select2-selection--multiple {
    border: 1px solid #5897fb
}

.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0
}

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
}

.select2-container--classic .select2-search--dropdown .select2-search__field {
    border: 1px solid #aaa;
    outline: 0
}

.select2-container--classic .select2-search--inline .select2-search__field {
    outline: 0;
    box-shadow: none
}

.select2-container--classic .select2-dropdown {
    background-color: #fff;
    border: 1px solid transparent
}

.select2-container--classic .select2-dropdown--above {
    border-bottom: none
}

.select2-container--classic .select2-dropdown--below {
    border-top: none
}

.select2-container--classic .select2-results>.select2-results__options {
    max-height: 200px;
    overflow-y: auto
}

.select2-container--classic .select2-results__option--group {
    padding: 0
}

.select2-container--classic .select2-results__option--disabled {
    color: grey
}

.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #3875d7;
    color: #fff
}

.select2-container--classic .select2-results__group {
    cursor: default;
    display: block;
    padding: 6px
}

.select2-container--classic.select2-container--open .select2-dropdown {
    border-color: #5897fb
}

/* ==========================================================================
   ConnectVion - Select2 Premium Refinements & Validation
   ========================================================================== */

/* 1. Base Container & Glassmorphism */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s !important;
}

/* Single Select - Fixed 40px Height */
.select2-container--default .select2-selection--single {
    height: 40px !important;
    min-height: 40px !important;
}

/* Multi Select - Max 70px with Scrollbar */
.select2-container--default .select2-selection--multiple {
    min-height: 40px !important;
    max-height: 70px !important;
    overflow-y: auto !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    padding: 4px 8px !important;
}

/* Focus State */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--brand-primary) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb), 0.12), 0 8px 16px rgba(0, 0, 0, 0.06) !important;
}

/* 2. Dropdown (Glassmorphism) */
.select2-dropdown {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%) !important;
    backdrop-filter: blur(10px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
    margin-top: 4px !important;
    overflow: hidden !important;
    z-index: 9999 !important;
    animation: fadeInDown 0.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Option Styling */
.select2-results__option {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    color: var(--text-primary) !important;
    transition: background 0.15s ease !important;
    margin: 2px 6px !important;
    border-radius: 6px !important;
    background: transparent !important;
}



/* 3. Single Select Alignment & Placeholder */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 1rem !important;
    padding-right: 2rem !important;
    line-height: 38px !important;
    font-size: 0.9rem !important;
    color: var(--text-primary) !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(0, 0, 0, 0.45) !important;
    font-weight: 500 !important;
}

/* Clear Icon Alignment (Single) */
.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 100% !important;
    line-height: 38px !important;
    margin-right: 0 !important;
    position: absolute !important;
    right: 24px !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    color: rgba(0, 0, 0, 0.35) !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #dc3545 !important;
}

/* Arrow Alignment */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 4px !important;
    width: 24px !important;
    top: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 4. Multi Select Fixes */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: contents !important;
    padding: 0 !important;
}

/* Search Input Visibility & Alignment */
.select2-container--default .select2-search--inline .select2-search__field {
    margin: 0 !important;
    height: 30px !important;
    line-height: 30px !important;
    padding-left: 6px !important;
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
    background: transparent !important;
    vertical-align: middle !important;
    min-width: 80px !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: rgba(0, 0, 0, 0.45) !important;
    font-weight: 500 !important;
}

/* Clear Icon (Multi) */
.select2-container--default .select2-selection--multiple .select2-selection__clear {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    height: auto !important;
    padding: 4px !important;
    font-size: 14px !important;
}

/* Chips Styling (Reduced ~20%) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 2px !important;
    height: 24px !important;
    line-height: normal !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.75rem !important;
    padding: 0 6px 0 20px !important;
    border-radius: 6px !important;
    background: rgba(var(--brand-primary-rgb), 0.15) !important;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.75) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    left: 6px !important;
    font-size: 14px !important;
}

/* 5. Validation Integration */

/* Select2 Container Reset (Stop Double Icons) */
.select2-container.is-invalid,
.select2-container.is-valid {
    background: none !important;
    padding-right: 0 !important;
    border: none !important;
}

/* Validation State Styling (Inner Box) */
.select2-container.is-invalid .select2-selection,
.select2-container.is-valid .select2-selection {
    background-color: rgba(255, 255, 255, 0.75) !important;
    padding-right: 40px !important;
    background-size: 16px 16px !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
}

/* Invalid Icon */
.select2-container.is-invalid .select2-selection {
    border-color: rgba(220, 53, 69, 0.75) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
}

/* Valid Icon */
.select2-container.is-valid .select2-selection {
    border-color: rgba(25, 135, 84, 0.75) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
}

/* Adjust components when Validated */
.select2-container.is-invalid .select2-selection--single .select2-selection__arrow,
.select2-container.is-valid .select2-selection--single .select2-selection__arrow {
    right: 32px !important;
}

.select2-container.is-invalid .select2-selection--single .select2-selection__clear,
.select2-container.is-valid .select2-selection--single .select2-selection__clear {
    right: 48px !important;
}

.select2-container.is-invalid .select2-selection--multiple,
.select2-container.is-valid .select2-selection--multiple {
    padding-right: 45px !important;
}

.select2-container.is-invalid .select2-selection--multiple .select2-selection__clear,
.select2-container.is-valid .select2-selection--multiple .select2-selection__clear {
    right: 35px !important;
}

/* ==========================================================================
   OPTION STYLING - CLEANED & FIXED
   ========================================================================== */

/* Base option styling */
.select2-results__option {
    padding: 8px 12px !important;
    user-select: none;
    -webkit-user-select: none;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    margin: 2px 6px !important;
    transition: background 0.15s ease !important;
    color: var(--text-primary) !important;
    background: transparent !important;
    cursor: pointer;
}

/* HOVER State - ONLY for UNSELECTED items */
/* This is the light tint for hover */
.select2-results__option--highlighted:not(.select2-results__option--selected) {
    background: rgba(var(--brand-primary-rgb), 0.08) !important;
    color: var(--brand-primary) !important;
}

/* SELECTED State - Solid Brand Color */
/* Applied when item is selected */
.select2-results__option--selected {
    background-color: var(--brand-primary) !important;
    color: white !important;
    font-weight: 600 !important;
}

/* SELECTED + HOVER State - NO CHANGE, keep solid */
/* Important: Override any hover effects for selected items */
.select2-results__option--selected.select2-results__option--highlighted,
.select2-results__option--selected:hover {
    background-color: var(--brand-primary) !important;
    color: white !important;
    /* Remove any opacity/transparency */
}

/* Disabled state */
.select2-results__option--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   SPECIFIC FIXES FOR DEFAULT THEME
   ========================================================================== */

/* Default theme hover - only for unselected */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable:not(.select2-results__option--selected) {
    background: rgba(var(--brand-primary-rgb), 0.1) !important;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.5) !important;
    color: var(--brand-primary) !important;
}

/* Default theme selected */
.select2-container--default .select2-results__option--selected {
    background: var(--brand-primary) !important;
    color: white !important;
    font-weight: 600 !important;
}

/* Default theme selected+hover - no change */
.select2-container--default .select2-results__option--selected.select2-results__option--highlighted,
.select2-container--default .select2-results__option--selected:hover {
    background: var(--brand-primary) !important;
    color: white !important;
}

/* Select All / Deselect All Action Container */
.select2-actions-container {
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid #dbdbdb;
    display: flex;
    justify-content: space-between;
}
