/* --- Google Font Import for clean look --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.lawyer-hero {
    background: linear-gradient(90deg, #021128 0%, #005adb 100%);
    padding: 80px 20px 0px 20px;
    font-family: 'outfit', sans-serif;
    color: #ffffff;
    overflow: hidden;
}

.lawyer-hero__container {
    max-width: 1140px;
    margin: 0 auto;
}

/* Breadcrumb */
.lawyer-hero__breadcrumb {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Headings */
.lawyer-hero__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.lawyer-hero__subtitle {
    font-size: 1rem;
    opacity: 0.75;
    margin: 0 0 35px 0;
    line-height: 1.5;
}

/* Tabs Container (Attached to the white box) */
.lawyer-search__tabs-container {
    background: #004ec4;
    display: inline-flex;
    padding: 6px;
    border-radius: 10px 10px 0 0;
}

.lawyer-search__tab {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lawyer-search__tab--active {
    background: #ffffff;
    color: #005adb;
}

.lawyer-search-panel {
    display: none;
}

.lawyer-search-panel.is-active {
    display: block;
}

.fl-name-search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.fl-name-search-tab {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.fl-name-search-tab.is-active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.fl-name-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.fl-name-firm-wide {
    grid-column: 1 / -1;
}

.fl-name-search-actions {
    margin-top: 4px;
}

.fl-req {
    color: #dc2626;
    font-weight: 500;
}

@media (max-width: 768px) {
    .fl-name-search-grid {
        grid-template-columns: 1fr;
    }
}

/* White Search Main Box */
.lawyer-search__body {
    background: #ffffff;
    border-radius: 0 20px 20px 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.lawyer-search__grid {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.lawyer-search__field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lawyer-search__label {
    color: #333333;
    font-size: 13px;
    font-weight: 600;
}

/* Inputs & Custom Selects */
.lawyer-search__input-wrapper {
    position: relative;
}

.lawyer-search__select, 
.lawyer-search__input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    color: #4a5568;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.lawyer-search__select:focus, 
.lawyer-search__input:focus {
    border-color: #005adb;
}

/* Blue Action Button */
.lawyer-search__btn {
    background-color: #0d6efd;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: background 0.2s;
}


/* --- Stats Footer Section --- */
.lawyer-stats {
    display: flex;
    justify-content: space-between;
    
    gap: 20px;
    max-width: 1140px;
    margin: 60px auto;
    
}

.lawyer-stats__item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.lawyer-stats__icon-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #a0aec0;
    flex-shrink: 0;
}

.lawyer-stats__info {
    display: flex;
    flex-direction: column;
}

.lawyer-stats__number {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.lawyer-stats__label {
    font-size: 13px;
    color: #cbd5e1;
    margin: 4px 0 0 0;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .lawyer-search__grid {
        flex-direction: column;
        align-items: stretch;
    }
    .lawyer-search__btn {
        width: 100%;
        justify-content: center;
    }
    .lawyer-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .lawyer-hero__title {
        font-size: 1.8rem;
    }
    .lawyer-search__body {
        border-radius: 0 0 20px 20px;
    }
    .lawyer-stats {
        grid-template-columns: 1fr;
    }
}


/* allow full-bleed band to escape section padding */
.lawyer-hero {
    overflow: visible;
}

/* Stats footer - separate flat dark navy band (not gradient) */
.lawyer-stats-wrapper {
    background:linear-gradient(to right,rgba(2, 15, 43, 1),rgba(10, 30, 87, 1));
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 35px 20px;
    margin-top: 50px;
}

.lawyer-stats {
    margin: 0 auto !important;
}

@media (max-width: 576px) {
    .lawyer-stats-wrapper {
        padding: 25px 20px;
    }
}

/* ===================== SEARCH RESULTS ===================== */
.fl-results-section {
    background: #fff;
    padding: 40px 20px 10px;
}

.fl-results-container {
    max-width: 1140px;
    margin: 0 auto;
}

.fl-results-breadcrumb {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0d6efd;
    margin-bottom: 10px;
}

.fl-results-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

.fl-view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
    max-width: 760px;
}

.fl-view-toggle a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    text-decoration: none;
    color: #374151;
    background: #fff;
    font-weight: 700;
    font-size: 15px;
    border-right: 1px solid #d1d5db;
    transition: all .2s;
}

.fl-view-toggle a:last-child { border-right: none; }

.fl-view-toggle a.is-active {
    background: #0a1f5c;
    color: #fff;
}

.fl-view-toggle a .fl-toggle-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
}

.fl-view-toggle a:not(.is-active) .fl-toggle-icon {
    background: #f3f4f6;
    color: #374151;
}

.fl-type-filters {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 4px;
}

.fl-type-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
}

.fl-type-check input {
    width: 16px;
    height: 16px;
    accent-color: #0d6efd;
}

.fl-results-list {
    display: grid;
    gap: 22px;
    margin-bottom: 30px;
}

.fl-result-card {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.fl-result-card__main {
    display: grid;
    grid-template-columns: 130px 1fr 220px;
    gap: 18px;
    padding: 18px;
}

.fl-result-card__photo {
    width: 130px;
    height: 130px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background: #f3f4f6;
}

.fl-result-card__photo img,
.fl-result-card__photo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.fl-result-card__name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.fl-result-card__name a {
    color: #0d6efd;
    text-decoration: underline;
}

.fl-result-card__gavel {
    color: #9ca3af;
    font-size: 12px;
    margin-left: 6px;
}

.fl-result-card__firm-link,
.fl-result-card__review-link {
    font-size: 13px;
    margin-bottom: 4px;
}

.fl-result-card__firm-link {
    color: #0d6efd;
    text-decoration: none;
    display: inline-block;
}

.fl-result-card__review-link a {
    color: #0d6efd;
}

.fl-result-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0;
    font-size: 13px;
}

.fl-result-card__rating .fa-star {
    color: #d1d5db;
    font-size: 12px;
}

.fl-result-card__rating .fa-star.is-filled {
    color: #f59e0b;
}

.fl-result-card__rating a {
    color: #0d6efd;
    text-decoration: none;
    margin-left: 4px;
}

.fl-result-card__serving {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 10px;
}

.fl-result-card__bio {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.55;
    margin: 0 0 12px;
}

.fl-result-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.fl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.fl-badge--green { color: #16a34a; }
.fl-badge--exp { color: #111827; }
.fl-badge--team { color: #0d6efd; }

.fl-result-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fl-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.fl-action-btn--primary {
    background: #e85d04;
    color: #fff;
    border: 1px solid #e85d04;
}

.fl-action-btn--outline {
    background: #fff;
    color: #0a1f5c;
    border: 1px solid #0a1f5c;
}

.fl-empty-results {
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}

.fl-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 24px 0 10px;
}

.fl-pagination a,
.fl-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    background: #fff;
}

.fl-pagination .is-active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.fl-pagination-nav.is-disabled,
.fl-pagination-ellipsis {
    border-color: #e5e7eb;
    color: #9ca3af;
    background: #f9fafb;
    cursor: default;
    user-select: none;
}

.fl-pagination-ellipsis {
    min-width: 32px;
    padding: 0 6px;
    border: none;
    background: transparent;
}

@media (max-width: 992px) {
    .fl-result-card__main {
        grid-template-columns: 110px 1fr;
    }

    .fl-result-card__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .fl-action-btn {
        flex: 1 1 calc(50% - 8px);
    }
}

@media (max-width: 680px) {
    .fl-result-card__main {
        grid-template-columns: 1fr;
    }

    .fl-result-card__photo {
        width: 100%;
        height: 180px;
    }

    .fl-view-toggle {
        grid-template-columns: 1fr;
    }

    .fl-view-toggle a {
        border-right: none;
        border-bottom: 1px solid #d1d5db;
    }

    .fl-view-toggle a:last-child {
        border-bottom: none;
    }
}

.issue-link-btn.is-active {
    border-color: #0d6efd;
    background: #e8efff;
    color: #0d6efd;
}