/* Request Service button + pop-up: same look as the WordPress site's widget */
#norms-service-launcher,#norms-service-dialog{--nsw-blue:#216b9e;--nsw-ink:#18354a;font-family:Poppins,system-ui,sans-serif;box-sizing:border-box}
#norms-service-launcher{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:80;display:inline-flex;align-items:center;justify-content:center;max-width:calc(100vw - 40px);min-height:54px;padding:14px 20px;border-radius:30px;background:var(--nsw-blue);color:#fff;box-shadow:0 6px 24px rgba(17,50,73,.24);font-size:15px;font-weight:600;line-height:1.4;text-decoration:none;cursor:pointer;transition:background-color .18s,box-shadow .18s}
#norms-service-launcher:hover{background:#18577f;color:#fff;box-shadow:0 9px 28px rgba(17,50,73,.3)}
#norms-service-launcher:focus-visible,#norms-service-close:focus-visible{outline:3px solid #e9ad39;outline-offset:3px}
@media(max-width:899px){#norms-service-launcher{right:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px));min-height:48px;padding:11px 17px;font-size:14px}}
#norms-service-dialog{position:fixed;inset:auto 20px 88px auto;width:480px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 140px);margin:0;padding:0;border:1px solid #dce5eb;border-radius:18px;background:#fff;color:var(--nsw-ink);box-shadow:0 16px 60px rgba(14,39,59,.25);overflow:hidden;line-height:1.5}
#norms-service-dialog[open]{display:flex;flex-direction:column}
#norms-service-dialog::backdrop{background:rgba(15,35,50,.32)}
@media(max-width:600px){#norms-service-dialog{inset:auto 10px 10px 10px;width:auto;max-width:none;max-height:calc(100dvh - 20px)}}
html.norms-service-open{overflow:hidden}
#norms-service-dialog .nsw-header{position:relative;flex:0 0 auto;padding:18px 65px 18px 24px;background:#f1f7fb;border-bottom:1px solid #e0e8ee}
#norms-service-title{margin:0;color:var(--nsw-ink);font:inherit;font-size:24px;font-weight:700;line-height:1.2;letter-spacing:-.3px;outline:0}
#norms-service-close{position:absolute;top:11px;right:14px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--nsw-ink);cursor:pointer}
#norms-service-close:hover{background:#dfebf3}
#norms-service-close svg{width:20px;height:20px}
#norms-service-dialog .nsw-body{padding:20px 24px 24px;min-height:0;overflow-y:auto;overscroll-behavior:contain}
#norms-service-dialog form{display:grid;gap:14px;margin:0;position:relative}
#norms-service-dialog .nsw-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:480px){#norms-service-dialog .nsw-two{grid-template-columns:1fr}}
#norms-service-dialog label{min-width:0;display:grid;gap:6px;font-size:14px;font-weight:600;color:var(--nsw-ink)}
#norms-service-dialog input:not([name=company]),#norms-service-dialog select,#norms-service-dialog textarea{box-sizing:border-box;width:100%;min-height:44px;margin:0;border:1px solid #b8c9d6;border-radius:7px;padding:10px 12px;background:#fff;color:var(--nsw-ink);font:400 16px/1.5 inherit;font-family:inherit}
#norms-service-dialog textarea{min-height:96px;height:96px;resize:vertical}
#norms-service-dialog input:focus,#norms-service-dialog select:focus,#norms-service-dialog textarea:focus{outline:2px solid var(--nsw-blue);outline-offset:2px}
#norms-service-dialog button[type=submit]{width:100%;min-height:48px;margin-top:2px;border:0;border-radius:8px;padding:12px 20px;background:var(--nsw-blue);color:#fff;font:inherit;font-size:16px;font-weight:600;cursor:pointer}
#norms-service-dialog button[type=submit]:hover{background:#18577f}
#norms-service-dialog button[type=submit]:disabled{opacity:.6;cursor:default}
#norms-service-dialog .nsw-msg{margin:0;font-size:14px}
/* compact (D 11-04) */
#norms-service-dialog{width:420px;border-radius:14px}
#norms-service-dialog .nsw-header{padding:12px 52px 12px 18px}
#norms-service-title{font-size:19px}
#norms-service-close{top:5px;right:6px;width:40px;height:40px}
#norms-service-dialog .nsw-body{padding:14px 18px 16px}
#norms-service-dialog form{gap:10px}
#norms-service-dialog .nsw-two{gap:10px}
#norms-service-dialog label{gap:3px;font-size:13px}
#norms-service-dialog input:not([name=company]),#norms-service-dialog select{min-height:38px;padding:6px 10px;font-size:15px}
#norms-service-dialog textarea{min-height:64px;height:64px;padding:6px 10px;font-size:15px}
#norms-service-dialog button[type=submit]{min-height:42px;padding:8px 16px;font-size:15px}
/* under 16px, iPhones zoom the page when a field is tapped */
@media(max-width:899px){#norms-service-dialog input:not([name=company]),#norms-service-dialog select,#norms-service-dialog textarea{font-size:16px}}
/* after a good send the thank-you covers the form; closing the pop-up resets it (service-widget.js) */
#norms-service-dialog form.lead-sent .nsw-msg{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;padding:16px;background:#fff;color:var(--nsw-ink);font-size:17px;font-weight:600;line-height:1.5;text-align:center}
/* Add photos: same dashed box as the WordPress form, compact; the real file input covers it so click and drop both work */
#norms-service-dialog .nsw-photos{display:grid;gap:3px;font-size:13px;font-weight:600;color:var(--nsw-ink)}
#norms-service-dialog .nsw-drop{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:10px;border:1px dashed #b8c9d6;border-radius:8px;background:#f8fafb;font-weight:400;font-size:14px;cursor:pointer}
#norms-service-dialog .nsw-drop b{padding:5px 12px;border-radius:5px;background:#dfe6eb;font-size:13px;font-weight:500}
#norms-service-dialog .nsw-drop:hover{border-color:var(--nsw-blue)}
#norms-service-dialog .nsw-drop input{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;opacity:0;cursor:pointer}
#norms-service-dialog .nsw-drop:focus-within{outline:2px solid var(--nsw-blue);outline-offset:2px}
#norms-service-dialog .nsw-files{margin:3px 0 0;font-size:13px;font-weight:400}
/* Phones (D 11-04): Call + Contact us float over the page with no white bar; Contact us opens the form, so the help button is desktop only */
@media(max-width:899px){
  #norms-service-launcher{display:none}
  .callbar,.mbar{background:transparent!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;pointer-events:none}
  .callbar .btn,.mbar .btn{pointer-events:auto;box-shadow:0 8px 24px rgba(10,30,50,.35)}
}
/* Phone menu (D 11-04): smaller, and it scrolls all the way above the floating buttons. 200px = top bar + header (125) + the buttons (75) */
@media(max-width:899px){
  html .drawer{max-height:calc(100svh - 200px);padding-bottom:16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  html .drawer a,html .drawer summary{padding:10px 0;font-size:1.12rem}
  html .drawer .dr-sub{padding-bottom:8px}
  html .drawer .dr-sub a{padding:7px 0;font-size:.95rem}
  html .drawer .dr-h{margin:8px 0 1px;font-size:.7rem}
}
/* Phone menu opens over the page, with the page blurred behind it; open state comes from #drawer's hidden attribute */
#nav-scrim{display:none}
@media(max-width:899px){
  .mbar{z-index:46}
  html .drawer{position:absolute;left:0;right:0;top:100%;background:#fff;box-shadow:0 18px 40px rgba(10,30,50,.2)}
  html:has(#drawer:not([hidden])){overflow:hidden}
  html:has(#drawer:not([hidden])) #nav-scrim{display:block;position:fixed;inset:0;z-index:45;background:rgba(15,35,50,.25);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
}
