/* Custom Select Box - Premium & Luxury Design */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
    outline: none !important;
}

.custom-select-wrapper:focus {
    outline: none !important;
}

.custom-select-wrapper * {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.custom-select-wrapper select {
    display: none;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid #e1e8ed;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.custom-select-trigger:focus {
    outline: none !important;
}

.custom-select-trigger:active {
    outline: none !important;
}

.custom-select-trigger:hover {
    border-color: #ff8c00;
    background: #fffbf7;
    box-shadow: 0 2px 6px rgba(255, 140, 0, 0.08);
    transform: translateY(-1px);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #ff8c00 !important;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(255, 140, 0, 0.12) !important;
    border-radius: 10px 10px 0 0;
    transform: translateY(0);
    outline: none !important;
}

.custom-select-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all 0.25s ease;
    border: 1px solid #e1e8ed;
}

.custom-select-arrow::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #636e72;
    transition: transform 0.25s ease;
}

.custom-select-wrapper.open .custom-select-arrow {
    background: #ff8c00;
    border-color: #ff8c00;
    transform: rotate(180deg);
}

.custom-select-wrapper.open .custom-select-arrow::before {
    border-top-color: #ffffff;
}

.custom-select-trigger:hover .custom-select-arrow {
    background: #ff8c00;
    border-color: #ff8c00;
}

.custom-select-trigger:hover .custom-select-arrow::before {
    border-top-color: #ffffff;
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #ff8c00;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #2d3436;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-left: 2px solid transparent;
    outline: none !important;
}

.custom-select-option:focus {
    outline: none !important;
}

.custom-select-option:hover {
    color: #ff8c00;
    font-weight: 500;
    background: rgba(255, 140, 0, 0.04);
    border-left-color: #ff8c00;
}

.custom-select-option.selected {
    background: rgba(255, 140, 0, 0.06);
    color: #ff8c00;
    font-weight: 600;
    border-left: 2px solid #ff8c00;
}

.custom-select-option.selected::after {
    content: "✓";
    color: #ff8c00;
    font-weight: bold;
    font-size: 16px;
}

.custom-select-option:first-child {
    margin-top: 2px;
}

.custom-select-option:last-child {
    border-radius: 0 0 8px 8px;
    margin-bottom: 2px;
}

/* Scrollbar Styling - Clean Design */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 0 0 8px 0;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: #ff8c00;
    border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #ff6b00;
}

/* Focus/Active States - Enhanced */
.custom-select-wrapper:focus-within .custom-select-trigger {
    border-color: #ff8c00;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.12),
        0 4px 16px rgba(255, 140, 0, 0.2);
}

/* Disabled State - Enhanced */
.custom-select-wrapper.disabled .custom-select-trigger {
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: not-allowed;
    opacity: 0.5;
    border-color: #dee2e6;
}

.custom-select-wrapper.disabled .custom-select-trigger:hover {
    border-color: #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transform: none;
}

.custom-select-wrapper.disabled .custom-select-arrow {
    background: linear-gradient(135deg, #adb5bd, #868e96);
    box-shadow: none;
}

/* Loading State */
.custom-select-wrapper.loading .custom-select-trigger {
    pointer-events: none;
    opacity: 0.7;
}

.custom-select-wrapper.loading .custom-select-arrow {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Text styling inside trigger */
.custom-select-text {
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding-right: 12px;
}

/* Mobile Responsive - Enhanced */
@media (max-width: 768px) {
    .custom-select-trigger {
        padding: 12px 16px;
        font-size: 14px;
    }

    .custom-select-option {
        padding: 12px 16px;
        font-size: 14px;
    }

    .custom-select-option:hover,
    .custom-select-option.selected {
        padding-left: 20px;
    }

    .custom-select-options {
        max-height: 250px;
    }

    .custom-select-arrow {
        width: 22px;
        height: 22px;
    }
}

/* Animation for opening - Enhanced */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-select-wrapper.open .custom-select-options {
    animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ripple effect on trigger click */
.custom-select-trigger::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.custom-select-trigger:active::after {
    width: 300px;
    height: 300px;
}
