/* ============================================================
   PBCPA PUBLIC REPORTING SYSTEM
   public/css/report.css

   FINAL STYLESHEET
   ============================================================ */

:root {
  --report-bg: #eef2f4;
  --report-panel: #ffffff;

  --report-dark: #0a0b0d;
  --report-dark-2: #111315;
  --report-dark-3: #1a1d20;

  --report-red: #c71925;
  --report-red-dark: #a80f19;
  --report-red-soft: #fff3f4;

  --report-green: #20966a;
  --report-amber: #c88717;

  --report-border: #dfe3e6;
  --report-border-dark: #cdd3d7;

  --report-text: #171a1d;
  --report-muted: #69727a;
  --report-muted-light: #929aa0;

  --report-radius: 14px;
  --report-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);

  --report-max-width: 1320px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;

  background: var(--report-bg);
  color: var(--report-text);

  font-family:
    Inter,
    "Segoe UI",
    Arial,
    Helvetica,
    sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  box-sizing: border-box;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

/* ============================================================
   SHARED CONTAINER
   ============================================================ */

.container,
.report-container {
  width: min(
    calc(100% - 48px),
    var(--report-max-width)
  );

  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   PAGE
   ============================================================ */

.report-page {
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background:
    linear-gradient(
      180deg,
      #edf0f2 0%,
      #f7f8f9 50%,
      #eef1f3 100%
    );
}

/* ============================================================
   HEADER
   ============================================================ */

.report-header {
  position: relative;
  z-index: 100;

  width: 100%;

  background:
    linear-gradient(
      135deg,
      #090a0c 0%,
      #101214 100%
    );

  border-bottom:
    3px solid var(--report-red);

  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.18);
}

.report-header-inner {
  width: min(
    calc(100% - 48px),
    var(--report-max-width)
  );

  min-height: 88px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}

/* ============================================================
   HEADER BRAND
   ============================================================ */

.report-header .brand,
.report-header .report-brand {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 14px;
}

.report-header .brand-logo,
.report-header .report-logo {
  width: 62px !important;
  height: 62px !important;

  min-width: 62px;
  max-width: 62px;

  flex: 0 0 62px;

  object-fit: contain;

  border-radius: 50%;
}

/*
   Extra protection against the original PBCPA image rendering
   at its natural resolution if the HTML uses a slightly
   different wrapper/class combination.
*/

.report-header a img,
.report-header-inner > a img,
.report-header .brand img,
.report-header .report-brand img {
  width: 62px !important;
  height: 62px !important;

  max-width: 62px !important;
  max-height: 62px !important;

  object-fit: contain;
}

