/* Custom styles */
.jumbotron {
    background-color: #f8f9fa;
    border-radius: 0.3rem;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Add checkmark color */
.list-unstyled li:before {
    color: #28a745;
}

/* Add some spacing to the how it works section */
ol li {
    margin-bottom: 0.75rem;
}

/* Custom button styling */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Service request form */
main.container:has(> .lead-form-page),
main.container:has(> .contractor-register-page),
main.container:has(> .contractor-directory-page),
main.container:has(> .landing-page),
main.container:has(> .account-login-page) {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

main.container > .lead-form-page,
main.container > .contractor-register-page,
main.container > .contractor-directory-page,
main.container > .landing-page,
main.container > .account-login-page {
    margin-right: 0;
    margin-left: 0;
}

.lead-form-page {
    --lead-green: #17824f;
    --lead-green-dark: #0d623a;
    --lead-ink: #18312a;
    --lead-muted: #667a73;
    width: auto;
    margin: -1.5rem calc(50% - 50vw) 0;
    padding: 3.5rem 0 4.5rem;
    background:
        radial-gradient(circle at 12% 2%, rgba(47, 169, 108, .14), transparent 27rem),
        linear-gradient(180deg, #f6faf8 0%, #eef5f1 100%);
}

.lead-form-container { max-width: 1140px; }

.lead-form-hero {
    max-width: 760px;
    margin: 0 auto 2.25rem;
}

.lead-form-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .9rem;
    padding: .45rem .8rem;
    border: 1px solid rgba(23, 130, 79, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    color: var(--lead-green-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.lead-form-hero h1 {
    margin-bottom: .65rem;
    color: var(--lead-ink);
    font-size: clamp(2rem, 5vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -.045em;
}

.lead-form-hero > p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--lead-muted);
    font-size: 1.08rem;
}

.lead-form-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin: 1.75rem auto 0;
    color: #71827c;
    font-size: .84rem;
    font-weight: 700;
}

.lead-form-steps span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.lead-form-steps b {
    display: inline-grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border: 1px solid #cbd9d3;
    border-radius: 50%;
    background: #fff;
}

.lead-form-steps .active { color: var(--lead-green-dark); }
.lead-form-steps .active b { border-color: var(--lead-green); background: var(--lead-green); color: #fff; }

.lead-form-card,
.lead-trust-card {
    border: 1px solid rgba(25, 72, 54, .08);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 22px 65px rgba(24, 62, 47, .09);
}

.lead-form-card { overflow: hidden; }
.lead-form-card .card-body { padding: clamp(1.35rem, 4vw, 2.75rem); }

.lead-form-card .alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    border: 0;
    border-radius: .9rem;
}

.lead-section-heading {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin: 2rem 0 1.1rem;
    padding-top: 2rem;
    border-top: 1px solid #e8efec;
}

.lead-section-heading:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.lead-section-heading > span {
    display: grid;
    flex: 0 0 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: .75rem;
    background: #e7f6ee;
    color: var(--lead-green-dark);
    font-size: .75rem;
    font-weight: 900;
}

.lead-section-heading h2 {
    margin: -.15rem 0 .12rem;
    color: var(--lead-ink);
    font-size: 1.2rem;
    font-weight: 800;
}

.lead-section-heading p { margin: 0; color: var(--lead-muted); font-size: .9rem; }

.lead-request-form .form-label {
    margin-bottom: .45rem;
    color: #29463c;
    font-size: .9rem;
    font-weight: 700;
}

.lead-request-form .form-control,
.lead-request-form .form-select {
    min-height: 3.25rem;
    border: 1px solid #cddbd5;
    border-radius: .8rem;
    color: var(--lead-ink);
    font-size: 1rem;
}

.lead-request-form textarea.form-control { min-height: 9.5rem; padding-top: .85rem; resize: vertical; }
.lead-request-form .form-control::placeholder { color: #96a59f; }
.lead-request-form .form-control:focus,
.lead-request-form .form-select:focus {
    border-color: var(--lead-green);
    box-shadow: 0 0 0 .23rem rgba(23, 130, 79, .13);
}

.lead-request-form .form-text { margin-top: .5rem; color: #75867f; }

.lead-terms {
    padding: 1rem 1rem 1rem 1.15rem;
    border: 1px solid #dce8e3;
    border-radius: .9rem;
    background: #f8fbf9;
}

.lead-terms .form-check { margin: 0; }
.lead-terms .form-check-input { width: 1.2rem; height: 1.2rem; margin-top: .12rem; }
.lead-terms .form-check-label { padding-left: .25rem; color: #4a5f57; font-size: .9rem; line-height: 1.55; }
.lead-terms a { color: var(--lead-green-dark); font-weight: 700; }

.lead-submit-btn {
    display: flex;
    min-height: 3.65rem;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    border: 0;
    border-radius: .9rem;
    background: linear-gradient(135deg, #1d915b, #0c683d);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(16, 111, 65, .2);
    transition: transform .18s ease, box-shadow .18s ease;
}

.lead-submit-btn:hover,
.lead-submit-btn:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 30px rgba(16, 111, 65, .27); }
.lead-submit-btn:disabled { opacity: .75; transform: none; }

.lead-form-assurance {
    margin: .85rem 0 0;
    color: #74857e;
    font-size: .8rem;
    text-align: center;
}

.lead-form-assurance i { margin-right: .3rem; color: var(--lead-green); }

.lead-trust-card { position: sticky; top: 1.5rem; padding: 1.65rem; }
.lead-trust-card > h2 { margin: 0 0 1.4rem; color: var(--lead-ink); font-size: 1.2rem; font-weight: 800; }

.lead-next-step { display: flex; gap: .85rem; margin-bottom: 1.25rem; }
.lead-next-step > span {
    display: grid;
    flex: 0 0 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: .75rem;
    background: #edf7f2;
    color: var(--lead-green);
}

.lead-next-step strong { display: block; margin-bottom: .18rem; color: #29463c; font-size: .92rem; }
.lead-next-step p { margin: 0; color: var(--lead-muted); font-size: .82rem; line-height: 1.45; }
.lead-trust-note {
    display: flex;
    gap: .75rem;
    margin-top: .35rem;
    padding: 1rem;
    border-radius: .85rem;
    background: #183d30;
    color: #dbe9e3;
    font-size: .78rem;
    line-height: 1.45;
}

.lead-trust-note i { margin-top: .12rem; color: #79d9a8; }
.lead-trust-note strong { display: block; color: #fff; }

@media (max-width: 991.98px) {
    .lead-trust-card { position: static; }
}

@media (max-width: 767.98px) {
    .lead-form-page { margin-top: -1rem; padding: 2rem 0 2.75rem; }
    .lead-form-container { padding-right: .85rem; padding-left: .85rem; }
    .lead-form-hero { margin-bottom: 1.5rem; padding: 0 .35rem; }
    .lead-form-hero h1 { font-size: 2.15rem; }
    .lead-form-hero > p { font-size: .98rem; }
    .lead-form-steps { gap: .3rem; margin-top: 1.35rem; font-size: .68rem; }
    .lead-form-steps span { flex-direction: column; gap: .3rem; line-height: 1.2; }
    .lead-form-steps b { width: 1.65rem; height: 1.65rem; }
    .lead-form-card,
    .lead-trust-card { border-radius: 1.15rem; box-shadow: 0 14px 38px rgba(24, 62, 47, .08); }
    .lead-form-card .card-body { padding: 1.25rem; }
    .lead-section-heading { margin-top: 1.55rem; padding-top: 1.55rem; }
    .lead-request-form .form-control,
    .lead-request-form .form-select { font-size: 16px; }
    .lead-trust-card { padding: 1.3rem; }
    .lead-form-page .modal-dialog { align-items: flex-end; min-height: calc(100% - 1rem); margin: .5rem; }
    .lead-form-page .modal-content { border: 0; border-radius: 1.25rem 1.25rem .5rem .5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .lead-submit-btn { transition: none; }
}

/* Contractor registration */
.contractor-register-page {
    --register-green: #168555;
    --register-green-dark: #0b613b;
    --register-ink: #173229;
    --register-muted: #667b73;
    width: auto;
    margin: -1.5rem calc(50% - 50vw) 0;
    padding: 3.5rem 0 4.5rem;
    background:
        radial-gradient(circle at 88% 0%, rgba(37, 158, 101, .14), transparent 28rem),
        radial-gradient(circle at 5% 25%, rgba(73, 138, 204, .08), transparent 24rem),
        linear-gradient(180deg, #f6faf8 0%, #edf5f1 100%);
}

.register-container { max-width: 1140px; }
.register-hero { max-width: 790px; margin: 0 auto 2.25rem; }
.register-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .9rem;
    padding: .45rem .82rem;
    border: 1px solid rgba(22, 133, 85, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    color: var(--register-green-dark);
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.register-hero h1 {
    margin-bottom: .65rem;
    color: var(--register-ink);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.045em;
}

.register-hero > p { max-width: 630px; margin: 0 auto; color: var(--register-muted); font-size: 1.08rem; }
.register-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    max-width: 650px;
    margin: 1.75rem auto 0;
    color: #71827c;
    font-size: .84rem;
    font-weight: 700;
}

.register-progress span { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.register-progress b {
    display: inline-grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border: 1px solid #cbd9d3;
    border-radius: 50%;
    background: #fff;
}

.register-progress .active { color: var(--register-green-dark); }
.register-progress .active b { border-color: var(--register-green); background: var(--register-green); color: #fff; }

.register-card,
.register-benefits-card {
    border: 1px solid rgba(25, 72, 54, .08);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 22px 65px rgba(24, 62, 47, .09);
}

.register-card { overflow: hidden; }
.register-card .card-body { padding: clamp(1.35rem, 4vw, 2.75rem); }
.register-card .alert { display: flex; align-items: flex-start; gap: .6rem; border: 0; border-radius: .9rem; }
.register-card .alert .btn-close { margin-left: auto; }

.register-section-heading {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin: 2rem 0 1.1rem;
    padding-top: 2rem;
    border-top: 1px solid #e8efec;
}

.register-section-heading:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.register-section-heading > span {
    display: grid;
    flex: 0 0 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: .75rem;
    background: #e7f6ee;
    color: var(--register-green-dark);
    font-size: .75rem;
    font-weight: 900;
}

.register-section-heading h2 { margin: -.15rem 0 .12rem; color: var(--register-ink); font-size: 1.2rem; font-weight: 800; }
.register-section-heading p { margin: 0; color: var(--register-muted); font-size: .9rem; }
.contractor-registration-form .form-label {
    margin-bottom: .45rem;
    color: #29463c;
    font-size: .9rem;
    font-weight: 700;
}

.contractor-registration-form .form-control,
.contractor-registration-form .form-select {
    min-height: 3.25rem;
    border: 1px solid #cddbd5;
    border-radius: .8rem;
    color: var(--register-ink);
    font-size: 1rem;
}

.contractor-registration-form .form-control:focus,
.contractor-registration-form .form-select:focus {
    border-color: var(--register-green);
    box-shadow: 0 0 0 .23rem rgba(22, 133, 85, .13);
}

.contractor-registration-form .form-text,
.register-field-help { color: #75867f; font-size: .8rem; }
.register-field-help { margin: -.2rem 0 .7rem; }
.register-password-field { position: relative; }
.register-password-field .form-control { padding-right: 3rem; }
.password-toggle {
    position: absolute;
    top: 50%;
    right: .45rem;
    width: 2.35rem;
    height: 2.35rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: .65rem;
    background: transparent;
    color: #72847d;
}

.password-toggle:hover,
.password-toggle:focus { background: #edf6f1; color: var(--register-green-dark); }
.was-validated .contractor-registration-form .col-12:has(.register-password-field .form-control:invalid) > .invalid-feedback { display: block; }

.register-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.register-category-option {
    display: flex;
    min-width: 0;
    min-height: 3.2rem;
    align-items: center;
    gap: .7rem;
    padding: .7rem .85rem;
    border: 1px solid #d4e0db;
    border-radius: .8rem;
    background: #fff;
    color: #395249;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 700;
    transition: border-color .16s ease, background .16s ease;
}

.register-category-option input { width: 1.1rem; height: 1.1rem; accent-color: var(--register-green); }
.register-category-option span { flex: 1; min-width: 0; }
.register-category-option i { visibility: hidden; color: var(--register-green); }
.register-category-option:has(input:checked) { border-color: var(--register-green); background: #edf8f2; color: var(--register-green-dark); }
.register-category-option:has(input:checked) i { visibility: visible; }
.register-category-option:focus-within { outline: 3px solid rgba(22, 133, 85, .15); outline-offset: 1px; }
.category-feedback { display: none; margin-top: .55rem; color: #dc3545; font-size: .875em; }
.was-validated .register-category-grid:has(input:invalid) + .category-feedback { display: block; }

.register-upload-list { display: grid; gap: .85rem; }
.register-upload-field { padding: 1rem; border: 1px solid #dce7e2; border-radius: .95rem; background: #fafcfb; }
.register-upload-copy { display: flex; align-items: center; gap: .8rem; margin-bottom: .75rem; }
.register-upload-copy > span {
    display: grid;
    flex: 0 0 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: .7rem;
    background: #e9f6ef;
    color: var(--register-green);
}

.register-upload-copy label { display: block; margin: 0 0 .08rem; color: #29463c; font-size: .9rem; font-weight: 800; }
.register-upload-copy label small { margin-left: .25rem; color: #7c8d86; font-weight: 500; }
.register-upload-copy p { margin: 0; color: #7b8b85; font-size: .78rem; }
.contractor-registration-form input[type="file"] { padding: .42rem; }
.contractor-registration-form input[type="file"]::file-selector-button {
    margin-right: .75rem;
    padding: .45rem .75rem;
    border: 0;
    border-radius: .55rem;
    background: #e8f5ee;
    color: var(--register-green-dark);
    font-weight: 700;
}

.register-terms { padding: 1rem 1rem 1rem 1.15rem; border: 1px solid #dce8e3; border-radius: .9rem; background: #f8fbf9; }
.register-terms .form-check { margin: 0; }
.register-terms .form-check-input { width: 1.2rem; height: 1.2rem; margin-top: .12rem; }
.register-terms .form-check-label { padding-left: .25rem; color: #4a5f57; font-size: .9rem; }
.register-terms a { color: var(--register-green-dark); font-weight: 700; }

.register-submit-btn {
    display: flex;
    min-height: 3.65rem;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    border: 0;
    border-radius: .9rem;
    background: linear-gradient(135deg, #1d915b, #0c683d);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(16, 111, 65, .2);
    transition: transform .18s ease, box-shadow .18s ease;
}

.register-submit-btn:hover,
.register-submit-btn:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 30px rgba(16, 111, 65, .27); }
.register-submit-btn:disabled { opacity: .75; transform: none; }
.register-assurance { margin: .85rem 0 0; color: #74857e; font-size: .8rem; text-align: center; }
.register-assurance i { margin-right: .3rem; color: var(--register-green); }

.register-benefits-card { position: sticky; top: 1.5rem; padding: 1.65rem; }
.register-benefits-card > h2 { margin: 0 0 1.4rem; color: var(--register-ink); font-size: 1.2rem; font-weight: 800; }
.register-benefit { display: flex; gap: .85rem; margin-bottom: 1.25rem; }
.register-benefit > span {
    display: grid;
    flex: 0 0 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: .75rem;
    background: #edf7f2;
    color: var(--register-green);
}

.register-benefit strong { display: block; margin-bottom: .18rem; color: #29463c; font-size: .92rem; }
.register-benefit p { margin: 0; color: var(--register-muted); font-size: .82rem; line-height: 1.45; }
.register-review-note {
    display: flex;
    gap: .75rem;
    margin-top: .35rem;
    padding: 1rem;
    border-radius: .85rem;
    background: #183d30;
    color: #dbe9e3;
    font-size: .78rem;
    line-height: 1.45;
}

.register-review-note i { margin-top: .12rem; color: #79d9a8; }
.register-review-note strong { display: block; color: #fff; }
.register-login-link { margin: 1.2rem 0 0; color: #71827b; font-size: .85rem; text-align: center; }
.register-login-link a { color: var(--register-green-dark); font-weight: 800; }

@media (max-width: 991.98px) {
    .register-benefits-card { position: static; }
}

@media (max-width: 767.98px) {
    .contractor-register-page { margin-top: -1rem; padding: 2rem 0 2.75rem; }
    .register-container { padding-right: .85rem; padding-left: .85rem; }
    .register-hero { margin-bottom: 1.5rem; padding: 0 .35rem; }
    .register-hero h1 { font-size: 2.1rem; }
    .register-hero > p { font-size: .98rem; }
    .register-progress { gap: .3rem; margin-top: 1.35rem; font-size: .68rem; }
    .register-progress span { flex-direction: column; gap: .3rem; line-height: 1.2; }
    .register-progress b { width: 1.65rem; height: 1.65rem; }
    .register-card,
    .register-benefits-card { border-radius: 1.15rem; box-shadow: 0 14px 38px rgba(24, 62, 47, .08); }
    .register-card .card-body { padding: 1.25rem; }
    .register-section-heading { margin-top: 1.55rem; padding-top: 1.55rem; }
    .contractor-registration-form .form-control,
    .contractor-registration-form .form-select { font-size: 16px; }
    .register-category-grid { grid-template-columns: 1fr; }
    .register-category-option { min-height: 3.35rem; }
    .register-upload-field { padding: .85rem; }
    .register-upload-copy { align-items: flex-start; }
    .register-benefits-card { padding: 1.3rem; }
    #termsModal .modal-dialog { align-items: flex-end; min-height: calc(100% - 1rem); margin: .5rem; }
    #termsModal .modal-content { border: 0; border-radius: 1.25rem 1.25rem .5rem .5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .register-category-option,
    .register-submit-btn { transition: none; }
}

/* Public contractor directory */
.contractor-directory-page {
    --directory-green: #168555;
    --directory-green-dark: #0b613b;
    --directory-ink: #173229;
    --directory-muted: #687c74;
    width: auto;
    margin: -1.5rem calc(50% - 50vw) 0;
    padding: 3.5rem 0 4.5rem;
    background:
        radial-gradient(circle at 88% 0%, rgba(37, 158, 101, .13), transparent 27rem),
        linear-gradient(180deg, #f5faf7 0%, #edf4f0 100%);
}

.contractor-directory-container { max-width: 1140px; }
.directory-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.directory-hero > div { max-width: 730px; }
.directory-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .9rem;
    padding: .45rem .82rem;
    border: 1px solid rgba(22, 133, 85, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    color: var(--directory-green-dark);
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.directory-hero h1 {
    margin: 0 0 .65rem;
    color: var(--directory-ink);
    font-size: clamp(2rem, 4.8vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -.045em;
}

.directory-hero p { margin: 0; color: var(--directory-muted); font-size: 1.06rem; }
.directory-join-link {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 3rem;
    align-items: center;
    gap: .55rem;
    padding: .65rem 1rem;
    border: 1px solid rgba(22, 133, 85, .2);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .75);
    color: var(--directory-green-dark);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.directory-join-link:hover { border-color: var(--directory-green); background: #fff; color: var(--directory-green-dark); }
.directory-filter-card {
    margin-bottom: 2rem;
    padding: 1.15rem;
    border: 1px solid rgba(25, 72, 54, .08);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 16px 45px rgba(24, 62, 47, .08);
}

.directory-search-row { display: flex; gap: .7rem; }
.directory-search-field { position: relative; flex: 1; min-width: 0; }
.directory-search-field > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #788a83;
}

.directory-search-field input {
    width: 100%;
    min-height: 3.35rem;
    padding: .7rem 1rem .7rem 2.8rem;
    border: 1px solid #ccd9d4;
    border-radius: .85rem;
    color: var(--directory-ink);
    font-size: 1rem;
    outline: 0;
}

.directory-search-field input:focus { border-color: var(--directory-green); box-shadow: 0 0 0 .23rem rgba(22, 133, 85, .13); }
.directory-search-button,
.directory-filter-toggle,
.directory-filter-actions button {
    min-height: 3.35rem;
    border: 0;
    border-radius: .8rem;
    font-weight: 800;
}

.directory-search-button { padding: .65rem 1.35rem; background: var(--directory-green); color: #fff; }
.directory-search-button:hover { background: var(--directory-green-dark); }
.directory-filter-toggle {
    display: none;
    align-items: center;
    gap: .45rem;
    padding: .65rem .9rem;
    border: 1px solid #cedbd6;
    background: #f8fbf9;
    color: #3b554b;
}

.directory-filter-toggle span {
    display: inline-grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border-radius: 50%;
    background: var(--directory-green);
    color: #fff;
    font-size: .68rem;
}

.directory-advanced-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: .8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e7eeeb;
}

.directory-advanced-filters label { display: block; margin-bottom: .4rem; color: #40594f; font-size: .8rem; font-weight: 800; }
.directory-advanced-filters .form-select {
    min-height: 3.05rem;
    border: 1px solid #cedbd6;
    border-radius: .75rem;
    color: #29463c;
    font-size: .92rem;
}

.directory-advanced-filters .form-select:focus { border-color: var(--directory-green); box-shadow: 0 0 0 .2rem rgba(22, 133, 85, .12); }
.directory-filter-actions { display: flex; min-height: 3.05rem; align-items: center; gap: .8rem; }
.directory-filter-actions button { min-height: 3.05rem; padding: .6rem 1rem; background: #183d30; color: #fff; font-size: .86rem; }
.directory-filter-actions a { color: #697b74; font-size: .82rem; font-weight: 700; white-space: nowrap; }

.directory-results-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.directory-results-header h2 { margin: 0 0 .2rem; color: var(--directory-ink); font-size: 1.35rem; font-weight: 800; }
.directory-results-header p { margin: 0; color: var(--directory-muted); font-size: .88rem; }
.directory-clear-link { color: var(--directory-green-dark); font-size: .84rem; font-weight: 800; text-decoration: none; }
.directory-clear-link i { margin-right: .25rem; }

.directory-contractor-card {
    display: flex;
    height: 100%;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(27, 73, 56, .1);
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 12px 34px rgba(24, 62, 47, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.directory-contractor-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(24, 62, 47, .12); }
.directory-contractor-media {
    position: relative;
    display: grid;
    min-height: 10.5rem;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid #edf2ef;
    background: linear-gradient(145deg, #f7faf8, #eef4f1);
}

.directory-contractor-media img { width: 100%; height: 10.5rem; padding: 1.25rem; object-fit: contain; }
.directory-logo-fallback {
    display: grid;
    width: 5.2rem;
    height: 5.2rem;
    place-items: center;
    border-radius: 1.35rem;
    background: #dff2e8;
    color: var(--directory-green-dark);
    font-size: 2rem;
    font-weight: 900;
}

.directory-verified-badge {
    position: absolute;
    top: .85rem;
    right: .85rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .36rem .55rem;
    border: 1px solid rgba(22, 133, 85, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--directory-green-dark);
    font-size: .69rem;
    font-weight: 900;
    box-shadow: 0 5px 14px rgba(24, 62, 47, .08);
}

.directory-contractor-body { display: flex; flex: 1; min-width: 0; flex-direction: column; padding: 1.2rem; }
.directory-contractor-body h3 { margin: 0 0 .45rem; color: var(--directory-ink); font-size: 1.12rem; font-weight: 800; }
.directory-location { margin: 0 0 .75rem; color: #61766e; font-size: .82rem; font-weight: 700; }
.directory-location i { margin-right: .35rem; color: var(--directory-green); }
.directory-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 .85rem;
    color: #687b74;
    font-size: .84rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.directory-category-tags { display: flex; flex-wrap: wrap; gap: .38rem; margin-bottom: .9rem; }
.directory-category-tags span {
    padding: .32rem .52rem;
    border-radius: .5rem;
    background: #edf7f2;
    color: #276548;
    font-size: .7rem;
    font-weight: 800;
}

.directory-service-area {
    display: -webkit-box;
    overflow: hidden;
    margin: auto 0 1rem;
    color: #71827c;
    font-size: .77rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.directory-service-area strong { color: #486057; }
.directory-profile-link {
    display: flex;
    min-height: 3rem;
    align-items: center;
    justify-content: space-between;
    padding: .65rem .85rem;
    border-radius: .75rem;
    background: #173e30;
    color: #fff;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.directory-profile-link:hover { background: var(--directory-green-dark); color: #fff; }

.directory-empty-state {
    padding: 4rem 1.25rem;
    border: 1px dashed #cddbd5;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, .62);
    text-align: center;
}

.directory-empty-state > span {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 1rem;
    background: #e5f4ec;
    color: var(--directory-green);
}

.directory-empty-state h3 { margin-bottom: .35rem; color: var(--directory-ink); font-size: 1.2rem; font-weight: 800; }
.directory-empty-state p { margin-bottom: 1rem; color: var(--directory-muted); }
.directory-empty-state a { color: var(--directory-green-dark); font-weight: 800; }
.directory-pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; }
.directory-pagination a {
    display: grid;
    min-width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border: 1px solid #d1ded8;
    border-radius: .7rem;
    background: #fff;
    color: #456057;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

.directory-pagination a:hover,
.directory-pagination a.active { border-color: var(--directory-green); background: var(--directory-green); color: #fff; }

@media (max-width: 991.98px) {
    .directory-hero { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .directory-advanced-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .directory-filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
    .contractor-directory-page { margin-top: -1rem; padding: 2rem 0 2.75rem; }
    .contractor-directory-container { padding-right: .85rem; padding-left: .85rem; }
    .directory-hero { margin-bottom: 1.4rem; padding: 0 .25rem; }
    .directory-hero h1 { font-size: 2.1rem; }
    .directory-hero p { font-size: .96rem; }
    .directory-join-link { min-height: 2.75rem; }
    .directory-filter-card { padding: .8rem; border-radius: 1rem; }
    .directory-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; }
    .directory-search-field { grid-column: 1 / -1; }
    .directory-search-field input { min-height: 3.2rem; font-size: 16px; }
    .directory-search-button,
    .directory-filter-toggle { min-height: 3rem; }
    .directory-filter-toggle { display: inline-flex; justify-content: center; }
    .directory-advanced-filters { display: none; grid-template-columns: 1fr; margin-top: .8rem; padding-top: .8rem; }
    .directory-advanced-filters.is-open { display: grid; }
    .directory-advanced-filters .form-select { font-size: 16px; }
    .directory-filter-actions { grid-column: auto; justify-content: space-between; }
    .directory-filter-actions button { flex: 1; }
    .directory-results-header { align-items: flex-start; }
    .directory-results-header h2 { font-size: 1.15rem; }
    .directory-results-header p { font-size: .8rem; }
    .directory-clear-link { white-space: nowrap; }
    .directory-contractor-card { border-radius: 1rem; }
    .directory-contractor-media,
    .directory-contractor-media img { height: 9.5rem; min-height: 9.5rem; }
    .directory-contractor-body { padding: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
    .directory-contractor-card { transition: none; }
}

/* Main landing page */
.landing-page {
    --landing-green: #168555;
    --landing-green-dark: #0b613b;
    --landing-ink: #173229;
    --landing-muted: #667b73;
    margin-top: -1.5rem;
    color: var(--landing-ink);
}

main.container:has(> .landing-page) + footer { margin-top: 0 !important; }
.landing-container { max-width: 1140px; }
.landing-hero {
    padding: 4.5rem 0;
    background:
        radial-gradient(circle at 8% 5%, rgba(67, 179, 121, .16), transparent 28rem),
        radial-gradient(circle at 92% 12%, rgba(59, 139, 105, .1), transparent 25rem),
        linear-gradient(180deg, #f5faf7 0%, #edf5f1 100%);
}

.landing-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); align-items: center; gap: 3.5rem; }
.landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .45rem .82rem;
    border: 1px solid rgba(22, 133, 85, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    color: var(--landing-green-dark);
    font-size: .77rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.landing-hero-copy h1 {
    max-width: 600px;
    margin: 0 0 1rem;
    color: var(--landing-ink);
    font-size: clamp(2.5rem, 5.3vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.landing-hero-copy > p { max-width: 560px; margin: 0 0 1.65rem; color: var(--landing-muted); font-size: 1.12rem; line-height: 1.65; }
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.4rem; }
.landing-primary-action,
.landing-secondary-action {
    display: inline-flex;
    min-height: 3.45rem;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .7rem 1.15rem;
    border-radius: .85rem;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
}

.landing-primary-action { background: linear-gradient(135deg, #1d915b, #0c683d); color: #fff; box-shadow: 0 12px 25px rgba(16, 111, 65, .2); }
.landing-primary-action:hover { color: #fff; transform: translateY(-1px); }
.landing-secondary-action { border: 1px solid #c9d9d2; background: rgba(255, 255, 255, .76); color: #315248; }
.landing-secondary-action:hover { border-color: var(--landing-green); background: #fff; color: var(--landing-green-dark); }
.landing-assurances { display: flex; flex-wrap: wrap; gap: .75rem 1rem; color: #597067; font-size: .78rem; font-weight: 700; }
.landing-assurances i { margin-right: .28rem; color: var(--landing-green); }

.landing-category-panel {
    padding: 1.45rem;
    border: 1px solid rgba(25, 72, 54, .09);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 65px rgba(24, 62, 47, .11);
}

.landing-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.landing-panel-heading span { color: var(--landing-green); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.landing-panel-heading h2 { margin: .12rem 0 0; color: var(--landing-ink); font-size: 1.28rem; font-weight: 800; }
.landing-panel-heading > i {
    display: grid;
    flex: 0 0 2.2rem;
    height: 2.2rem;
    place-items: center;
    border-radius: .7rem;
    background: #e6f5ed;
    color: var(--landing-green);
}

.landing-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.landing-category-card {
    display: flex;
    min-width: 0;
    min-height: 3.6rem;
    align-items: center;
    gap: .7rem;
    padding: .55rem .7rem;
    border: 1px solid #dce7e2;
    border-radius: .8rem;
    background: #fbfdfc;
    color: #355047;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.landing-category-card:hover { border-color: #8bc5a7; background: #f0f8f4; color: var(--landing-green-dark); transform: translateY(-1px); }
.landing-category-icon {
    display: grid;
    flex: 0 0 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: .65rem;
    background: #e5f4ec;
    color: var(--landing-green);
}

.landing-category-card strong { flex: 1; min-width: 0; font-size: .82rem; }
.landing-category-card > i { color: #93a39d; font-size: .65rem; }
.landing-other-service { display: block; margin-top: 1rem; color: var(--landing-green-dark); font-size: .78rem; font-weight: 800; text-align: center; text-decoration: none; }
.landing-other-service i { margin-left: .25rem; }

.landing-process { padding: 5rem 0; background: #fff; }
.landing-section-heading { max-width: 680px; margin: 0 auto 2.25rem; text-align: center; }
.landing-section-heading > span,
.landing-trust-copy > span { color: var(--landing-green); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.landing-section-heading h2,
.landing-trust-copy h2 {
    margin: .4rem 0 .6rem;
    color: var(--landing-ink);
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -.035em;
}

.landing-section-heading p,
.landing-trust-copy > p { margin: 0; color: var(--landing-muted); }
.landing-process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.landing-process-card {
    position: relative;
    padding: 1.35rem;
    border: 1px solid #e0e9e5;
    border-radius: 1.1rem;
    background: #fbfdfc;
}

.landing-step-number { position: absolute; top: 1rem; right: 1rem; color: #b5c4be; font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.landing-step-icon {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: .8rem;
    background: #e5f4ec;
    color: var(--landing-green);
}

.landing-process-card h3 { margin: 0 0 .45rem; color: #29483d; font-size: 1rem; font-weight: 800; }
.landing-process-card p { margin: 0; color: #70827b; font-size: .84rem; line-height: 1.55; }

.landing-trust { padding: 5rem 0; background: #eef6f2; }
.landing-trust-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: 4rem; }
.landing-trust-copy > p { max-width: 430px; line-height: 1.65; }
.landing-trust-copy > a { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.25rem; color: var(--landing-green-dark); font-size: .86rem; font-weight: 800; text-decoration: none; }
.landing-trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.landing-trust-grid article {
    display: flex;
    gap: .8rem;
    padding: 1.15rem;
    border: 1px solid rgba(25, 72, 54, .08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .84);
}

.landing-trust-grid article > i {
    display: grid;
    flex: 0 0 2.4rem;
    height: 2.4rem;
    place-items: center;
    border-radius: .7rem;
    background: #def1e7;
    color: var(--landing-green);
}

.landing-trust-grid h3 { margin: 0 0 .3rem; color: #29483d; font-size: .9rem; font-weight: 800; }
.landing-trust-grid p { margin: 0; color: #70827b; font-size: .78rem; line-height: 1.5; }
.landing-contractor-cta { padding: 4.5rem 0; background: #fff; }
.landing-contractor-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
    align-items: center;
    gap: 3rem;
    padding: clamp(1.6rem, 4vw, 3.2rem);
    overflow: hidden;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 93% 15%, rgba(91, 197, 142, .17), transparent 20rem),
        #173e30;
    color: #fff;
    box-shadow: 0 22px 55px rgba(20, 62, 46, .17);
}

.landing-dark-kicker { display: inline-flex; align-items: center; gap: .5rem; color: #8de0b4; font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.landing-contractor-panel h2 { max-width: 600px; margin: .55rem 0 .7rem; color: #fff; font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.04em; }
.landing-contractor-panel > div > p { max-width: 600px; margin: 0; color: #c8dbd3; line-height: 1.65; }
.landing-contractor-action ul { display: grid; gap: .65rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.landing-contractor-action li { color: #d8e8e1; font-size: .86rem; }
.landing-contractor-action li i { margin-right: .5rem; color: #77d8a5; }
.landing-contractor-action > a {
    display: flex;
    min-height: 3.4rem;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem 1rem;
    border-radius: .8rem;
    background: #fff;
    color: #164d35;
    font-size: .87rem;
    font-weight: 900;
    text-decoration: none;
}

.landing-contractor-action > a:hover { background: #e7f5ed; color: #0d5133; }

@media (max-width: 991.98px) {
    .landing-hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .landing-hero-copy { max-width: 720px; }
    .landing-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-trust-layout { grid-template-columns: 1fr; gap: 2rem; }
    .landing-contractor-panel { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 767.98px) {
    .landing-page { margin-top: -1rem; }
    .landing-container { padding-right: .85rem; padding-left: .85rem; }
    .landing-hero { padding: 2.5rem 0 3rem; }
    .landing-hero-grid { gap: 1.8rem; }
    .landing-hero-copy h1 { font-size: 2.45rem; }
    .landing-hero-copy > p { font-size: .98rem; }
    .landing-hero-actions { display: grid; grid-template-columns: 1fr; }
    .landing-primary-action,
    .landing-secondary-action { width: 100%; }
    .landing-assurances { gap: .5rem .8rem; }
    .landing-category-panel { padding: 1rem; border-radius: 1.1rem; }
    .landing-category-grid { grid-template-columns: 1fr; }
    .landing-category-card { min-height: 3.45rem; }
    .landing-process,
    .landing-trust,
    .landing-contractor-cta { padding: 3.25rem 0; }
    .landing-section-heading { margin-bottom: 1.6rem; text-align: left; }
    .landing-section-heading h2,
    .landing-trust-copy h2 { font-size: 1.85rem; }
    .landing-process-grid,
    .landing-trust-grid { grid-template-columns: 1fr; }
    .landing-process-card { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; }
    .landing-process-card .landing-step-icon { grid-row: 1 / 3; margin: 0; }
    .landing-process-card h3 { align-self: end; }
    .landing-process-card p { grid-column: 2; }
    .landing-contractor-panel { padding: 1.35rem; border-radius: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
    .landing-primary-action,
    .landing-category-card { transition: none; }
}

/* Account login */
main.container:has(> .account-login-page) {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

.account-login-page {
    --login-green: #168555;
    --login-green-dark: #0b613b;
    --login-ink: #173229;
    --login-muted: #687c74;
    min-height: calc(100vh - 4.2rem);
    margin-top: 0;
    margin-bottom: 0;
    padding: 4rem 0;
    background:
        radial-gradient(circle at 10% 5%, rgba(67, 179, 121, .16), transparent 27rem),
        radial-gradient(circle at 90% 80%, rgba(59, 139, 105, .09), transparent 25rem),
        linear-gradient(180deg, #f5faf7 0%, #edf5f1 100%);
}

.login-container { max-width: 1040px; }
.login-layout {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    overflow: hidden;
    border: 1px solid rgba(25, 72, 54, .08);
    border-radius: 1.6rem;
    background: #fff;
    box-shadow: 0 26px 75px rgba(24, 62, 47, .13);
}

.login-welcome-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3.4rem);
    background:
        radial-gradient(circle at 90% 10%, rgba(121, 217, 168, .18), transparent 17rem),
        #173e30;
    color: #fff;
}

.login-panel-kicker {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    color: #8de0b4;
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-welcome-panel h1 { margin: 0 0 .9rem; color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; }
.login-welcome-panel > p { margin: 0; color: #c7d9d1; font-size: .93rem; line-height: 1.65; }
.login-panel-benefits { display: grid; gap: 1rem; margin-top: 2rem; }
.login-panel-benefits > div { display: flex; align-items: flex-start; gap: .75rem; }
.login-panel-benefits > div > span {
    display: grid;
    flex: 0 0 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: .7rem;
    background: rgba(121, 217, 168, .13);
    color: #80dbaa;
}

.login-panel-benefits p { margin: 0; color: #bcd0c7; font-size: .79rem; line-height: 1.45; }
.login-panel-benefits strong { display: block; margin-bottom: .12rem; color: #fff; font-size: .87rem; }
.login-panel-note { margin-top: 2rem !important; color: #a9cabe !important; font-size: .75rem !important; font-weight: 700; }
.login-panel-note i { margin-right: .35rem; color: #70d49f; }

.login-card { padding: clamp(1.6rem, 5vw, 3.5rem); background: #fff; }
.login-card-heading { margin-bottom: 1.6rem; }
.login-card-heading > span { color: var(--login-green); font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.login-card-heading h2 { margin: .35rem 0 .45rem; color: var(--login-ink); font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: -.035em; }
.login-card-heading p { margin: 0; color: var(--login-muted); font-size: .9rem; }
.login-alert { display: flex; align-items: flex-start; gap: .55rem; border: 0; border-radius: .85rem; font-size: .86rem; }
.login-form .form-label { margin-bottom: .45rem; color: #29463c; font-size: .86rem; font-weight: 800; }
.login-input-field { position: relative; }
.login-input-field > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    transform: translateY(-50%);
    color: #82928c;
    pointer-events: none;
}

.login-input-field .form-control {
    min-height: 3.35rem;
    padding-right: 1rem;
    padding-left: 2.8rem;
    border: 1px solid #cddbd5;
    border-radius: .82rem;
    color: var(--login-ink);
    font-size: 1rem;
}

.login-password-field .form-control { padding-right: 3.2rem; }
.login-input-field .form-control:focus { border-color: var(--login-green); box-shadow: 0 0 0 .23rem rgba(22, 133, 85, .13); }
.login-input-field .form-control::placeholder { color: #96a59f; }
.login-password-field button {
    position: absolute;
    top: 50%;
    right: .48rem;
    width: 2.35rem;
    height: 2.35rem;
    transform: translateY(-50%);
    border: 0;
    border-radius: .62rem;
    background: transparent;
    color: #74867f;
}

.login-password-field button:hover,
.login-password-field button:focus { background: #edf6f1; color: var(--login-green-dark); }
.was-validated .login-form .mb-3:has(.form-control:invalid) > .invalid-feedback { display: block; }
.login-form-options { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.login-form-options .form-check { margin: 0; }
.login-form-options .form-check-input { width: 1.1rem; height: 1.1rem; margin-top: .18rem; accent-color: var(--login-green); }
.login-form-options .form-check-label { color: #526860; font-size: .82rem; font-weight: 700; }
.login-form-options > span { color: #899790; font-size: .7rem; }

.login-submit-button {
    display: flex;
    min-height: 3.55rem;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    border: 0;
    border-radius: .85rem;
    background: linear-gradient(135deg, #1d915b, #0c683d);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(16, 111, 65, .2);
    transition: transform .18s ease, box-shadow .18s ease;
}

.login-submit-button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(16, 111, 65, .27); }
.login-submit-button:disabled { opacity: .75; transform: none; }
.login-register-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.35rem;
    padding: .9rem 1rem;
    border: 1px solid #dce8e3;
    border-radius: .82rem;
    background: #f7faf8;
    color: #73847d;
    font-size: .78rem;
}

.login-register-prompt a,
.login-customer-link a { color: var(--login-green-dark); font-weight: 900; }
.login-customer-link { margin: 1rem 0 0; color: #7b8b85; font-size: .74rem; text-align: center; }

@media (min-width: 768px) and (max-height: 850px) {
    .account-login-page { min-height: auto; padding: 2rem 0; }
    .login-welcome-panel { padding: 2rem 2.6rem; }
    .login-welcome-panel h1 { font-size: 2.15rem; }
    .login-welcome-panel > p { font-size: .85rem; }
    .login-panel-benefits { gap: .7rem; margin-top: 1.25rem; }
    .login-panel-benefits > div > span { flex-basis: 2.1rem; height: 2.1rem; }
    .login-panel-note { margin-top: 1.2rem !important; }
    .login-card { padding: 2rem 2.8rem; }
    .login-card-heading { margin-bottom: 1.15rem; }
    .login-card-heading h2 { font-size: 1.85rem; }
    .login-input-field .form-control { min-height: 3.1rem; }
    .login-submit-button { min-height: 3.3rem; }
    .login-register-prompt { margin-top: 1rem; padding: .7rem .85rem; }
    .login-customer-link { margin-top: .75rem; }
}

@media (max-width: 767.98px) {
    main.container:has(> .account-login-page) { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .account-login-page { min-height: auto; margin-top: 0; margin-bottom: 0; padding: 2rem 0 2.75rem; }
    .login-container { padding-right: .85rem; padding-left: .85rem; }
    .login-layout { display: flex; flex-direction: column; border-radius: 1.2rem; }
    .login-card { order: 1; padding: 1.35rem; }
    .login-welcome-panel { order: 2; padding: 1.35rem; }
    .login-welcome-panel h1 { font-size: 1.65rem; }
    .login-welcome-panel > p { font-size: .84rem; }
    .login-panel-benefits { display: none; }
    .login-panel-note { margin-top: 1rem !important; }
    .login-card-heading { margin-bottom: 1.3rem; }
    .login-card-heading h2 { font-size: 1.75rem; }
    .login-input-field .form-control { font-size: 16px; }
    .login-form-options { align-items: flex-start; flex-direction: column; gap: .35rem; }
    .login-register-prompt { align-items: flex-start; flex-direction: column; gap: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .login-submit-button { transition: none; }
}

/* Public service request marketplace */
main.container:has(> .leads-marketplace) {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}
.leads-marketplace {
    --market-green: #17824f;
    --market-green-dark: #0d623a;
    --market-ink: #18312a;
    --market-muted: #667a73;
    margin-top: -1.5rem;
    padding: 3.25rem 0 4rem;
    color: var(--market-ink);
    background: radial-gradient(circle at 8% 0, rgba(47,169,108,.12), transparent 32rem), #f4f8f6;
}
.leads-marketplace-container { max-width: 1200px; }
.leads-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2.25rem; }
.leads-eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--market-green-dark); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.leads-hero h1 { margin: .8rem 0; color: var(--market-ink); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.12; }
.leads-hero p { max-width: 610px; margin-bottom: 1.25rem; color: var(--market-muted); font-size: 1.05rem; line-height: 1.7; }
.leads-hero-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; color: var(--market-muted); font-size: .82rem; }
.leads-hero-meta i { margin-right: .35rem; color: var(--market-green); }
.leads-marketplace .btn { border-radius: .7rem; font-weight: 700; padding: .7rem 1rem; transition: background-color .15s, box-shadow .15s; }
.leads-marketplace .btn-primary { background: var(--market-green); border-color: var(--market-green); color: #fff; }
.leads-marketplace .btn-primary:hover,
.leads-marketplace .btn-primary:active { background: var(--market-green-dark); border-color: var(--market-green-dark); }
.leads-marketplace .btn-outline-primary { color: var(--market-green-dark); border-color: #bdd7c9; background: #fff; }
.leads-marketplace .btn-outline-primary:hover { background: #e7f6ee; }
.leads-marketplace a:focus-visible,
.leads-marketplace button:focus-visible { outline: 3px solid var(--market-green); outline-offset: 3px; box-shadow: none; }
.leads-submit { flex-shrink: 0; box-shadow: 0 7px 18px rgba(23,130,79,.15); }
.leads-submit i { margin-right: .35rem; }
.leads-marketplace .card { border: 1px solid #dfe9e3; border-radius: 1.2rem; box-shadow: 0 8px 30px rgba(24,62,47,.045); overflow: hidden; }
.leads-marketplace .card-header { padding: 1.4rem 1.6rem; background: #fff; border-bottom: 1px solid #e9efeb; }
.leads-marketplace h2 { margin: 0; color: var(--market-ink); font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.leads-marketplace .card-header p { margin: .35rem 0 0; color: var(--market-muted); font-size: .85rem; }
.leads-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.leads-filter-card .card-body { padding: 1.4rem 1.6rem 1.6rem; }
.leads-filter-card .form-label { color: #29463c; font-size: .8rem; font-weight: 700; }
.leads-filter-card .form-control,
.leads-filter-card .form-select { height: 3rem; border: 1px solid #cddbd5; border-radius: .65rem; background-color: #fbfdfc; color: var(--market-ink); font-size: .9rem; }
.leads-filter-card .form-control:focus,
.leads-filter-card .form-select:focus { border-color: var(--market-green); box-shadow: 0 0 0 .2rem rgba(23,130,79,.12); }
.leads-filter-card .form-control::placeholder { color: #73867d; }
.leads-filter-actions { display: flex; flex-direction: column; gap: .4rem; }
.leads-filter-actions .btn { min-height: 3rem; }
.leads-reset { color: var(--market-green-dark); font-size: .78rem; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.leads-reset:hover { color: var(--market-ink); }
.leads-results-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.leads-results-title { display: flex; align-items: center; gap: .65rem; }
.leads-count { padding: .2rem .6rem; border-radius: 999px; background: #e7f6ee; color: var(--market-green-dark); font-size: .8rem; font-weight: 800; }
.leads-sort { color: var(--market-muted); font-size: .8rem; white-space: nowrap; }
.leads-sort i { margin-right: .4rem; }
.leads-results-card > .card-body { padding: 0; }
.leads-table { margin: 0; color: #425c50; font-size: .85rem; }
.leads-table thead th { padding: .9rem 1.2rem; background: #f7faf8; color: var(--market-muted); border: 0; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.leads-table tbody td { padding: 1.25rem 1.2rem; border-top: 1px solid #edf2ef; vertical-align: middle; }
.leads-table tbody tr:hover { background: #f8fcfa; }
.leads-table td:first-child { color: var(--market-ink); font-weight: 750; overflow-wrap: anywhere; }
.leads-table td:nth-child(4) { white-space: nowrap; }
.leads-category { display: inline-block; padding: .35rem .65rem; border: 1px solid #e2ebe6; border-radius: .5rem; background: #f5f8f6; font-size: .78rem; }
.leads-marketplace .badge,
.leads-marketplace .status-badge { display: inline-block; padding: .38rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; line-height: 1; }
.leads-marketplace .bg-success,
.leads-marketplace .status-available { color: #0d623a !important; background: #e5f5eb !important; }
.leads-marketplace .bg-danger,
.leads-marketplace .status-sold-out { color: #a23838 !important; background: #fceaea !important; }
.leads-marketplace .text-muted { color: var(--market-muted) !important; }
.leads-table small { display: inline-block; margin-top: .3rem; font-size: .7rem; }
.leads-table .btn-sm { padding: .55rem .75rem; font-size: .75rem; white-space: nowrap; color: var(--market-green-dark); background: #fff; border-color: #c6ddd0; }
.leads-table .btn-sm:hover { color: #fff; background: var(--market-green-dark); }
.leads-table .btn-sm i { margin-left: .3rem; font-size: .65rem; }
.leads-marketplace .pagination { flex-wrap: wrap; gap: .35rem; padding-inline: 1rem; }
.leads-marketplace .page-link { min-width: 2.4rem; border: 1px solid #dce8e1; border-radius: .5rem; color: var(--market-green-dark); text-align: center; }
.leads-marketplace .page-item.active .page-link { background: var(--market-green); border-color: var(--market-green); color: #fff; }
.leads-marketplace .page-link:hover { background: #e7f6ee; }
.leads-marketplace .page-link:focus { box-shadow: 0 0 0 .2rem rgba(23,130,79,.15); }
.leads-summary { padding: 0 1rem 1.25rem; font-size: .85rem; }
.leads-empty { padding: 4rem 1.5rem; }
.leads-empty > i { display: inline-grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: #e7f6ee; font-size: 1.4rem; color: var(--market-green) !important; }
.leads-empty h3 { font-size: 1.25rem; font-weight: 750; }
.leads-empty p { margin: .6rem auto 1.4rem; max-width: 400px; }
.leads-marketplace .mobile-cards { display: none; }
@media (min-width: 992px) {
    .leads-filter-actions { position: relative; }
    .leads-reset { position: absolute; top: calc(100% + .25rem); left: 0; right: 0; }
}
@media (max-width: 991.98px) {
    .leads-hero { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
    .leads-marketplace .desktop-table { display: none; }
    .leads-marketplace .mobile-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1.25rem; }
    .leads-marketplace .mobile-card { min-width: 0; padding: 1.2rem; border: 1px solid #dfe9e3; border-radius: .9rem; background: #fff; }
    .leads-marketplace .mobile-card-header { margin-bottom: 1rem; color: var(--market-ink); font-weight: 800; overflow-wrap: anywhere; }
    .leads-marketplace .mobile-card-body { font-size: .83rem; overflow-wrap: anywhere; }
    .leads-marketplace .mobile-card-footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #edf2ef; }
    .leads-marketplace .mobile-action-btn { width: 100%; font-size: .85rem; }
}
@media (max-width: 767.98px) {
    .leads-marketplace { padding: 2rem 0 2.5rem; }
    .leads-marketplace-container { padding-inline: 1rem; }
    .leads-hero { margin-bottom: 1.75rem; }
    .leads-hero p { font-size: .95rem; }
    .leads-submit { width: 100%; }
    .leads-filter-heading { align-items: flex-start; flex-direction: column; gap: .9rem; }
    .leads-marketplace .card-header { padding: 1.2rem; }
    .leads-filter-card .card-body { padding: 0 1.2rem 1.2rem; }
    .leads-filter-card .card-header { border-bottom: 0; }
    .leads-filter-card .form-control,
    .leads-filter-card .form-select { font-size: 16px; }
    .leads-results-heading { align-items: flex-start; flex-direction: column; gap: .7rem; }
    .leads-marketplace .mobile-cards { grid-template-columns: 1fr; padding: .8rem; gap: .8rem; background: #f7faf8; }
}
@media (prefers-reduced-motion: reduce) {
    .leads-marketplace .btn { transition: none; }
}
/* Public service request detail */
main.container:has(> .request-detail-page) { width: 100%; max-width: none; padding-inline: 0; }
.request-detail-page { --request-green: #17824f; --request-dark: #0d623a; --request-ink: #18312a; --request-muted: #667a73; margin-top: -1.5rem; padding: 2rem 0 4rem; color: var(--request-ink); background: radial-gradient(circle at 8% 0, rgba(47,169,108,.12), transparent 32rem), #f4f8f6; }
.request-detail-container { max-width: 1200px; }
.request-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; margin-bottom: 2rem; color: var(--request-muted); font-size: .82rem; }
.request-breadcrumb a { color: var(--request-dark); font-weight: 650; }
.request-breadcrumb i { margin-right: .4rem; }
.request-kicker { color: var(--request-dark); font-size: .73rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.request-detail-hero { margin-bottom: 2rem; }
.request-detail-hero h1 { margin: .7rem 0 1rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.15; overflow-wrap: anywhere; }
.request-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.5rem; color: var(--request-muted); font-size: .88rem; }
.request-hero-meta i { margin-right: .35rem; color: var(--request-green); }
.request-detail-page .request-status { display: inline-block; padding: .4rem .7rem; border-radius: 999px; background: #e5f5eb; color: var(--request-dark); font-size: .72rem; font-weight: 750; line-height: 1; white-space: nowrap; }
.request-detail-page .request-status.is-sold-out { color: #a23838; background: #fceaea; }
.request-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 1.5rem; align-items: start; }
.request-main-column { display: grid; gap: 1.5rem; min-width: 0; }
.request-panel { padding: 1.75rem; border: 1px solid #dfe9e3; border-radius: 1.2rem; background: #fff; box-shadow: 0 8px 30px rgba(24,62,47,.045); min-width: 0; }
.request-panel-heading { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.6rem; }
.request-section-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; flex-shrink: 0; border-radius: .8rem; background: #e7f6ee; color: var(--request-dark); }
.request-panel h2 { margin: 0; color: var(--request-ink); font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.request-panel-heading p { margin: .3rem 0 0; color: var(--request-muted); font-size: .84rem; line-height: 1.5; }
.request-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 2rem; margin: 0; padding: 1.25rem; background: #f7faf8; border: 1px solid #e8efea; border-radius: .8rem; }
.request-detail-page dt { margin-bottom: .4rem; color: var(--request-muted); font-size: .75rem; font-weight: 600; }
.request-detail-page dd { margin: 0; color: var(--request-ink); font-size: .95rem; font-weight: 650; overflow-wrap: anywhere; }
.request-description { margin-top: 1.75rem; }
.request-description h3 { margin-bottom: .9rem; font-size: 1rem; font-weight: 750; }
.request-description > div { color: #425c50; font-size: .98rem; line-height: 1.85; overflow-wrap: anywhere; }
.request-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 0; }
.request-contact-grid dt i { margin-right: .3rem; }
.request-contact-grid dd { letter-spacing: .025em; }
.request-contact-note { display: flex; align-items: baseline; gap: .5rem; margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid #e8efea; color: var(--request-muted); font-size: .78rem; line-height: 1.6; }
.request-contact-note i { color: var(--request-green); }
.request-purchase { border-top: 4px solid var(--request-green); }
.request-purchase h2 { margin: .7rem 0; font-size: 1.4rem; line-height: 1.3; }
.request-purchase-intro { color: var(--request-muted); font-size: .88rem; line-height: 1.7; }
.request-price { display: flex; flex-direction: column; gap: .2rem; padding: .5rem 0 1.3rem; border-bottom: 1px solid #e8efea; }
.request-price > span { color: var(--request-muted); font-size: .8rem; }
.request-price strong { color: var(--request-ink); font-size: 2.4rem; font-weight: 800; letter-spacing: -.045em; }
.request-availability { padding: 1.25rem 0; }
.request-availability-heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.request-availability h3 { margin: 0; font-size: .85rem; font-weight: 750; }
.request-availability p { margin-bottom: .75rem; color: var(--request-muted); font-size: .8rem; }
.request-progress { height: .5rem; overflow: hidden; border-radius: 999px; background: #e8efea; }
.request-progress > div { height: 100%; border-radius: inherit; background: var(--request-green); }
.request-availability .request-remaining { margin: .65rem 0 0; color: var(--request-dark); font-weight: 650; }
.request-purchase-button { display: flex; justify-content: center; align-items: center; gap: .6rem; width: 100%; padding: .9rem .7rem; border: 1px solid var(--request-green); border-radius: .7rem; background: var(--request-green); color: #fff; font-size: .9rem; font-weight: 700; text-align: center; transition: background-color .15s; }
.request-purchase-button:hover { background: var(--request-dark); color: #fff; text-decoration: none; }
.request-purchase-button:disabled { background: #edf0ee; border-color: #dce3df; color: #69776f; cursor: not-allowed; }
.request-back-link { display: block; margin-top: .9rem; color: var(--request-dark); font-size: .83rem; font-weight: 650; text-align: center; }
.request-back-link:hover { color: var(--request-ink); }
.request-purchase-note { display: flex; gap: .55rem; align-items: baseline; margin-top: 1.3rem; padding: .85rem; border-radius: .65rem; background: #f7faf8; color: var(--request-muted); font-size: .75rem; line-height: 1.6; }
.request-detail-page a:focus-visible { outline: 3px solid var(--request-green); outline-offset: 4px; }
@media (max-width: 991.98px) {
    .request-detail-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 1rem; }
    .request-panel { padding: 1.3rem; }
    .request-facts { gap: 1.2rem; }
}
@media (max-width: 767.98px) {
    .request-detail-page { padding: 1.5rem 0 2.5rem; }
    .request-detail-container { padding-inline: 1rem; }
    .request-breadcrumb { margin-bottom: 1.5rem; }
    .request-detail-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .request-main-column { gap: 1.2rem; }
    .request-hero-meta { gap: .85rem; font-size: .82rem; }
    .request-panel { padding: 1.25rem; }
}
@media (max-width: 399.98px) {
    .request-facts, .request-contact-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .request-purchase-button { transition: none; }
}
/* Public contractor profile */
main.container:has(> .contractor-profile-page) { width: 100%; max-width: none; padding-inline: 0; }
.contractor-profile-page { --profile-green: #17824f; --profile-dark: #0d623a; --profile-ink: #18312a; --profile-muted: #667a73; margin-top: -1.5rem; padding: 2rem 0 4rem; background: radial-gradient(circle at 8% 0, rgba(47,169,108,.12), transparent 32rem), #f4f8f6; color: var(--profile-ink); }
.contractor-profile-container { max-width: 1200px; }
.profile-breadcrumb { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; font-size: .82rem; color: var(--profile-muted); margin-bottom: 1.8rem; }
.profile-breadcrumb a { color: var(--profile-dark); font-weight: 700; }
.profile-breadcrumb i { margin-right: .35rem; }
.profile-page-heading > span { color: var(--profile-dark); font-size: .73rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.profile-page-heading p { color: var(--profile-muted); margin: .5rem 0 1.6rem; font-size: .95rem; }
.contractor-profile-page .card { border: 1px solid #dfe9e3; border-radius: 1.2rem; overflow: hidden; box-shadow: 0 8px 30px rgba(24,62,47,.045) !important; margin-bottom: 1.5rem; }
.contractor-profile-page .profile-main-card { border-top: 4px solid var(--profile-green); }
.contractor-profile-page .profile-main-card > .card-body { padding: 2rem !important; }
.profile-identity { padding-bottom: 1.7rem; border-bottom: 1px solid #e8efea; gap: 1.2rem; }
.profile-identity > .flex-grow-1 { margin-left: 0 !important; min-width: 0; }
.profile-identity h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.04em; font-weight: 800; overflow-wrap: anywhere; }
.profile-identity img { border: 1px solid #dfe9e3; padding: .3rem; background: #fff; object-fit: contain !important; border-radius: 1rem !important; }
.profile-identity .rounded-circle.bg-light { border-radius: 1rem !important; background: #e7f6ee !important; }
.profile-identity .fa-building { color: var(--profile-green) !important; }
.profile-identity p { font-size: .83rem; line-height: 1.65; }
.contractor-profile-page .text-muted { color: var(--profile-muted) !important; }
.contractor-profile-page .badge { padding: .45rem .7rem; font-size: .74rem; font-weight: 650; border-radius: .5rem; line-height: 1.4; white-space: normal; }
.profile-identity .badge { margin-top: .6rem; border-radius: 999px; }
.contractor-profile-page .bg-success,
.contractor-profile-page .service-categories .badge { background: #e5f5eb !important; color: var(--profile-dark) !important; }
.contractor-profile-page .city-badges .badge { background: #fff !important; color: #425c50 !important; border: 1px solid #dce7e0; }
.profile-service-grid { margin-inline: 0; padding: 1.25rem .5rem .5rem; border: 1px solid #e3ece6; border-radius: .85rem; background: #f7faf8; row-gap: 1rem; }
.contractor-profile-page h5 { font-size: 1rem; font-weight: 750; color: var(--profile-ink); }
.contractor-profile-page h5 i { color: var(--profile-green); }
.contractor-profile-page .province-name { font-size: .87rem; color: #425c50; }
.contractor-profile-page .profile-description { font-size: .98rem; line-height: 1.85; color: #425c50; overflow-wrap: anywhere; }
.contractor-profile-page .rating-section { padding: 1.5rem 1rem 1rem; margin-top: 1.75rem; border-top: 1px solid #e3ece6; }
.contractor-profile-page .rating-section h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.contractor-profile-page .rating-section p { color: var(--profile-muted); font-size: .82rem; }
.contractor-profile-page .stars { display: flex; justify-content: center; gap: .25rem; }
.contractor-profile-page .star-rating { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; background: #f5f9f6; border: 1px solid #e3ece6; border-radius: .6rem; font-size: 1.35rem; cursor: pointer; }
.contractor-profile-page .star-rating.text-warning { color: var(--profile-green) !important; }
.contractor-profile-page .star-rating.text-muted { color: #98aaa0 !important; }
.contractor-profile-page .star-rating:hover { background: #e7f6ee; }
.contractor-profile-page .star-rating:disabled { opacity: .55; cursor: wait; }
.contractor-profile-page .card-header { padding: 1.25rem 1.5rem !important; border-bottom: 1px solid #e8efea; background: #fff; }
.contractor-profile-page .card-header h6 { color: var(--profile-ink) !important; font-size: 1rem; font-weight: 800; }
.contractor-profile-page .list-group-item { border: 0; border-bottom: 1px solid #edf2ef; padding: 1rem 0; }
.contractor-profile-page .list-group-item:last-child { border-bottom: 0; }
.contractor-profile-page .list-group-item > div { gap: 1rem; }
.contractor-profile-page .list-group-item h6 { color: var(--profile-ink); font-weight: 700; }
.contractor-profile-page .list-group-item small { font-size: .77rem; }
.profile-request-card { padding: 1.6rem; margin-bottom: 1.5rem; border-radius: 1.2rem; background: #183e2f; color: #fff; }
.profile-request-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: .8rem; background: rgba(255,255,255,.12); color: #b9e6cb; margin-bottom: 1.1rem; }
.profile-request-card h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; }
.profile-request-card p { margin: .7rem 0 1.3rem; color: #d1e2d8; font-size: .88rem; line-height: 1.75; }
.profile-request-card a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-radius: .65rem; padding: .9rem 1rem; background: #fff; color: var(--profile-dark); font-size: .88rem; font-weight: 750; }
.profile-request-card a:hover { background: #e7f6ee; text-decoration: none; }
.contractor-profile-page .contractor-item { gap: .1rem; border-radius: .7rem !important; margin-bottom: .5rem; }
.contractor-profile-page .contractor-item:hover { background: #f2f8f4; }
.contractor-profile-page .contractor-item > :first-child { flex-shrink: 0; }
.contractor-profile-page .contractor-item h6 { color: var(--profile-ink); font-size: .92rem; font-weight: 750; overflow-wrap: anywhere; }
.contractor-profile-page .contractor-item small { font-size: .77rem; }
.contractor-profile-page a:focus-visible,
.contractor-profile-page button:focus-visible { outline: 3px solid var(--profile-green); outline-offset: 4px; }
@media (max-width: 767.98px) {
    .contractor-profile-page { padding: 1.5rem 0 2.5rem; }
    .contractor-profile-container { padding-inline: 1rem; }
    .contractor-profile-page .profile-main-card > .card-body { padding: 1.25rem !important; }
    .profile-identity { flex-direction: column; align-items: flex-start !important; gap: 1rem; }
    .profile-service-grid > div { margin-bottom: .5rem; }
    .contractor-profile-page .list-group-item > div { flex-wrap: wrap; gap: .5rem; }
}
/* Searchable registration service selector */
.register-category-picker { position: relative; }
.category-picker-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 3.2rem; padding: .85rem 1rem; border: 1px solid #cddbd5; border-radius: .8rem; background: #fff; color: #29463c; text-align: left; font-weight: 650; }
.category-picker-toggle::after { content: '\2304'; margin-left: 1rem; }
.category-picker-toggle[aria-expanded="true"] { border-color: #17824f; }
.category-picker-panel { margin-top: .5rem; padding: 1rem; background: #fff; border: 1px solid #cddbd5; border-radius: .8rem; box-shadow: 0 8px 25px rgba(24,62,47,.08); }
.category-picker-panel > label { font-size: .8rem; color: #29463c; font-weight: 650; }
.category-picker-panel .register-category-grid { display: grid; grid-template-columns: 1fr; max-height: 16rem; overflow-y: auto; margin-top: .8rem; gap: .35rem; padding: .2rem; }
.category-picker-panel .register-category-option { margin: 0; min-height: 2.8rem; padding: .65rem .8rem; }
.register-category-picker [hidden] { display: none !important; }
.category-picker-count { color: #667a73; margin: .6rem 0; font-size: .8rem; }
.category-picker-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.category-picker-tag { padding: .4rem .7rem; border: 1px solid #c7dfd1; border-radius: 999px; background: #e7f6ee; color: #0d623a; font-size: .8rem; text-align: left; }
.category-picker-empty { margin: 1rem 0 0; color: #667a73; font-size: .85rem; }
.category-picker-toggle:focus-visible,
.category-picker-tag:focus-visible { outline: 3px solid #17824f; outline-offset: 3px; }
/* Legal information pages and public footer links */
.footer-policy-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .65rem 1.5rem; }
.footer-policy-links a { color: #0d623a; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.legal-page { max-width: 900px; margin: 0 auto; padding: 1.5rem 0 3rem; color: #18312a; }
.legal-hero > span { color: #0d623a; font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.legal-hero h1 { font-size: clamp(2rem,4vw,3rem); font-weight: 800; letter-spacing: -.04em; margin: .7rem 0; }
.legal-hero p { color: #667a73; font-size: .88rem; }
.legal-navigation { display: flex; flex-wrap: wrap; gap: 1.3rem; padding: 1rem 0; margin-bottom: 1rem; }
.legal-page a { color: #0d623a; text-decoration: underline; text-underline-offset: 3px; }
.legal-draft-note { padding: 1rem 1.25rem; border: 1px solid #e4cf9e; background: #fff8e9; border-radius: .75rem; font-size: .9rem; margin-bottom: 1.5rem; }
.legal-content { padding: clamp(1.25rem,4vw,2.5rem); background: #fff; border: 1px solid #dfe9e3; border-radius: 1.2rem; box-shadow: 0 8px 30px rgba(24,62,47,.04); line-height: 1.85; }
.legal-content h2 { margin: 2rem 0 .8rem; font-size: 1.2rem; font-weight: 750; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: #425c50; }
.footer-policy-links a:focus-visible, .legal-page a:focus-visible { outline: 3px solid #17824f; outline-offset: 3px; }
@media(max-width:767.98px) { .footer-policy-links { justify-content: flex-start; } }
/* Public service category directory */
main.container:has(> .services-directory-page) { max-width: none; width: 100%; padding-inline: 0; }
.services-directory-page { margin-top: -1.5rem; padding: 3.5rem 0 4rem; background: radial-gradient(circle at 10% 0, rgba(47,169,108,.13), transparent 32rem), #f4f8f6; color: #18312a; }
.services-directory-container { max-width: 1200px; }
.services-directory-hero { max-width: 740px; margin: 0 auto 2rem; text-align: center; }
.services-eyebrow { color: #0d623a; font-weight: 800; font-size: .73rem; text-transform: uppercase; letter-spacing: .1em; }
.services-directory-hero h1 { margin: .8rem 0 1rem; font-size: clamp(2rem,4.5vw,3.2rem); letter-spacing: -.045em; font-weight: 800; }
.services-directory-hero p { color: #667a73; line-height: 1.75; font-size: 1.05rem; }
.services-search-panel { max-width: 720px; margin: 0 auto 2.75rem; }
.services-search-panel > label { font-weight: 700; font-size: .85rem; }
.services-search-row { display: flex; align-items: center; gap: .8rem; padding: .5rem 1rem; background: #fff; border: 1px solid #cddfd3; border-radius: .85rem; box-shadow: 0 8px 25px rgba(24,62,47,.04); }
.services-search-row > i { color: #17824f; }
.services-search-row input { flex: 1; min-width: 0; height: 2.6rem; background: transparent; border: 0; color: #18312a; font-size: 1rem; }
.services-search-row:focus-within { outline: 3px solid rgba(23,130,79,.25); border-color: #17824f; }
.services-search-row input:focus { outline: 0; }
.services-search-row button { border: 0; background: #e7f6ee; color: #0d623a; padding: .45rem .7rem; border-radius: .5rem; font-weight: 650; font-size: .8rem; }
.services-results-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.services-results-heading h2 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.services-results-heading > span { background: #e4f2e9; color: #0d623a; padding: .35rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 650; }
.services-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.service-directory-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 1.5rem; border: 1px solid #dce8e0; border-radius: 1rem; background: #fff; color: #18312a; box-shadow: 0 5px 18px rgba(24,62,47,.025); transition: border-color .15s, box-shadow .15s; }
.service-directory-card:hover { text-decoration: none; color: #0d623a; border-color: #86ba9c; box-shadow: 0 8px 25px rgba(24,62,47,.08); }
.service-directory-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .85rem; background: #e7f6ee; color: #17824f; margin-bottom: 1rem; font-size: 1.2rem; }
.service-directory-card h3 { font-size: 1.05rem; font-weight: 750; line-height: 1.45; margin-bottom: 1rem; overflow-wrap: anywhere; }
.service-directory-action { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid #edf2ef; font-size: .78rem; font-weight: 650; color: #0d623a; }
.services-directory-page [hidden] { display: none !important; }
.services-directory-empty { text-align: center; padding: 3rem 1rem; }
.services-directory-empty > i { color: #17824f; font-size: 1.8rem; margin-bottom: 1rem; }
.services-directory-empty h2 { font-size: 1.3rem; font-weight: 750; }
.services-directory-empty p { color: #667a73; }
.services-directory-help { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2.5rem; padding: 1.75rem; border-radius: 1rem; background: #183e2f; color: #fff; }
.services-directory-help h2 { font-size: 1.3rem; font-weight: 750; }
.services-directory-help p { margin: 0; color: #d4e4db; font-size: .9rem; }
.services-directory-help a { flex-shrink: 0; color: #0d623a; background: #fff; padding: .8rem 1rem; border-radius: .65rem; font-weight: 700; font-size: .85rem; }
.services-directory-help i { margin-left: .4rem; }
.services-directory-page a:focus-visible, .services-directory-page button:focus-visible { outline: 3px solid #17824f; outline-offset: 4px; }
@media(max-width:991.98px) { .services-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:575.98px) { .services-directory-page { padding: 2rem 0 2.5rem; } .services-directory-container { padding-inline: 1rem; } .services-directory-grid { grid-template-columns: 1fr; } .services-directory-help { flex-direction: column; align-items: flex-start; } }
@media(prefers-reduced-motion:reduce) { .service-directory-card { transition: none; } }
/* Shared contractor service-area selector */
.service-area-picker { min-width: 0; }
.service-area-picker legend { font-size: 1rem; font-weight: 750; }
.service-area-picker > p { font-size: .85rem; }
.area-options { padding: 1rem; border: 1px solid #cddfd3; border-radius: .8rem; background: #fbfdfc; }
.area-options summary { color: #0d623a; font-weight: 700; cursor: pointer; }
.area-checkboxes { max-height: 16rem; overflow-y: auto; margin-top: .8rem; display: grid; gap: .4rem; }
.area-checkboxes label { display: flex; align-items: center; gap: .6rem; padding: .6rem; border-radius: .5rem; background: #fff; font-size: .85rem; margin: 0; }
.area-checkboxes input { accent-color: #17824f; width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.service-area-picker [hidden] { display: none !important; }
.area-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.area-tag { padding: .4rem .7rem; border: 1px solid #c7dfd1; border-radius: 999px; color: #0d623a; background: #e7f6ee; font-size: .8rem; text-align: left; }
.area-tag:disabled { opacity: 1; font-weight: 750; }
.area-tag:focus-visible, .area-options summary:focus-visible { outline: 3px solid #17824f; outline-offset: 3px; }