html,
body {
    overflow-x: hidden;
}

body.container-fluid {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

/* ─── Quote wizard: matched solicitors table ─── */
.quote-wizard__matched-table-wrap {
    margin-top: 1.25rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.quote-wizard__matched-table {
    width: 100%;
    border-collapse: collapse;
}

.quote-wizard__matched-table thead th {
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.quote-wizard__matched-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: #0f172a;
}

.quote-wizard__matched-table tbody tr:hover {
    background: #fbfdff;
}

.quote-wizard__matched-actions {
    text-align: right;
    white-space: nowrap;
}

.quote-wizard__matched-cta {
    padding: 0.65rem 1.1rem;
}

.quote-wizard__matched-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.quote-wizard__stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.quote-wizard__rating-num {
    font-weight: 700;
    color: #0f172a;
}

/* ─── How we work (homepage replacement for Explore user journey form) ─── */
.how-we-work {
    padding: 4rem 0;
    background: #f8fafc;
}

.how-we-work__head {
    text-align: center;
    margin-bottom: 2.25rem;
}

.how-we-work__title {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
    font-size: 2.5rem;
    line-height: 1.2;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
}

.how-we-work__subtitle {
    margin: 0.75rem auto 0;
    max-width: 760px;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
}

.how-we-work__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.how-we-work__step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
}

.how-we-work__badge {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.how-we-work__step-title {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.3;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
}

.how-we-work__step-text {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.93rem;
    line-height: 1.55;
}

@media (max-width: 992px) {
    .how-we-work__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .how-we-work__steps {
        grid-template-columns: 1fr;
    }
}

nav.row.bg-crystal-black-subtle {
    margin-left: 0;
    margin-right: 0;
    --bs-gutter-x: 0;
}

.site-header.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 20px 32px;
}

.site-header .site-nav-shell {
    position: absolute;
    left: 54%;
    transform: translateX(-50%);
    flex: 0 0 auto;
    padding: 0;
}

.site-header .nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: auto;
    padding: 0.5rem 0;
    min-height: 56px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.site-header > .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
    white-space: nowrap;
    flex: 0 0 auto;
    margin-right: 2rem;
}

.site-header .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
}

.site-header .nav-links li {
    margin: 0;
}

.site-header .nav-links a,
.site-header .nav-links .nav-link {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0;
}

.site-header .nav-links a:hover,
.site-header .nav-links .nav-link:hover {
    color: #4f46e5;
}

.site-header .nav-links .dropdown-menu .nav-link {
    padding: 0.5rem 1rem;
}

.site-header .nav-buttons {
    display: flex;
    gap: 1rem;
}

.site-header .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.site-header .btn-primary {
    background: #4f46e5;
    color: #ffffff;
}

.site-header .btn-primary:hover {
    background: #4338ca;
    color: #ffffff;
    transform: translateY(-2px);
}

.site-main-offset {
    /* Header is fixed; reserve vertical space so page titles are not hidden behind it */
    padding-top: 72px;
}

