/* Serpworks V2.9.57 — mobile proposal form scroll and reachable actions.
   The popup scrolls its inner form; header and footer stay inside the viewport.
   Scoped to proposal popups only. No changes to editor/submission logic. */
@media (max-width:767px){
  html body .mfp-wrap:has(.submit-proposal){
    overflow:hidden!important;
    height:100dvh!important;
    max-height:100dvh!important;
  }
  html body .mfp-wrap:has(.submit-proposal) .mfp-container{
    height:100%!important;
    max-height:100%!important;
    overflow:hidden!important;
    padding:8px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  html body .mfp-wrap:has(.submit-proposal) .mfp-content{
    display:block!important;
    width:min(100%,560px)!important;
    height:calc(100dvh - 16px)!important;
    max-height:calc(100dvh - 16px)!important;
    overflow:visible!important;
    margin:0 auto!important;
    min-width:0!important;
  }
  html body .mfp-wrap .submit-proposal{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:100%!important;
    max-height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
    border-radius:14px!important;
    box-sizing:border-box!important;
  }
  html body .mfp-wrap .submit-proposal .form-heading{
    flex:0 0 auto!important;
    position:relative!important;
    z-index:2!important;
  }
  html body .mfp-wrap .submit-proposal .form-content{
    display:block!important;
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    padding-bottom:20px!important;
    scrollbar-width:thin;
  }
  html body .mfp-wrap .submit-proposal .form-button{
    display:flex!important;
    position:relative!important;
    flex:0 0 auto!important;
    width:100%!important;
    max-width:100%!important;
    min-height:62px!important;
    margin:0!important;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px))!important;
    bottom:auto!important;
    left:auto!important;
    right:auto!important;
    z-index:4!important;
    background:#fff!important;
    box-shadow:0 -8px 22px rgba(57,28,87,.07)!important;
    box-sizing:border-box!important;
  }
  html body .mfp-wrap .submit-proposal .form-button > button{
    flex:1 1 0!important;
    min-width:0!important;
    min-height:44px!important;
    visibility:visible!important;
    opacity:1!important;
    white-space:normal!important;
  }
}
@media (max-height:620px) and (max-width:767px){
 html body .mfp-wrap .submit-proposal .form-heading{min-height:58px!important;padding-top:10px!important;padding-bottom:10px!important}
 html body .mfp-wrap .submit-proposal .form-jobs-detail{padding:11px 12px!important;margin-bottom:14px!important}
}
/* Quick View fallback trigger appears only when the parent did not render one. */
#jobs-quickview-inner .sw57-quick-propose{
 display:inline-flex;align-items:center;justify-content:center;
 margin:10px 0 0;padding:11px 19px;border:0;border-radius:10px;
 color:#fff!important;background:linear-gradient(112deg,#55218b,#7e32cb);
 font:inherit;font-weight:750;font-size:14px;min-height:44px;cursor:pointer;text-decoration:none!important;
}
#jobs-quickview-inner .sw57-quick-propose:hover{filter:brightness(1.06)}
