/* V7 "Work with us" modal shell. The existing #getStartedModal still opens through Bootstrap; on V7 pages wm.js puts the
   V7 contact layout (#sg-wm, styled by wm.css) inside it and the original form is visually hidden but kept in the DOM
   (its values are filled by wm.js and sent by the original submit). The modal lives under <body>, outside #page.site;
   #sg-wm carries its own .site so the V7 tokens apply. */

/* ---- full screen ---- */
body.sg-v7 #getStartedModal.has-wm{padding:0!important;background:#fff}
body.sg-v7 #getStartedModal.has-wm .modal-dialog.modal-xl{max-width:none!important;width:100%;margin:0!important;min-height:100%;transform:none}
body.sg-v7 #getStartedModal.has-wm .modal-dialog .modal-content{min-height:100vh;min-height:100dvh;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none;overflow:visible!important}
body.sg-v7 #getStartedModal.has-wm .modal-dialog .modal-content .modal-body{padding:0!important;background:#fff!important}
body.sg-v7 #getStartedModal.has-wm .sg-wm{background:#fff;color:#0B0B0C;text-align:left}
body.sg-v7 #getStartedModal.has-wm .sg-wm .ct-sec:last-child{padding-bottom:clamp(64px,8vw,120px)}

/* ---- the original form: hidden, still rendered (values are filled and submitted from it) ---- */
body.sg-v7 #getStartedModal.has-wm #formContent{position:absolute!important;left:-10000px!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0);clip-path:inset(50%)}

/* ---- close button: fixed top right, visible on the dark band and on white ---- */
body.sg-v7 #getStartedModal.has-wm .modal-dialog .modal-content .modal-close{position:fixed!important;top:calc(env(safe-area-inset-top,0px) + 18px)!important;right:18px!important;left:auto!important;
  width:48px!important;height:48px!important;z-index:1070!important;cursor:pointer;border:1px solid #2E2B27;border-radius:2px;background:#0B0B0D;transition:background-color .2s ease,border-color .2s ease}
body.sg-v7 #getStartedModal.has-wm .modal-dialog .modal-content .modal-close::before,
body.sg-v7 #getStartedModal.has-wm .modal-dialog .modal-content .modal-close::after{left:50%!important;top:50%!important;width:1.5px!important;height:20px!important;margin:-10px 0 0 -.75px!important;background:#F3EFE8!important}
body.sg-v7 #getStartedModal.has-wm .modal-dialog .modal-content .modal-close:hover{background:#F27038;border-color:#F27038}
body.sg-v7 #getStartedModal.has-wm .modal-dialog .modal-content .modal-close:hover::before,
body.sg-v7 #getStartedModal.has-wm .modal-dialog .modal-content .modal-close:hover::after{background:#0B0B0C!important}
@media (max-width:767.98px){
  body.sg-v7 #getStartedModal.has-wm .modal-dialog .modal-content .modal-close{top:calc(env(safe-area-inset-top,0px) + 12px)!important;right:12px!important;width:44px!important;height:44px!important}
}

/* ---- bits the contact page does not have: select, checkbox, form-level error, sending state ---- */
#p-wm .ct-sel,#p-wm .ct--band .ct-sel{padding-right:42px;cursor:pointer;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230B0B0C' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center}
#p-wm .ct-sel:invalid,#p-wm .ct-sel option[value=""]{color:#8C8C92}
#p-wm .ct-sel option{color:#0B0B0C}
#p-wm .ct-check{display:flex;align-items:flex-start;gap:10px;margin:0;font:400 15px/1.45 var(--f);color:var(--ink-2);cursor:pointer}
#p-wm .ct-check input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:#0B0B0C}
#p-wm .ct-err--form{margin-top:4px}
#p-wm .sg-btn.is-sending{opacity:.6;pointer-events:none}
