/* Custom Dropdown Styling extracted from join-talent.html */
.custom-select-wrapper select { display: none; } /* Hide original */

.custom-select-wrapper {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    width: 100%;
    z-index: 50; /* Ensure high stacking context */
}

.select-selected {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.select-selected:after {
    content: "";
    width: 0.6em; height: 0.6em;
    border-right: 2px solid rgba(255,255,255,0.3);
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s;
}

.select-selected.select-arrow-active:after {
    transform: rotate(225deg) translateY(-2px);
    border-color: var(--brand-purple, #7350A0);
}

.select-selected.select-arrow-active {
    border-color: var(--brand-purple, #7350A0);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(115, 80, 160, 0.2);
}

/* The Dropdown List */
.select-items {
    position: absolute;
    background-color: #0a0a0a;
    border: 1px solid rgba(115, 80, 160, 0.3);
    top: 110%; left: 0; right: 0;
    z-index: 100; /* Super high z-index */
    border-radius: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.select-items.select-open {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}

.select-items div {
    color: #ffffff;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}
.select-items div:last-child { border-bottom: none; }
.select-items div:hover { background-color: rgba(115, 80, 160, 0.2); color: #fff; }
.same-as-selected { background-color: rgba(115, 80, 160, 0.1); color: var(--brand-purple, #7350A0) !important; }

.select-items::-webkit-scrollbar { width: 6px; }
.select-items::-webkit-scrollbar-track { background: #000; border-radius: 8px; }
.select-items::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; }
.select-items::-webkit-scrollbar-thumb:hover { background: var(--brand-purple, #7350A0); }

.select-selected.input-error {
    border-color: var(--brand-pink, #eb1a77) !important;
    box-shadow: 0 0 10px rgba(235, 26, 119, 0.3) !important;
    animation: shake 0.5s;
}
