/* Hexamation contact / demo form (shared by the homepage and the Products page). */
.hxf {
  --hxf-bg: #0a1120;
  --hxf-panel: rgba(14, 22, 40, 0.92);
  --hxf-ink: #f4f7fc;
  --hxf-muted: #9aa6bb;
  --hxf-line: rgba(160, 180, 210, 0.18);
  --hxf-field: rgba(255, 255, 255, 0.04);
  --hxf-accent: #4f8cff;
  --hxf-accent-2: #22d3ee;
  --hxf-err: #ff8a8a;
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: Arial, 'Helvetica Neue', Helvetica, 'Liberation Sans', sans-serif;
  color: var(--hxf-ink);
}
.hxf[hidden] { display: none; }
:root[data-theme='light'] .hxf {
  --hxf-bg: #ffffff;
  --hxf-panel: rgba(255, 255, 255, 0.96);
  --hxf-ink: #0a0f1c;
  --hxf-muted: #5b6577;
  --hxf-line: rgba(10, 15, 28, 0.12);
  --hxf-field: rgba(10, 15, 28, 0.03);
  --hxf-accent: #2f5bea;
  --hxf-accent-2: #0891b2;
  --hxf-err: #c62828;
}
html.hxf-open { overflow: hidden; }

.hxf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.66);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hxf-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid var(--hxf-line);
  border-radius: 24px;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(79, 140, 255, 0.16), transparent 60%),
    radial-gradient(80% 50% at 0% 100%, rgba(34, 211, 238, 0.1), transparent 60%),
    var(--hxf-panel);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hxf.is-in .hxf-backdrop { opacity: 1; }
.hxf.is-in .hxf-dialog { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hxf-backdrop, .hxf-dialog { transition: none; }
}

.hxf-x {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hxf-line);
  border-radius: 999px;
  background: transparent;
  color: var(--hxf-muted);
  cursor: pointer;
}
.hxf-x:hover { color: var(--hxf-ink); border-color: var(--hxf-accent); }
.hxf-x svg { width: 16px; height: 16px; }

.hxf-body { padding: 32px 28px 26px; }
@media (min-width: 600px) { .hxf-body { padding: 40px 40px 32px; } }
.hxf-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hxf-accent-2);
}
.hxf-title {
  margin: 10px 40px 0 0;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hxf-lead { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--hxf-muted); }

.hxf-form { margin-top: 24px; }
.hxf-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .hxf-grid { grid-template-columns: 1fr 1fr; } }
.hxf-tool { margin-bottom: 14px; }
.hxf-tool[hidden] { display: none; }
.hxf-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}
.hxf-field label i { font-style: normal; color: var(--hxf-accent-2); }
.hxf-field label span { font-weight: 400; color: var(--hxf-muted); }
.hxf-field input,
.hxf-field select {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--hxf-line);
  border-radius: 12px;
  background: var(--hxf-field);
  color: var(--hxf-ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hxf-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.hxf-field select:disabled { opacity: 1; background-image: none; font-weight: 700; }
.hxf-field select option { color: #0a0f1c; }
.hxf-field input:focus,
.hxf-field select:focus { border-color: var(--hxf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hxf-accent) 25%, transparent); }
.hxf-field input[aria-invalid='true'] { border-color: var(--hxf-err); }
.hxf-err { min-height: 0; margin: 4px 0 0; font-size: 12px; color: var(--hxf-err); }
.hxf-err:empty { display: none; }

.hxf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hxf-status { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--hxf-muted); }
.hxf-status:empty { display: none; }
.hxf-status.is-error { color: var(--hxf-err); }
.hxf-status a { color: inherit; font-weight: 700; text-decoration: underline; }

.hxf-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 7px 7px 7px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--hxf-ink);
  color: var(--hxf-bg);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.2s;
}
.hxf-submit:active { transform: scale(0.98); }
.hxf-submit:disabled { opacity: 0.6; cursor: progress; }
.hxf-submit i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--hxf-accent);
  color: #fff;
}
.hxf-submit i svg { width: 16px; height: 16px; }
.hxf-close-btn { padding: 12px 24px; }
.hxf-note { margin: 14px 0 0; font-size: 12px; color: var(--hxf-muted); }

.hxf-done { margin-top: 24px; text-align: left; }
.hxf-done[hidden] { display: none; }
.hxf-check {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hxf-accent-2) 18%, transparent);
  color: var(--hxf-accent-2);
}
.hxf-check svg { width: 26px; height: 26px; }
.hxf-done h3 { margin: 16px 0 0; font-size: 22px; }
.hxf-done p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--hxf-muted); }
.hxf-done p b { color: var(--hxf-ink); }

/* Products page: "Request a demo" buttons (tool banner and tool cards) */
.bact { margin-top: 18px; }
button.hx-demo-btn { font: inherit; font-size: 13.5px; }
