/* "Filter Government Jobs" panel + its collapsed search-bar trigger. Shared by the homepage
   (Views/Jobs/Index.cshtml) and the dedicated search results page
   (Views/Jobs/GovJobsSearch.cshtml) so tweaks only need to happen in one place. Dark-mode
   overrides live in Content/css/dark-mode.css (loaded sitewide already). */

.gov-job-search-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 65%;
    margin: 0 auto 6px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #eef0f7;
    border-radius: 999px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 16px 32px rgba(15, 23, 42, 0.10);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    cursor: pointer;
    text-align: left;
    transition: box-shadow .15s ease, transform .15s ease;
}
.gov-job-search-trigger:hover { box-shadow: 0 8px 20px rgba(67, 56, 202, 0.18); transform: translateY(-1px); }
.gov-job-search-trigger-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(125deg, #0f172a 0%, #1e1b4b 55%, #4338ca 100%);
    color: #fff;
    font-size: 0.9rem;
}
.gov-job-search-trigger-text { flex: 1 1 auto; font-size: 0.9rem; color: #6c757d; }
.gov-job-search-trigger-cta {
    flex: 0 0 auto;
    padding: 8px 18px;
    border-radius: 999px;
    background: #eef0ff;
    color: #4338ca;
    font-size: 0.82rem;
    font-weight: 700;
}
@media (max-width: 767px) {
    .gov-job-search-trigger { max-width: 100%; }
}
@media (max-width: 576px) {
    .gov-job-search-trigger-text { display: none; }
    .gov-job-search-trigger { justify-content: space-between; }
}

.gov-job-filter {
    width: 100%;
    max-width: 65%;
    margin: 0 auto 6px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #eef0f7;
    border-radius: 18px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 16px 32px rgba(15, 23, 42, 0.10);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
@media (max-width: 767px) {
    .gov-job-filter { max-width: 100%; }
}
.gov-job-filter-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gov-job-filter-close {
    margin-left: auto;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f1f3f9;
    color: #6c757d;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.gov-job-filter-close:hover { background: #e2e5f5; color: #212529; }
.gov-job-filter-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(125deg, #0f172a 0%, #1e1b4b 55%, #4338ca 100%);
    color: #fff;
    font-size: 1rem;
}
.gov-job-filter-title { font-weight: 700; font-size: 1rem; color: #212529; line-height: 1.3; }
.gov-job-filter-subtitle { font-size: 0.8rem; color: #6c757d; margin-top: 2px; }
.gov-job-filter-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.gov-job-filter-field { flex: 1 1 200px; min-width: 160px; display: flex; flex-direction: column; gap: 6px; }
.gov-job-filter-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #6c757d; }
.gov-job-filter-select-wrap { position: relative; display: flex; align-items: center; }
.gov-job-filter-select-icon {
    position: absolute;
    left: 13px;
    color: #4338ca;
    font-size: 0.85rem;
    pointer-events: none;
}
.gov-job-filter-caret {
    position: absolute;
    right: 13px;
    color: #94a3b8;
    font-size: 0.72rem;
    pointer-events: none;
}
.gov-job-filter-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 11px 32px 11px 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #f8fafc;
    color: #212529;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.gov-job-filter-select:hover { border-color: #c7d2fe; background: #fff; }
.gov-job-filter-select:focus {
    outline: none;
    border-color: #4338ca;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15);
}
.gov-job-filter-input { cursor: text; padding-right: 14px; }
.gov-job-filter-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid #eef0f7;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    max-height: 240px;
    overflow-y: auto;
}
.gov-job-filter-suggestion-item {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #212529;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f9;
}
.gov-job-filter-suggestion-item:last-child { border-bottom: none; }
.gov-job-filter-suggestion-item:hover,
.gov-job-filter-suggestion-item.active { background: #eef0ff; color: #4338ca; }
.gov-job-filter-suggestion-empty { padding: 10px 14px; font-size: 0.82rem; color: #94a3b8; }
.gov-job-filter-apply {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    background: linear-gradient(125deg, #0f172a 0%, #1e1b4b 55%, #4338ca 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(67, 56, 202, 0.28);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    white-space: nowrap;
}
.gov-job-filter-apply:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(67, 56, 202, 0.36); }
.gov-job-filter-apply:active { transform: translateY(0); }
.gov-job-filter-apply:disabled { opacity: 0.7; cursor: default; transform: none; }
.gov-job-filter-reset {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    border: 1.5px solid #fecdd3;
    background: #fff5f5;
    color: #dc3545;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.gov-job-filter-reset:hover { background: #dc3545; color: #fff; border-color: #dc3545; }
@media (max-width: 576px) {
    .gov-job-filter { padding: 16px; border-radius: 16px; }
    .gov-job-filter-field { flex: 1 1 100%; }
    .gov-job-filter-apply,
    .gov-job-filter-reset { flex: 1 1 100%; justify-content: center; }
}

/* "Advanced Search" toggle -- reveals Education + Profession alongside the default State +
   Job Title fields. Collapsed by default; auto-expanded server-side when either already has a
   value (e.g. returning to a search-page URL that includes eduId/profId). */
.gov-job-filter-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 0;
    border: none;
    background: none;
    color: #4338ca;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}
.gov-job-filter-advanced-toggle:hover { text-decoration: underline; }
.gov-job-filter-advanced-caret { font-size: 0.68rem; transition: transform .15s ease; }
.gov-job-filter-advanced-toggle[aria-expanded="true"] .gov-job-filter-advanced-caret { transform: rotate(180deg); }
.gov-job-filter-advanced { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e2e8f0; }
