/* ==========================================================================
   ELEMIND POPUP ROUTER - CORE STYLES
   Specifications: Minimal, Elegant, Clean, Modern
   ========================================================================== */

/* 1. Dark Overlay Background */
.elemind-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Efek gelap transparan */
    display: none; /* Dikendalikan oleh JS (flex saat aktif) */
    justify-content: center;
    align-items: center;
    z-index: 999999 !important; /* Memastikan di atas Elementor/Header */
    backdrop-filter: blur(4px); /* Efek blur halus pada background */
}

/* 2. Main Modal Box */
.elemind-popup-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 40px 30px;
    border-radius: 18px; /* Sudut melengkung sesuai spec */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Soft shadow */
    position: relative;
    text-align: center;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 3. Close Button (X) */
.elemind-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #999999;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.elemind-popup-close:hover {
    color: #333333;
}

/* 4. Branding & Typography Elements */
.elemind-popup-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.elemind-popup-subtitle {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.elemind-popup-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.elemind-popup-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* 5. Search Input Wrapper & Field */
.elemind-search-wrapper {
    position: relative; /* Krusial agar dropdown hasil pencarian posisinya pas */
    margin-bottom: 25px;
    text-align: left;
}

.elemind-search-wrapper input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1.5px solid #0d66d0; /* Warna biru utama Elemind */
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.elemind-search-wrapper input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(13, 102, 208, 0.15);
}

/* 6. DROPDOWN AJAX SUGGESTIONS (Penyebab Suggestion Tidak Muncul) */
#elemind-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    margin: 5px 0 0 0;
    padding: 0;
    list-style: none;
    z-index: 9999999 !important; /* Wajib sangat tinggi agar di depan modal */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

/* Item Rekomendasi */
.elemind-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    color: #333333;
    font-size: 14px;
    text-align: left;
    transition: background-color 0.15s, color 0.15s;
}

.elemind-suggestion-item:last-child {
    border-bottom: none;
}

.elemind-suggestion-item strong {
    color: #1a1a1a;
}

.elemind-suggestion-item .prov-name {
    color: #777777;
    font-size: 13px;
    margin-left: 5px;
}

/* Efek Hover di List Kota */
.elemind-suggestion-item:hover {
    background-color: #f0f6ff;
}

.elemind-suggestion-item:hover strong,
.elemind-suggestion-item:hover .prov-name {
    color: #0d66d0;
}

/* State Jika Tidak Ada Hasil */
.elemind-no-result {
    padding: 15px;
    color: #999999;
    font-size: 14px;
    text-align: center;
}

/* 7. CTA Button Style (Pill Shape) */
#elemind-submit-btn {
    background-color: #0d66d0; /* Warna biru utama Elemind */
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px; /* Membuat bentuk pill sempurna */
    cursor: pointer;
    display: inline-block;
    width: auto;
    min-width: 160px;
    transition: background-color 0.2s, opacity 0.2s;
    box-shadow: 0 4px 12px rgba(13, 102, 208, 0.2);
}

#elemind-submit-btn:hover {
    background-color: #0a52a8;
}

/* State tombol mati sebelum pilih kota */
#elemind-submit-btn:disabled {
    background-color: #cccccc;
    color: #888888;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}