/* --- Google Font Import for clean look --- */
500;600;700&display=swap');

.lawyer-hero {
    background: linear-gradient(90deg, #101a17 0%, #288b71 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;
}

.lawyer-hero__quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}

.lawyer-hero__quicklinks a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lawyer-hero__quicklinks a:hover {
    opacity: 1;
}

/* 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: #247d65;
    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: #288b71;
}

.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 #e7ebea;
    background: #fafbfa;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.fl-name-search-tab.is-active {
    background: #32a888;
    border-color: #32a888;
    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 #e7ebea;
    background-color: #fafbfa;
    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: #288b71;
}

/* Blue Action Button */
.lawyer-search__btn {
    background-color: #32a888;
    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;
    justify-content: center;
    gap: 16px;
    flex: 1;
    border-right: 1px solid #cfe2dd;
}

.lawyer-stats__item:last-child {
    border-right: none;
}

.lawyer-stats__info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lawyer-stats__number {
    font-size: 2.6rem;
    font-weight: 800;
    color: #225e4e;
    line-height: 1;
    white-space: nowrap;
}

.lawyer-stats__label {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

/* --- 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: 1fr;
        gap: 20px;
    }
    .lawyer-stats__item {
        border-right: none;
        border-bottom: 1px solid #cfe2dd;
        padding-bottom: 20px;
    }
    .lawyer-stats__item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

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


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

/* Stats footer - light band with a dark top border */
.lawyer-stats-wrapper {
    background: #f0f4f3;
    border-top: 6px solid #173c32;
    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: #32a888;
    margin-bottom: 10px;
}

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

/* "Do I Need a Lawyer?" section */
.dinl-section {
    padding: 64px 0;
    background: #fff;
}

.dinl-inner {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 56px;
    align-items: center;
}

.dinl-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.dinl-content {
    text-align: center;
}

.dinl-heading {
    font-family: var(--sans);
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 600;
    color: #78716c;
    margin: 0 0 8px;
}

.dinl-subheading {
    font-size: 14px;
    font-weight: 600;
    color: #2f8b72;
    margin: 0 0 32px;
}

.dinl-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dinl-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.dinl-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f4f9f7;
    color: #2f8b72;
    font-size: 16px;
}

.dinl-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: #4b5563;
}

.dinl-item p a {
    color: #2f8b72;
    font-weight: 600;
    text-decoration: underline;
}

.dinl-item p a:hover {
    color: #297b65;
}

@media (max-width: 900px) {
    .dinl-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .dinl-media img {
        max-width: 360px;
        margin: 0 auto;
    }
}

.sl-state-list--brand a {
    color: #2f8b72;
}

.sl-state-list--brand a:hover {
    color: #297b65;
}

.fl-issue-note {
    font-size: 14px;
    color: #64748b;
    margin: -14px 0 20px;
}

.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: #173c32;
    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: #32a888;
}

.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: #32a888;
    text-decoration: underline;
}

.fl-result-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f9f8;
    color: #2f8b72;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}

.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: #32a888;
    text-decoration: none;
    display: inline-block;
}

.fl-result-card__review-link a {
    color: #32a888;
}

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

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

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

.fl-result-card__rating a {
    color: #32a888;
    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: #191f1d;
    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: #191f1d; }
.fl-badge--team { color: #32a888; }

.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: #173c32;
    border: 1px solid #173c32;
}

.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: #32a888;
    border-color: #32a888;
    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: #32a888;
    background: #f1f6f5;
    color: #32a888;
}