.solicitors-finder__panel { display: none !important; }
    .solicitors-finder__panel.is-active { display: block !important; }

    .solicitors-finder__panels,
    .solicitors-finder__panel,
    .solicitors-finder__search-results,
    .solicitors-finder__search-results-list {
        width: 100%;
    }

    .solicitors-finder__list {
        display: none !important;
    }
    .solicitors-finder__list.is-active {
        display: flex !important;
        width: 100%;
        gap: 24px;
        align-items: flex-start;
    }

    .solicitors-finder__col {
        flex: 1 1 0%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .solicitors-finder__row {
        position: relative;
        width: 100%;
    }

    .solicitors-finder__row-toggle {
        width: 100%;
    }

    .solicitors-finder__row-details {
        display: none !important;
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
    }
    .solicitors-finder__row.is-open .solicitors-finder__row-details {
        display: flex !important;
        position: static !important;
        flex-wrap: wrap;
        gap: 16px;
        background: #F2EFEC;
    }

    .solicitors-finder__search-results { display: none !important; }
    .solicitors-finder__search-results.is-active { display: block !important; }
    .solicitors-finder__panels.is-hidden-by-search,
    .solicitors-finder__az.is-hidden-by-search { display: none !important; }

    .solicitors-finder__az-btn.is-disabled { opacity: 0.35; cursor: not-allowed; }

    .solicitors-finder__row.is-open .solicitors-finder__chevron { transform: rotate(180deg); }
    .solicitors-finder__chevron { transition: transform 0.15s ease; }

/* New added starts*/
.solicitors-finder__row-details {
    display: none !important;
}

.solicitors-finder__row.is-open .solicitors-finder__row-details {
    display: flex !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    flex-wrap: wrap;
    gap: 16px;
    background: #F2EFEC;
    z-index: 2;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* keep the open row above its neighbours so the overlay isn't hidden behind them */
.solicitors-finder__row.is-open {
    z-index: 5;
}

.solicitors-finder__row-toggle {
    transition: none;
}

.solicitors-finder__chevron {
    transition: transform 0.15s ease;
    transform-origin: center;
}

/* Rotate based on aria-expanded, which is always present regardless of class name */
.solicitors-finder__row-toggle[aria-expanded="true"] .solicitors-finder__chevron {
    transform: rotate(180deg);
}

/* Keep these as a fallback in case your JS also toggles a class */
.solicitors-finder__row.is-open .solicitors-finder__chevron,
.solicitors-finder__row.is-expanded .solicitors-finder__chevron {
    transform: rotate(180deg);
}

/* Dim all rows in the list whenever any row is open */
.solicitors-finder__list:has(.solicitors-finder__row.is-open)
  .solicitors-finder__row:not(.is-open) {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

/* Keep the open row fully visible and above the dimmed ones */
.solicitors-finder__row.is-open {
    opacity: 1;
    z-index: 5;
}

/* fallback for browsers without :has() support, if your JS does toggle a class */
.solicitors-finder__panel.has-expanded .solicitors-finder__row:not(.is-open) {
    opacity: 0.5;
}

    
/*New added ends */

/* Conveyancing New - box banner (scoped to this page only, see heroText.cshtml) */
.hero.hero-conveyancing-box {
  background: #EFE7DA;
}

.hero-conveyancing-box .hero-inner {
  background-image: url("/media/aarbq0mx/conveyancingbannerbg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 420px 273px;
}

.hero-conveyancing-box h1.banner-title {
  color: #1A1A1A;
  position: relative;
}

/* Conveyancing New - panel CTA cards */
.conveyancing-cta-cards {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px 80px 20px;
  text-align: center;
}

.conveyancing-cta-cards__intro {
    margin: 0 0 32px;
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.conveyancing-cta-cards__intro a {
  color: #282826;
  text-decoration: underline;
}

.conveyancing-cta-cards__grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.conveyancing-cta-cards__card {
    background: #F0EAE1;
    flex: 1 1 352px;
    max-width: 352px;
    padding: 43.5px;
    border-radius: 2px;
    text-align: center;
}

.conveyancing-cta-cards__card h3 {
    margin: 0 0 16px;
    color: #282826;
    text-align: center;
    font-family: "Inter-SemiBold";
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 33.6px;
}

.conveyancing-cta-cards__card p {
    margin: 0 0 24px;
    color: #282826;
    text-align: center;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.conveyancing-cta-cards__btn {
    display: inline-block;
    background: #FFFFFF;
    padding: 12px 32px;
    text-decoration: none;
    border-radius: 2px;
    color: #010101;
    text-align: center;
    font-family: "Inter-Medium";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    width: 100%;
}

.conveyancing-cta-cards__btn:hover {
  background: #F5F5F5;
}

@media (max-width: 640px) {
  .conveyancing-cta-cards__grid {
    flex-direction: column;
    align-items: stretch;
  }

  .conveyancing-cta-cards__card {
    max-width: 100%;
  }
}

.hero.hero-solicitors-window {
  background: #EFE7DA;
}

.hero-solicitors-window .hero-inner {
  background-image: url("/media/sdhh33rg/solicitorspanelbg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 220px 320px;
}

.hero-solicitors-window h1.banner-title {
    color: #000;
    text-align: center;
    font-family: "Vanilla Bold";
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: 115%;
}

/* Solicitors panel - firm finder (static visual, no live search) */
.solicitors-finder {
    max-width: 913px;
    margin: 0 auto;
    padding: 60px 0px;
}

.solicitors-finder__intro {
  background: #F0EAE1;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  /* flex-wrap: wrap; */
}

.solicitors-finder__intro-title {
    margin: 0 0 8px;
    color: #282826;
    font-family: "Inter-Bold";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

.solicitors-finder__intro-sub {
    margin: 0;
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.solicitors-finder__intro-sub a {
    color: #282826;
    font-family: "Inter-Medium";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.solicitors-finder__search {
  text-align: center;
}

.solicitors-finder__search-box {
  display: flex;
  background: #FFFFFF;
}

.solicitors-finder__search-box input {
    border: none;
    font-size: 14px;
    background: transparent;
    display: flex;
    width: 189px;
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
    height: 47px;
}

.solicitors-finder__search-box input:focus {
  outline: none;
}

.solicitors-finder__search-box button {
background: #fff;
    border: none;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solicitors-finder__browse-label {
    margin: 10px 0 0;
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    position: relative;
    top: 7px;
}

.solicitors-finder.is-searching .solicitors-finder__az,
.solicitors-finder.is-searching .solicitors-finder__panels {
  display: none;
}

.solicitors-finder__search-results {
  display: none;
  margin: 32px 0;
  background: #F0EAE1;
  padding: 24px;
}

.solicitors-finder.is-searching .solicitors-finder__search-results {
  display: block;
}

.solicitors-finder__search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.solicitors-finder__search-results-title {
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
}

.solicitors-finder__search-clear {
  background: #FFFFFF;
  border: 1px solid #DDD3C5;
  padding: 8px 16px;
  font-size: 14px;
  color: #1A1A1A;
  cursor: pointer;
  flex-shrink: 0;
}

.solicitors-finder__search-results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.solicitors-finder__search-result-card {
  background: #FFFFFF;
  border: 1px solid #E5E0D6;
  padding: 16px 18px;
}

.solicitors-finder__search-result-card strong {
  display: block;
  color: #1A1A1A;
  font-size: 16px;
  margin-bottom: 8px;
}

.solicitors-finder__search-result-card p {
  margin: 0;
  color: #4A4A48;
  font-size: 14px;
  line-height: 1.5;
}

.solicitors-finder__az {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.solicitors-finder__az-btn {
padding: 10px 0;
    border: 1px solid #DEE2E6;
    background: #FFF;
    color: #282826;
    text-align: center;
    font-family: "Inter-Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
}

.solicitors-finder__az-btn.is-active {
    border: #DEE2E6;
    background: #E5DECE;
    color: #282826;
    text-align: center;
    font-family: "Inter-Bold";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 27px;
}

.solicitors-finder__list {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.solicitors-finder__list.is-active {
  display: grid;
}

.solicitors-finder__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.solicitors-finder__panel {
  display: none;
}

.solicitors-finder__panel.is-active {
  display: block;
}

.solicitors-finder__row {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border: 0px solid #E5E0D6;
  transition: opacity 0.2s ease;
}

.solicitors-finder__row.is-expanded {
  background: #F0EAE1;
  border-color: #F0EAE1;
  z-index: 2;
}

.solicitors-finder__panel.has-expanded .solicitors-finder__row:not(.is-expanded) {
  opacity: 0.6;
}

.solicitors-finder__row-toggle {
width: 100%;
    border: none;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    color: #282826;
    font-family: "Inter-Medium";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    background: #F2EFEC;
}

.solicitors-finder__row.is-expanded .solicitors-finder__row-toggle {
  color: #1A1A1A;
  font-weight: 700;
  background: #F0EAE1;
}

.solicitors-finder__chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: #9C9690;
}

.solicitors-finder__row.is-expanded .solicitors-finder__chevron {
  transform: rotate(180deg);
  color: #1A1A1A;
}

.solicitors-finder__row-details {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 16px 18px 18px;
  background: #F0EAE1;
  border: 1px solid #F0EAE1;
  border-top: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  gap: 16px;
}

.solicitors-finder__row.is-expanded .solicitors-finder__row-details {
  display: flex;
}

.solicitors-finder__contact strong {
    display: block;
    margin-bottom: 6px;
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
}

.solicitors-finder__contact p {
  margin: 0;
  color: #4A4A48;
  font-size: 14px;
  line-height: 1.5;
}

.solicitors-finder__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.solicitors-finder__pagination button {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DDD3C5;
    background: #FFFFFF;
    color: #282826;
    text-align: center;
    font-family: "Inter-SemiBold";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.solicitors-finder__pagination span {
  border: none;
  cursor: default;
}

.solicitors-finder__pagination .solicitors-finder__page-extra {
  display: none;
}

.solicitors-finder__pagination.is-expanded .solicitors-finder__page-extra {
  display: flex;
}

.solicitors-finder__pagination.is-expanded .solicitors-finder__ellipsis {
  display: none;
}

.solicitors-finder__pagination .solicitors-finder__page-hidden {
  display: none;
}

.solicitors-finder__pagination button.is-active {
    background: #1A1A1A;
    border-color: #1A1A1A;
    color: #F2EFEC;
    text-align: center;
    font-family: "Inter-SemiBold";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.solicitors-finder__pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

p.conveyancing-cta-cards__intro a {
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
}

@media (max-width: 767px) {
  .solicitors-finder__az {
    grid-template-columns: repeat(7, 1fr);
  }

  .solicitors-finder__list {
    grid-template-columns: 1fr;
  }

  .solicitors-finder__search {
    text-align: left;
  }
}

.solicitors-finder__pagination button[aria-label="Previous page"], .solicitors-finder__pagination button[aria-label="Next page"] {
    border: none;
}

.solicitors-finder__pagination button[aria-label="Previous page"] svg, .solicitors-finder__pagination button[aria-label="Next page"] svg {
    width: 45px;
}

p.solicitors-finder__search-error {
    position: absolute;
    font-size: 12px;
    text-align: center;
    color: red;
    width: 100%;
}

.solicitors-finder__search {
    position: relative;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .hero-conveyancing-box h1.banner-title {
      line-height: 115% !important;
      padding: 0 !important;
  }
  .hero-solicitors-window h1.banner-title {
          padding: 0 !important;
  }

  .solicitors-finder__list {
    grid-template-columns: 1fr;
  }

  .solicitors-finder__row-details {
      position: static;
  }

  .solicitors-finder {
    padding: 60px 30px;
  }
  .solicitors-finder__list.is-active {
    display: block !important;
}
}