/* ==========================================================================
   MANUAL SEARCH - FORM & RESULTS
   ========================================================================== */

/* Search Form */
.ul-manual-search-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ul-manual-search-header {
    text-align: center;
    margin-bottom: 40px;
}

.ul-manual-search-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.ul-manual-search-header p {
    font-size: 17px;
    color: #555;
    margin: 0;
}

.ul-manual-search-form {
    background: #f8f9fa;
    border: 2px solid #AADDFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(170, 221, 255, 0.15);
}

.ul-search-field {
    margin-bottom: 24px;
}

.ul-search-field label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

/* Direct Select Styling - Minimal padding to show text */
.ul-styled-select {
    width: 100%;
    padding: 8px 10px !important;
    border: 2px solid #AADDFF !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background: #fff !important;
    color: #1a1a2e !important;
    cursor: pointer !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
}

.ul-styled-select:focus {
    outline: none !important;
    border-color: #77bbee !important;
    box-shadow: 0 0 0 3px rgba(170, 221, 255, 0.2) !important;
}

.ul-styled-select option {
    padding: 8px !important;
    color: #1a1a2e !important;
}

.ul-manual-search-form .ul-search-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #AADDFF;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
    color: #000 !important;
    transition: all 0.3s ease;
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    position: relative;
    z-index: 1;
}

/* Force the selected value to be visible */
.ul-manual-search-form .ul-search-field select:not([multiple]) {
    background-color: #fff !important;
    background-image: none !important;
}

.ul-manual-search-form .ul-search-field select option {
    color: #000 !important;
    background: #fff;
    font-weight: 600;
}

.ul-manual-search-form .ul-search-field select:focus {
    outline: none;
    border-color: #77bbee;
    box-shadow: 0 0 0 3px rgba(170, 221, 255, 0.2);
}

.ul-search-submit {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #AADDFF 0%, #88ccff 100%);
    color: #000;
    border: 2px solid #77bbee;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(170, 221, 255, 0.3);
}

.ul-search-submit:hover {
    background: linear-gradient(135deg, #99ccee 0%, #77bbee 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(170, 221, 255, 0.4);
}

.ul-search-help {
    margin-top: 30px;
    padding: 20px;
    background: #e5f3ff;
    border-radius: 12px;
    border-left: 4px solid #AADDFF;
}

.ul-search-help p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Search Results Page */
body.ul-manual-search-results {
    background: #fff !important;
}

body.ul-manual-search-results .site-content {
    background: #fff !important;
    padding: 0 !important;
}

.ul-search-results-page {
    padding: 40px 0;
    background: #fff;
}

.ul-results-header {
    background: linear-gradient(135deg, #f0f8ff 0%, #e5f3ff 100%);
    border: 2px solid #AADDFF;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 8px 24px rgba(170, 221, 255, 0.15);
}

.ul-results-flag {
    font-size: 72px;
    font-weight: 900;
    color: #AADDFF;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(170, 221, 255, 0.3);
}

.ul-results-header h1 {
    font-size: 42px;
    color: #1a1a2e;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.ul-results-category {
    font-size: 28px;
    color: #AADDFF;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.ul-results-meta {
    font-size: 14px;
    color: #555;
    font-weight: 600;
    margin: 0;
}

/* Laws List */
.ul-laws-list {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.ul-law-result-card {
    background: #f8f9fa;
    border: 2px solid #AADDFF;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ul-law-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(170, 221, 255, 0.25);
    border-color: #77bbee;
    background: #fff;
}

.ul-law-result-title {
    font-size: 22px;
    color: #AADDFF;
    margin: 0 0 18px 0;
    font-weight: 800;
    line-height: 1.3;
}

.ul-law-statute-code {
    background: linear-gradient(135deg, #AADDFF 0%, #88ccff 100%);
    color: #1a1a2e;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 24px;
    border: 2px solid #77bbee;
    box-shadow: 0 2px 8px rgba(170, 221, 255, 0.2);
}

.ul-law-detail {
    margin: 24px 0;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #AADDFF;
}

.ul-law-detail strong {
    display: block;
    color: #AADDFF;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 12px;
}

.ul-law-detail ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ul-law-detail li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.ul-law-detail li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #AADDFF;
    font-weight: 900;
    font-size: 16px;
}

.ul-law-detail p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.ul-law-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #AADDFF 0%, #88ccff 100%);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border-radius: 999px;
    border: 2px solid #77bbee;
    transition: all 0.3s ease;
}

.ul-law-link:hover {
    background: linear-gradient(135deg, #99ccee 0%, #77bbee 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(170, 221, 255, 0.3);
    color: #000;
    text-decoration: none;
}

/* No Results */
.ul-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border: 2px solid #AADDFF;
    border-radius: 16px;
}

.ul-no-results p {
    font-size: 18px;
    color: #555;
    margin: 0 0 30px 0;
}

/* Search Again Button */
.ul-search-again {
    text-align: center;
    padding: 40px 20px;
}

.ul-search-again-btn {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(135deg, #AADDFF 0%, #88ccff 100%);
    color: #000;
    border: 2px solid #77bbee;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(170, 221, 255, 0.3);
}

.ul-search-again-btn:hover {
    background: linear-gradient(135deg, #99ccee 0%, #77bbee 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(170, 221, 255, 0.4);
    color: #000;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
    .ul-manual-search-form {
        padding: 30px 20px;
    }
    
    .ul-results-header {
        padding: 30px 20px;
    }
    
    .ul-results-flag {
        font-size: 48px;
    }
    
    .ul-results-header h1 {
        font-size: 28px;
    }
    
    .ul-results-category {
        font-size: 22px;
    }
    
    .ul-law-result-card {
        padding: 24px;
    }
}
