/* Custom Select Dropdown Styles */

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-button {
    width: 100%;
    padding: 14px 18px;
    padding-right: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    color: var(--text-color, #e0e0e0);
    font-family: var(--primary-font, 'Inter', sans-serif);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-align: left;
}

.custom-select-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-select-button:focus {
    outline: none;
    border-color: var(--accent-color, #fff);
    background: rgba(255, 255, 255, 0.08);
}

.custom-select-wrapper.open .custom-select-button {
    border-color: var(--accent-color, #fff);
    background: rgba(255, 255, 255, 0.08);
}

.custom-select-button-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.custom-select-wrapper.open .custom-select-button-icon {
    transform: rotate(180deg);
    color: var(--accent-color, #fff);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--card-background, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 250px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 10001;
}

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

.custom-select-option {
    padding: 12px 18px;
    color: var(--text-color, #e0e0e0);
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 0;
}

.custom-select-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.custom-select-option:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.custom-select-option:hover,
.custom-select-option.highlighted {
    background: rgba(255, 255, 255, 0.1);
}

.custom-select-option.selected {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-color, #fff);
    font-weight: 500;
}

.custom-select-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-select-option.disabled:hover {
    background: transparent;
}

/* Scrollbar styling */
.custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* For contact page form */
.contact-page-form .custom-select-button {
    padding: 16px 20px;
    padding-right: 50px;
    border-radius: 10px;
}

.contact-page-form .custom-select-dropdown {
    border-radius: 10px;
}

.contact-page-form .custom-select-option {
    padding: 14px 20px;
}

.contact-page-form .custom-select-option:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.contact-page-form .custom-select-option:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

