.document-form-info {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent, var(--navy));
  cursor: pointer;
}

.document-form-info span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

.document-form-info:hover span {
  background: var(--accent, var(--navy));
  color: white;
}

.document-form-popover {
  width: min(42rem, calc(100% - 2rem));
  max-height: min(36rem, calc(100dvh - 2rem));
  padding: 0;
  border: 1px solid #d8e4f5;
  border-radius: 16px;
  background: white;
  color: var(--navy);
  box-shadow: 0 16px 48px rgb(11 42 91 / 22%);
  overflow: hidden;
}

.document-form-popover:popover-open {
  display: flex;
  flex-direction: column;
}

.document-form-popover__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #d8e4f5;
}

.document-form-popover__header h2 {
  margin: 0;
  font-size: 1.125rem;
}

.document-form-popover__header button {
  flex: none;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf3ff;
  color: var(--navy);
  font-size: 1.25rem;
  cursor: pointer;
}

.document-form-popover__answer {
  min-height: 0;
  overflow: auto;
  padding: 0 18px;
  color: var(--ink-2);
  line-height: 1.6;
}

.document-form-popover__answer:focus-visible {
  outline-offset: -3px;
}
