/* Cementare Contact + FAQ mobile parity v1
   Scope: <=1199px only. Desktop >=1200 remains unchanged. */

@media (max-width:1199.98px){
  /* CONTACT */
  body .ct-nav-hero--contact,
  body .ct-nav-hero--contact.ct-firstview-lock{
    min-height:0!important;
  }
  body .ct-nav-hero--contact .ct-nav-shell{
    width:min(100% - 48px,1180px)!important;
  }
  body #header15-19w .cementare-contact-row,
  body #header15-19w .cementare-contact-intro,
  body #header15-19w .cementare-contact-form-col,
  body #header15-19w .cementare-contact-card{
    min-width:0!important;
    max-width:100%!important;
  }
  body #header15-19w .cementare-field input,
  body #header15-19w .cementare-field select,
  body #header15-19w .cementare-field textarea{
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  body .ct-contact-quickitem,
  body .ct-contact-quickvalue{
    min-width:0!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }

  /* FAQ */
  body.ct-page-faq .ct-nav-hero--utility,
  body.ct-page-faq .ct-nav-hero--utility.ct-firstview-lock{
    min-height:0!important;
  }
  body.ct-page-faq .cementare-faq-premium .panel-title,
  body.ct-page-faq .cementare-faq-premium .panel-title-edit,
  body.ct-page-faq .cementare-faq-premium .panel-body{
    min-width:0!important;
    max-width:100%!important;
  }
  body.ct-page-faq .cementare-faq-premium .panel-title-edit,
  body.ct-page-faq .cementare-faq-premium .panel-text{
    overflow-wrap:break-word!important;
  }
}

@media (min-width:701px) and (max-width:1199.98px){
  body .ct-nav-hero--contact .ct-nav-shell,
  body.ct-page-faq .ct-nav-hero--utility .ct-nav-shell{
    width:min(100% - 48px,1120px)!important;
  }
  body .ct-contact-quickbar-inner{
    width:min(100% - 48px,1120px)!important;
  }
  body #header15-19w.cementare-contact-page{
    padding-left:24px!important;
    padding-right:24px!important;
  }
  body.ct-page-faq .cementare-faq-premium .container-fluid{
    width:min(100% - 48px,1040px)!important;
  }
}

