.report-page {
  overflow-x: hidden;
}

.report-main {
  width: min(100%, 58rem);
}

.report-main > header {
  max-width: 48rem;
}

.report-main h1 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: normal;
  font-size: clamp(2.625rem, 7vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: normal;
}

.report-intro,
.report-contact-note {
  max-width: 42.5rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.report-contact-note {
  margin-top: 0.75rem;
}

.report-section {
  max-width: 48rem;
  margin-top: clamp(2.75rem, 7vw, 4.5rem);
}

.report-form-panel,
.report-receipt {
  margin-top: 2.25rem;
}

.report-form {
  display: grid;
  gap: 1.75rem;
}

.report-form fieldset {
  display: grid;
  gap: 1.75rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.report-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.report-field {
  display: grid;
  gap: 0.625rem;
  min-width: 0;
}

.report-field label,
.report-legend {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.report-required {
  color: var(--muted);
  font-size: 0.875em;
  font-weight: 400;
}

.report-field input,
.report-field select,
.report-field textarea {
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.5rem;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.06);
}

.report-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.report-field select {
  appearance: auto;
}

.report-field input::placeholder,
.report-field textarea::placeholder {
  color: var(--quiet);
  opacity: 1;
}

.report-field input:focus-visible,
.report-field select:focus-visible,
.report-field textarea:focus-visible {
  border-color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.report-field [aria-invalid="true"] {
  border-color: #ff9e9e;
}

.report-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.report-field-error {
  margin: 0;
  color: #ffb8b8;
  font-size: 0.875rem;
  line-height: 1.45;
}

.report-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.report-consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.125rem 0 0;
  accent-color: #fff;
}

.report-consent label {
  font-size: 1rem;
  line-height: 1.5;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.report-button {
  min-height: 3rem;
  padding: 0.75rem 1.125rem;
  border: 1px solid #fff;
  border-radius: 0.5rem;
  color: #000;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  background: #fff;
  cursor: pointer;
  transition: opacity 160ms ease-out, transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}

.report-button.secondary {
  color: #fff;
  background: transparent;
}

.report-button:disabled {
  cursor: wait;
  opacity: 0.56;
}

.report-button:not(:disabled):active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .report-button:not(:disabled):hover {
    opacity: 0.82;
  }
}

.report-status {
  min-height: 1.5em;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.report-status[data-state="error"] {
  color: #ffb8b8;
}

.report-status[data-state="success"] {
  color: #c4f5cd;
}

.report-receipt {
  max-width: 42.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(196, 245, 205, 0.42);
  border-radius: 0.75rem;
  background: rgba(196, 245, 205, 0.06);
}

.report-receipt h2 {
  margin: 0;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.1;
}

.report-receipt-intro {
  margin: 0.875rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.report-receipt-details {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.report-receipt-details div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.65fr) minmax(0, 1.35fr);
  gap: 1rem;
}

.report-receipt-details dt {
  color: var(--muted);
}

.report-receipt-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.report-receipt .report-actions {
  margin-top: 1.5rem;
}

@media (max-width: 36rem) {
  .report-receipt-details div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }
}

@media print {
  :root,
  body {
    color: #000;
    background: #fff;
  }

  .report-page .report-main {
    width: 100%;
    padding: 1rem;
  }

  .report-page .report-main > header,
  .report-page .report-status,
  .report-page .report-form-panel,
  .report-page .site-footer,
  .report-receipt .report-actions {
    display: none !important;
  }

  .report-page .report-section {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .report-receipt {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .report-receipt h2,
  .report-receipt-intro,
  .report-receipt-details dt,
  .report-receipt-details dd {
    color: #000;
  }
}
