/* Callback panels share one CF7 form across header and Divi content. */
body .not_sure_row.et_pb_row {
    width: min(92%, 1080px);
    padding: clamp(16px, 2.5vw, 30px) !important;
}
.not_sure_row .not_sure_txt h3 {
    position: relative;
    display: table;
    inset: auto;
    margin: calc(-1 * clamp(16px, 2.5vw, 30px) - 0.9em) 0 12px;
    padding: 0.45em 0.9em;
    line-height: 1.25;
}
body .not_sure_txt .et_pb_code_inner > p,
#show .not_sure_txt > p {
    color: #fff;
    padding: 0;
    margin: 0;
    line-height: 1.55;
}
/* Divi can emit whitespace-only paragraphs around the shortcode. Give the
   form its own gap so those paragraphs occupy zero space, even after formatting. */
.not_sure_txt .et_pb_code_inner > .wpcf7,
#show .not_sure_txt > .wpcf7 {
    margin-block-start: 1rem;
}
body .not_sure_txt .et_pb_code_inner > p a[href^="tel:"],
#show .not_sure_txt > p a[href^="tel:"] {
    color: white !important;
    font-weight: 800;
    white-space: nowrap;
}
.wpcf7:has(.call_back_list) {
    container-type: inline-size;
}
.wpcf7 form ul.call_back_list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 14px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.4;
}
.wpcf7 form ul.call_back_list > li,
.wpcf7 form ul.call_back_list > li > p {
    display: block;
    width: auto;
    min-width: 0;
    height: auto;
    float: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.wpcf7 form ul.call_back_list label {
    display: block;
    color: white;
    line-height: 1.35;
    margin-bottom: 4px;
}
.call_back_list label + br {
    display: none;
}
.call_back_list .wpcf7-form-control-wrap {
    display: block;
}
.wpcf7 .call_back_list .call_back_txt,
.wpcf7 .call_back_list .call_back_btn {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 46px;
    margin: 0;
    line-height: 1.25;
    font-size: 16px;
}
.wpcf7 .call_back_list .call_back_txt {
    background-color: white;
    color: #343434;
}
.wpcf7 .call_back_list select.call_back_txt,
.wpcf7 .contact-page-form select.contact_back_txt {
    appearance: auto;
    background-image: none;
}
.wpcf7 .call_back_list .call_back_btn {
    position: static;
    padding: 0 10px;
}
.wpcf7 form .call_back_list > li:last-child {
    align-self: end;
}
.wpcf7 form:not(.submitting) .call_back_list .wpcf7-spinner {
    display: none;
}
.not_sure_txt .wpcf7-not-valid-tip,
.not_sure_txt .wpcf7-response-output {
    color: white;
    line-height: 1.4;
    text-align: left;
}
.not_sure_txt :is(input,select,button,a):focus-visible,
#show button:focus-visible {
    outline: 3px solid #ffdf71;
    outline-offset: 2px;
}
@container (min-width: 32rem) {
    .wpcf7 form ul.call_back_list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 60rem) {
    .wpcf7 form ul.call_back_list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Fixed header disclosure must fit even in a short landscape viewport. */
#show.topbar-frm {
    box-sizing: border-box;
    max-height: calc(100vh - var(--lps-panel-top, 110px));
    max-height: calc(100dvh - var(--lps-panel-top, 110px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px clamp(16px, 3vw, 32px) 24px;
    text-align: left;
}
#show[hidden] { display: none !important; }
#show .clos_btn {
    position: static;
    display: block;
    margin: 0 0 8px auto;
    color: white;
    font: 28px/1 sans-serif;
    cursor: pointer;
}
body:has(#show:not([hidden])) .sfm-navicon-button {
    visibility: hidden;
}
@media (max-width: 980px) {
    #top-header .top_back .requestacall {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 53px;
        padding: 4px 6px !important;
        font-size: clamp(14px, 3.8vw, 18px) !important;
        line-height: 1.15;
    }
}
body:has(#show:not([hidden])) #top-header { z-index: 999999 !important; }
body:has(#show:not([hidden])) .sfm-rollback { pointer-events: none; }
.lps-practice-picker [hidden] { display: none !important; }
.lps-practice-picker .lps-area-link { display: inline-block; text-align: center; }
.lps-practice-picker select { max-width: 100%; }

/* Allow wide policy and fee tables to scroll within their own content column. */
.et_pb_text_inner:has(> table),
.trial-table {
    overflow-x: auto;
    max-width: 100%;
}
/* Some pages have a single slider heading and no separate mobile hero. */
@media (max-width: 767px) {
    .about_us_banner:not(:has(~ .boxsection_for_mob, ~ .inner-banner-row h1)) .main_banner .et_pb_slide_content,
    .about_us_banner:not(:has(~ .boxsection_for_mob, ~ .inner-banner-row h1)) .main_banner .lps_baner_box {
        display: block;
    }
}

/* A block wrapper keeps Divi's automatic paragraphs outside the title link. */
.rd_trafic_box_new {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: auto;
    min-height: clamp(150px, 14vw, 180px);
    padding: 16px 10px;
    cursor: default;
}
.rd_trafic_box_new > p,
.rd_trafic_box_new h4 {
    margin: 0;
    padding: 0;
}
.rd_trafic_box_new > p:empty { display: none; }
.rd_trafic_box_new img { display: block; margin: auto; }
.rd_trafic_box_new h4 { max-width: 100%; overflow-wrap: anywhere; }
.rd_trafic_box_new h4 a {
    color: inherit;
    font: inherit;
    text-decoration: none;
}
.rd_trafic_box_new h4 a::after {
    content: "";
    position: absolute;
    inset: 0;
}
.rd_trafic_box_new h4 a:focus-visible::after {
    outline: 3px solid #991f6b;
    outline-offset: -3px;
}

.lps-skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1000000;
    transform: translateY(-200%);
    background: #fff;
    color: #1a3a7c;
    padding: 0.75rem 1rem;
    transition: none;
}
.lps-skip-link:focus {
    transform: none;
    outline: 3px solid #991f6b;
}

/* Use the handset bundled with Divi when the external icon service is unavailable. */
#top-header li.top-tel::before,
.who_we_are_txt .consult a::before {
    content: "\e090";
    font-family: ETmodules !important;
    font-weight: normal;
    transform: none;
}
