/* =========================================
   CUSTOM SELECT DROPDOWN (PREMIUM)
   ========================================= */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 200px;
    /* Fixed width or auto */
}

.custom-select-trigger {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 12px 25px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    /* Bold */
    color: #000;
    /* Pure Black */
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    background: #fff;
    z-index: 100;
    /* Ensure on top */
}

/* Arrow */
.custom-select-trigger::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: rotate(180deg);
}

/* Dropdown Options */
.custom-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 20px;
    font-family: var(--font-heading);
    /* Switch to Heading font for consistency */
    font-size: 0.9rem;
    color: #000;
    /* Darker */
    font-weight: 600;
    /* Thicker */
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f5f5f5;
    background: #fff;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: #f9f9f9;
    color: #000;
    padding-left: 25px;
    /* Slight slide effect */
}

.custom-option.selected {
    background-color: #f0f0f0;
    color: #000;
    font-weight: 700;
    position: relative;
}

/* Scrollbar within dropdown */
.custom-options::-webkit-scrollbar {
    width: 6px;
}

.custom-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.custom-options::-webkit-scrollbar-thumb:hover {
    background: #999;
}