.hm-form-dialog {
  --hm-form-bg: var(--surface, #111a27);
  --hm-form-ink: var(--ink, #f5f7fc);
  --hm-form-muted: var(--muted, #a9b4c4);
  --hm-form-line: var(--line, #2a374b);
  position: fixed;
  inset: 0;
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  margin: auto;
  padding: 36px 40px 40px;
  overflow-y: auto;
  border: 1px solid var(--hm-form-line);
  border-radius: 4px;
  color: var(--hm-form-ink);
  background: var(--hm-form-bg);
  color-scheme: dark;
  font: 17px/1.6 var(--body, 'Roboto', Arial, sans-serif);
}
.hm-form-dialog::backdrop { background: rgba(3, 7, 12, .86); backdrop-filter: blur(5px); }
body:has(#homeApplication[open]) { overflow: hidden; }
.hm-form-dialog [hidden] { display: none !important; }
.hm-form-dialog * { box-sizing: border-box; }
.hm-form-close { position: absolute; top: 26px; right: 28px; display: grid; place-items: center; width: 36px; height: 36px; padding: 4px; color: var(--hm-form-muted); background: transparent; border: 0; border-radius: 2px; cursor: pointer; }
.hm-form-close:hover { color: var(--hm-form-ink); background: var(--surface-2, #182333); }
.hm-form-close svg { width: 28px; height: 28px; }
.hm-form-progress { margin-bottom: 30px; }
.hm-form-step-count { margin: 0 48px 20px 0; color: var(--hm-form-muted); font-size: 14px; }
.hm-form-progress-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hm-form-progress-lines span { height: 3px; background: var(--hm-form-line); border-radius: 1px; }
.hm-form-progress-lines .is-current { background: var(--accent, #1252da); }
.hm-form-dialog h2 { margin: 0 0 16px; color: var(--hm-form-ink); font: 500 36px/1.2 var(--display, 'Oswald', 'Arial Narrow', sans-serif); text-transform: uppercase; letter-spacing: .01em; }
.hm-form-description { margin: 0 0 28px; color: var(--hm-form-muted); font-size: 16px; line-height: 1.55; }
.hm-form-topic { padding: 12px 16px; margin: 0 0 24px; border: 1px solid var(--hm-form-line); border-left: 2px solid var(--accent, #1252da); color: var(--hm-form-ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.hm-form { margin: 0; }
.hm-form-step { display: grid; gap: 24px; margin: 0; padding: 0; border: 0; min-width: 0; }
.hm-form-field { display: grid; gap: 9px; font-size: 16px; line-height: 1.45; color: var(--hm-form-ink); }
.hm-form-field input { width: 100%; min-width: 0; min-height: 56px; border: 1px solid #526176; border-radius: 3px; padding: 14px 16px; color: var(--hm-form-ink); background: var(--page-bg, #090e16); font: 17px/1.4 var(--body, 'Roboto', Arial, sans-serif); }
.hm-form-field input::placeholder { color: var(--hm-form-muted); opacity: .82; }
.hm-form-field input:focus { border-color: var(--blue, #80aaff); }
.hm-form-field input:disabled { opacity: .65; }
.hm-form-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 16px 24px; border: 1px solid #407bdf; border-radius: 4px; color: #fff; background: linear-gradient(135deg, #2165ff, #09379a); font: 500 17px/1.3 var(--display, 'Oswald', 'Arial Narrow', sans-serif); letter-spacing: .055em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.hm-form-button:hover { background: linear-gradient(135deg, #3474ff, #1252da); border-color: #80aaff; text-decoration: none; }
.hm-form-button:disabled { opacity: .6; cursor: wait; }
.hm-form-button svg { width: 24px; height: 24px; flex: 0 0 auto; }
.hm-form-next { position: relative; width: 100%; margin-top: 8px; }
.hm-form-next svg { position: absolute; right: 20px; }
.hm-form-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.hm-form-button--secondary { background: transparent; border-color: #65758a; color: var(--hm-form-ink); }
.hm-form-button--secondary:hover { background: var(--surface-2, #182333); border-color: var(--blue, #80aaff); }
.hm-form-consent { display: flex; align-items: flex-start; gap: 12px; color: var(--hm-form-muted); font-size: 14px; line-height: 1.5; cursor: pointer; }
.hm-form-consent input { accent-color: var(--accent, #1252da); width: 19px; height: 19px; flex: 0 0 auto; margin: 2px 0 0; }
.hm-form-consent a { color: var(--blue, #80aaff); text-decoration: underline; text-underline-offset: 3px; }
.hm-form-status { margin: 24px 0 0; border-left: 2px solid var(--blue, #80aaff); padding: 14px 16px; color: var(--hm-form-ink); background: var(--page-bg, #090e16); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.hm-form-status[data-kind="error"] { border-color: #ef9a9a; }
.hm-form-finish { width: 100%; margin-top: 24px; }
.hm-form-sr-only, .hm-form-trap { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hm-form-dialog :is(button, input, a):focus-visible, .hm-mobile-cta button:focus-visible { outline: 2px solid var(--blue, #80aaff); outline-offset: 4px; }
.hm-mobile-cta { display: none; }
.hm-mobile-cta[hidden] { display: none !important; }
body:has(#homeApplication[open]) #homeMobileCta { display: none; }

@media (max-width: 650px) {
  .hm-form-dialog { padding: 28px 24px; max-height: calc(100dvh - 24px); }
  .hm-form-close { top: 17px; right: 18px; }
  .hm-form-dialog h2 { font-size: 30px; }
  .hm-form-progress { margin-bottom: 24px; }
  .hm-form-description { font-size: 15px; margin-bottom: 24px; }
  .hm-form-topic { padding: 11px 12px; font-size: 13px; }
  .hm-form-step { gap: 20px; }
  .hm-form-field { font-size: 15px; }
  .hm-form-field input { min-height: 54px; padding: 13px 14px; font-size: 16px; }
  .hm-form-button { padding: 15px 14px; font-size: 16px; min-height: 54px; }
  .hm-form-actions { grid-template-columns: minmax(76px, .65fr) minmax(0, 1.65fr); gap: 12px; }
  .hm-form-actions .hm-form-button { font-size: 15px; letter-spacing: .02em; }
  .hm-form-next svg { right: 16px; }
  .hm-form-consent { font-size: 13px; }
  .hm-mobile-cta { position: fixed; z-index: 29; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--surface, #111a27); border-top: 1px solid var(--line, #2a374b); }
  .hm-mobile-cta .hm-form-button { width: 100%; max-width: 460px; }
  body:has(#homeMobileCta:not([hidden])) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-form-button { transition: none; }
}
