/* Apply4U Select2. Loaded after the Select2 base stylesheet. */
.select2-container--apply4u {
    font-family: "DM Sans", sans-serif;
    font-size: 0.875rem;
    color: #102b4c;
    max-width: 100%;
    vertical-align: middle;
}

.select2-container--apply4u.select2-container--fluid {
    width: 100% !important;
    max-width: 100%;
}

.select2-container--hero {
    width: 220px !important;
    max-width: 100%;
}

.select2-container--apply4u .select2-selection--single,
.select2-container--apply4u .select2-selection--multiple {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    min-height: 42px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select2-container--apply4u.select2-container--sm .select2-selection--single,
.select2-container--apply4u.select2-container--sm .select2-selection--multiple {
    min-height: 32px;
    border-radius: 0.375rem;
}

.select2-container--apply4u .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 0.85rem;
    padding-right: 2rem;
    color: #102b4c;
    font-weight: 600;
}

.select2-container--apply4u.select2-container--sm .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    padding-left: 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.select2-container--apply4u .select2-selection--single .select2-selection__placeholder {
    color: #64748b;
    font-weight: 500;
}

.select2-container--apply4u .select2-selection--single .select2-selection__arrow {
    height: 40px;
    width: 1.75rem;
    right: 0.15rem;
}

.select2-container--apply4u.select2-container--sm .select2-selection--single .select2-selection__arrow {
    height: 30px;
}

.select2-container--apply4u .select2-selection--single .select2-selection__arrow b {
    border-color: #334155 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
    margin-left: -4px;
    margin-top: -2px;
}

.select2-container--apply4u.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #334155 transparent;
    border-width: 0 4px 5px 4px;
}

.select2-container--apply4u .select2-selection--single .select2-selection__clear,
.select2-container--apply4u .select2-selection--multiple .select2-selection__clear {
    color: #94a3b8;
    font-weight: 700;
    margin-right: 1.4rem;
    height: 40px;
    line-height: 40px;
}

.select2-container--apply4u.select2-container--sm .select2-selection__clear {
    height: 30px;
    line-height: 30px;
    margin-right: 1.1rem;
}

.select2-container--apply4u .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.3rem 0.4rem;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.select2-container--apply4u .select2-selection--multiple .select2-selection__choice {
    float: none;
    margin: 0;
    max-width: 100%;
    border: 0;
    border-radius: 999px;
    background: #fff4eb;
    color: #0b2545;
    padding: 0.15rem 0.45rem 0.15rem 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

.select2-container--apply4u .select2-selection--multiple .select2-selection__choice__remove {
    border: 0;
    background: transparent;
    color: #c2410c;
    font-weight: 700;
    margin-right: 0.15rem;
    padding: 0 0.25rem;
}

.select2-container--apply4u .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #9a3412;
    background: transparent;
}

.select2-container--apply4u .select2-search--inline .select2-search__field {
    margin: 0;
    min-height: 1.6rem;
    font-family: inherit;
    font-size: 0.8125rem;
    color: #102b4c;
}

.select2-container--apply4u.select2-container--focus .select2-selection,
.select2-container--apply4u.select2-container--open .select2-selection {
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
    outline: none;
}

.select2-container--apply4u.select2-container--disabled .select2-selection {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

select.field-invalid + .select2-container .select2-selection,
select.border-red-400 + .select2-container .select2-selection {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
}

.select2-container--open {
    z-index: 12000;
}

.select2-dropdown {
    z-index: 12000;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    font-family: "DM Sans", sans-serif;
    box-sizing: border-box;
    max-width: calc(100vw - 1rem);
}

.select2-container--apply4u .select2-search--dropdown {
    padding: 0.5rem;
}

.select2-container--apply4u .select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.45rem 0.7rem;
    font-family: inherit;
    font-size: 0.875rem;
    color: #102b4c;
    outline: none;
}

.select2-container--apply4u .select2-search--dropdown .select2-search__field:focus {
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.16);
}

.select2-results__options {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

.select2-container--apply4u .select2-results__option {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #102b4c;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.select2-container--apply4u .select2-results__option--highlighted.select2-results__option--selectable {
    background: #fff4eb;
    color: #0b2545;
}

.select2-container--apply4u .select2-results__option--selected {
    background: #f8fafc;
    font-weight: 600;
}

.select2-container--apply4u .select2-results__message {
    color: #64748b;
    padding: 0.65rem 0.75rem;
}

.cd-input .select2-container {
    flex: 1 1 auto;
    min-width: 0;
}

.cd-input .select2-container--apply4u .select2-selection {
    border: 0;
    background: transparent;
    box-shadow: none;
    min-height: 40px;
}

.cd-input .select2-container--apply4u.select2-container--focus .select2-selection,
.cd-input .select2-container--apply4u.select2-container--open .select2-selection {
    box-shadow: none;
}

@media (max-width: 575.98px) {
    .select2-container--hero {
        width: 100% !important;
    }

    .select2-container--apply4u .select2-selection--multiple .select2-selection__choice {
        max-width: calc(100vw - 3rem);
    }
}
