/* --- AUTOCOMPLETE DROPDOWN (Guest JS) --- */
.form-group {
    position: relative;
    /* Ensure absolute dropdown anchors here */
    margin-bottom: 1rem;
}

/* Match .multi-select-options */
.autocomplete-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20000;
    border: 1px solid #ddd;
    /* Darker border */
    border-top: none;
    /* Seamless connection if input has bottom border, or specific style */
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* Slightly stronger shadow */
    background-color: #ffffff;
    /* Ensure non-transparent */
    animation: fadeIn 0.15s ease-out;
    padding: 0;
    margin-top: 0;
    /* Attach directly to input */
    box-sizing: border-box;
    /* Crucial for width calculations */
}

/* Match .multi-select-option */
.autocomplete-item {
    padding: 12px 16px;
    /* Increased padding for better spacing */
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    /* Subtle separator for "spacing antar data" */
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #333;
    transition: background-color 0.1s;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
    color: #333;
    padding-left: 20px;
    /* Slight movement on hover */
    transition: all 0.2s;
}

.autocomplete-item strong {
    color: var(--gold, #D4AF37);
    /* Fallback gold */
    font-weight: 700;
}

/* Scrollbar matching MultiSelect */
.autocomplete-items::-webkit-scrollbar {
    width: 6px;
    /* Elegant thin scrollbar */
}

.autocomplete-items::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.autocomplete-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- COMBOBOX STYLES --- */
.combobox-wrapper {
    position: relative;
    width: 100%;
}

.combobox-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    /* Allows text selection and clicking input */
    font-size: 0.9rem;
    transition: color 0.2s;
}

/* Change icon color when input is focused or active */
.form-control:focus+.combobox-icon {
    color: var(--gold, #D4AF37);
}