/* 3 Nov (Shali): Register your interest (#register-dialog, homepage and /diagnostics/). The dialog stays inside the screen:
   heading, close and intro at the top, the fields scroll in the middle, and "Join the waitlist" sits in its own footer
   below them, always fully visible and never over the fields. The enquiry dialog is unchanged. */
#register-dialog { overflow: hidden; }
#register-dialog[open] { display: flex; flex-direction: column; }
#register-dialog .reg-form { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 16px; }
#register-dialog .reg-form::before { flex: none; align-self: center; } /* phones: the sheet's grabber line */
#register-dialog :is(.reg-head, .reg-lead, .reg-foot, .reg-done) { flex: none; }
#register-dialog .reg-lead { margin: 0; }
#register-dialog .reg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 4px 8px 12px; }
#register-dialog .reg-foot { display: grid; gap: 6px; margin-top: -4px; padding-top: 16px; border-top: 1px solid rgba(233, 228, 218, .12); }
#register-dialog .reg-foot .reg-submit { margin-top: 0; }
#register-dialog .reg-foot .reg-status { margin: 0; }
#register-dialog .reg-foot .reg-status:empty { min-height: 0; } /* the live region stays in place, without reserving a blank line */
#register-dialog .reg-body[hidden] ~ .reg-foot { display: none; }
@media (max-width: 759px) {
  #register-dialog .reg-form { gap: 14px; }
}