.report-header .brand-text,
.report-header .report-brand-text {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.report-header .brand-text strong,
.report-header .report-brand-text strong {
  color: #ffffff;

  font-size: 18px;
  font-weight: 900;

  line-height: 1;

  letter-spacing: 0.08em;
}

.report-header .brand-text span,
.report-header .report-brand-text span {
  color: #92989d;

  font-size: 9px;
  font-weight: 800;

  line-height: 1.2;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ============================================================
   BACK TO WEBSITE
   ============================================================ */

.report-back-link {
  min-height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  padding: 0 15px;

  border:
    1px solid rgba(255, 255, 255, 0.16);

  border-radius: 8px;

  background:
    rgba(255, 255, 255, 0.03);

  color: #c4c8cb;

  font-size: 11px;
  font-weight: 800;

  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.report-back-link:hover {
  color: #ffffff;

  border-color:
    rgba(255, 255, 255, 0.32);

  background:
    rgba(255, 255, 255, 0.08);

  transform: translateY(-1px);
}

/* ============================================================
   MAIN
   ============================================================ */

.report-main {
  flex: 1;

  width: 100%;

  padding: 52px 0 72px;
}

.report-layout {
  width: min(
    calc(100% - 48px),
    var(--report-max-width)
  );

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(280px, 0.58fr)
    minmax(520px, 1fr);

  gap: 48px;

  align-items: start;
}

/* ============================================================
   LEFT INFORMATION
   ============================================================ */

.report-information {
  position: sticky;
  top: 28px;

  min-width: 0;

  padding: 12px 6px 20px 0;
}

.report-type-label {
  display: inline-flex;
  align-items: center;

  min-height: 28px;

  margin-bottom: 20px;
  padding: 0 10px;

  border:
    1px solid rgba(199, 25, 37, 0.14);

  border-radius: 5px;

  background:
    rgba(199, 25, 37, 0.07);

  color: var(--report-red);

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.report-type-label.crime {
  color: var(--report-red);

  background:
    rgba(199, 25, 37, 0.08);

  border-color:
    rgba(199, 25, 37, 0.16);
}

.report-type-label.medical {
  color: #1475a6;

  background:
    rgba(20, 117, 166, 0.08);

  border-color:
    rgba(20, 117, 166, 0.15);
}

.report-type-label.suspicious {
  color: #9b6509;

  background:
    rgba(200, 135, 23, 0.09);

  border-color:
    rgba(200, 135, 23, 0.17);
}

.report-information h1 {
  max-width: 500px;

  margin: 0;

  color: #090b0d;

  font-size:
    clamp(38px, 4vw, 58px);

  font-weight: 900;

  line-height: 1.01;

  letter-spacing: -0.045em;
}

.report-introduction {
  max-width: 500px;

  margin: 20px 0 0;

  color: var(--report-muted);

  font-size: 14px;
  line-height: 1.75;
}

.report-info-divider {
  width: 100%;
  height: 1px;

  margin: 32px 0;

  background: var(--report-border);
}

/* ============================================================
   INFORMATION STEPS
   ============================================================ */

.report-info-block {
  display: grid;

  grid-template-columns: 38px 1fr;

  gap: 15px;

  margin-bottom: 24px;
}

.report-info-number {
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(199, 25, 37, 0.15);

  border-radius: 50%;

  background:
    rgba(199, 25, 37, 0.06);

  color: var(--report-red);

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.06em;
}

.report-info-block strong {
  display: block;

  margin-bottom: 5px;

  color: #171a1d;

  font-size: 13px;
  font-weight: 800;
}

.report-info-block p {
  margin: 0;

  color: var(--report-muted);

  font-size: 11px;
  line-height: 1.65;
}

/* ============================================================
   PRIVACY BOX
   ============================================================ */

.report-privacy-box {
  display: grid;

  grid-template-columns: 38px 1fr;

  gap: 14px;

  margin-top: 34px;
  padding: 18px;

  border:
    1px solid #d8dfe3;

  border-radius: 11px;

  background: #ffffff;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.035);
}

.privacy-shield {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #111315;

  color: #ffffff;

  font-size: 12px;
  font-weight: 900;
}

.report-privacy-box strong {
  display: block;

  color: #171a1d;

  font-size: 11px;
  line-height: 1.45;
}

.report-privacy-box p {
  margin: 6px 0 0;

  color: var(--report-muted);

  font-size: 10px;
  line-height: 1.6;
}

/* ============================================================
   FORM PANEL
   ============================================================ */

.report-form-panel {
  min-width: 0;

  overflow: hidden;

  border:
    1px solid var(--report-border);

  border-radius: 16px;

  background: var(--report-panel);

  box-shadow: var(--report-shadow);
}

.report-form-heading {
  min-height: 92px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  padding: 24px 30px;

  border-bottom:
    1px solid var(--report-border);

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #fcfcfc
    );
}

.report-form-heading span {
  display: block;

  margin-bottom: 4px;

  color: var(--report-red);

  font-size: 8px;
  font-weight: 900;

  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.report-form-heading h2 {
  margin: 0;

  color: #111315;

  font-size: 23px;
  font-weight: 900;

  letter-spacing: -0.025em;
}

.secure-form-badge {
  flex: 0 0 auto;

  padding: 7px 9px;

  border:
    1px solid #cde5d9;

  border-radius: 5px;

  background: #f4fbf7;

  color: #21815d;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   EMERGENCY WARNING
   ============================================================ */

.form-emergency-warning {
  display: grid;

  grid-template-columns: 40px 1fr;

  gap: 14px;

  margin: 26px 30px 0;
  padding: 15px 17px;

  border:
    1px solid #efcfd2;

  border-left:
    4px solid var(--report-red);

  border-radius: 9px;

  background: #fff8f8;
}

.warning-icon {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--report-red);

  color: #ffffff;

  font-size: 13px;
  font-weight: 900;
}

.form-emergency-warning strong {
  display: block;

  color: #81252b;

  font-size: 12px;
  font-weight: 800;
}

.form-emergency-warning p {
  margin: 4px 0 0;

  color: #7c5b5e;

  font-size: 10px;
  line-height: 1.55;
}

/* ============================================================
   FORM
   ============================================================ */

.incident-form {
  padding: 30px;
}

.form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.form-group {
  min-width: 0;

  margin-bottom: 21px;
}

.form-group.full {
  width: 100%;
}

.form-group label {
  display: block;

  margin-bottom: 8px;

  color: #1a1d20;

  font-size: 11px;
  font-weight: 800;
}

.form-group label span {
  color: var(--report-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;

  outline: none;

  border:
    1px solid #cfd5d9;

  border-radius: 8px;

  background: #ffffff;

  color: var(--report-text);

  font-size: 13px;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.form-group input,
.form-group select {
  min-height: 48px;

  padding: 0 13px;
}

.form-group textarea {
  min-height: 145px;

  padding: 13px;

  resize: vertical;

  line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca4aa;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #b7c0c5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--report-red);

  box-shadow:
    0 0 0 3px
    rgba(199, 25, 37, 0.08);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #dba5a9;
}

.field-help {
  display: block;

  margin-top: 7px;

  color: #879198;

  font-size: 9px;
  line-height: 1.5;
}

.field-bottom-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}

.character-counter {
  flex: 0 0 auto;

  margin-top: 7px;

  color: #879198;

  font-size: 9px;
}
/* ============================================================
   FORM SECTION HEADINGS
   ============================================================ */

.form-section-heading {
  margin: 16px 0 23px;
  padding-top: 28px;

  border-top:
    1px solid var(--report-border);
}

.form-section-heading > span {
  display: block;

  margin-bottom: 6px;

  color: var(--report-red);

  font-size: 8px;
  font-weight: 900;

  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form-section-heading h3 {
  margin: 0;

  color: #111315;

  font-size: 18px;
  font-weight: 900;

  letter-spacing: -0.02em;
}

.form-section-heading p {
  max-width: 620px;

  margin: 7px 0 0;

  color: var(--report-muted);

  font-size: 10px;
  line-height: 1.6;
}

/* ============================================================
   LOCATION
   ============================================================ */

.location-section {
  margin: 4px 0 28px;
  padding: 19px;

  border:
    1px solid var(--report-border);

  border-radius: 10px;

  background: #f8f9fa;
}

.location-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.location-heading > div {
  min-width: 0;
}

.location-heading strong {
  display: block;

  color: #171a1d;

  font-size: 12px;
  font-weight: 800;
}

.location-heading p {
  max-width: 500px;

  margin: 4px 0 0;

  color: var(--report-muted);

  font-size: 10px;
  line-height: 1.5;
}

.location-button {
  min-height: 39px;

  flex: 0 0 auto;

  padding: 0 14px;

  border:
    1px solid #c8cfd3;

  border-radius: 7px;

  background: #ffffff;

  color: #272b2e;

  font-size: 10px;
  font-weight: 800;

  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.location-button:hover {
  border-color: #111315;

  background: #111315;

  color: #ffffff;

  transform: translateY(-1px);
}

.location-button:disabled {
  opacity: 0.6;

  transform: none;
}

.location-status {
  min-height: 14px;

  margin-top: 12px;

  color: #858e94;

  font-size: 9px;
  line-height: 1.5;
}

.location-status.success {
  color: var(--report-green);
}

.location-status.error {
  color: var(--report-red);
}

/* ============================================================
   PHOTO UPLOAD
   ============================================================ */

.photo-section-heading {
  margin-top: 10px;
}

.photo-upload-section {
  margin-bottom: 28px;
}

.photo-upload-box {
  min-height: 175px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 27px;

  border:
    2px dashed #c9d0d4;

  border-radius: 11px;

  background:
    linear-gradient(
      180deg,
      #fcfcfc,
      #f7f8f9
    );

  text-align: center;

  cursor: pointer;

  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.photo-upload-box:hover {
  border-color: var(--report-red);

  background: #fffafa;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.04);

  transform: translateY(-1px);
}

.photo-upload-box.drag-over {
  border-color: var(--report-red);

  background: var(--report-red-soft);

  box-shadow:
    0 0 0 3px
    rgba(199, 25, 37, 0.07);
}

.photo-upload-icon {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 13px;

  border-radius: 50%;

  background:
    rgba(199, 25, 37, 0.08);
}

.photo-upload-icon svg {
  width: 24px;
  height: 24px;

  fill: var(--report-red);
}

.photo-upload-box strong {
  color: #171a1d;

  font-size: 13px;
  font-weight: 800;
}

.photo-upload-box > span {
  margin-top: 5px;

  color: var(--report-muted);

  font-size: 10px;
}

.photo-upload-box small {
  margin-top: 8px;

  color: #949ca1;

  font-size: 8px;

  letter-spacing: 0.04em;
}

.photo-upload-message {
  min-height: 18px;

  margin-top: 8px;

  color: var(--report-muted);

  font-size: 9px;
  line-height: 1.5;
}

.photo-upload-message.error {
  color: var(--report-red);
}

.photo-upload-message.success {
  color: var(--report-green);
}

/* ============================================================
   PHOTO PREVIEWS
   ============================================================ */

.photo-preview-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 12px;

  margin-top: 12px;
}

.photo-preview-item {
  position: relative;

  min-width: 0;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  border:
    1px solid var(--report-border);

  border-radius: 9px;

  background: #eceff1;
}

.photo-preview-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.photo-preview-overlay {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  min-height: 42px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 8px;

  padding: 8px;

  background:
    linear-gradient(
      transparent,
      rgba(0, 0, 0, 0.88)
    );

  color: #ffffff;
}

.photo-preview-name {
  min-width: 0;

  overflow: hidden;

  font-size: 8px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-photo-button {
  width: 25px;
  height: 25px;

  flex: 0 0 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border:
    1px solid rgba(255, 255, 255, 0.38);

  border-radius: 50%;

  background:
    rgba(0, 0, 0, 0.4);

  color: #ffffff;

  font-size: 12px;

  transition:
    background 150ms ease,
    border-color 150ms ease;
}

.remove-photo-button:hover {
  border-color: var(--report-red);

  background: var(--report-red);
}

/* ============================================================
   CONFIRMATION
   ============================================================ */

.confirmation-check {
  position: relative;

  display: grid;

  grid-template-columns: 22px 1fr;

  align-items: flex-start;

  gap: 11px;

  margin-top: 12px;
  padding: 16px;

  border:
    1px solid var(--report-border);

  border-radius: 9px;

  background: #fafafa;

  cursor: pointer;

  transition:
    border-color 150ms ease,
    background 150ms ease;
}

.confirmation-check:hover {
  border-color: #c6ccd0;

  background: #f7f8f8;
}

.confirmation-check input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;

  pointer-events: none;
}

.custom-checkbox {
  position: relative;

  width: 20px;
  height: 20px;

  border:
    1px solid #b9c0c4;

  border-radius: 5px;

  background: #ffffff;

  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.confirmation-check input:checked + .custom-checkbox {
  border-color: var(--report-red);

  background: var(--report-red);
}

.confirmation-check input:checked + .custom-checkbox::after {
  content: "✓";

  position: absolute;

  top: 50%;
  left: 50%;

  color: #ffffff;

  font-size: 12px;
  font-weight: 900;

  transform:
    translate(-50%, -50%);
}

.confirmation-check input:focus-visible + .custom-checkbox {
  box-shadow:
    0 0 0 3px
    rgba(199, 25, 37, 0.13);
}

.confirmation-text {
  color: #586168;

  font-size: 10px;
  line-height: 1.55;
}

/* ============================================================
   FORM MESSAGE
   ============================================================ */

.form-message {
  display: none;

  margin-top: 18px;
  padding: 13px 15px;

  border-radius: 8px;

  font-size: 10px;
  line-height: 1.55;
}

.form-message.error {
  display: block;

  border:
    1px solid #edc9cc;

  background: #fff5f6;

  color: #9b3038;
}

.form-message.success {
  display: block;

  border:
    1px solid #c9e4d7;

  background: #f3faf6;

  color: #247757;
}

/* ============================================================
   SUBMIT AREA
   ============================================================ */

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  margin-top: 25px;
  padding-top: 25px;

  border-top:
    1px solid var(--report-border);
}

.cancel-report-link {
  color: #747d83;

  font-size: 10px;
  font-weight: 700;

  transition:
    color 150ms ease;
}

.cancel-report-link:hover {
  color: #111315;
}

.submit-report-button {
  min-height: 50px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 17px;

  padding: 0 7px 0 20px;

  border: 0;

  border-radius: 8px;

  background:
    linear-gradient(
      135deg,
      var(--report-red),
      var(--report-red-dark)
    );

  color: #ffffff;

  font-size: 11px;
  font-weight: 900;

  box-shadow:
    0 10px 25px
    rgba(199, 25, 37, 0.22);

  transition:
    background 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease;
}

.submit-report-button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 13px 30px
    rgba(199, 25, 37, 0.28);
}

.submit-report-button:active {
  transform: translateY(0);
}

.submit-report-button:disabled {
  opacity: 0.62;

  transform: none;

  box-shadow: none;
}

.submit-arrow {
  width: 37px;
  height: 37px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 6px;

  background:
    rgba(255, 255, 255, 0.14);

  font-size: 15px;
}

/* ============================================================
   SUBMIT LOADING STATE
   ============================================================ */

.submit-report-button.loading {
  pointer-events: none;
}

.submit-report-button.loading .submit-button-text::after {
  content: "...";
}

/* ============================================================
   SUCCESS SCREEN
   ============================================================ */

.report-success {
  padding: 62px 38px;

  text-align: center;
}

.report-success[hidden] {
  display: none !important;
}

.success-icon {
  width: 68px;
  height: 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 20px;

  border-radius: 50%;

  background:
    rgba(32, 150, 106, 0.10);

  color: var(--report-green);

  font-size: 28px;
  font-weight: 900;

  box-shadow:
    0 0 0 10px
    rgba(32, 150, 106, 0.04);
}

.success-label {
  display: block;

  margin-bottom: 8px;

  color: var(--report-green);

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.report-success h2 {
  margin: 0;

  color: #111315;

  font-size: 30px;
  font-weight: 900;

  letter-spacing: -0.035em;
}

.report-success > p {
  margin: 10px 0 0;

  color: var(--report-muted);

  font-size: 12px;
  line-height: 1.6;
}

.reference-panel {
  max-width: 430px;

  margin: 30px auto;
  padding: 24px;

  border:
    1px solid #d9dfe2;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #fafafa,
      #f3f4f5
    );
}

.reference-panel span {
  display: block;

  margin-bottom: 8px;

  color: #818a90;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.reference-panel strong {
  display: block;

  color: #111315;

  font-size: 30px;
  font-weight: 900;

  letter-spacing: 0.04em;
}

.reference-panel small {
  display: block;

  margin-top: 7px;

  color: #858e94;

  font-size: 9px;
}

.success-information {
  max-width: 500px;

  margin: 0 auto 28px;
  padding: 16px;

  border:
    1px solid #e2e5e7;

  border-radius: 9px;

  background: #f8f9f9;
}

.success-information strong {
  display: block;

  margin-bottom: 5px;

  color: #171a1d;

  font-size: 11px;
  font-weight: 800;
}

.success-information p {
  margin: 0;

  color: var(--report-muted);

  font-size: 10px;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 10px;
}

.success-secondary-button {
  border:
    1px solid var(--report-border);

  background: #ffffff;

  color: #171a1d;
}

.success-secondary-button:hover {
  border-color: #bfc6ca;

  background: #f6f7f7;
}

/* ============================================================
   GENERIC BUTTON SUPPORT
   ============================================================ */

.button {
  min-height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 17px;

  border-radius: 7px;

  font-size: 10px;
  font-weight: 800;

  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

/* ============================================================
   FOOTER
   ============================================================ */

.report-footer {
  width: 100%;

  margin-top: auto;

  background: #070809;

  color: #ffffff;

  border-top:
    1px solid rgba(255, 255, 255, 0.06);
}

.report-footer-inner {
  width: min(
    calc(100% - 48px),
    var(--report-max-width)
  );

  min-height: 72px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;
}

.report-footer-inner div {
  display: flex;
  align-items: center;

  gap: 10px;
}

.report-footer-inner strong {
  font-size: 12px;
  font-weight: 900;

  letter-spacing: 0.08em;
}

.report-footer-inner span,
.report-footer-inner p {
  margin: 0;

  color: #727a80;

  font-size: 9px;
}
/* ============================================================
   ACCESSIBILITY / FOCUS
   ============================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline:
    3px solid rgba(199, 25, 37, 0.18);

  outline-offset: 2px;
}

/* ============================================================
   TABLET / SMALL DESKTOP
   ============================================================ */

@media (max-width: 1100px) {

  .report-layout {
    grid-template-columns:
      minmax(240px, 0.48fr)
      minmax(480px, 1fr);

    gap: 32px;
  }

  .report-information h1 {
    font-size: 42px;
  }

  .report-form-heading {
    padding-left: 25px;
    padding-right: 25px;
  }

  .form-emergency-warning {
    margin-left: 25px;
    margin-right: 25px;
  }

  .incident-form {
    padding: 25px;
  }
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

  .report-main {
    padding-top: 38px;
  }

  .report-layout {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .report-information {
    position: static;

    padding-right: 0;
  }

  .report-information h1 {
    max-width: 680px;

    font-size: 46px;
  }

  .report-introduction {
    max-width: 720px;
  }

  .report-info-divider {
    margin: 26px 0;
  }

  .report-information {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    column-gap: 24px;
  }

  .report-type-label,
  .report-information h1,
  .report-introduction,
  .report-info-divider,
  .report-privacy-box {
    grid-column: 1 / -1;
  }

  .report-privacy-box {
    margin-top: 12px;
  }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

  .container,
  .report-container,
  .report-layout,
  .report-header-inner,
  .report-footer-inner {
    width: min(
      calc(100% - 28px),
      var(--report-max-width)
    );
  }

  /* ----------------------------------------------------------
     HEADER
     ---------------------------------------------------------- */

  .report-header-inner {
    min-height: 72px;

    gap: 12px;
  }

  .report-header .brand,
  .report-header .report-brand {
    gap: 10px;
  }

  .report-header .brand-logo,
  .report-header .report-logo,
  .report-header a img,
  .report-header-inner > a img,
  .report-header .brand img,
  .report-header .report-brand img {
    width: 48px !important;
    height: 48px !important;

    min-width: 48px;
    max-width: 48px !important;
    max-height: 48px !important;

    flex-basis: 48px;
  }

  .report-header .brand-text strong,
  .report-header .report-brand-text strong {
    font-size: 15px;
  }

  .report-header .brand-text span,
  .report-header .report-brand-text span {
    font-size: 7px;
  }

  .report-back-link {
    min-height: 36px;

    padding: 0 11px;

    font-size: 9px;
  }

  /* ----------------------------------------------------------
     MAIN
     ---------------------------------------------------------- */

  .report-main {
    padding:
      30px 0 48px;
  }

  .report-layout {
    gap: 25px;
  }

  /* ----------------------------------------------------------
     INFORMATION
     ---------------------------------------------------------- */

  .report-information {
    display: block;

    padding: 0;
  }

  .report-type-label {
    margin-bottom: 15px;
  }

  .report-information h1 {
    font-size:
      clamp(34px, 10vw, 44px);

    line-height: 1.02;
  }

  .report-introduction {
    margin-top: 15px;

    font-size: 12px;
    line-height: 1.65;
  }

  .report-info-divider {
    margin: 23px 0;
  }

  .report-info-block {
    margin-bottom: 19px;
  }

  .report-privacy-box {
    margin-top: 23px;
  }

  /* ----------------------------------------------------------
     FORM PANEL
     ---------------------------------------------------------- */

  .report-form-panel {
    border-radius: 13px;
  }

  .report-form-heading {
    min-height: auto;

    align-items: flex-start;

    padding: 21px 19px;
  }

  .report-form-heading h2 {
    font-size: 20px;
  }

  .secure-form-badge {
    padding: 6px 7px;

    font-size: 7px;
  }

  .form-emergency-warning {
    grid-template-columns: 34px 1fr;

    gap: 11px;

    margin:
      18px 18px 0;

    padding: 13px;
  }

  .warning-icon {
    width: 30px;
    height: 30px;

    font-size: 11px;
  }

  .incident-form {
    padding: 20px 18px 24px;
  }

  /* ----------------------------------------------------------
     FORM
     ---------------------------------------------------------- */

  .form-grid {
    grid-template-columns: 1fr;

    gap: 0;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group input,
  .form-group select {
    min-height: 48px;

    font-size: 16px;
  }

  .form-group textarea {
    min-height: 135px;

    font-size: 16px;
  }

  .field-bottom-row {
    gap: 12px;
  }

  .form-section-heading {
    margin-top: 10px;
    padding-top: 23px;
  }

  /* ----------------------------------------------------------
     LOCATION
     ---------------------------------------------------------- */

  .location-section {
    padding: 15px;
  }

  .location-heading {
    align-items: stretch;
    flex-direction: column;

    gap: 13px;
  }

  .location-button {
    width: 100%;

    min-height: 43px;
  }

  /* ----------------------------------------------------------
     PHOTOS
     ---------------------------------------------------------- */

  .photo-upload-box {
    min-height: 160px;

    padding: 22px 15px;
  }

  .photo-preview-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  /* ----------------------------------------------------------
     SUBMIT
     ---------------------------------------------------------- */

  .form-submit-row {
    align-items: stretch;
    flex-direction: column-reverse;

    gap: 15px;
  }

  .cancel-report-link {
    align-self: center;
  }

  .submit-report-button {
    width: 100%;

    justify-content: space-between;
  }

  /* ----------------------------------------------------------
     SUCCESS
     ---------------------------------------------------------- */

  .report-success {
    padding: 45px 20px;
  }

  .report-success h2 {
    font-size: 26px;
  }

  .reference-panel {
    margin:
      25px auto;

    padding: 20px 15px;
  }

  .reference-panel strong {
    font-size: 25px;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .button,
  .success-actions a,
  .success-actions button {
    width: 100%;
  }

  /* ----------------------------------------------------------
     FOOTER
     ---------------------------------------------------------- */

  .report-footer-inner {
    min-height: 90px;

    align-items: flex-start;
    flex-direction: column;
    justify-content: center;

    gap: 8px;

    padding-top: 18px;
    padding-bottom: 18px;
  }
}

/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 430px) {

  .container,
  .report-container,
  .report-layout,
  .report-header-inner,
  .report-footer-inner {
    width:
      calc(100% - 22px);
  }

  .report-header-inner {
    min-height: 68px;
  }

  .report-header .brand-logo,
  .report-header .report-logo,
  .report-header a img,
  .report-header-inner > a img,
  .report-header .brand img,
  .report-header .report-brand img {
    width: 44px !important;
    height: 44px !important;

    min-width: 44px;
    max-width: 44px !important;
    max-height: 44px !important;

    flex-basis: 44px;
  }

  .report-header .brand-text span,
  .report-header .report-brand-text span {
    display: none;
  }

  .report-back-link {
    padding:
      0 9px;

    font-size: 8px;
  }

  .report-main {
    padding-top: 25px;
  }

  .report-information h1 {
    font-size: 34px;
  }

  .report-info-block {
    grid-template-columns:
      32px 1fr;

    gap: 11px;
  }

  .report-privacy-box {
    grid-template-columns:
      32px 1fr;

    gap: 11px;

    padding: 15px;
  }

  .privacy-shield {
    width: 30px;
    height: 30px;
  }

  .report-form-heading {
    gap: 10px;
  }

  .secure-form-badge {
    white-space: nowrap;
  }

  .photo-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {

  body {
    background: #ffffff;
  }

  .report-header,
  .report-footer,
  .report-back-link,
  .location-button,
  .photo-upload-box,
  .submit-report-button,
  .cancel-report-link {
    display: none !important;
  }

  .report-main {
    padding: 0;
  }

  .report-layout {
    width: 100%;

    display: block;
  }

  .report-information {
    position: static;

    margin-bottom: 25px;
  }

  .report-form-panel {
    border:
      1px solid #cccccc;

    box-shadow: none;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration:
      0.01ms !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;
  }
}

/* ============================================================
   FINAL IMAGE SAFEGUARD

   Prevents the PBCPA logo from ever returning to the enormous
   natural image dimensions seen on the broken report page.
   ============================================================ */

.report-header img {
  object-fit: contain;
}

.report-header img.brand-logo,
.report-header img.report-logo {
  width: 62px !important;
  height: 62px !important;

  max-width: 62px !important;
  max-height: 62px !important;
}

/* ============================================================
   END OF PBCPA REPORT STYLESHEET
   ============================================================ */