.hero-section-site {
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-section-site__inner {
    text-align: center;
    padding: 12rem 0 5rem;
}

.hero-section-site__title {
    line-height: 1.15;
    font-size: clamp(1.75rem, 3.5vw, 3.5rem);
}

.hero-section-site__description {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.hero-section-site__buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-section-site__btn {
    display: inline-block;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    line-height: 1;
}

.hero-section-site__btn--primary {
    background: #4f46e5;
    color: #ffffff;
}

.hero-section-site__btn--primary:hover {
    background: #4338ca;
    color: #ffffff;
    filter: brightness(0.9);
    transform: translateY(-2px);
}

.hero-section-site__btn--secondary {
    background: #ffffff;
    color: #1f2937;
    border-color: #e5e7eb;
}

.hero-section-site__btn--secondary:hover {
    background: rgb(229, 231, 235);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-section-site__btn--text {
    background: transparent;
    color: #ffffff;
    border-color: transparent;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.hero-section-site__btn--text:hover {
    color: #e5e7eb;
    transform: translateY(-1px);
}

.hero-section-site__btn i {
    margin-right: 0.5rem;
}

.stats-section-site,
.stats {
    background: #ffffff;
    padding: 4rem 0;
}

/* ─── Dashboard placeholder (Broker Dashboard Features) ─── */
.dashboard-placeholder-section {
    padding: 4rem 0 3.5rem;
    text-align: center;
}

.dashboard-placeholder__title {
    font-weight: 800;
    color: #0f172a;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0 0 0.75rem;
}

.dashboard-placeholder__subtitle {
    margin: 0 auto 2.25rem;
    max-width: 720px;
    color: #64748b;
    font-size: 1.05rem;
}

.dashboard-placeholder__card {
    max-width: 980px;
    margin: 0 auto;
    background: #f8fafc;
    border-radius: 16px;
    padding: 2.75rem 2rem;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}

.dashboard-placeholder__card-title {
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
}

.dashboard-placeholder__card-text {
    margin: 0 0 2rem;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-placeholder__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-placeholder__btn {
    display: inline-block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #4f46e5;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.dashboard-placeholder__btn:hover {
    transform: translateY(-2px);
    filter: brightness(0.92);
}

/* ─── Browse lawyers directory section ─── */
.browse-lawyers-section {
    padding: 3.5rem 0;
    background: #f8fafc;
}

.browse-lawyers__title {
    text-align: center;
    margin: 0 0 0.65rem;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: normal;
    -webkit-font-smoothing: antialiased;
}

.browse-lawyers__subtitle {
    text-align: center;
    margin: 0 auto 1.9rem;
    max-width: 820px;
    color: #64748b;
    font-size: 1.05rem;
}

.browse-lawyers__filters {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.3rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.04);
    margin-bottom: 1.45rem;
}

.browse-lawyers__filter-item label {
    display: block;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}

.browse-lawyers__filter-item select {
    width: 100%;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    padding: 0 0.75rem;
    font-size: 0.94rem;
}

/* Find Lawyers: vertical card grid (3 columns) */
.browse-lawyers-section--classic .browse-lawyers__grid--classic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.browse-lawyers-section--classic .browse-lawyers__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.25rem 1.2rem 1.15rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.browse-lawyers-section--classic .browse-lawyers__card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.browse-lawyers-section--classic .browse-lawyers__avatar {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.browse-lawyers-section--classic .browse-lawyers__avatar--photo {
    padding: 0;
    overflow: hidden;
    background: #e5e7eb;
}

.browse-lawyers-section--classic .browse-lawyers__avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.browse-lawyers-section--classic .browse-lawyers__name {
    margin: 0;
    color: #1f2937;
    font-size: 1.05rem;
    font-weight: 700;
}

.browse-lawyers-section--classic .browse-lawyers__firm {
    margin: 0.1rem 0 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.browse-lawyers-section--classic .browse-lawyers__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: #4b5563;
    font-size: 0.875rem;
}

.browse-lawyers-section--classic .browse-lawyers__stars {
    color: #eab308;
    letter-spacing: 0.04em;
}

.browse-lawyers-section--classic .browse-lawyers__label {
    display: block;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    font-weight: 700;
    margin: 0.1rem 0 0.35rem;
}

.browse-lawyers-section--classic .browse-lawyers__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
}

.browse-lawyers-section--classic .browse-lawyers__tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.2;
    border: none;
}

.browse-lawyers-section--classic .browse-lawyers__tag--spec {
    background: #dbeafe;
    color: #1e40af;
}

.browse-lawyers-section--classic .browse-lawyers__tag--lender {
    background: #dcfce7;
    color: #166534;
}

.browse-lawyers-section--classic .browse-lawyers__location {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.browse-lawyers-section--classic .browse-lawyers__cta {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0.35rem 0 0;
    text-align: center;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 0.62rem 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
    -webkit-font-smoothing: antialiased;
    transition: all 0.2s ease;
}

.browse-lawyers-section--classic .browse-lawyers__cta:hover {
    filter: brightness(0.93);
    transform: translateY(-1px);
    color: #fff;
}

/* Get Quotes matched step: horizontal comparison rows */
.browse-lawyers__grid--horizontal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.browse-lawyers__grid--horizontal .browse-lawyers__card {
    background: #fff;
    border: none;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.browse-lawyers__grid--horizontal .browse-lawyers__card-inner {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(120px, 160px) minmax(140px, 188px);
    gap: 1.25rem 1.5rem;
    align-items: center;
    padding: 1.35rem 1.5rem 1.35rem 1.35rem;
}

.browse-lawyers__grid--horizontal .browse-lawyers__card-brand {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.browse-lawyers__grid--horizontal .browse-lawyers__avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.browse-lawyers__grid--horizontal .browse-lawyers__avatar--photo {
    padding: 0;
    overflow: hidden;
    background: #e5e7eb;
}

.browse-lawyers__grid--horizontal .browse-lawyers__avatar--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.browse-lawyers__grid--horizontal .browse-lawyers__card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.browse-lawyers__grid--horizontal .browse-lawyers__card-body-top {
    min-width: 0;
}

.browse-lawyers__grid--horizontal .browse-lawyers__card-body-expertise {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid #f1f5f9;
}

.browse-lawyers__grid--horizontal .browse-lawyers__tag-columns {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 1rem;
    row-gap: 1rem;
    align-items: start;
    justify-content: start;
    width: fit-content;
    max-width: 100%;
}

.browse-lawyers__grid--horizontal .browse-lawyers__name {
    margin: 0;
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 700;
}

.browse-lawyers__grid--horizontal .browse-lawyers__firm {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.browse-lawyers__grid--horizontal .browse-lawyers__facts {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

.browse-lawyers__grid--horizontal .browse-lawyers__facts li + li {
    margin-top: 0.35rem;
}

.browse-lawyers__grid--horizontal .browse-lawyers__tag-group {
    margin: 0;
    min-width: 0;
}

.browse-lawyers__grid--horizontal .browse-lawyers__label {
    display: block;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.browse-lawyers__grid--horizontal .browse-lawyers__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
}

.browse-lawyers__grid--horizontal .browse-lawyers__tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.2;
    border: none;
}

.browse-lawyers__grid--horizontal .browse-lawyers__tag--spec {
    background: #eff6ff;
    color: #1e40af;
}

.browse-lawyers__grid--horizontal .browse-lawyers__tag--lender {
    background: #f0fdf4;
    color: #166534;
}

.browse-lawyers__grid--horizontal .browse-lawyers__card-score {
    text-align: center;
    padding: 0 0.35rem;
    align-self: center;
}

.browse-lawyers__grid--horizontal .browse-lawyers__score-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
}

.browse-lawyers__grid--horizontal .browse-lawyers__score-stars {
    color: #eab308;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.browse-lawyers__grid--horizontal .browse-lawyers__score-num {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.browse-lawyers__grid--horizontal .browse-lawyers__score-pill {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #22c55e;
    color: #15803d;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.browse-lawyers__grid--horizontal .browse-lawyers__card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0.25rem;
}

.browse-lawyers__grid--horizontal .browse-lawyers__cta {
    display: block;
    width: 100%;
    max-width: 11rem;
    margin: 0 auto;
    text-align: center;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 0.62rem 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
    -webkit-font-smoothing: antialiased;
    transition: all 0.2s ease;
}

.browse-lawyers__grid--horizontal .browse-lawyers__cta:hover {
    filter: brightness(0.93);
    transform: translateY(-1px);
    color: #fff;
}

/* ─── Employee login section ─── */
.employee-login-section {
    padding: 2.5rem 0 3rem;
    background: #f8fafc;
}

.employee-login__title {
    text-align: center;
    margin: 0 0 0.55rem;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    color: #0f172a;
    font-weight: 800;
}

.employee-login__subtitle {
    text-align: center;
    margin: 0 auto 1.4rem;
    max-width: 560px;
    color: #64748b;
    font-size: 0.95rem;
}

.employee-login__card {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 26px rgba(2, 6, 23, 0.06);
    padding: 1.1rem;
}

.employee-login__field {
    margin-bottom: 0.85rem;
}

.employee-login__field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: #1f2937;
    font-size: 0.78rem;
}

.employee-login__field input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    color: #111827;
    box-sizing: border-box;
}

.employee-login__field input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.employee-login__btn {
    width: 100%;
    border: none;
    border-radius: 7px;
    background: #4f46e5;
    color: #fff;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.employee-login__btn:hover {
    filter: brightness(0.94);
}

.employee-login__error {
    margin: 0.55rem 0 0;
    color: #b91c1c;
    font-size: 0.82rem;
}

.employee-login__demo {
    margin-top: 0.65rem;
    background: #f3f4f6;
    border-radius: 7px;
    padding: 0.6rem 0.7rem;
    color: #1f2937;
    font-size: 0.78rem;
}

.employee-login__demo-title {
    font-weight: 700;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
}

/* ─── Admin dashboard section ─── */
.admin-dashboard-section {
    padding: 0.4rem 0 1.2rem;
    background: #f8fafc;
}

.admin-dashboard__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 800;
    display: block;
}

.admin-dashboard__subtitle {
    margin: 0.35rem 0 0.8rem;
    color: #64748b;
    font-size: 0.95rem;
    display: block;
}

.admin-dashboard__stats {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-dashboard__stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.05);
    padding: 1.15rem 1.2rem;
}

.admin-dashboard__stat-value {
    font-size: 2rem;
    color: #0f172a;
    line-height: 1.1;
    font-weight: bold;
}

.admin-dashboard__stat-label {
    margin-top: 0.45rem;
    color: #6b7280;
    font-size: 1rem;
}

.admin-dashboard__stat--success .admin-dashboard__stat-value { color: #16a34a; }
.admin-dashboard__stat--info .admin-dashboard__stat-value { color: #2563eb; }
.admin-dashboard__stat--indigo .admin-dashboard__stat-value { color: #7c3aed; }
.admin-dashboard__stat--warning .admin-dashboard__stat-value { color: #d97706; }

.admin-dashboard__panel {
    margin-top: 1.1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.05);
    padding: 1.25rem 1.35rem;
}

.admin-dashboard__panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.admin-dashboard__panel-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1f2937;
    padding-bottom: 0.8rem;
}

.admin-dashboard__actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem;
    padding-top: 0.15rem;
}

.admin-dashboard__action-btn {
    display: inline-block;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    padding: 0.72rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-dashboard__action-btn--warning { background: #f59e0b; }
.admin-dashboard__action-btn--success { background: #22c55e; }
.admin-dashboard__action-btn--info { background: #3b82f6; }
.admin-dashboard__action-btn--muted { background: #6b7280; }

.admin-dashboard__search {
    width: 220px;
    max-width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.62rem 0.7rem;
    font-size: 0.9rem;
}

.admin-dashboard__table-wrap {
    overflow-x: auto;
}

.admin-dashboard__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.admin-dashboard__table th,
.admin-dashboard__table td {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    font-size: 0.95rem;
}

.admin-dashboard__table th {
    color: #374151;
    font-weight: 700;
    background: #f8fafc;
    font-size: 0.95rem;
}

.admin-dashboard__status {
    display: inline-block;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-dashboard__status--active {
    background: #dcfce7;
    color: #166534;
}

.admin-dashboard__status--pending {
    background: #fef3c7;
    color: #92400e;
}

.admin-dashboard__mini-btn {
    border: none;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    color: #fff;
}

.admin-dashboard__mini-btn--edit { background: #2563eb; }
.admin-dashboard__mini-btn--suspend { background: #ef4444; }

@media (max-width: 1100px) {
    .admin-dashboard__stats,
    .admin-dashboard__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .admin-dashboard__stats {
        gap: 1rem;
    }

    .admin-dashboard__panel {
        margin-top: 1.25rem;
        padding: 1rem;
    }

    .admin-dashboard__stats,
    .admin-dashboard__actions {
        grid-template-columns: 1fr;
    }

    .admin-dashboard__panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-dashboard__search {
        width: 100%;
    }
}

@media (max-width: 1100px) {
    .browse-lawyers__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .browse-lawyers-section--classic .browse-lawyers__grid--classic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__card-inner {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        align-items: start;
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__card-brand {
        grid-row: 1;
        grid-column: 1;
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__card-body {
        grid-row: 1;
        grid-column: 2;
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__card-score {
        grid-row: 2;
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.5rem 1rem;
        padding-top: 0.5rem;
        border-top: 1px solid #f1f5f9;
        margin-top: 0.25rem;
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__score-label {
        margin-bottom: 0;
        width: 100%;
        text-align: center;
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__card-actions {
        grid-row: 3;
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 0.5rem;
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__cta {
        max-width: none;
        flex: 1 1 200px;
    }
}

@media (max-width: 640px) {
    .browse-lawyers__filters {
        grid-template-columns: 1fr;
    }

    .browse-lawyers-section--classic .browse-lawyers__grid--classic {
        grid-template-columns: 1fr;
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__card-inner {
        grid-template-columns: 1fr;
        padding: 1.15rem 1.1rem;
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__card-brand {
        grid-row: auto;
        grid-column: 1;
        justify-content: flex-start;
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__card-body {
        grid-row: auto;
        grid-column: 1;
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__card-score {
        grid-row: auto;
        grid-column: 1;
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__card-actions {
        grid-row: auto;
        grid-column: 1;
        flex-direction: column;
    }

    .browse-lawyers__grid--horizontal .browse-lawyers__cta {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .browse-lawyers__grid--horizontal .browse-lawyers__tag-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.stats-grid-site {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item-site h3 {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item-site p {
    color: #64748b;
    font-weight: 500;
    font-size: 1rem;
    margin: 0;
}

/* User journeys (tabs + cards) */
.journeys-section-site {
    padding: 4rem 0;
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.journeys-section-site__header {
    text-align: center;
    margin-bottom: 3rem;
}

.journeys-section-site__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.journeys-section-site__intro {
    font-size: 1.2rem;
    color: #64748b;
    margin: 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.journeys-section-site__tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    background: #e2e8f0;
    border-radius: 12px;
    padding: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.25rem;
}

.journeys-section-site__tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #64748b;
    font-size: 1rem;
}

.journeys-section-site__tab-btn.is-active {
    background: #4f46e5;
    color: #ffffff;
}

.journeys-section-site__tab-btn:not(.is-active):hover {
    background: #cbd5e1;
    color: #1e293b;
}

.journeys-section-site__tab-btn.is-active:hover {
    background: #4338ca;
    color: #ffffff;
}

.journeys-section-site__tab-panel:not(.is-active) {
    display: none;
}

.journeys-section-site__tab-panel.is-active {
    display: block;
}

.journeys-section-site__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.journeys-section-site__card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.journeys-section-site__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.journeys-section-site__card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 700;
}

.journeys-section-site__card-text {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.journeys-section-site__card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.journeys-section-site__btn {
    display: inline-block;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    line-height: 1;
}

.journeys-section-site__btn--primary {
    background: #4f46e5;
    color: #ffffff;
}

.journeys-section-site__btn--primary:hover {
    background: #4338ca;
    color: #ffffff;
    filter: brightness(0.9);
    transform: translateY(-2px);
}

.journeys-section-site__btn--secondary {
    background: #ffffff;
    color: #1f2937;
    border-color: #e5e7eb;
}

.journeys-section-site__btn--secondary:hover {
    background: rgb(229, 231, 235);
    color: #ffffff;
    transform: translateY(-2px);
}

.journeys-section-site__btn--text {
    background: transparent;
    color: #4f46e5;
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.journeys-section-site__btn--text:hover {
    color: #4338ca;
}

.journeys-section-site__btn i {
    margin-right: 0.5rem;
}

/* Unified feature section: carousel / grid (e.g. featured lawyers) */
.feature-section-site--surface {
    background: #ffffff;
    padding: 4rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.feature-section-site__slider {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.feature-section-site__slider--grid .feature-section-site__carousel-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    overflow: visible;
    flex: 1;
    padding: 0;
}

.feature-section-site__carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    flex: 1;
    /* Less bottom padding now that the scrollbar is hidden */
    padding: 0.5rem 0.25rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar: keep swipe / trackpad / arrow buttons; avoids the long grey bar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feature-section-site__carousel-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.feature-section-site__carousel-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: #e2e8f0;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    line-height: 0;
    box-sizing: border-box;
    /* Avoid Bootstrap / UA button text baseline shifting the icon */
    vertical-align: middle;
}

.feature-section-site__carousel-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    pointer-events: none;
}

.feature-section-site__carousel-btn:hover {
    background: #cbd5e1;
    transform: scale(1.05);
}

.lawyer-card-site {
    flex: 0 0 min(320px, 88vw);
    scroll-snap-align: start;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s;
    box-sizing: border-box;
}

.feature-section-site__slider--grid .lawyer-card-site {
    flex: none;
    width: auto;
    scroll-snap-align: unset;
}

.lawyer-card-site:hover {
    transform: translateY(-3px);
}

.lawyer-card-site__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e2e8f0;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.lawyer-card-site__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lawyer-card-site__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.lawyer-card-site__firm {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.lawyer-card-site__rating {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Specializations (blue) on their own row(s); lenders (grey) on row(s) below — never mixed */
.lawyer-card-site__tag-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

.lawyer-card-site__tag-strip .lawyer-card-site__tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    max-width: 100%;
}

.lawyer-card-site__tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.lawyer-card-site__tag {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: nowrap;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.8125rem;
}

.lawyer-card-site__tag--spec {
    background: #dbeafe;
    color: #1e40af;
}

.lawyer-card-site__tag--lender {
    background: #f1f5f9;
    color: #475569;
}

.lawyer-card-site__location {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .site-header.navbar {
        padding: 0 16px;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .site-header > .logo {
        margin-right: 0;
        margin-top: 0.75rem;
    }

    .site-header .site-nav-shell {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
    }

    .site-header .nav-content {
        display: flex;
        padding: 0.5rem 0 1rem;
        min-height: auto;
        flex-wrap: wrap;
        row-gap: 0.75rem;
        justify-content: flex-start;
    }

    .site-header .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin: 0;
        width: 100%;
    }

    .site-header .nav-buttons {
        width: 100%;
    }

    .site-header .nav-buttons .btn {
        width: 100%;
    }

    .site-main-offset {
        padding-top: 96px;
    }

    .hero-section-site__inner {
        padding: 10rem 0 3.5rem;
    }

    .journeys-section-site__tab-nav {
        flex-direction: column;
        gap: 0.5rem;
        max-width: none;
    }

    .journeys-section-site__tab-btn {
        flex: none;
        width: 100%;
    }

    .feature-section-site__carousel-btn {
        display: none;
    }

    .feature-section-site__carousel-track {
        padding-left: 0;
        padding-right: 0;
    }

}

/* ─── Site footer (Topaz) ─── */
.site-footer {
    margin-top: auto;
    background: #1a2332;
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.site-footer__grid {
    display: grid;
    gap: 2.5rem 2rem;
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
    align-items: start;
}

@media (max-width: 991px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__col--intro {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.site-footer__heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.site-footer__subheading {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.site-footer__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #fff;
    max-width: 28rem;
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__list li {
    margin-bottom: 0.65rem;
}

.site-footer__list li:last-child {
    margin-bottom: 0;
}

.site-footer__link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s, opacity 0.2s;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
    color: #fff;
    text-decoration: none;
}

.site-footer__copyright {
    margin: 2.5rem 0 0;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ─── Quote request wizard (multi-step block) ─── */
.quote-wizard-section {
    padding: 2.5rem 0 4rem;
    background: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.quote-wizard-section__page-head {
    text-align: center;
    margin-bottom: 2rem;
}

.quote-wizard-section__page-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.quote-wizard-section__page-sub {
    margin: 0;
    font-size: 1.05rem;
    color: #64748b;
}

.quote-wizard {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    padding: 1.75rem 1.75rem 1.25rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .quote-wizard {
        padding: 2rem 2.25rem 1.5rem;
    }
}

.quote-wizard-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.quote-wizard__steps {
    margin-bottom: 1.75rem;
}

.quote-wizard__step-labels {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    justify-content: space-between;
}

@media (max-width: 640px) {
    .quote-wizard__step-labels {
        flex-direction: column;
        align-items: flex-start;
    }
}

.quote-wizard__step-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
    padding-bottom: 0.35rem;
    border-bottom: 0;
    flex: 1 1 auto;
    text-align: center;
}

@media (max-width: 640px) {
    .quote-wizard__step-label {
        text-align: left;
        width: 100%;
    }
}

.quote-wizard__step-label.is-active {
    color: #4f46e5;
    border-bottom: 0;
}

.quote-wizard__progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.quote-wizard__progress-fill {
    height: 100%;
    background: #4f46e5;
    border-radius: 4px;
    transition: width 0.35s ease;
}

.quote-wizard__panel-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.25rem;
}

.quote-wizard__panel-lead {
    margin: -0.35rem 0 1.15rem;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.55;
    max-width: 52rem;
}

.quote-wizard__matched-lawyers {
    margin-top: 0.15rem;
}

.quote-wizard__matched-grid {
    margin-bottom: 0;
}

.quote-wizard__matched-empty {
    margin: 0;
    padding: 1rem 1.15rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.quote-wizard__grid {
    display: grid;
    gap: 1.25rem 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
    .quote-wizard__grid {
        grid-template-columns: 1fr;
    }
}

.quote-wizard__field--full {
    grid-column: 1 / -1;
}

.quote-wizard__field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.quote-wizard__control {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #0f172a;
    background: #fff;
}

.quote-wizard__control:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.quote-wizard__control--textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-wizard__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.quote-wizard__footer-spacer {
    flex: 1 1 auto;
}

.quote-wizard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.quote-wizard-btn--primary {
    background: #4f46e5;
    color: #fff;
}

.quote-wizard-btn--primary:hover {
    background: #4338ca;
}

.quote-wizard-btn--secondary {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.quote-wizard-btn--secondary:hover {
    background: #f8fafc;
}

.quote-wizard-btn--success {
    background: #16a34a;
    color: #fff;
}

.quote-wizard-btn--success:hover {
    background: #15803d;
}

.quote-wizard-review {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.quote-wizard-review__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #0f172a;
}

.quote-wizard-review__grid {
    display: grid;
    gap: 1rem 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

@media (max-width: 768px) {
    .quote-wizard-review__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .quote-wizard-review__grid {
        grid-template-columns: 1fr;
    }
}

.quote-wizard-review__grid dt {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
    margin: 0 0 0.2rem;
}

.quote-wizard-review__grid dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}

.quote-wizard-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}

.quote-wizard-info__title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e40af;
}

.quote-wizard-info ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #1e40af;
    font-size: 0.875rem;
    line-height: 1.55;
}

.quote-wizard-success {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 2.5rem 1.75rem 2rem;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
}

.quote-wizard-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 1.75rem;
    line-height: 56px;
    font-weight: 700;
}

.quote-wizard-success__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #15803d;
    margin: 0 0 0.75rem;
}

.quote-wizard-success__lead {
    color: #334155;
    margin: 0 0 1.5rem;
    line-height: 1.55;
}

.quote-wizard-success__box {
    text-align: left;
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.quote-wizard-success__box-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #15803d;
}

.quote-wizard-success__list {
    margin: 0;
    padding-left: 1.2rem;
    color: #15803d;
    font-size: 0.9rem;
    line-height: 1.6;
}

.quote-wizard-success__cta {
    text-decoration: none;
}

.borrower-journey__panel-lead {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.55;
    max-width: 42rem;
}

.borrower-journey__solicitor-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.borrower-journey__solicitor-item {
    margin: 0;
}

.borrower-journey__solicitor-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.borrower-journey__solicitor-label:hover {
    border-color: #a5b4fc;
}

.borrower-journey__solicitor-radio {
    margin-top: 0.2rem;
    accent-color: #4f46e5;
}

.borrower-journey__solicitor-body {
    flex: 1;
    min-width: 0;
}

.borrower-journey__solicitor-name {
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.2rem;
}

.borrower-journey__solicitor-firm {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0 0 0.2rem;
}

.borrower-journey__solicitor-meta {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin: 0;
}

.borrower-journey__solicitor-empty {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}

/* ─── Lawyer application wizard (For Lawyers) ─── */
.lawyer-wizard-section {
    padding: 2.5rem 0 4rem;
    /* Keep the wizard background white to match the design */
    background: #fff;
}

.lawyer-wizard {
    max-width: 1040px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

/* `.lawyer-wizard` also has Bootstrap's `.container` class in the markup.
   Remove side padding so purple header and white body align pixel-perfect. */
.lawyer-wizard.container {
    padding-left: 0;
    padding-right: 0;
}

.lawyer-wizard__hero {
    background: #5b4be3;
    width: 100%;
    box-sizing: border-box;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 2.25rem 1rem 1.75rem;
    text-align: center;
}

.lawyer-wizard__title {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.1;
}

.lawyer-wizard__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

.lawyer-wizard__content {
    padding: 1.75rem 1.25rem 1.5rem;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.lawyer-wizard__card {
    /* The outer wrapper already provides the main card styling */
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.lawyer-wizard__step-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 0 1.25rem;
    /* Progress fill width is set by JS via --wizard-progress */
    --wizard-progress: 0%;
}

.lawyer-wizard__step-row::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.lawyer-wizard__step-row::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    height: 2px;
    width: var(--wizard-progress);
    background: #4f46e5;
    z-index: 0;
    transition: width 0.35s ease;
}

.lawyer-wizard__step-item {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.lawyer-wizard__step-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #6b7280;
}

.lawyer-wizard__step-item.is-active .lawyer-wizard__step-circle {
    background: #4f46e5;
    color: #fff;
}

.lawyer-wizard__step-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;
}

.lawyer-wizard__step-item.is-active .lawyer-wizard__step-text {
    color: #4f46e5;
}

.lawyer-wizard__panel {
    padding: 0.25rem 0 0;
}

.lawyer-wizard__panel-title {
    font-size: 1.5rem;
    color: #0f172a;
    margin: 0 0 0.9rem;
    font-weight: bold;
}

.lawyer-wizard__lead {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 1rem;
}

.lawyer-wizard__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.lawyer-wizard__field--full {
    grid-column: 1 / -1;
}

.lawyer-wizard__choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.lawyer-wizard__choice {
    border: 1px solid #dbe3f0;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    cursor: pointer;
}

.lawyer-wizard__choice input {
    width: 18px;
    height: 18px;
}

.lawyer-wizard__info-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.lawyer-wizard__info-title {
    font-weight: 800;
    color: #92400e;
    margin-bottom: 0.35rem;
}

.lawyer-wizard__info-text {
    color: #92400e;
    font-size: 0.95rem;
}

.lawyer-wizard__legal-checks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.lawyer-wizard__choice--block {
    padding: 0.8rem 1rem;
}

.lawyer-wizard__signature label {
    display: block;
    margin-bottom: 0.45rem;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
}

.lawyer-wizard__success-preview {
    border: 1px solid #4f46e5;
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.25rem;
    background: #ecfdf5;
}

.lawyer-wizard__success-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
    font-weight: 800;
}

.lawyer-wizard__success-title {
    font-weight: 900;
    color: #15803d;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.lawyer-wizard__success-text {
    color: #14532d;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.lawyer-wizard__success-next-title {
    font-weight: 800;
    color: #15803d;
    margin-bottom: 0.55rem;
}

.lawyer-wizard__success-next ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #14532d;
    line-height: 1.7;
}

.lawyer-wizard__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid #e5e7eb;
}

.lawyer-wizard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
}

.lawyer-wizard-btn:hover {
    transform: translateY(-1px);
}

.lawyer-wizard-btn--primary {
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
}

.lawyer-wizard-btn--secondary {
    background: #fff;
    color: #334155;
    border: 1px solid #dbe3f0;
}

.lawyer-wizard-btn--success {
    background: #16a34a;
    color: #fff;
}

@media (max-width: 960px) {
    .lawyer-wizard__step-item {
        min-width: 90px;
    }
}

@media (max-width: 640px) {
    .lawyer-wizard__content {
        padding: 1.25rem 0.85rem 1rem;
    }

    .lawyer-wizard__grid {
        grid-template-columns: 1fr;
    }

    .lawyer-wizard__field--full {
        grid-column: auto;
    }

    .lawyer-wizard__choices {
        grid-template-columns: 1fr 1fr;
    }

    .lawyer-wizard__step-text {
        font-size: 0.72rem;
        white-space: normal;
        line-height: 1.1;
    }
}

/* ─── Lawyer legal agreements (Step 5) ─── */
.lawyer-wizard__warning {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.2rem;
}

.lawyer-wizard__warning-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.35rem;
    font-size: 1.125rem;
}

.lawyer-wizard__warning-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fbbf24;
    color: #92400e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
}

.lawyer-wizard__warning-text {
    color: #92400e;
    line-height: 1.6;
    font-size: 0.95rem;
}

.lawyer-wizard__agreements {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 1.2rem;
}

.lawyer-wizard__agreement-card {
    border: 2px solid #dbe3f0;
    border-radius: 12px;
    padding: 1.1rem 1.15rem;
    background: #fff;
}

.lawyer-wizard__agreement-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.65rem;
    font-size: 1.125rem;
}

.lawyer-wizard__agreement-body {
    /* Match the rest of the wizard copy (no purple text on Step 5). */
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.lawyer-wizard__agreement-check {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
}

.lawyer-wizard__agreement-check input {
    width: 18px;
    height: 18px;
}

.lawyer-wizard__agreement-check span {
    color: #334155;
    font-size: 0.93rem;
}

.lawyer-wizard__signature-box {
    border: 2px solid #ef4444;
    background: #fef2f2;
    border-radius: 12px;
    padding: 1.15rem 1.15rem;
    margin-bottom: 1.25rem;
}

.lawyer-wizard__signature-title {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.65rem;
}

.lawyer-wizard__signature-body {
    color: #dc2626;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.lawyer-wizard__signature-label {
    display: block;
    color: #dc2626;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.lawyer-wizard__signature-input {
    width: 100%;
    border: 2px solid #ef4444;
    background: #fff;
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
    box-sizing: border-box;
    font-size: 1rem;
}

.lawyer-wizard__signature-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* Crystal Colour helpers (used by eZLegal KPI/Card text) */
.text-crystal-deep-amethyst {
    color: #4f46e5;
}

[id^="simple-stepsection-"] {
    background: #f8fafc;
    padding: 40px 0;
}

/* Override inline styles from `simpleStepSection.cshtml` (image wrapper + img sizing) */
[id^="simple-stepsection-"] div[style*="height: 200px"] {
    height: auto !important;
    min-height: 200px !important; /* keeps consistent block height, but allows growth */
}

[id^="simple-stepsection-"] img.img-fluid {
    max-height: 200px !important;
    width: 100% !important;
}

/* Match desired layout: icon/number left, text right (no cshtml changes) */
[id^="simple-stepsection-"] .row.text-center.justify-content-center.mt-3 {
    text-align: left !important;
}

[id^="simple-stepsection-"] .row.text-center.justify-content-center.mt-3 > .col-md-3.gap-4.my-4.align-items-center {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 1rem !important;
}

[id^="simple-stepsection-"] .steps-circle {
    border-radius: 999px !important;
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 auto !important;
    margin: 2px 0 0 !important;
    display: grid !important;
    place-items: center !important;
}

[id^="simple-stepsection-"] .steps-circle span,
[id^="simple-stepsection-"] .steps-circle i {
    line-height: 1 !important;
}

[id^="simple-stepsection-"] .steps-circle span {
    font-size: 0.85rem !important;
}

[id^="simple-stepsection-"] .steps-circle i {
    font-size: 1.1rem !important;
}

[id^="simple-stepsection-"] .col-md-3.gap-4.my-4.align-items-center > .d-flex.flex-column {
    text-align: left !important;
}

[id^="simple-stepsection-"] .col-md-3.gap-4.my-4.align-items-center > .d-flex.flex-column > h4 {
    font-weight: 700 !important;
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

[id^="simple-stepsection-"] .show-more-text {
    margin-top: 0.35rem !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
}