body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    background-color: #ffffff!important;
    color:#000000;
}

.ml-2 {
    margin-left: 0.5rem;
}
.pr-2 {
    padding-right: 0.5rem;
}

.nav-link {
    font-size: 15px!important;
}

.mainbg {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  .mainbg::before {
    content: "";
    background: linear-gradient(to bottom, #f0f6fd, #ffffff);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/pattern1.png');
    background-repeat: repeat-x;
    background-size: auto;
    background-position: center top; /* This centers the image */
    opacity: 0.4;
    z-index: -1;
  }

  .mainbg2 {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  .mainbg2::before {
    content: "";
    background: linear-gradient(to bottom, #f0f6fd, #ffffff);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/pattern1.png');
    background-repeat: repeat-x;
    background-size: auto;
    background-position: center top; /* This centers the image */
    opacity: 0.6;
    z-index: -1;
  }

  .nav-tabs .nav-link.active {
    background-color: #fff;
    border-bottom:1px solid #fff;
    font-size:15px!important;
  }

  .searchbox {
    font-size:16px!important;
  }

  .searchbox input:focus {
    outline: none !important;
    -webkit-box-shadow: none !important; /* Safari and Chrome */
    box-shadow: none !important;         /* Standard syntax */
    border-color: inherit !important;    /* Reset any custom border color */
  }
  
  .searchbox input::-moz-focus-inner {   /* Firefox */
    border: 0 !important;
  }

::-webkit-scrollbar {
    height: 0.7em;
}

::-webkit-scrollbar-track {
    background-color: #fff;
    border-radius: 100vw;
    margin-block: .5em;
}

::-webkit-scrollbar-thumb {
    background-color:#d5dbf1;
    border: .25em solid #fff;
    border-radius: 100vw;
}

.media-scroller-container {
    position: relative;
    display: flex;
    align-items: center;
}

.media-scroller {
    display: grid;
    gap: var(--size-1);
    grid-auto-flow: column;
    grid-auto-columns: 22%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    padding-top:8px;
}

.media-element {
    display: grid;
    grid-template-rows: min-content;
    gap: var(--size-2);
}

.media-element-box {
    display: block;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.media-element-box:hover {
    transform: translateY(-8px);
    color: #ffffff;
}

.media-element-box a {
    text-decoration: none;
}

.media-element-box a:hover {
    text-decoration: none;
}


.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-90%);
    background-color: rgba(0, 0, 0, 0);
    color: #ffffff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s;
}

.scroll-button.left {
    left: 0;
}

.scroll-button.right {
    right: 0;
}

.scroll-button:focus {
    outline: none;
}

.scroll-button.hidden {
    opacity: 0;
    pointer-events: none;
}


.snaps-inline {
    scroll-snap-type: inline mandatory;
}

.snaps-inline > * {
    scroll-snap-align: start;
}

.stars i {
    color: #f7931e;
    margin-right: 2px;
}

.nav-pills {
    --bs-nav-pills-border-radius: var(--bs-border-radius);
    --bs-nav-pills-link-active-color: #fff;
    --bs-nav-pills-link-active-bg: #f7931e;

}

.nav-link {
    padding:3px 11px 3px 11px;
    font-size:14px;
    margin-right:8px;
    /* border-radius: 12px!important; */
}

.nav-pills a {
    color: #000000;
}

.nav-pills a:hover {
    color: #000000;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #f7931e;
    --bs-btn-border-color: #f7931e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #e58616;
    --bs-btn-hover-border-color: #d87e15;
    --bs-btn-focus-shadow-rgb: 247, 147, 30;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #d87e15;
    --bs-btn-active-border-color: #cc7714;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #f7931e;
    --bs-btn-disabled-border-color: #f7931e;
    border-radius:20px!important;
    padding-left:15px!important;
    padding-right:15px!important;
}

.search-box {
    display: block;
    padding:20px; 
    border:1px solid #d5dbf1; 
    border-radius:15px;
    background-color: #ffffff;
    margin-bottom:28px;
    box-shadow: 0 0 10px rgba(213, 219, 241, 0.5);
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    font-size:14px;
    z-index: 9999999999!important; 
    position: absolute;
}

.search-box  a {
    color:#000000!important;
    text-decoration: none;
    line-height: 20px;
}

.search-box a:hover {
    color: #366fea;
}


.box1 {
    display: block;
    font-size:15px;
    border: 1px solid #d5dbf1;
    color:#333;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.box1:hover {
    background-color: #fff9e6;
    transform: translateY(-8px);
    color:#000000!important;
    text-decoration: none;
}


.start-project-menu {
    display: block;
    padding:30px; 
    border:1px solid #d5dbf1; 
    border-radius:15px;
    background-color: #ffffff;
    margin-bottom:28px;
    box-shadow: 0 0 10px rgba(213, 219, 241, 0.5);
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    font-size:16px;
    width:600px; 
    height:200px; 
    position:fixed; 
    top: 70px; 
    right: 18%; 
    z-index: 10000;
}

.start-project-style a {
    text-decoration: none;
    line-height: 18px;
    color:#000000;
}

.start-project-style a:hover {
    color:#366fea;
}


.form-box {
    padding:60px; 
    border:1px solid #d5dbf1; 
    border-radius:15px;
    background-color: #ffffff;
    margin-bottom:28px;
    box-shadow: 0 0 10px rgba(213, 219, 241, 0.5);
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    font-size:16px;
}

.bg-blue {
    background: linear-gradient(to bottom, #ffffff, #ffffff);
}

.card-header-custom {
    background-color: #000000!important; 
    border:0px solid #000000; 
    padding:14px 30px 14px 30px; 
    color:#fff; 
    font-size:24px;
    box-shadow: 0 0 10px rgba(213, 219, 241, 0.5);
}

.card-body-custom {
    border:0px solid #000000; 
    padding-top:20px;
    padding-bottom:0px;
    box-shadow: 0 0 20px rgba(213, 219, 241, 0.5);
}

.card-body-custom a {
    color:#000000;
    text-decoration: none;
    font-size:14px;
}

.card-body-custom input {
    background-color: #ffffff;
    padding:8px;
}

/*
.review-box {
    border-radius: 20px;
    background-color: #fff;
    font-size:12px;
    padding:30px;
    border:1px solid #d5dbf1;
    box-shadow: 0 0 10px rgba(213, 219, 241, 0.5);
}
*/

.review-box {
    border: 1px solid #d5dbf1;
    color:#333;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.review-heading {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size:14px;
}

.review-img img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: bold;
    font-size: 16px;
}

.review-town {
    font-size: 14px;
    color: #666;
}

.review-text {
    font-size: 14px;
    line-height: 16px;
    color: #333;
    line-height: 1.5;
}

.footer-style {
    color:#000000!important;
    border-top:0px solid #eee;
}

.footer-style a {
    color:#000000!important;
    text-decoration: none;
}

.footer-style a:hover {
    color:#000000;
    text-decoration: underline;
}

.footer-style ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.footer-style li {
    padding-left: 0;
    margin-left: 0;
}


.states-style {
    line-height: 26px;
}

.states-style a {
    font-size:14px;
    text-decoration: none;
    color:#000000;
}

.states-style a:hover {
    color:#0a53be;
}


.states-style-btn a {
    font-size:16px;
    color:#000000;
    text-decoration: none;
    font-weight: bold;
}

.states-style-btn a:hover {
    color:#0a53be;
}

 /* Ensure the cards have the same height */
 .services-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.services-card a {
    font-size:14px;
    text-decoration: none;
    color:#000;
}

.services-card a:hover {
    color:#0a53be;
}

.text-style a {
    font-size:14px;
    text-decoration: none;
    color:#000;
}

.text-style a:hover {
    color:#0a53be;
}

.box-style a {
    font-size:14px;
    text-decoration: none;
    color:#000;
}

.box-style a:hover {
    color:#0a53be;
}


.join-pro-network-style {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* The photo fills only the right half, so it can never sit behind the text. */
.join-pro-network-style::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: url('../img/pro-bg.png') center / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
    mask-image: linear-gradient(to right, transparent, #000 30%);
}

.join-pro-network-text { position: relative; z-index: 1; padding-right: 40px; }
.join-pro-point { display: flex; gap: 18px; margin-bottom: 24px; }
.join-pro-icon { flex: none; width: 30px; line-height: 1; }

@media (max-width: 991px) {
    .join-pro-network-style::after { display: none; }
    .join-pro-network-text { padding-right: 12px; }
}


.project-style-box {
    background-color: #000000;
    color:#fff;
    padding-top:20px;
    padding-bottom:10px;
    margin-bottom:40px;
    margin-top:-25px;
}

.list-group-item.active {
    background-color: #eee!important;
    color:#fff!important;
    border:0px;
}

.star-rating {
    display: inline-block;
}
.star-rating i {
    color: #ffc107; /* Star color */
    font-size: 1.2em;
}

.review {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.portfolio-image {
    cursor: pointer;
    transition: transform 0.3s;
}

.portfolio-image:hover {
    transform: scale(1.05);
}



/* Styles for phones (extra small and small devices, less than 768px) */
@media (max-width: 767px) {
    .media-scroller {
        grid-auto-columns:50%!important;
        padding-top:8px;
    }


}

.col-md-6.mb-4 > a {
    text-decoration: none;
    color: inherit;
}

.col-md-6.mb-4 > a:hover {
    text-decoration: none;
    color: inherit;
}

/* One-row sections with arrows (components/scroll-row) */
[x-cloak] { display: none !important; }
.scroll-row-frame { position: relative; }
.scroll-row-items {
    --per-row: 4;
    --gap: 24px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--per-row) - 1) * var(--gap)) / var(--per-row));
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    /* Room for shadows and the hover lift, which the scroll area would cut off. */
    padding: 12px 4px 16px;
    margin: -12px -4px 0;
}
.scroll-row-items::-webkit-scrollbar { display: none; }
.scroll-row-items > * { scroll-snap-align: start; scroll-margin-left: 4px; min-width: 0; }
.scroll-row-items:focus-visible { outline: 2px solid #f7931e; outline-offset: 2px; border-radius: 8px; }
.scroll-row-items .box1 { margin-bottom: 0; overflow-wrap: anywhere; }
.scroll-row-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid #e4e7ec;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 18px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.scroll-row-arrow.left { left: -18px; }
.scroll-row-arrow.right { right: -18px; }
.scroll-row-arrow:hover { background: #f7931e; border-color: #f7931e; }
.scroll-row-arrow:focus-visible { outline: 2px solid #f7931e; outline-offset: 2px; }
@media (max-width: 992px) { .scroll-row-items { --per-row: 3; } }
@media (max-width: 768px) {
    .scroll-row-items { --per-row: 2.3; --gap: 16px; }
    .scroll-row-arrow { width: 40px; height: 40px; }
    .scroll-row-arrow.left { left: -8px; }
    .scroll-row-arrow.right { right: -8px; }
    .scroll-row-items .box1 { padding: 22px 12px; }
}
@media (max-width: 480px) { .scroll-row-items { --per-row: 1.6; } }


/* Homepage search and trust points */
.mainbg { overflow: visible; z-index: 3; } /* Lets search results extend below the hero. */
.hero-search { position: relative; max-width: 680px; margin: 36px auto 0; text-align: left; }
.hero-search-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #d3d8e0;
    border-radius: 16px;
    padding: 8px 8px 8px 22px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.09);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-search-bar:focus-within { border-color: #f7931e; box-shadow: 0 0 0 4px rgba(247, 147, 30, 0.18), 0 10px 30px rgba(16, 24, 40, 0.09); }
.hero-search-bar > i { color: #5d646e; font-size: 19px; line-height: 1; }
.hero-search-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; font-size: 17px; color: #111; }
.hero-search-bar input::placeholder { color: #667085; opacity: 1; }
.hero-search-bar .spinner-border { flex: none; color: #98a1ae; }
.hero-search-bar button { flex: none; border: 0; border-radius: 10px; background: #f7931e; color: #111; font-size: 16px; font-weight: 600; padding: 13px 26px; transition: background-color 0.15s; }
.hero-search-bar button:hover { background: #e58616; }
.hero-search-bar button:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.hero-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16);
}
.hero-search-results a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 14px; border-radius: 9px; color: #111; font-size: 15px; text-decoration: none; }
.hero-search-results a:hover, .hero-search-results a:focus { background: #fff4e6; outline: 0; }
.hero-search-results a:focus-visible { box-shadow: inset 0 0 0 2px #f7931e; }
.hero-search-results small { color: #667085; text-align: right; }
.hero-search-results p { margin: 0; padding: 14px; color: #555b64; font-size: 15px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; margin: 8px 0 12px; padding: 0; font-size: 15px; font-weight: 500; color: #343a43; }
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff1de; color: #a85a00; font-size: 17px; display: grid; place-items: center; }
@media (max-width: 575px) {
    .hero-search { margin-top: 24px; }
    .hero-search-bar { gap: 10px; padding: 6px 6px 6px 14px; }
    .hero-search-bar input { font-size: 16px; }
    .hero-search-bar button { padding: 12px 16px; font-size: 15px; }
    .hero-trust { flex-direction: column; width: max-content; max-width: 100%; margin: 8px auto 12px; }
    .hero-search-results a { flex-direction: column; gap: 0; }
    .hero-search-results small { text-align: left; }
}


/* Login pages */
.login-page { background: #f6f7f9; margin: -24px 0 -72px; padding: 44px 0 72px; }
.login-page .container { max-width: 940px; }
.login-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.login-role { display: flex; align-items: center; gap: 16px; background: #fff; border: 2px solid #e0e4ea; border-radius: 14px; padding: 16px 20px; color: #343a43; text-decoration: none; transition: border-color 0.15s; }
.login-role:hover { border-color: #f3c58e; color: #111; }
.login-role:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.login-role > i:first-child { flex: none; width: 46px; height: 46px; border-radius: 12px; background: #f0f2f5; color: #555b64; font-size: 21px; display: grid; place-items: center; }
.login-role span { flex: 1; min-width: 0; }
.login-role strong, .login-role small { display: block; }
.login-role strong { font-size: 17px; font-weight: 650; }
.login-role small { color: #5d646e; font-size: 14px; }
.login-role.active { border-color: #f7931e; background: #fffaf3; }
.login-role.active > i:first-child { background: #f7931e; color: #111; }
.login-tick { color: #f7931e; font-size: 20px; visibility: hidden; }
.login-role.active .login-tick { visibility: visible; }

.login-card { display: grid; grid-template-columns: 5fr 7fr; background: #fff; border: 1px solid #e4e7ec; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.07); }
.login-side { padding: 40px 34px; }
.login-homeowner .login-side { background: #fff1de; color: #2d1c05; }
.login-contractor .login-side { background: #111; color: #fff; }
.login-tag { display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; padding: 5px 14px; font-size: 14px; font-weight: 600; }
.login-homeowner .login-tag { background: #fff; color: #8a4b00; }
.login-contractor .login-tag { background: #f7931e; color: #111; }
.login-side h2 { font-size: 27px; font-weight: 700; letter-spacing: -0.01em; margin: 22px 0 20px; text-wrap: balance; }
.login-side ul { list-style: none; margin: 0; padding: 0; }
.login-side li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; line-height: 1.45; }
.login-homeowner .login-side li i { color: #a85a00; }
.login-contractor .login-side li i { color: #f7931e; }
.login-main { padding: 40px; }
.login-main h1 { font-size: 25px; font-weight: 700; margin-bottom: 6px; }
.login-main > p { color: #555b64; margin-bottom: 24px; }
.login-main .form-label { font-weight: 550; font-size: 14px; margin-bottom: 6px; }
.login-main .form-control { background-color: #fff; border-color: #cfd4dc; padding: 12px 14px; font-size: 16px; }
.login-main .form-control:focus { border-color: #f7931e; box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.2); }
.login-main .form-check-input { border-color: #b6bdc8; }
.login-main .form-check-input:checked { background-color: #f7931e; border-color: #f7931e; }
.login-main .form-check-input:focus { border-color: #f7931e; box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.2); }
.login-password { position: relative; }
.login-password input { padding-right: 50px !important; background-image: none !important; }
.login-password button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 42px; border: 0; border-radius: 6px; background: none; color: #555b64; font-size: 17px; }
.login-password button:focus-visible { outline: 2px solid #f7931e; }
.login-link { color: #a85a00; font-size: 14px; font-weight: 550; text-decoration: none; }
.login-link:hover { color: #7a4100; text-decoration: underline; }
.login-submit { width: 100%; border: 0; border-radius: 10px; background: #f7931e; color: #111; font-size: 16px; font-weight: 600; padding: 13px; }
.login-submit:hover { background: #e58616; }
.login-submit:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.login-new { border-top: 1px solid #e4e7ec; margin-top: 26px; padding-top: 20px; text-align: center; color: #555b64; font-size: 15px; }
.login-new .login-link { font-size: 15px; white-space: nowrap; }
@media (max-width: 767px) {
    .login-page { padding: 28px 0 48px; }
    .login-card { grid-template-columns: 1fr; }
    .login-side { padding: 20px; }
    .login-side h2 { font-size: 21px; margin: 12px 0 0; }
    .login-side ul { display: none; }
    .login-main { padding: 26px 20px; }
    .login-roles { gap: 10px; }
    .login-role { flex-direction: column; text-align: center; gap: 8px; padding: 14px 8px; position: relative; }
    .login-role strong { font-size: 15px; }
    .login-role small { font-size: 13px; }
    .login-tick { position: absolute; top: 8px; right: 8px; font-size: 17px; }
}


/* Start a Project page */
.start-page { background: #f6f7f9; margin-top: -24px; padding-bottom: 56px; }
.start-hero { background: #fff; border-bottom: 1px solid #e4e7ec; padding: 48px 0 40px; margin-bottom: 32px; text-align: center; }
.start-hero h1 { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; text-wrap: balance; }
.start-hero p { color: #555b64; font-size: 17px; margin-bottom: 26px; }
.start-search { display: flex; align-items: center; gap: 14px; max-width: 680px; margin: 0 auto; background: #fff; border: 1px solid #d3d8e0; border-radius: 16px; padding: 6px 10px 6px 22px; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08); }
.start-search:focus-within { border-color: #f7931e; box-shadow: 0 0 0 4px rgba(247, 147, 30, 0.18); }
.start-search > i { color: #5d646e; font-size: 19px; }
.start-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 13px 0; font-size: 17px; }
.start-search input::-webkit-search-cancel-button { display: none; }
.start-search button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: #555b64; }
.start-search button:hover { background: #f0f2f5; }
.start-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; font-size: 15px; color: #5d646e; }
.start-popular a { background: #fff8ef; border: 1px solid #f3c58e; border-radius: 99px; color: #5f3500; padding: 5px 14px; text-decoration: none; }
.start-popular a:hover { background: #ffedd6; }
.start-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.start-services { position: sticky; top: 110px; max-height: calc(100vh - 134px); overflow-y: auto; background: #fff; border: 1px solid #e4e7ec; border-radius: 14px; padding: 8px; }
.start-services button { display: flex; align-items: center; gap: 13px; width: 100%; border: 0; border-radius: 9px; background: none; color: #343a43; padding: 10px 13px; text-align: left; font-size: 15px; line-height: 1.35; }
.start-services button:hover { background: #f6f7f9; }
.start-services button.active { background: #fff1de; color: #2d1c05; font-weight: 600; }
.start-services i { color: #6b727c; font-size: 17px; }
.start-services button.active i { color: #a85a00; }
.start-services button:focus-visible, .start-toggle:focus-visible, .start-link:focus-visible, .start-search button:focus-visible, .start-empty button:focus-visible, .start-popular a:focus-visible { outline: 2px solid #f7931e; outline-offset: 2px; }
.start-group { background: #fff; border: 1px solid #e4e7ec; border-radius: 14px; padding: 26px; margin-bottom: 16px; scroll-margin-top: 110px; }
.start-group h2 { margin: 0 0 18px; font-size: 22px; }
.start-toggle { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; background: none; padding: 0; text-align: left; font-size: inherit; font-weight: 650; color: #111; cursor: default; }
.start-toggle i:first-child { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff1de; color: #a85a00; font-size: 20px; display: grid; place-items: center; }
.start-toggle span { flex: 1; min-width: 0; }
.start-chevron { display: none; }
.start-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.start-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e4e7ec; border-radius: 10px; color: #111; padding: 14px 16px; font-size: 15px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; transition: border-color 0.15s, background-color 0.15s; }
.start-link i { color: #98a1ae; }
.start-link:hover { border-color: #f7931e; background: #fffaf3; color: #111; }
.start-link:hover i { color: #a85a00; }
.start-empty { text-align: center; padding: 40px 0; }
.start-empty h2 { font-size: 22px; overflow-wrap: anywhere; }
.start-empty p { color: #555b64; }
.start-empty button { border: 0; border-radius: 10px; background: #f7931e; color: #111; font-weight: 600; padding: 12px 22px; }
.searching .start-layout { grid-template-columns: minmax(0, 1fr); }
.searching .start-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Until the script runs every service is listed, so the page works without it. */
@media (min-width: 768px) { .start-page.ready .start-group:not(.open) { display: none; } }
@media (max-width: 991px) {
    .start-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
    .start-links { grid-template-columns: 1fr; }
    .searching .start-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .start-hero { padding: 32px 0 28px; margin-bottom: 20px; }
    .start-hero h1 { font-size: 29px; }
    .start-search { padding: 4px 6px 4px 16px; gap: 10px; }
    .start-search input { font-size: 16px; }
    .start-layout, .searching .start-layout { grid-template-columns: minmax(0, 1fr); }
    .start-services { display: none; }
    .start-group { padding: 0; margin-bottom: 10px; }
    .start-group h2 { margin: 0; font-size: 17px; }
    .start-toggle { padding: 13px 16px; cursor: pointer; }
    .start-toggle i:first-child { width: 38px; height: 38px; font-size: 18px; border-radius: 10px; }
    .start-chevron { display: block; color: #6b727c; font-size: 15px; transition: transform 0.15s; }
    .start-group.open .start-chevron { transform: rotate(180deg); }
    .searching .start-chevron { display: none; }
    .start-links, .searching .start-links { grid-template-columns: 1fr; gap: 8px; padding: 2px 16px 16px; }
    .start-page.ready .start-group:not(.open) .start-links { display: none; }
}


/* Posting a project, step by step */
.step-page { background: #f6f7f9; min-height: calc(100vh - 100px); padding: 36px 0 60px; }
.step-page .container { max-width: 720px; }
.step-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; font-size: 15px; }
.step-category { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.step-category i { color: #a85a00; }
.step-top a { flex: none; color: #a85a00; font-weight: 550; text-decoration: none; }
.step-top a:hover { text-decoration: underline; }
.step-progress { display: flex; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.step-progress li { flex: 1; border-top: 4px solid #dde1e7; padding-top: 8px; font-size: 14px; color: #667085; }
.step-progress li.done { border-color: #f7931e; color: #343a43; }
.step-progress li.current { border-color: #f7931e; color: #111; font-weight: 650; }
.step-card { background: #fff; border: 1px solid #e4e7ec; border-radius: 18px; padding: 40px; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06); }
.step-count { color: #a85a00; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.step-card h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; text-wrap: balance; }
.step-help { color: #555b64; font-size: 16px; margin-bottom: 28px; }
.step-card .form-label { font-weight: 550; font-size: 15px; margin-bottom: 6px; }
.step-card .form-control, .step-card .form-select { background-color: #fff; border-color: #cfd4dc; padding: 12px 14px; font-size: 16px; }
.step-card .form-select { padding-right: 38px; }
.step-card .form-select:disabled { background-color: #f3f4f6; color: #667085; }
.step-card .form-control:focus, .step-card .form-select:focus { border-color: #f7931e; box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.2); }
.step-card .form-check-input { flex: none; margin: 0; width: 20px; height: 20px; border-color: #b6bdc8; }
.step-card .form-check-input:checked { background-color: #f7931e; border-color: #f7931e; }
.step-card .form-check-input:focus { border-color: #f7931e; box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.25); }
.step-field { margin-bottom: 26px; }
.step-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.step-choice { display: flex; align-items: center; gap: 12px; border: 1px solid #cfd4dc; border-radius: 12px; padding: 14px 16px; cursor: pointer; overflow-wrap: anywhere; }
.step-choice:hover { border-color: #f3c58e; }
.step-choice:has(input:checked) { border-color: #f7931e; background: #fffaf3; box-shadow: inset 0 0 0 1px #f7931e; }
.step-choices-large { grid-template-columns: 1fr; }
.step-choices-large .step-choice { gap: 16px; padding: 18px 20px; }
.step-choices-large span { flex: 1; font-size: 17px; }
.step-choices-large i { color: #a85a00; font-size: 20px; }
.step-hint { display: flex; justify-content: space-between; gap: 16px; color: #5d646e; font-size: 14px; margin: 8px 0 0; }
.step-error { color: #b42318; font-size: 14px; margin-top: 8px; }
.step-error button, .step-clear { border: 0; background: none; padding: 0; color: #a85a00; font-weight: 550; text-decoration: underline; }
.step-clear { margin-top: 12px; font-size: 14px; }
.step-upload { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed #cfd4dc; border-radius: 14px; background: #fafbfc; padding: 34px 20px; text-align: center; cursor: pointer; margin-top: 12px; }
.step-upload:hover, .step-upload.over { border-color: #f7931e; background: #fffaf3; }
.step-upload:focus-within { border-color: #f7931e; box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.2); }
.step-upload > i { font-size: 34px; color: #a85a00; line-height: 1; margin-bottom: 4px; }
.step-upload strong { font-size: 17px; }
.step-upload span { color: #5d646e; font-size: 14px; }
.step-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.step-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 16px; }
.step-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 34px; }
.step-back { color: #555b64; font-weight: 550; text-decoration: none; padding: 10px 0; }
.step-back:hover { color: #111; }
.step-actions button, .step-primary, .step-secondary { border: 0; border-radius: 10px; background: #f7931e; color: #111; font-size: 16px; font-weight: 600; padding: 14px 30px; text-decoration: none; text-align: center; }
.step-actions button:hover, .step-primary:hover { background: #e58616; color: #111; }
.step-actions button:disabled { opacity: 0.6; }
.step-actions button:focus-visible, .step-primary:focus-visible, .step-secondary:focus-visible, .step-back:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.step-note { text-align: center; color: #5d646e; font-size: 14px; margin: 18px 0 0; }
.step-account { display: flex; flex-direction: column; text-align: center; max-width: 520px; margin: 0 auto; }
.step-done { width: 58px; height: 58px; border-radius: 50%; background: #e7f6ec; color: #18794e; font-size: 30px; display: grid; place-items: center; margin: 0 auto 18px; }
.step-summary { background: #f6f7f9; border-radius: 12px; padding: 8px 18px; margin: 0 0 24px; text-align: left; }
.step-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.step-summary div + div { border-top: 1px solid #e4e7ec; }
.step-summary dt { font-weight: 400; color: #5d646e; }
.step-summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.step-secondary { background: #fff; box-shadow: inset 0 0 0 1px #cfd4dc; margin: 12px 0; }
.step-secondary:hover { background: #f6f7f9; color: #111; }

/* Single-column account pages */
.auth-card { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid #e4e7ec; border-radius: 18px; padding: 34px 40px; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.07); }
.auth-card .login-main { padding: 0; }
.auth-card .login-tag { margin-bottom: 18px; }
.auth-homeowner { background: #fff1de; color: #8a4b00; }
.auth-contractor { background: #111; color: #fff; }
.auth-second { border-top: 0; margin-top: 0; padding-top: 10px; }
@media (max-width: 575px) {
    .step-page { padding: 22px 0 40px; }
    .step-card { padding: 24px 18px; border-radius: 14px; }
    .step-card h1 { font-size: 24px; }
    .step-choices { grid-template-columns: 1fr; }
    .step-progress li span { display: none; }
    .step-actions button { flex: 1; padding: 14px 16px; }
    .auth-card { padding: 26px 20px; }
}


/* Site header and menu */
.site-nav { background: #000; padding: 15px; }
.site-nav .navbar-brand img { width: 220px; }
.site-nav .navbar-toggler { width: 46px; height: 46px; border: 0; border-radius: 12px; background: #1d1d1d; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.site-nav .navbar-toggler:focus { box-shadow: none; }
.site-nav .navbar-toggler:focus-visible { box-shadow: 0 0 0 2px #f7931e; }
.site-nav .navbar-toggler span { width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.2s, opacity 0.2s; }
.site-nav .navbar-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav .navbar-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav .navbar-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-menu-cta a { display: block; background: #f7931e; border-radius: 99px; color: #fff; padding: 7px 16px; text-decoration: none; }
.site-menu-cta a:hover { background: #e58616; color: #fff; }
.site-menu-account .bi-person-circle { font-size: 20px; }
.site-menu .dropdown-menu .dropdown-item { padding: 8px 18px; }
.site-menu-credits { padding: 8px 10px; }

@media (min-width: 992px) {
    .site-nav .navbar-toggler { display: none; }
    .site-menu { align-items: center; gap: 4px; }
    .site-menu-cta { margin-right: 8px; }
    .site-menu-icon { display: none; }
    .site-menu-badge { font-size: 10px; vertical-align: top; }
    .site-menu-account > .nav-link { display: flex; align-items: center; gap: 8px; }
}

@media (max-width: 991px) {
    .site-nav { padding: 12px 4px; }
    .site-nav .navbar-brand { margin-right: 0; padding: 0; }
    .site-nav .navbar-brand img { width: 200px; }
    .site-nav .navbar-collapse { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
    .site-menu { padding: 16px 0 10px; }
    .site-menu .nav-link, .site-menu .dropdown-item { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 15px 4px; border-bottom: 1px solid #262626; background: none; color: #fff; font-size: 17px !important; font-weight: 500; white-space: normal; text-align: left; }
    .site-menu .nav-link:hover, .site-menu .dropdown-item:hover, .site-menu .nav-link:focus-visible, .site-menu .dropdown-item:focus-visible { color: #f7931e; }
    .site-menu-icon { color: #f7931e; font-size: 19px; width: 22px; text-align: center; }
    .site-menu-badge { margin-left: auto; font-size: 13px; }
    /* The button closes the menu, below the links. */
    .site-menu-cta { order: 1; padding-top: 18px; }
    .site-menu-cta a { border-radius: 12px; color: #111; font-size: 17px; font-weight: 600; padding: 14px; text-align: center; }
    .site-menu-cta a:hover { color: #111; }
    /* Account links are listed, so there is no menu inside the menu. */
    .site-menu-account { margin-top: 18px; background: #151515; border-radius: 14px; padding: 4px 16px; }
    .site-menu-account > .nav-link { pointer-events: none; color: #b5b5b5; }
    .site-menu-account > .nav-link::after { display: none; }
    .site-menu-account .dropdown-menu { display: block; position: static; border: 0; background: none; padding: 0; }
    .site-menu .dropdown-menu .dropdown-item { padding: 14px 0; font-size: 16px !important; }
    .site-menu-account form .dropdown-item { border-bottom: 0; }
}
@media (max-width: 359px) { .site-nav .navbar-brand img { width: 170px; } }
@media (prefers-reduced-motion: reduce) { .site-nav .navbar-toggler span { transition: none; } }


/* Homepage: Browse by Category */
.browse-row .scroll-row-items { --per-row: 5; --gap: 20px; }
.browse-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 164px; background: #fff; border: 1px solid #e4e7ec; border-radius: 16px; padding: 24px 14px; color: #111; font-size: 16px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; box-shadow: 0 2px 6px rgba(16, 24, 40, 0.06); transition: border-color 0.15s, box-shadow 0.15s; overflow-wrap: anywhere; }
.browse-card i { width: 60px; height: 60px; border-radius: 16px; background: #fff1de; color: #a85a00; font-size: 27px; display: grid; place-items: center; transition: background-color 0.15s, color 0.15s; }
.browse-card:hover { color: #111; border-color: #f7931e; box-shadow: 0 8px 18px rgba(16, 24, 40, 0.1); }
.browse-card:hover i { background: #f7931e; color: #111; }
.browse-card:focus-visible { outline: 2px solid #f7931e; outline-offset: 2px; }
@media (max-width: 992px) { .browse-row .scroll-row-items { --per-row: 4; } }
@media (max-width: 768px) { .browse-row .scroll-row-items { --per-row: 3.3; --gap: 14px; } }
@media (max-width: 480px) { .browse-row .scroll-row-items { --per-row: 2.3; } .browse-card { min-height: 146px; font-size: 15px; } .browse-card i { width: 52px; height: 52px; font-size: 24px; } }
.browse-card img { width: 60px; height: 60px; border-radius: 16px; object-fit: contain; }


/* Site footer */
.site-footer { background: #0d0d0d; color: #b9bec6; border-top: 4px solid #f7931e; padding: 56px 0 28px; font-size: 15px; }
.site-footer-main { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.site-footer-brand { flex: 1 1 260px; max-width: 320px; }
.site-footer-brand img { width: 230px; max-width: 100%; height: auto; }
.site-footer-brand p { margin: 18px 0 0; line-height: 1.6; }
.site-footer h2 { color: #fff; font-size: 16px; font-weight: 650; margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 4px; }
.site-footer nav a { display: inline-block; padding: 5px 0; }
.site-footer a { color: #b9bec6; text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: #f7931e; }
.site-footer a:focus-visible { outline: 2px solid #f7931e; outline-offset: 3px; border-radius: 3px; }
.site-footer-note { border-top: 1px solid #2a2a2a; margin: 44px 0 0; padding: 26px 0; color: #9aa0a9; font-size: 13px; line-height: 1.7; }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid #2a2a2a; padding-top: 24px; font-size: 14px; }
.site-footer-legal { display: flex; gap: 24px; }
@media (max-width: 991px) {
    .site-footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; }
    .site-footer-brand { grid-column: 1 / -1; max-width: none; }
}
main:has(.join-pro-network-style) { padding-bottom: 0 !important; }
@media (max-width: 575px) {
    .site-footer { padding: 40px 0 24px; }
    .site-footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .site-footer-brand { grid-column: 1 / -1; max-width: none; }
    .site-footer nav a { padding: 8px 0; }
    .site-footer-note { margin-top: 36px; }
    .site-footer-bottom { flex-direction: column-reverse; align-items: center; text-align: center; }
}


/* My Projects */
.projects-page { padding-top: 16px; padding-bottom: 40px; min-height: 50vh; }
.projects-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.projects-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.projects-head p { color: #555b64; margin: 4px 0 0; }
.projects-head .step-primary { flex: none; padding: 12px 22px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e4e7ec; border-radius: 16px; overflow: hidden; color: #111; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.project-card:hover { color: #111; border-color: #f7931e; box-shadow: 0 8px 18px rgba(16, 24, 40, 0.1); }
.project-card:focus-visible { outline: 2px solid #f7931e; outline-offset: 2px; }
.project-card-photo { position: relative; aspect-ratio: 16 / 9; background: #fff1de; color: #a85a00; display: grid; place-items: center; overflow: hidden; }
.project-card-photo > i { font-size: 46px; line-height: 1; }
.project-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-card-count { position: absolute; right: 12px; bottom: 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 13px; padding: 3px 9px; }
.project-card-photo.no-photo .project-card-count { display: none; }
.project-card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 18px 20px; }
.project-status { border-radius: 99px; background: #f0f1f4; color: #4b525c; font-size: 13px; font-weight: 550; padding: 4px 11px; margin-bottom: 12px; }
.project-status.has-responses { background: #e7f6ec; color: #146c43; }
.project-card h2 { font-size: 19px; font-weight: 650; margin: 0 0 10px; overflow-wrap: anywhere; }
.project-card-place { display: flex; gap: 9px; color: #555b64; font-size: 15px; margin: 0 0 6px; overflow-wrap: anywhere; }
.project-card-foot { display: flex; justify-content: space-between; gap: 12px; align-self: stretch; margin-top: auto; padding-top: 14px; color: #667085; font-size: 14px; }
.project-card-foot > i { color: #a85a00; font-size: 17px; }
.projects-empty { background: #fff; border: 1px solid #e4e7ec; border-radius: 18px; padding: 56px 24px; text-align: center; }
.projects-empty > i { font-size: 46px; color: #a85a00; }
.projects-empty h2 { font-size: 22px; font-weight: 650; margin: 12px 0 6px; }
.projects-empty p { color: #555b64; margin-bottom: 26px; }
.projects-empty .step-primary { display: inline-block; }
@media (max-width: 991px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
    .projects-head { margin-bottom: 20px; }
    .projects-head h1 { font-size: 26px; }
    .projects-head .step-primary { padding: 11px 16px; font-size: 15px; }
    .projects-grid { grid-template-columns: 1fr; gap: 16px; }
}


/* Shared by the account pages */
.page-back { display: inline-flex; gap: 8px; margin-bottom: 18px; color: #a85a00; font-weight: 550; text-decoration: none; }
.page-back:hover { color: #a85a00; text-decoration: underline; }
.panel { background: #fff; border: 1px solid #e4e7ec; border-radius: 16px; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #e4e7ec; }
.panel-head h2 { font-size: 18px; font-weight: 650; margin: 0; }
.panel-head .project-status { margin: 0; }
.keep-lines { white-space: pre-line; overflow-wrap: anywhere; }
.narrow-page { max-width: 720px; }
.avatar { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff1de; color: #8a4b00; font-size: 16px; font-weight: 650; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.stars { display: inline-flex; gap: 3px; color: #e8890c; }
.empty-state { text-align: center; padding: 48px 24px; max-width: 440px; margin: 0 auto; }
.empty-state > i { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%; background: #fff1de; color: #a85a00; font-size: 28px; }
.empty-state h2, .empty-state h3 { font-size: 19px; font-weight: 650; margin: 0 0 6px; }
.empty-state p { color: #555b64; margin: 0; }
.detail-list { margin: 0; padding: 6px 22px; }
.detail-list > div { padding: 14px 0; }
.detail-list > div + div { border-top: 1px solid #eef0f3; }
.detail-list dt { font-weight: 400; font-size: 14px; color: #5d646e; margin-bottom: 2px; }
.detail-list dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.detail-list a { color: #a85a00; }

/* Project details */
.detail-head { display: flex; gap: 18px; align-items: center; margin-bottom: 28px; }
.detail-head > i { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: #fff1de; color: #a85a00; font-size: 29px; }
.detail-head h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; text-wrap: balance; }
.detail-head p { display: flex; flex-wrap: wrap; gap: 4px 20px; color: #555b64; margin: 0; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.response { display: flex; gap: 16px; padding: 22px; }
.response + .response { border-top: 1px solid #e4e7ec; }
.response-main { flex: 1; min-width: 0; }
.response h3 { font-size: 17px; font-weight: 650; margin: 0; }
.response h3 a { color: #111; }
.response small { color: #667085; font-size: 14px; }
.response p { margin: 10px 0 16px; white-space: pre-line; overflow-wrap: anywhere; }
.response .step-primary { padding: 10px 20px; font-size: 15px; }
.detail-photos { padding: 16px 22px 22px; border-top: 1px solid #e4e7ec; }
.detail-photos h3 { font-size: 14px; color: #5d646e; margin-bottom: 10px; }
.detail-photos > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.detail-photos button { border: 0; padding: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #f0f1f4; }
.detail-photos button:focus-visible { outline: 2px solid #f7931e; outline-offset: 2px; }
.detail-photos img { width: 100%; height: 100%; object-fit: cover; }
.detail-photos p { display: none; color: #667085; font-size: 14px; margin: 0; }
.detail-photos:not(:has(button)) p { display: block; }

/* Messages */
.chat-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.chat-index { grid-template-columns: 320px minmax(0, 1fr); }
.chat-back { display: none; }
.chat-list { overflow: hidden; }
.chat-list ul { list-style: none; margin: 0; padding: 8px; max-height: 560px; overflow-y: auto; }
.chat-list a { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 11px 12px; color: #111; text-decoration: none; }
.chat-list a:hover { background: #f6f7f9; }
.chat-list a.active { background: #fff1de; }
.chat-list a.active .avatar { background: #fff; }
.chat-list a:focus-visible { outline: 2px solid #f7931e; outline-offset: -2px; }
.chat-list-text { flex: 1; min-width: 0; }
.chat-list-text strong, .chat-list-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-list-text strong { font-weight: 550; }
.chat-list .unread strong { font-weight: 750; }
.chat-list-text small, .chat-head small { color: #5d646e; font-size: 14px; }
.chat-list-empty { color: #555b64; padding: 14px; }
.chat-choose { display: grid; place-items: center; min-height: 460px; }
.chat-panel { overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid #e4e7ec; }
.chat-head div { min-width: 0; overflow-wrap: anywhere; }
.chat-head strong, .chat-head small { display: block; }
.chat-messages { height: 460px; overflow-x: hidden; overflow-y: auto; display: flex; flex-direction: column-reverse; background: #fafbfc; padding: 20px; }
.chat-messages ul { list-style: none; margin: 0; padding: 0; }
.chat-none { flex-direction: row; align-items: center; }
.chat-none .empty-state { padding: 0; }
.chat-starters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chat-starters button { border: 1px solid #cfd4dc; border-radius: 99px; background: #fff; color: #111; font-size: 14px; padding: 9px 16px; }
.chat-starters button:hover { border-color: #f7931e; background: #fffaf3; }
.chat-message { display: flex; flex-direction: column; align-items: flex-start; margin-top: 14px; }
.chat-message.own { align-items: flex-end; }
.chat-bubble { max-width: 80%; background: #fff; border: 1px solid #e4e7ec; border-radius: 16px 16px 16px 4px; padding: 10px 15px; overflow-wrap: anywhere; }
.own .chat-bubble { background: #ffe4c2; border-color: #ffe4c2; border-radius: 16px 16px 4px 16px; }
.chat-message small { color: #667085; font-size: 12px; margin-top: 4px; }
.chat-earlier { text-align: center; }
.chat-earlier button { border: 0; background: none; color: #a85a00; font-weight: 550; }
.chat-foot { border-top: 1px solid #e4e7ec; padding: 14px 16px; }
.chat-input { display: flex; align-items: flex-end; gap: 10px; }
.chat-input textarea { flex: 1; min-width: 0; border: 1px solid #cfd4dc; border-radius: 12px; padding: 11px 14px; font-size: 16px; resize: none; field-sizing: content; max-height: 150px; }
.chat-input textarea:focus { outline: 0; border-color: #f7931e; box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.2); }
.chat-input button { flex: none; border: 0; border-radius: 12px; background: #f7931e; color: #111; font-weight: 600; padding: 12px 18px; }
.chat-input button:hover { background: #e58616; }
.chat-input button:disabled { opacity: 0.6; }
.chat-contact { display: flex; flex-direction: column; text-align: center; padding: 22px; border-bottom: 1px solid #e4e7ec; }
.chat-contact .avatar { width: 76px; height: 76px; font-size: 25px; margin: 0 auto 12px; }
.chat-contact h3 { font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.chat-contact p { color: #555b64; margin: 0 0 6px; }
.chat-contact .step-primary, .chat-contact .step-secondary { padding: 11px 16px; font-size: 15px; margin: 10px 0 0; }

/* Reviews and settings */
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.review-card { display: flex; flex-direction: column; padding: 24px; }
.review-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.review-top .avatar { width: 54px; height: 54px; }
.review-card h2 { font-size: 18px; font-weight: 650; margin: 0 0 3px; overflow-wrap: anywhere; }
.review-card h2 a { color: #111; text-decoration: none; }
.review-card h2 a:hover { text-decoration: underline; }
.review-top p { margin: 0; }
.review-text { margin-bottom: 18px; }
.review-scores { background: #f6f7f9; border-radius: 12px; padding: 12px 16px; margin: 0; }
.review-scores div { display: flex; justify-content: space-between; padding: 4px 0; }
.review-scores dt { font-weight: 400; color: #4b525c; }
.review-scores dd { margin: 0; }
.review-foot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 18px; color: #667085; font-size: 14px; }
.review-foot a { color: #a85a00; font-weight: 550; }
.rate { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eef0f3; padding: 8px 0; }
.rate legend { float: left; width: auto; font-size: 16px; font-weight: 550; margin: 0; }
.rate > div { display: flex; }
.rate label { position: relative; padding: 6px; cursor: pointer; }
.rate input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rate i { color: #cfd4dc; font-size: 25px; line-height: 1; }
/* A star is lit when it, or one after it, is chosen. */
.rate label:has(input:checked) i, .rate label:has(~ label input:checked) i { color: #e8890c; }
.rate label:has(input:focus-visible) { outline: 2px solid #f7931e; border-radius: 8px; }
.settings-card { padding: 28px 32px; margin-bottom: 20px; box-shadow: none; }
.settings-card h2 { font-size: 19px; font-weight: 650; margin: 0 0 4px; }
.settings-card > p { color: #555b64; margin: 0; }
.settings-card .step-field { margin: 18px 0 0; }
@media (max-width: 1199px) {
    .chat-layout:not(.chat-index) { grid-template-columns: 260px minmax(0, 1fr); }
    .chat-side { grid-column: 2; }
}
@media (max-width: 991px) {
    .detail-layout, .reviews-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .chat-layout, .chat-layout:not(.chat-index) { grid-template-columns: minmax(0, 1fr); }
    .chat-side { grid-column: auto; }
    .chat-page .chat-list, .chat-choose { display: none; }
    .chat-back { display: inline-flex; }
    .chat-messages { height: 50vh; min-height: 320px; padding: 16px; }
    .detail-head { align-items: flex-start; }
    .detail-head > i { width: 50px; height: 50px; font-size: 23px; }
    .detail-head h1 { font-size: 25px; }
    .settings-card { padding: 22px 18px; }
}

/* Contractor profile */
.profile-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.profile-card { position: sticky; top: 120px; display: flex; flex-direction: column; text-align: center; padding: 30px 26px 14px; }
.profile-card .avatar { width: 112px; height: 112px; border-radius: 22px; font-size: 36px; margin: 0 auto 18px; }
.profile-card .avatar img { object-fit: contain; }
.profile-card h1 { font-size: 25px; font-weight: 700; margin-bottom: 8px; overflow-wrap: anywhere; text-wrap: balance; }
.profile-card > p { color: #555b64; margin: 0 0 8px; }
.profile-card .project-status { display: inline-block; margin: 4px 0; }
.profile-rating { color: #555b64; text-decoration: none; margin-bottom: 6px; }
.profile-rating:hover { color: #111; text-decoration: underline; }
.profile-card .step-primary { margin: 14px 0 8px; }
.profile-card > small { color: #667085; font-size: 14px; }
.profile-card .detail-list { text-align: left; padding: 0; margin-top: 14px; }
.profile-card .detail-list > div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #eef0f3; }
.profile-card .detail-list dd { text-align: right; }
.profile-text { padding: 20px 22px; margin: 0; line-height: 1.65; }
.profile-tags, .profile-tags details div { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-tags { padding: 20px 22px; }
.profile-tags span { border-radius: 99px; background: #f0f1f4; font-size: 14px; padding: 6px 13px; }
.profile-tags details { width: 100%; }
.profile-tags summary { color: #a85a00; font-weight: 550; padding: 4px 0; }
.profile-photos { border-top: 0; padding-top: 22px; }
.profile-photos > div { grid-template-columns: repeat(4, 1fr); }
.panel-link { margin-left: auto; color: #a85a00; font-weight: 550; }
#reviews { scroll-margin-top: 120px; }
.profile-summary { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; padding: 22px; }
.profile-summary > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.profile-summary > div > strong { font-size: 42px; line-height: 1; }
.profile-review { border-top: 1px solid #e4e7ec; padding: 20px 22px; }
.profile-review p { margin: 0 0 8px; }
.profile-review time, .profile-review small { color: #667085; font-size: 14px; }
.profile-review time { margin-left: 8px; }
@media (max-width: 991px) {
    .profile-layout { grid-template-columns: minmax(0, 1fr); }
    .profile-card { position: static; }
}
@media (max-width: 575px) {
    .profile-summary { grid-template-columns: minmax(0, 1fr); }
    .profile-photos > div { grid-template-columns: repeat(3, 1fr); }
}

/* Billing */
.billing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #cfd4dc; border-radius: 14px; padding: 20px; cursor: pointer; }
.pack:hover { border-color: #f3c58e; }
.pack:has(input:checked) { border-color: #f7931e; background: #fffaf3; box-shadow: inset 0 0 0 1px #f7931e; }
.pack-grid:disabled .pack { cursor: default; opacity: 0.6; }
.pack .form-check-input { position: absolute; top: 20px; right: 20px; width: 20px; height: 20px; margin: 0; border-color: #b6bdc8; }
.pack .form-check-input:checked { background-color: #f7931e; border-color: #f7931e; }
.pack .form-check-input:focus { border-color: #f7931e; box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.25); }
.pack-credits strong { font-size: 30px; letter-spacing: -0.02em; }
.pack-price { font-size: 21px; font-weight: 650; margin-top: 4px; }
.pack-each { color: #5d646e; font-size: 14px; }
.pack .project-status { margin: 12px 0 0; }
.pay-body { padding: 22px; }
.pay-total { font-size: 21px; }
.pay-label { font-weight: 550; font-size: 15px; margin: 0 0 6px; }
#card-element { border: 1px solid #cfd4dc; border-radius: 10px; padding: 15px 14px; }
#card-element.StripeElement--focus { border-color: #f7931e; box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.2); }
#card-element.StripeElement--invalid { border-color: #b42318; }
.pay-body .step-primary { margin-top: 18px; }
.pay-body .step-primary:disabled { opacity: 0.6; }
.history-table { margin: 0; }
.history-table th { color: #5d646e; font-size: 14px; font-weight: 550; }
.history-table th, .history-table td { background: none; padding: 15px 22px; white-space: nowrap; }
.history-table tr:last-child td { border-bottom: 0; }
.history-table small { color: #667085; }
@media (max-width: 991px) { .billing-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) {
    .pack-grid { gap: 10px; padding: 14px; }
    .pack { padding: 14px; }
    .pack .form-check-input { top: 14px; right: 14px; }
    .pack-credits strong { display: block; font-size: 26px; line-height: 1.2; }
}

/* Contractor leads */
.lead-tabs { display: inline-flex; gap: 4px; background: #f0f1f4; border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.lead-tabs a { border-radius: 9px; color: #4b525c; font-weight: 550; padding: 9px 22px; text-decoration: none; }
.lead-tabs a:hover { color: #111; }
.lead-tabs a[aria-current] { background: #fff; color: #111; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.14); }
.lead-tabs a:focus-visible { outline: 2px solid #f7931e; }
.lead-credits { background: #fff1de; color: #8a4b00; }
.lead-others { margin: 40px 0 20px; }
.lead-others h2 { font-size: 21px; font-weight: 650; margin: 0 0 4px; }
.lead-others p { color: #555b64; margin: 0; }

/* Contractor: one lead */
.lead-layout > aside { position: sticky; top: 120px; }
.profile-main .lead-photos > div { grid-template-columns: repeat(4, 1fr); }
.lead-short { color: #b42318; font-weight: 550; margin: 0; }
.lead-note { color: #555b64; margin: 0 0 12px; }
.pay-body .step-primary.mt-0 { margin-top: 0; }
.pay-body .step-summary { margin: 0 0 16px; }
.lead-message { background-color: #fff; border-color: #cfd4dc; padding: 12px 14px; font-size: 16px; }
.lead-message:focus { background-color: #fff; border-color: #f7931e; box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.2); }
.lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
@media (max-width: 991px) {
    /* Responding comes first on a phone, before a long description. */
    .lead-layout > aside { position: static; order: -1; }
    .profile-main .lead-photos > div { grid-template-columns: repeat(3, 1fr); }
}

/* Something not seen yet, matching the menu badge */
.project-status.is-new { background: #dc3545; color: #fff; }
.lead-pills { display: flex; flex-wrap: wrap; gap: 0 8px; }

/* Public content pages: services, towns and the blog */
.content-page { background: #f6f7f9; margin-top: -24px; padding-bottom: 56px; }
.content-hero { background: #fff; border-bottom: 1px solid #e4e7ec; padding: 28px 0 36px; margin-bottom: 32px; }
.content-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; margin: 14px 0 12px; max-width: 22ch; text-wrap: balance; }
.content-hero p { font-size: 18px; color: #4a5059; max-width: 62ch; margin-bottom: 22px; }
.content-hero .step-primary { display: inline-block; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.content-main { display: grid; gap: 28px; min-width: 0; }
.content-section, .content-prose, .content-faq { background: #fff; border: 1px solid #e4e7ec; border-radius: 16px; padding: 26px 28px; }
.content-section > h2, .content-faq > h2 { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.content-muted { color: #5d646e; margin: 0; }

.content-prose { font-size: 17px; line-height: 1.7; color: #22262c; }
.content-prose h2 { font-size: 24px; font-weight: 700; margin: 30px 0 12px; }
.content-prose h3 { font-size: 19px; font-weight: 650; margin: 24px 0 10px; }
.content-prose > :first-child { margin-top: 0; }
.content-prose > :last-child { margin-bottom: 0; }
.content-prose a { color: #a85a00; text-decoration: underline; text-underline-offset: 2px; }
.content-prose ul, .content-prose ol { padding-left: 1.3em; }
.content-prose li { margin-bottom: 6px; }
.content-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.content-prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.content-prose th, .content-prose td { border: 1px solid #e4e7ec; padding: 10px 12px; text-align: left; vertical-align: top; }
.content-prose th { background: #f6f7f9; }

.content-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.content-card { display: flex; flex-direction: column; gap: 6px; height: 100%; border: 1px solid #e4e7ec; border-radius: 12px; background: #fff; color: #111; padding: 16px 18px; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.content-card:hover { border-color: #f7931e; box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08); color: #111; }
.content-card:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.content-card strong { font-weight: 650; line-height: 1.35; }
.content-card small { color: #5d646e; font-size: 14px; line-height: 1.5; }
.content-card > .bi { font-size: 22px; color: #a85a00; }
.pro-card { flex-direction: row; align-items: center; gap: 14px; }
.pro-card > span:last-child { display: flex; flex-direction: column; min-width: 0; }

.content-towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 28px; }
.content-towns h3 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #5d646e; margin-bottom: 10px; }
.content-towns ul, .content-links { list-style: none; padding: 0; margin: 0; }
.content-towns li { margin-bottom: 6px; }
.content-towns a, .content-links a { color: #a85a00; }
.content-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }

.content-faq details { border-top: 1px solid #e4e7ec; }
.content-faq details:last-of-type { border-bottom: 1px solid #e4e7ec; }
.content-faq summary { list-style: none; display: flex; align-items: center; gap: 0.6ch; padding: 16px 0; font-weight: 600; cursor: pointer; }
.content-faq summary::-webkit-details-marker { display: none; }
.content-faq summary::before { content: "\203A" / ""; flex: none; display: inline-block; width: 1em; font-size: 22px; line-height: 1; color: #a85a00; text-align: center; rotate: 0deg; }
.content-faq details[open] > summary::before { rotate: 90deg; }
.content-faq summary:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.content-faq details p { margin: 0 0 18px calc(1em + 0.6ch); color: #3a3f46; line-height: 1.65; }
@media (prefers-reduced-motion: no-preference) { .content-faq summary::before { transition: rotate 0.2s; } }

.content-cta { position: sticky; top: 110px; background: #111; color: #e9ebee; border-radius: 16px; padding: 26px; }
.content-cta h2 { color: #fff; font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.content-cta p { color: #c3c8cf; margin-bottom: 18px; }
.content-cta .step-primary { display: block; }
.content-cta-more { display: block; margin-top: 12px; color: #f7b35e; text-align: center; }
.content-cta ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 15px; }
.content-cta .bi { color: #f7931e; margin-right: 6px; }

.breadcrumb > ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; list-style: none; padding: 0; margin: 0; font-size: 14px; }
.breadcrumb > ol > li + li::before { content: "/" / ""; color: #9aa0a9; margin-right: 8px; }
.breadcrumb a { color: #5d646e; text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: #111; text-decoration: underline; }
.breadcrumb a[aria-current="page"] { color: #111; font-weight: 600; }
.breadcrumb a:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

.blog-grid { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e4e7ec; border-radius: 16px; overflow: hidden; color: #111; text-decoration: none; }
.blog-card:hover { border-color: #f7931e; color: #111; }
.blog-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-card > span { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.blog-card small { color: #a85a00; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card strong { font-size: 19px; line-height: 1.35; }
.blog-card span span, .blog-card time { color: #5d646e; font-size: 15px; }
.blog-meta { font-size: 15px !important; margin-bottom: 0 !important; }
.blog-draft { display: inline-block; background: #fff1de; color: #8a4b00; border-radius: 8px; padding: 4px 10px; font-size: 14px !important; font-weight: 600; margin: 14px 0 0 !important; }
.blog-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }

@media (max-width: 991px) {
    .content-layout { grid-template-columns: minmax(0, 1fr); }
    .content-cta { position: static; }
}
@media (max-width: 575px) {
    .content-section, .content-prose, .content-faq { padding: 20px; }
}
