/* Clinic 4.5.8 — public UI consistency / FAQ containment fix.
   Late-loaded and scoped to public-shell to neutralize legacy component collisions. */

body.public-shell .doctor-faq-section{
  overflow:clip;
}
body.public-shell .doctor-faq-section .container,
body.public-shell .doctor-faq-section__grid,
body.public-shell .doctor-faq-section__grid > *,
body.public-shell .doctor-faq-list,
body.public-shell .doctor-faq-item,
body.public-shell .doctor-faq-item > button,
body.public-shell .doctor-faq-item > button > span{
  min-width:0;
  max-width:100%;
}
body.public-shell .doctor-faq-section__grid{
  width:100%;
}
body.public-shell .doctor-faq-list{
  width:100%;
}
body.public-shell .doctor-faq-item{
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--vc-primary) 14%,#d9e7e5);
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 18px rgba(18,76,72,.035);
}
body.public-shell .doctor-faq-list{
  display:grid;
  gap:10px;
  border-top:0;
}
body.public-shell .doctor-faq-item > button{
  min-height:62px;
  padding:15px 18px;
  gap:16px;
  border:0;
  text-align:right;
  line-height:1.75;
}
body.public-shell .doctor-faq-item > button > span{
  flex:1 1 auto;
  overflow-wrap:anywhere;
}
body.public-shell .doctor-faq-item > button > b{
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:12px;
  font-size:1.12rem;
}
body.public-shell .doctor-faq-item > div{
  padding:0 18px 17px;
}
body.public-shell .doctor-faq-item > div > p{
  padding:0;
  margin:0;
  line-height:1.95;
}
body.public-shell .doctor-faq-item.is-open{
  border-color:color-mix(in srgb,var(--vc-primary) 28%,#cfe3e0);
  box-shadow:0 10px 30px rgba(18,76,72,.07);
}
body.public-shell .doctor-faq-item.is-open > button{
  background:color-mix(in srgb,var(--vc-primary) 3%,#fff);
}

/* Bootstrap FAQ page: keep the same visual language as CMS FAQ sections. */
body.public-shell .faq-accordion{
  width:100%;
  max-width:880px;
  margin-inline:auto;
}
body.public-shell .faq-accordion .accordion-item{
  border-color:color-mix(in srgb,var(--vc-primary) 14%,#d9e7e5);
  border-radius:16px!important;
  box-shadow:0 5px 18px rgba(18,76,72,.035);
}
body.public-shell .faq-accordion .accordion-button{
  min-height:62px;
  padding:15px 18px;
  line-height:1.75;
}
body.public-shell .faq-accordion .accordion-body{
  padding:0 18px 17px;
  line-height:1.95;
}

/* 992–1199px was the problematic zone: collapse the two-column FAQ earlier. */
@media (max-width:1199.98px){
  body.public-shell .doctor-faq-section__grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:28px!important;
  }
  body.public-shell .doctor-faq-section__intro{
    position:static!important;
    top:auto!important;
    width:min(100%,880px);
    margin-inline:auto;
    text-align:center;
  }
  body.public-shell .doctor-faq-section__intro > p,
  body.public-shell .doctor-faq-section__intro .section-editable-copy,
  body.public-shell .doctor-faq-section__intro .vc-section-cms-copy{
    margin-inline:auto;
  }
  body.public-shell .doctor-faq-section__intro .section-editable-actions{
    justify-content:center;
    margin-inline:auto;
  }
  body.public-shell .doctor-faq-list{
    width:min(100%,880px);
    margin-inline:auto;
  }
}

@media (max-width:767.98px){
  body.public-shell .doctor-faq-section{
    padding-block:56px;
  }
  body.public-shell .doctor-faq-section__grid{
    gap:22px!important;
  }
  body.public-shell .doctor-faq-section__intro h2{
    font-size:clamp(1.55rem,7.8vw,2rem);
    line-height:1.4;
  }
  body.public-shell .doctor-faq-item > button,
  body.public-shell .faq-accordion .accordion-button{
    min-height:58px;
    padding:13px 14px;
    font-size:.86rem;
  }
  body.public-shell .doctor-faq-item > button > b{
    width:34px;
    height:34px;
    flex-basis:34px;
  }
  body.public-shell .doctor-faq-item > div,
  body.public-shell .faq-accordion .accordion-body{
    padding:0 14px 15px;
  }
}

@media (max-width:389.98px){
  body.public-shell .doctor-faq-item > button,
  body.public-shell .faq-accordion .accordion-button{
    gap:11px;
    font-size:.82rem;
  }
  body.public-shell .doctor-faq-item > button > b{
    width:32px;
    height:32px;
    flex-basis:32px;
    border-radius:10px;
  }
}


/* 4.5.15 — compact FAQ cards and proportional spacing */
body.public-shell .doctor-faq-list,
body.public-shell .faq-accordion{
  width:min(100%,760px);
  max-width:760px;
  margin-inline:auto;
}
body.public-shell .doctor-faq-item,
body.public-shell .faq-accordion .accordion-item{
  border-radius:14px;
  box-shadow:0 4px 14px rgba(18,76,72,.03);
}
body.public-shell .doctor-faq-item > button,
body.public-shell .faq-accordion .accordion-button{
  min-height:50px;
  padding:11px 15px;
  gap:12px;
  font-size:.9rem;
  line-height:1.65;
}
body.public-shell .doctor-faq-item > button > span,
body.public-shell .faq-accordion .accordion-button{
  font-weight:800;
}
body.public-shell .doctor-faq-item > button > b{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:10px;
  font-size:1rem;
}
body.public-shell .doctor-faq-item > div,
body.public-shell .faq-accordion .accordion-body{
  padding:0 15px 13px;
}
body.public-shell .doctor-faq-item > div > p,
body.public-shell .faq-accordion .accordion-body{
  font-size:.76rem;
  line-height:1.85;
}
@media (max-width:767.98px){
  body.public-shell .doctor-faq-list,
  body.public-shell .faq-accordion{
    width:min(100%,100%);
    max-width:none;
  }
  body.public-shell .doctor-faq-item > button,
  body.public-shell .faq-accordion .accordion-button{
    min-height:46px;
    padding:10px 13px;
    gap:10px;
    font-size:.84rem;
  }
  body.public-shell .doctor-faq-item > button > b{
    width:28px;
    height:28px;
    flex-basis:28px;
    border-radius:9px;
    font-size:.92rem;
  }
  body.public-shell .doctor-faq-item > div,
  body.public-shell .faq-accordion .accordion-body{
    padding:0 13px 12px;
  }
  body.public-shell .doctor-faq-item > div > p,
  body.public-shell .faq-accordion .accordion-body{
    font-size:.73rem;
    line-height:1.8;
  }
}