#nsg-enquiry-dialog{width:min(92vw,540px);max-height:90vh;overflow:auto;border:1px solid #dedee5;border-radius:18px;padding:25px;background:#fafaf9;color:#303238;box-shadow:0 25px 90px #0003}#nsg-enquiry-dialog::backdrop{background:#18202bb3}.nsg-enquiry-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.nsg-enquiry-head h2{margin:0;font-size:1.5rem}.nsg-enquiry-head button{border:0;background:transparent;font-size:2rem;cursor:pointer;color:inherit}#nsg-enquiry-form{display:grid;gap:12px}#nsg-enquiry-form label{display:grid;gap:5px;font-weight:600}#nsg-enquiry-form input,#nsg-enquiry-form textarea{width:100%;padding:10px 12px;border:1px solid #c7c8d0;border-radius:8px;background:white;color:#202124;font:inherit}#nsg-enquiry-form button{justify-self:start;cursor:pointer}.nsg-honeypot{position:absolute;left:-99999px;width:1px;height:1px;overflow:hidden}.nsg-enquiry-privacy{font-size:.85rem;color:#686b71}.nsg-enquiry-status{padding:12px;border-radius:8px}.nsg-ok{background:#e5f1e5}.nsg-error{background:#f9e7e7}

/* Native modal: centre using viewport insets and automatic margins only.
   Do not combine with top/left 50% or transforms. */
html body dialog#nsg-enquiry-dialog[open] {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  margin: auto !important;
  transform: none !important;
  translate: none !important;
  box-sizing: border-box;
  width: min(540px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
}
@media (max-width: 600px) {
  html body dialog#nsg-enquiry-dialog[open] { padding: 20px; }
}

/* Keep the outer rounded frame stationary; scroll only the inset content. */
html body dialog#nsg-enquiry-dialog[open] {
  padding: 0 !important;
  overflow: hidden !important;
  max-height: calc(100dvh - 32px);
}
#nsg-enquiry-dialog .nsg-enquiry-scroll {
  box-sizing: border-box;
  padding: 25px 34px 25px 25px;
  max-height: calc(100dvh - 34px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}
@media (max-width: 600px) {
  #nsg-enquiry-dialog .nsg-enquiry-scroll { padding: 20px 24px 20px 20px; }
}
