/* Searchable college field (assets/js/college-picker.js) — shared by the public and admin forms. */

.cpick {
    position: relative;
}

.cpick__native,
.cpick__status {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.cpick__input {
    cursor: text;
    text-overflow: ellipsis;
}

.cpick.is-open .cpick__input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.cpick__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 25;
    max-height: min(320px, 55vh);
    margin: -1px 0 0;
    padding: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
    background: #fff;
    border: 1.5px solid #1668c4;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 28px rgba(10, 45, 90, .18);
    text-align: left;
}

.cpick__option {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 7px 10px;
    border-radius: 7px;
    cursor: pointer;
    line-height: 1.3;
}

.cpick__option + .cpick__option {
    margin-top: 1px;
}

.cpick__name {
    font-size: 15px;
    font-weight: 600;
    color: #13335a;
}

.cpick__meta {
    font-size: 12.5px;
    color: #5d6f86;
}

.cpick__option.is-active {
    background: #e6f0fb;
}

.cpick__option[aria-selected="true"] {
    box-shadow: inset 3px 0 0 #1668c4;
}

.cpick__option[aria-selected="true"] .cpick__name {
    color: #0c52a3;
}

/* "Others" — always last, set apart from the listed colleges. */
.cpick__option--always {
    margin-top: 4px !important;
    border-top: 1px dashed #c7d6e8;
    border-radius: 0 0 7px 7px;
}

.cpick__empty + .cpick__option--always {
    margin-top: 0 !important;
}

.cpick__empty {
    padding: 10px;
    font-size: 14px;
    color: #5d6f86;
}

@media (forced-colors: active) {
    .cpick__option.is-active {
        outline: 2px solid Highlight;
    }
}
