/* ==========================================
   LOCATION CASCADING DROPDOWNS STYLES
   For MEET forms - Country -> State -> City
   ========================================== */

.location-input-container {
    position: relative;
    width: 100%;
}

#country-search-input,
#state-search-input,
#city-search-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 0px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

#country-search-input:disabled,
#state-search-input:disabled,
#city-search-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.location-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
    margin: 0;
    padding: 0;
    list-style: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.location-list li {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 1px solid #f0f0f0;
}

.location-list li:last-child {
    border-bottom: none;
}

.location-list li:hover {
    background-color: #f5f5f5;
}

.location-list li:active {
    background-color: #e8e8e8;
}

/* Hide location lists by default */
.location-list.hidden {
    display: none;
}

/* Responsive adjustments for location dropdowns */
@media (max-width: 768px) {
    .location-list {
        max-height: 200px;
    }
    
    #country-search-input,
    #state-search-input,
    #city-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
