/* Documentation request dialog. Scoped to avoid changing existing contact forms. */
#document-download-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px;
  overflow: auto;
  border: 1px solid #dce2e8;
  border-radius: 14px;
  background: #fff;
  color: #233044;
  box-shadow: 0 24px 80px #15243233;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}
#document-download-dialog::backdrop {
  background: #162c3c80;
  backdrop-filter: blur(3px);
}
#document-download-dialog [hidden] { display: none !important; }
#document-download-dialog h2 {
  max-width: none;
  margin: 0;
  padding-right: 38px;
  color: #233044;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
}
#document-download-dialog .vd-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5f6;
  color: #233044;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.vd-document {
  margin: 12px 0 20px;
  color: #435569;
  font-size: 16px;
}
.vd-form { display: grid; gap: 16px; }
.vd-intro, .vd-privacy { margin: 0; color: #435569; font-size: 14px; line-height: 1.5; }
.vd-fields { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.vd-field { display: grid; gap: 6px; min-width: 0; }
.vd-field > span { font-size: 14px; font-weight: 600; }
.vd-field > input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #bfcbd4;
  border-radius: 7px;
  background: #fff;
  color: #233044;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.vd-field > input::placeholder { color: #637386; opacity: 1; }
.vd-contact { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.vd-contact > input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: #007c83; }
.vd-contact > span { font-size: 16px; line-height: 1.4; }
.vd-contact small { color: #435569; font-size: 14px; }
.vd-privacy a, .vd-download-again { color: #005c63; text-decoration: underline; text-underline-offset: 3px; }
.vd-submit, .vd-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #007c83;
  border-radius: 7px;
  background: #007c83;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.vd-submit { width: 100%; }
.vd-submit:hover, .vd-done:hover { background: #005c63; border-color: #005c63; }
.vd-submit:disabled { opacity: .65; cursor: wait; }
.vd-error { margin: 0; padding: 12px; border-radius: 6px; background: #fff2f0; color: #9b2424; font-size: 14px; }
.vd-success { display: grid; gap: 16px; }
.vd-status, .vd-follow-up { margin: 0; }
.vd-follow-up { color: #435569; font-size: 14px; }
.vd-download-again { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.vd-done { justify-self: start; min-width: 100px; }
#document-download-dialog :is(input, button, a):focus-visible {
  outline: 3px solid #007c83;
  outline-offset: 3px;
}
.vd-visually-hidden, .vd-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 480px) {
  #document-download-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 28px 20px 24px;
  }
  #document-download-dialog h2 { font-size: 26px; }
}
