/* =========================================
   SELECT2 FORM STYLES (FULL ADJUSTED)
   ========================================= */

/* Remove default select text indicators */
.choices__list--dropdown .choices__item--selectable[data-select-text]::after,
.choices__list[aria-expanded] .choices__item--selectable[data-select-text]::after {
    display: none;
}

/* FORM GROUP ALIGNMENT */
.form-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    color: #374151;
    line-height: 1.2;
}

.form-group .select2-container {
    width: 100% !important;
}

/* =========================================
   SELECT2 SINGLE
   ========================================= */

.form-group .select2-selection--single,
.form-group .select2-selection--multiple {
    min-height: 28px;
    display: flex;
    align-items: center;
}

.form-select.select2-container {
    padding: 0;
    border: unset;
    border-radius: unset;
    box-shadow: unset;
}

.select2-container .select2-choice {
    display: block;
    height: 36px !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
    border: 1px solid #E4E4E7 !important;
    border-radius: 6px;
    background: #fff !important;
    color: var(--dark);
    line-height: 26px;
    user-select: none;
    background-image: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select2-container .select2-choice > .select2-chosen {
    display: block;
    padding: 7px 12px;
    font-size: 0.875rem !important;
    font-family: var(--font);
    line-height: 1.25rem;
    height: 36px;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-right: 18px !important;
}

.select2-container .select2-choice .select2-arrow {
    border-left: none !important;
    border-radius: unset !important;
    background: #fff !important;
    background-image: none !important;
}

.select2-container .select2-choice .select2-arrow b {
    display: block;
    width: 100%;
    height: 100%;
    background-position-y: 3px !important;
}

.select2-dropdown-open .select2-choice .select2-arrow b {
    background-position: -18px 3px;
}

/* Focus State */
.select2-container-active .select2-choice {
    border: 1px solid #E4E4E7 !important;
    box-shadow: var(--input-shadow-focus);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   SELECT2 DROPDOWN
   ========================================= */

.select2-drop {
    position: absolute;
    z-index: 9999;
    margin-top: 4px !important;
    text-transform: uppercase;
    background: #fff;
    border: 1px solid #E4E4E7 !important;
    border-radius: 6px;
    box-shadow: var(--input-shadow);
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--dark);
    font-family: var(--font);
    letter-spacing: 0.015em;
    padding: 7px 0 0;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.select2-search {
    display: inline-block;
    width: 100%;
    padding: 0 4px !important;
    position: relative;
    z-index: 10000;
}

.select2-search input {
    height: 36px;
    margin: 0;
    padding: 7px 12px;
    width: 100%;
    border: 1px solid #E4E4E7 !important;
    border-radius: 6px !important;
    background: none !important;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--dark);
    font-family: var(--font);
    box-shadow: var(--input-shadow);
    transition: all 0.15s ease;
}

/* DROPDOWN RESULTS */
.select2-results {
    max-height: 200px;
    padding: 0 0 0 4px;
    margin: 4px 4px 4px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.select2-results li {
    padding: 7px 12px;
    color: var(--dark);
    border-radius: 6px;
    transition: background 0.15s ease;
}

.select2-results li:hover,
.select2-results li.select2-highlighted {
    background-color: #f3f4f6;
}
.select2-results .select2-highlighted {
    background: #000000 !important;
    color: #fff;
}
.select2-results .select2-result-label {
    padding: 0 !important;
}

/* =========================================
   SELECT2 MULTIPLE
   ========================================= */

.select2-container-multi .select2-choices {
    min-height: 36px !important;
    padding: 4px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    background: #fff !important;
    border: 1px solid #E4E4E7 !important;
    border-radius: 6px;
    cursor: pointer !important;
    transition: all 0.15s ease;
}

.select2-container-multi.select2-container-active .select2-choices {
    border: 1px solid #E4E4E7 !important;
    box-shadow: var(--input-shadow-focus) !important;
}

/* MULTIPLE TAGS */
.select2-container-multi .select2-choices .select2-search-choice {
    position: relative;
    padding: 4px 10px;
    margin: 0;
    border: 1px solid #E4E4E7;
    border-radius: 6px;
    color: var(--dark);
    background: #fff !important;
    cursor: pointer;
    line-height: normal !important;
}

.select2-container-multi .select2-choices .select2-search-choice > div {
    padding-right: 12px;
}

/* CLOSE ICON */
.select2-search-choice-close {
    width: 12px;
    height: 12px;
    top: 8px;
    right: 4px;
}

.select2-container-multi .select2-search-choice-close {
    left: unset;
}

/* =========================================
   GENERAL INTERACTIONS
   ========================================= */

.select2-container *:focus {
    outline: none !important;
}

.select2-container .select2-choice:hover,
.select2-container-multi .select2-choices:hover {
    border-color: #d1d5db !important;
}
