/* V38 — compact project modal; no fields removed */
@media (min-width: 861px){
  .mbz-project-modal{padding:12px!important;}
  .mbz-project-modal-panel{
    width:min(1120px,calc(100vw - 24px))!important;
    max-height:calc(100dvh - 24px)!important;
    overflow:hidden!important;
  }
  .mbz-project-modal-close{
    position:absolute!important;top:8px!important;right:8px!important;
    float:none!important;margin:0!important;width:42px!important;height:42px!important;
    font-size:30px!important;
  }
  .mbz-project-modal-layout{
    grid-template-columns:minmax(250px,.68fr) minmax(560px,1.32fr)!important;
    min-height:0!important;
    max-height:calc(100dvh - 24px)!important;
  }
  .mbz-project-modal-intro{
    padding:28px 30px 24px!important;
    overflow-y:auto!important;
  }
  .mbz-project-modal-intro .mbz-project-kicker{margin-bottom:14px!important;font-size:9px!important;}
  .mbz-project-modal-intro h3{margin-bottom:12px!important;font-size:clamp(30px,3vw,42px)!important;line-height:1.02!important;}
  .mbz-project-modal-intro>p{margin-bottom:18px!important;font-size:13.5px!important;line-height:1.58!important;}
  .mbz-project-modal .mbz-project-notes{margin-bottom:14px!important;}
  .mbz-project-modal .mbz-project-notes>div{
    grid-template-columns:26px 1fr!important;gap:8px!important;padding:8px 0!important;
  }
  .mbz-project-modal .mbz-project-notes p{font-size:12px!important;line-height:1.42!important;}
  .mbz-project-modal .mbz-project-direct{margin-top:10px!important;font-size:12px!important;padding-bottom:3px!important;}

  .mbz-project-modal-form{
    padding:26px 34px 24px!important;
    overflow-y:auto!important;
    max-height:calc(100dvh - 24px)!important;
  }
  .mbz-project-modal .mbz-project-form{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    column-gap:22px!important;
    row-gap:8px!important;
    align-content:start!important;
  }
  .mbz-project-modal .mbz-form-grid{display:contents!important;}
  .mbz-project-modal .mbz-field{margin:0!important;min-width:0!important;}
  .mbz-project-modal .mbz-field label{margin-bottom:4px!important;font-size:11px!important;line-height:1.25!important;}
  .mbz-project-modal input,
  .mbz-project-modal select,
  .mbz-project-modal textarea{
    min-height:38px!important;
    padding:7px 0!important;
    font-size:13px!important;
    line-height:1.35!important;
  }
  .mbz-project-modal textarea{min-height:64px!important;max-height:84px!important;resize:vertical!important;}
  .mbz-project-modal .mbz-photo-field,
  .mbz-project-modal .quote-validation,
  .mbz-project-modal .mbz-project-actions,
  .mbz-project-modal .mbz-project-privacy{
    grid-column:1 / -1!important;
  }
  .mbz-project-modal .mbz-photo-field{margin-top:2px!important;}
  .mbz-project-modal .mbz-photo-field input[type="file"]{min-height:34px!important;padding:4px 0!important;font-size:11.5px!important;}
  .mbz-project-modal .mbz-photo-field input[type="file"]::file-selector-button{
    border:0!important;border-bottom:1px solid rgba(38,35,31,.28)!important;
    background:transparent!important;color:#38332e!important;padding:4px 10px 4px 0!important;
    margin-right:10px!important;font:500 11px/1.2 Arial,Helvetica,sans-serif!important;
  }
  .mbz-project-modal .mbz-photo-field p,
  .mbz-project-modal .mbz-project-privacy{margin-top:3px!important;font-size:10px!important;line-height:1.4!important;}
  .mbz-project-modal .quote-validation{margin:0!important;padding:6px 0!important;font-size:11px!important;line-height:1.35!important;}
  .mbz-project-modal .mbz-project-actions{margin-top:2px!important;gap:20px!important;align-items:center!important;}
  .mbz-project-modal .mbz-project-actions button{padding:3px 0!important;font-size:12px!important;}
  .mbz-project-modal .mbz-project-privacy{margin-bottom:0!important;}
}

/* Short desktop/laptop screens: preserve every field, scroll only inside modal columns when needed */
@media (min-width:861px) and (max-height:720px){
  .mbz-project-modal-intro{padding-top:22px!important;padding-bottom:18px!important;}
  .mbz-project-modal-form{padding-top:20px!important;padding-bottom:18px!important;}
  .mbz-project-modal-intro h3{font-size:32px!important;}
  .mbz-project-modal-intro>p{margin-bottom:12px!important;line-height:1.48!important;}
  .mbz-project-modal .mbz-project-notes>div{padding:6px 0!important;}
  .mbz-project-modal .mbz-project-form{row-gap:6px!important;}
  .mbz-project-modal input,.mbz-project-modal select{min-height:34px!important;padding:5px 0!important;}
  .mbz-project-modal textarea{min-height:54px!important;max-height:66px!important;}
}

@media (max-width:860px){
  .mbz-project-modal-intro{padding:54px 20px 20px!important;}
  .mbz-project-modal-intro .mbz-project-kicker{margin-bottom:12px!important;}
  .mbz-project-modal-intro h3{margin-bottom:10px!important;font-size:clamp(30px,9vw,42px)!important;}
  .mbz-project-modal-intro>p{margin-bottom:16px!important;font-size:13.5px!important;line-height:1.55!important;}
  .mbz-project-modal .mbz-project-notes{margin-bottom:12px!important;}
  .mbz-project-modal .mbz-project-notes>div{padding:8px 0!important;}
  .mbz-project-modal-form{padding:22px 20px 34px!important;}
  .mbz-project-modal .mbz-field{margin-bottom:11px!important;}
  .mbz-project-modal .mbz-field label{margin-bottom:4px!important;font-size:11.5px!important;}
  .mbz-project-modal input,.mbz-project-modal select,.mbz-project-modal textarea{min-height:40px!important;padding:8px 0!important;font-size:13.5px!important;}
  .mbz-project-modal textarea{min-height:72px!important;}
  .mbz-project-modal .mbz-project-actions{gap:18px!important;margin-top:10px!important;}
  .mbz-project-modal .mbz-project-actions button{font-size:12px!important;}
}
