/* RegistrationMultiSelect.css — V-13 dropdown widget for <select multiple>
   on Step 2 (Schwerpunkt). Built around the native select so form submission
   keeps working (name="...[specializations][]"). The native select is
   visually hidden but stays in the DOM. */

.CustomSelectWrap.MultiSelectHidden{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.MultiSelectWidget{
    position: relative;
    width: 100%;
    font-family: inherit;
}

.MultiSelectTrigger{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    min-height: 48px;
    padding: 8px 40px 8px 14px;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    text-align: left;
    box-sizing: border-box;
    position: relative;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.MultiSelectTrigger:hover{
    border-color: #adb5bd;
}
.MultiSelectTrigger:focus,
.MultiSelectTrigger.is-open{
    outline: none;
    border-color: #3D86EC;
    box-shadow: 0 0 0 3px rgba(46, 111, 212, .15);
}
.MultiSelectTrigger::after{
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6c757d;
    border-bottom: 2px solid #6c757d;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .15s ease;
    pointer-events: none;
}
.MultiSelectTrigger.is-open::after{
    transform: translateY(-20%) rotate(-135deg);
}

.MultiSelectPlaceholder{
    color: #6c757d;
}

.MultiSelectChip{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 4px 4px 10px;
    background: #e7f0fc;
    color: #1e4e9a;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
    max-width: 100%;
}
.MultiSelectChip__label{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}
.MultiSelectChip__remove{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(30, 78, 154, .12);
    border: 0;
    color: #1e4e9a;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    font-family: inherit;
}
.MultiSelectChip__remove:hover{
    background: rgba(30, 78, 154, .25);
}

.MultiSelectPanel{
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    padding: 4px 0;
}
.MultiSelectPanel.is-open{
    display: block;
}

.MultiSelectOption{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #212529;
    user-select: none;
    line-height: 1.3;
}
.MultiSelectOption:hover,
.MultiSelectOption.is-focused{
    background: #f1f6fd;
}
.MultiSelectOption.is-selected{
    background: #e7f0fc;
    color: #1e4e9a;
    font-weight: 500;
}
.MultiSelectOption__check{
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 1.5px solid #adb5bd;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-sizing: border-box;
    transition: background .12s ease, border-color .12s ease;
}
.MultiSelectOption.is-selected .MultiSelectOption__check{
    background: #3D86EC;
    border-color: #3D86EC;
}
.MultiSelectOption.is-selected .MultiSelectOption__check::after{
    content: "";
    width: 4px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: -2px;
}

.MultiSelectPanel__empty{
    padding: 14px;
    color: #6c757d;
    font-size: 14px;
    text-align: center;
}

/* V-16: hide Schwerpunkt when no specializations apply to the chosen profession */
.FormField.SchwerpunktHidden{
    display: none;
}
