/* The hosted form page's own frame (the form itself is styled inside its shadow root). */
html {
  background: var(--page-bg, #f3f4f7);
  transition: background-color 0.3s ease;
}
body {
  margin: 0;
  min-height: 100vh;
  font:
    15px/1.5 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  color: #374151;
  -webkit-font-smoothing: antialiased;
}
.page {
  min-height: 100vh;
}
.page:not(:has(*)),
.nojs {
  box-sizing: border-box;
  padding: 30vh 24px 0;
  text-align: center;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.loading span {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(15, 23, 42, 0.14);
  border-top-color: rgba(15, 23, 42, 0.55);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading span {
    animation-duration: 2.4s;
  }
}

/* Inside an iframe on a website (the page adds .framed): only the form, as tall as it is, on the website's own
   background. */
html.framed,
html.framed body {
  background: transparent;
}
html.framed body,
html.framed .page {
  min-height: 0;
}
html.framed .loading {
  min-height: 160px;
}
