/* =========================================
   CUSTOM PREMIUM DROPDOWN STYLES
   ========================================= */

/* Container */
.custom-dropdown-container {
    position: relative;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    /* Ensure brand font */
}

/* Trigger (The closed box) */
.dropdown-trigger {
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0 20px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-trigger:hover {
    border-color: #5aac4e;
    background: #fff;
}

.dropdown-trigger.active {
    border-color: #5aac4e;
    box-shadow: 0 0 0 4px rgba(90, 172, 78, 0.1);
    /* Focus ring */
    background: #fff;
}

.dropdown-trigger span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-trigger i {
    color: #5aac4e;
    font-size: 18px;
}

/* Arrow Animation */
.dropdown-arrow {
    color: #999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
    color: #5aac4e;
}

/* The Options List (The Content) */
.dropdown-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 16px;
    /* softer rounded corners */
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    /* Ensure it stays on top */

    /* Animation defaults */
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;

    max-height: 350px;
    overflow-y: auto;
}

/* Scrollbar styling */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.dropdown-options.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Individual Options */
.custom-option {
    padding: 14px 16px;
    margin-bottom: 4px;
    /* tiny gap between items */
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    color: #444;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.custom-option:last-child {
    margin-bottom: 0;
}

.custom-option i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    /* Circle icon bg */
    color: #777;
    font-size: 12px;
    transition: all 0.2s ease;
}

/* Hover State */
.custom-option:hover {
    background-color: #f6fbf6;
    /* Very light green */
    color: #2c3e50;
    border-color: rgba(90, 172, 78, 0.1);
}

.custom-option:hover i {
    background: #5aac4e;
    color: white;
    transform: scale(1.1);
}

/* Selected State */
.custom-option.selected {
    background-color: #e8f5e9;
    color: #1b5e20;
    font-weight: 600;
}

.custom-option.selected i {
    background: #5aac4e;
    color: white;
}

/* Filled Trigger State */
.dropdown-trigger.has-value {
    color: #1b5e20;
    font-weight: 500;
    background: #fdfdfd;
}