@media (max-width:700px){
  /* Shared phone gutters / safe areas */
  body .ct-nav-hero--contact .ct-nav-shell,
  body.ct-page-faq .ct-nav-hero--utility .ct-nav-shell{
    width:calc(100% - 32px)!important;
    max-width:none!important;
    padding-left:max(0px,env(safe-area-inset-left))!important;
    padding-right:max(0px,env(safe-area-inset-right))!important;
  }

  /* CONTACT hero + quick links */
  body .ct-nav-hero--contact,
  body .ct-nav-hero--contact.ct-firstview-lock{
    padding-top:max(88px,calc(76px + env(safe-area-inset-top)))!important;
  }
  body .ct-nav-hero--contact .ct-nav-shell{
    padding-bottom:20px!important;
  }
  body .ct-nav-hero--contact .ct-nav-top,
  body .ct-nav-hero--contact.ct-firstview-lock .ct-nav-top{
    min-height:0!important;
    height:auto!important;
  }
  body .ct-contact-quickbar-inner{
    width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body .ct-contact-quickitem{
    min-width:0!important;
    min-height:62px!important;
    padding:12px 13px!important;
  }
  body .ct-contact-quickvalue{
    font-size:clamp(11px,3.15vw,13px)!important;
    line-height:1.35!important;
  }

  /* CONTACT content + form */
  body #header15-19w.cementare-contact-page{
    padding:40px 16px 54px!important;
  }
  body #header15-19w .container,
  body #header15-19w .container-fluid{
    max-width:100%!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  body #header15-19w .cementare-contact-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:34px!important;
  }
  body #header15-19w .cementare-contact-card{
    width:100%!important;
    padding:18px 14px 15px!important;
  }
  body #header15-19w .cementare-contact-card-head{
    padding-top:16px!important;
    margin-bottom:20px!important;
  }
  body #header15-19w .cementare-form-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
  }
  body #header15-19w .cementare-field input,
  body #header15-19w .cementare-field select,
  body #header15-19w .cementare-field textarea{
    width:100%!important;
    min-width:0!important;
    font-size:16px!important;
  }
  body #header15-19w .cementare-contact-actions{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
  }
  body #header15-19w .cementare-contact-actions > *{
    min-width:0!important;
    width:100%!important;
  }
  body .ct-contact-prep-list-v4 li{
    grid-template-columns:22px minmax(0,1fr)!important;
  }

  /* FAQ */
  body.ct-page-faq .ct-nav-hero--utility,
  body.ct-page-faq .ct-nav-hero--utility.ct-firstview-lock{
    padding-top:max(88px,calc(76px + env(safe-area-inset-top)))!important;
  }
  body.ct-page-faq .ct-nav-hero--utility .ct-nav-top{
    min-height:0!important;
    height:auto!important;
  }
  body.ct-page-faq .cementare-faq-premium:first-of-type{
    padding-top:42px!important;
  }
  body.ct-page-faq .cementare-faq-premium:last-of-type{
    padding-bottom:68px!important;
  }
  body.ct-page-faq .cementare-faq-premium .container-fluid{
    width:calc(100% - 32px)!important;
    max-width:none!important;
    padding-left:max(0px,env(safe-area-inset-left))!important;
    padding-right:max(0px,env(safe-area-inset-right))!important;
  }
  body.ct-page-faq .cementare-faq-premium .panel-title{
    min-height:68px!important;
    padding:16px 0!important;
    gap:12px!important;
    align-items:center!important;
  }
  body.ct-page-faq .cementare-faq-premium .panel-title-edit{
    font-size:clamp(17px,4.7vw,19px)!important;
    line-height:1.34!important;
  }
  body.ct-page-faq .cementare-faq-premium .panel-body{
    padding:0 38px 22px 0!important;
  }
  body.ct-page-faq .cementare-faq-premium .panel-text{
    font-size:15px!important;
    line-height:1.68!important;
  }
  body.ct-page-faq .cementare-faq-premium .sign.mbr-iconfont{
    width:28px!important;
    height:28px!important;
    flex-basis:28px!important;
  }
}

@media (max-width:390px){
  body .ct-contact-quickbar-inner{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body .ct-contact-quickitem{
    min-height:58px!important;
    border-right:0!important;
  }
  body #header15-19w.cementare-contact-page{
    padding-left:14px!important;
    padding-right:14px!important;
  }
  body.ct-page-faq .cementare-faq-premium .container-fluid{
    width:calc(100% - 28px)!important;
  }
}

/* Short landscape phones: keep content visible and avoid hero dominating viewport. */
@media (orientation:landscape) and (max-width:991.98px) and (max-height:520px){
  body .ct-nav-hero--contact,
  body .ct-nav-hero--contact.ct-firstview-lock,
  body.ct-page-faq .ct-nav-hero--utility,
  body.ct-page-faq .ct-nav-hero--utility.ct-firstview-lock{
    min-height:0!important;
    height:auto!important;
    padding-top:max(72px,calc(62px + env(safe-area-inset-top)))!important;
  }
  body .ct-nav-hero--contact .ct-nav-shell,
  body.ct-page-faq .ct-nav-hero--utility .ct-nav-shell{
    padding-bottom:14px!important;
  }
  body .ct-nav-hero--contact .ct-nav-top,
  body.ct-page-faq .ct-nav-hero--utility .ct-nav-top{
    min-height:0!important;
    height:auto!important;
  }
  body .ct-contact-quickitem{
    min-height:54px!important;
    padding-top:9px!important;
    padding-bottom:9px!important;
  }
  body #header15-19w.cementare-contact-page{
    padding-top:32px!important;
  }
  body.ct-page-faq .cementare-faq-premium:first-of-type{
    padding-top:32px!important;
  }
}
