dialog {
  background: #fbfdff;
}
dialog :focus-visible {
  outline-color: #136c89;
}
.dialog-header {
  background: #fbfdff;
}
.dialog-header .eyebrow {
  color: #526b80;
}
.preview-check svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.close-button {
  min-width: 44px;
  min-height: 44px;
}
input::placeholder,
textarea::placeholder {
  color: #647487;
}
.request-preview .button {
  width: 100%;
}
@media (max-width: 560px) {
  dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
  }
  .dialog-header {
    padding: 16px 20px;
  }
  .report-body,
  .intake-body {
    padding: 24px 20px;
  }
  .report-body h2,
  .intake-body h2 {
    font-size: 32px;
  }
  .field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .report-body p,
  .report-body li {
    font-size: 14px;
  }
  .form-reassurance {
    font-size: 10px;
  }
  .request-preview .button {
    font-size: 13px;
  }
  .dialog-header .eyebrow {
    font-size: 8px;
  }
}
dialog {
  border: 0;
  border-radius: 20px;
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  color: var(--ink);
  box-shadow: 0 40px 140px #0004;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #07111faa;
  backdrop-filter: blur(6px);
}
.dialog-header {
  padding: 22px 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.close-button {
  background: var(--paper);
  border: 0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  color: var(--slate);
  display: grid;
  place-items: center;
}
.dialog-header .brand {
  font-size: 20px;
}
.report-body,
.intake-body {
  padding: 32px;
}
.report-body h2,
.intake-body h2 {
  font-size: 38px;
}
.report-body h3 {
  font-size: 18px;
  margin-top: 26px;
  margin-bottom: 8px;
}
.report-body p,
.report-body li {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
}
.report-body ul {
  padding-left: 22px;
}
.report-body .notice {
  background: var(--paper);
  padding: 18px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 22px;
}
.report-body > .button {
  margin-top: 28px;
}
.intake-body h2 {
  margin: 16px 0;
}
.intake-intro {
  font-size: 15px;
  color: var(--slate);
  max-width: 460px;
  line-height: 1.65;
}
.form-progress {
  display: flex;
  gap: 8px;
  margin: 26px 0;
}
.form-progress span {
  height: 3px;
  background: var(--line);
  flex: 1;
  border-radius: 4px;
}
.form-progress span.active {
  background: #1382a1;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 20px;
}
input:not([type="checkbox"]),
select,
textarea {
  background: white;
  border: 1px solid #c6d4df;
  border-radius: 8px;
  padding: 12px 13px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
}
textarea {
  resize: vertical;
  min-height: 86px;
}
input::placeholder,
textarea::placeholder {
  color: #79899a;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #b44c37;
  background: #fffafa;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-hint {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.6;
  font-weight: 400;
}
.field-hint a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.optional {
  font-weight: 400;
  color: var(--slate);
  display: contents;
}
.checkbox {
  flex-direction: row;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 400;
  gap: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #087394;
  margin: 2px 0 0;
  flex-shrink: 0;
}
.form-actions {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.form-actions > .button {
  margin-left: auto;
}
.form-error {
  color: #a33d29;
  font-size: 13px;
  margin-top: 14px;
}
.form-error:empty {
  display: none;
}
.form-reassurance {
  font-size: 11px;
  color: var(--slate);
  text-align: center;
  margin-top: 22px;
}
.request-preview h3 {
  font-size: 25px;
  margin: 18px 0 12px;
}
.request-preview > p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
}
.request-preview dl {
  padding: 20px;
  background: var(--paper);
  border-radius: 10px;
  margin: 24px 0;
  word-break: break-word;
}
.request-preview dt {
  font-size: 12px;
  color: var(--slate);
  margin-top: 14px;
}
.request-preview dt:first-child {
  margin-top: 0;
}
.request-preview dd {
  margin: 5px 0 0;
  font-size: 14px;
}
.request-preview > .text-button {
  display: block;
  margin: 12px auto 0;
}
.preview-check {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: #e6f4f1;
  color: #237251;
  border-radius: 50%;
}
.preview-check svg {
  width: 26px;
  height: 26px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.intake-terms {
  margin: 22px 0 12px;
}
#intake-mode {
  padding: 12px;
  background: #edf4f8;
  border-radius: 8px;
  margin: 14px 0;
}
#scope-guidance {
  margin-top: 16px;
}
#intake-form[aria-busy="true"] {
  opacity: 0.75;
}
.form-actions > .button:disabled {
  cursor: wait;
  transform: none;
}
.request-preview .field-hint {
  font-size: 12px;
}
