/* Custom Select Dropdown Styling */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #FDF9FA; /* Slightly lighter than FAF5F7 */
    cursor: pointer;
    transition: all 0.25s ease;
}

.custom-select-trigger.input-error,
.custom-select-wrapper.input-error .custom-select-trigger {
    border-color: #E53935 !important;
    background: #FFF5F5 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.25) !important;
    animation: customShake 0.4s ease-in-out;
}

@keyframes customShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.custom-select-trigger span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px; /* space between text and icon */
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #E91E63;
    background: #FFF;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15);
}

.custom-select-trigger i {
    color: #AD1457;
    transition: transform 0.3s;
    font-size: 12px;
}

.custom-select-wrapper.open .custom-select-trigger i {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 100%;
    white-space: nowrap;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(74, 8, 26, 0.12);
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Custom Scrollbar for Options */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}
.custom-select-options::-webkit-scrollbar-thumb {
    background-color: #fce4ec;
    border-radius: 6px;
}
.custom-select-options::-webkit-scrollbar-track {
    background: #fff;
}

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

.custom-option {
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: #FFF2F6;
    color: #E91E63;
    padding-left: 20px;
}

.custom-option.selected {
    background: #E91E63;
    color: #FFF;
    font-weight: 600;
}
