:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #24384b;
  background: #f8fafc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;

  --navy: #084b82;
  --copper: #f7941d;
  --ink: #24384b;
  --muted: #667d91;
  --mist: #f2f7fb;
  --line: #dbe5ee;
  --white: #fff;
  --form-max: 65.625rem; /* 1050px */
  --page-gutter: clamp(0.75rem, 5vw, 4.5rem);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 0;
  color: var(--white);
  background: var(--navy);
  border-bottom: 1px solid #dfe5ea;
}

.hero-inner {
  width: min(var(--form-max), calc(100% - var(--page-gutter) - var(--page-gutter)));
  margin-inline: auto;
}

.main {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.hero-inner {
  display: flex;
  position: relative;
  z-index: 1;
  min-height: clamp(5rem, 8vw, 7rem);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(0.625rem, 1.5vw, 1rem);
}

.hero-inner > .eyebrow,
.hero-inner > .hero-copy,
.hero-inner > .deadline,
.orbit {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  color: var(--white);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
}

.brand-icon {
  display: grid;
  flex: 0 0 auto;
  width: clamp(2.25rem, 3vw, 2.75rem);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--copper);
  border-radius: 50%;
  color: var(--copper);
  font-size: 1.3rem;
}

.brand small {
  display: block;
  margin-top: 0.15rem;
  font-size: clamp(0.5rem, 0.7vw, 0.62rem);
  letter-spacing: 0.12em;
}

.hero-inner > .brand {
  align-self: center;
  max-width: min(24rem, 68vw);
  margin: 0;
  line-height: 0;
}

.brand img {
  display: block;
  width: clamp(9.5rem, 18vw, 15rem);
  max-width: 100%;
  max-height: clamp(3.25rem, 6vw, 5rem);
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin: 0;
}

.back {
  position: static;
  flex: 0 0 auto;
  color: #e7f2fa;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  text-decoration: none;
}

.eyebrow {
  margin: clamp(3rem, 5vw, 4.25rem) 0 0.875rem;
  color: var(--copper);
  font-size: clamp(0.7rem, 0.9vw, 0.82rem);
  font-weight: 850;
  letter-spacing: 0.16em;
}

.hero-inner > .eyebrow {
  margin-top: 0;
}

.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero h1 em {
  color: var(--copper);
  font-style: normal;
}

.hero-copy {
  width: min(100%, 38rem);
  max-width: 38rem;
  margin: clamp(1rem, 1.5vw, 1.25rem) 0;
  color: #e2edf6;
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  line-height: 1.7;
}

.deadline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
  padding: clamp(0.6rem, 1vw, 0.75rem) clamp(0.75rem, 1.1vw, 0.9rem);
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 4px;
  background: rgb(255 255 255 / 8%);
  font-size: clamp(0.76rem, 0.95vw, 0.88rem);
}

.orbit {
  position: absolute;
  right: clamp(-13rem, -8vw, -6rem);
  bottom: clamp(-26rem, -24vw, -15rem);
  width: clamp(28rem, 48vw, 48rem);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  box-shadow: 0 0 0 clamp(2rem, 5vw, 4.5rem) rgb(255 255 255 / 3.5%),
    0 0 0 clamp(4rem, 10vw, 9rem) rgb(255 255 255 / 2.5%);
  pointer-events: none;
}

.main {
  position: relative;
  z-index: 2;
  margin-block: 0 clamp(2.5rem, 5vw, 4rem);
}

.workspace,
.card {
  border: 1px solid var(--line);
  border-radius: clamp(0.5rem, 1vw, 0.75rem);
  background: var(--white);
  box-shadow: 0 1px 4px rgb(5 50 88 / 6%);
}

.workspace {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tabs {
  display: flex;
  align-items: stretch;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding-inline: max(var(--page-gutter), calc((100% - var(--form-max)) / 2));
  overflow-x: auto;
  border: 0;
  background: #eff4f8;
  scrollbar-width: thin;
}

.tab {
  position: relative;
  flex: 0 0 auto;
  min-width: max-content;
  min-height: clamp(3.1rem, 4vw, 3.5rem);
  padding-inline: clamp(0.25rem, 0.8vw, 0.75rem);
  border: 0;
  background: transparent;
  color: #245783;
  cursor: pointer;
  font-size: clamp(0.78rem, 1.1vw, 0.98rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tab.active {
  color: var(--navy);
}

.tab.active::after {
  position: absolute;
  right: 12%;
  bottom: -1px;
  left: 12%;
  height: 3px;
  background: var(--copper);
  content: "";
}

.tab:hover {
  color: var(--navy);
  background: rgb(8 75 130 / 4%);
}

.tab:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(247 148 29 / 48%);
  outline-offset: 2px;
}

.panel {
  width: min(var(--form-max), calc(100% - var(--page-gutter) - var(--page-gutter)));
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3.75rem);
}

.panel[hidden],
.minor-fields[hidden],
.presenter-fields[hidden],
.form-step[hidden],
.channel-fields[hidden],
.physical-fields[hidden] {
  display: none;
}

.heading {
  max-width: none;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.heading h2,
.card h2 {
  margin: 0 0 0.625rem;
  color: var(--navy);
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.heading > p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.heading .eyebrow {
  display: none;
}

.complaint-form,
#panel-track .track-form {
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid #e2ebf2;
  border-radius: clamp(0.5rem, 1vw, 0.75rem);
  background: var(--mist);
  box-shadow: 0 8px 28px rgb(8 75 130 / 5%);
}

.complaint-form .step-title {
  text-align: center;
}

.complaint-form .step-title .eyebrow {
  display: none;
}

.complaint-form .step-title h3 {
  color: var(--navy);
}

.heading .eyebrow,
.card .eyebrow {
  margin: 0 0 0.7rem;
}

.form fieldset {
  min-width: 0;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form legend {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--navy);
  font-weight: 850;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.875rem, 1.6vw, 1.25rem) clamp(1rem, 2vw, 1.5rem);
}

.form label:not(.check):not(.trap) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.45rem;
  color: #304b64;
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  font-weight: 700;
}

.form input:not([type="checkbox"]):not([type="radio"]),
.form select,
.form textarea {
  width: 100%;
  min-width: 0;
  min-height: clamp(2.875rem, 4vw, 3.625rem);
  padding: 0.625rem 0.75rem;
  border: 1px solid #bdccd9;
  border-radius: 5px;
  background: var(--white);
  color: #18364f;
  font-size: clamp(0.88rem, 1vw, 0.96rem);
  font-weight: 450;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form input:not([type="checkbox"]):not([type="radio"]):hover,
.form select:hover,
.form textarea:hover {
  border-color: #91aabe;
}

.form input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgb(247 148 29 / 16%);
}

.form input::placeholder,
.form textarea::placeholder {
  color: #8293a2;
  opacity: 1;
}

.form input[readonly] {
  background: #f7fafc;
}

.form textarea {
  min-height: clamp(7rem, 12vw, 10rem);
  resize: vertical;
}

.form small {
  color: var(--muted);
  font-size: clamp(0.73rem, 0.85vw, 0.8rem);
  font-weight: 450;
  line-height: 1.5;
}

.wide {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: #435a70;
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  line-height: 1.55;
}

.check input {
  flex: 0 0 auto;
  width: 1.0625rem;
  height: 1.0625rem;
  margin: 0.125rem 0 0;
  accent-color: var(--navy);
}

.reason-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.2vw, 0.9rem);
  margin-block: 0.75rem 0.5rem;
}

.reason-options .check {
  min-height: 3rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
}

.reason-options .check:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgb(247 148 29 / 20%);
}

.prior-solution {
  margin-top: 1.25rem;
}

.prior-solution > p {
  margin: 0 0 0.65rem;
  color: #304b64;
  font-size: clamp(0.8rem, 0.95vw, 0.9rem);
  font-weight: 700;
}

.minor,
.minor-fields {
  margin-top: 1rem;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.privacy {
  margin: 0 0 1.375rem;
}

.privacy a {
  color: var(--navy);
  font-weight: 750;
  text-underline-offset: 3px;
}

.button {
  display: inline-flex;
  min-height: clamp(2.875rem, 4vw, 3.125rem);
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.6875rem clamp(1rem, 2vw, 1.375rem);
  border: 1px solid var(--copper);
  border-radius: 6px;
  background: var(--copper);
  color: #142e43;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

.button:hover {
  border-color: #e88913;
  background: #e88913;
}

.button.outline {
  border-color: var(--navy);
  background: var(--white);
  color: var(--navy);
}

.fine {
  margin: 0.875rem 0 0;
  color: #718394;
  font-size: clamp(0.73rem, 0.85vw, 0.8rem);
  line-height: 1.5;
}

.track-form {
  display: grid;
  max-width: 37rem;
  gap: 1rem;
}

.track-result {
  display: grid;
  max-width: 37rem;
  gap: 0.5rem;
  margin-bottom: 1.375rem;
  padding: clamp(1rem, 2vw, 1.375rem);
  border-left: 4px solid var(--copper);
  background: var(--mist);
}

.track-result span:first-child {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.track-result strong {
  color: var(--navy);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  overflow-wrap: anywhere;
}

.card {
  margin-bottom: 1.5rem;
  padding: clamp(1.375rem, 4vw, 2.875rem);
}

.setup {
  max-width: 44rem;
  margin-inline: auto;
  border-top: 4px solid var(--copper);
}

.success {
  border-top: 4px solid #2d9a65;
}

.success > p {
  line-height: 1.6;
}

.protocol {
  display: inline-block;
  padding: 0.5625rem 0.8125rem;
  border-radius: 5px;
  background: var(--mist);
  color: var(--navy);
  letter-spacing: 0.07em;
  overflow-wrap: anywhere;
}

.receipt {
  margin-block: 1.625rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.receipt h3 {
  margin: 0 0 1.125rem;
  color: var(--navy);
}

.receipt dl,
.detail-list {
  display: grid;
  grid-template-columns: minmax(9rem, 0.4fr) minmax(0, 1fr);
  gap: 0.5625rem 1.125rem;
  margin: 0;
}

.receipt dt,
.detail-list dt {
  color: var(--muted);
  font-weight: 750;
}

.receipt dd,
.detail-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.alert {
  margin: 1rem 0;
  padding: 0.8125rem 1rem;
  border: 1px solid #f0d4a2;
  border-radius: 5px;
  background: #fff8eb;
  color: #6b4a16;
}

.alert.error {
  border-color: #efcaca;
  background: #fff7f7;
  color: #843b3b;
}

.admin-card {
  max-width: 60rem;
  margin-inline: auto;
}

.admin-card > .eyebrow {
  margin-top: 0;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-top form {
  margin: 0;
}

.admin-top .eyebrow {
  margin: 0;
}

.link-button {
  padding: 0.5rem;
  border: 0;
  background: none;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-list {
  margin: 1.375rem 0 1.875rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-card .form {
  display: grid;
  gap: 1rem;
}

.workflow-form {
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line);
}

.internal-deadline {
  margin: 0.75rem 0;
  padding: 0.875rem 1rem;
  border: 1px solid rgb(247 148 29 / 35%);
  border-left: 4px solid var(--copper);
  border-radius: 5px;
  background: #fff8ed;
  color: #40566b;
  line-height: 1.55;
}

.internal-deadline strong {
  color: var(--navy);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: clamp(0.625rem, 1vw, 0.8125rem);
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--navy);
}

td a {
  color: var(--navy);
  font-weight: 750;
}

footer {
  display: flex;
  width: min(var(--form-max), calc(100% - var(--page-gutter) - var(--page-gutter)));
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem clamp(0.75rem, 1.5vw, 1.125rem);
  margin: clamp(1.5rem, 3vw, 2rem) auto;
  color: var(--muted);
  font-size: clamp(0.76rem, 0.95vw, 0.85rem);
}

footer strong {
  color: var(--navy);
}

footer p {
  flex-basis: 100%;
  margin: 0.125rem 0 0;
  text-align: center;
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  line-height: 1.5;
}

.step-progress {
  display: flex;
  max-width: 26rem;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  color: var(--muted);
}

.step-progress span {
  display: grid;
  flex: 0 0 auto;
  width: clamp(2rem, 3vw, 2.25rem);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  font-weight: 800;
}

.step-progress span.current,
.step-progress span.complete {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.step-progress span.complete {
  border-color: var(--copper);
  background: var(--copper);
  color: var(--ink);
}

.step-progress i {
  height: 2px;
  flex: 1 1 auto;
  background: var(--line);
}

.step-title {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
}

.step-title h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.step-title > p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(1.25rem, 3vw, 1.5rem);
}

.file-feedback {
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.form input[type="file"] {
  padding: 0.625rem;
  background: var(--mist);
}

.form input[type="file"]::file-selector-button {
  margin-right: 0.625rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd9e4;
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.form input[type="file"]::file-selector-button:hover {
  border-color: var(--navy);
  background: #f7fafc;
}

.trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* One structural breakpoint; spacing and type scale fluidly with clamp(). */
@media (max-width: 46rem) {
  :root {
    --page-gutter: 0.75rem;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    min-height: 4.75rem;
    padding-block: 0.625rem;
  }

  .hero-inner > .brand {
    max-width: 62vw;
  }

  .brand img {
    width: clamp(8.5rem, 40vw, 12rem);
    max-height: 4rem;
  }

  .main {
    margin-top: 0;
  }

  .fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .reason-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .wide {
    grid-column: auto;
  }

  .receipt dl,
  .detail-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .receipt dd,
  .detail-list dd {
    margin-bottom: 0.5rem;
  }

  .step-actions {
    align-items: stretch;
  }

  .step-actions .button {
    padding-inline: clamp(0.75rem, 4vw, 1.125rem);
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 24rem) {
  .tab {
    min-height: 3rem;
  }

  .step-actions {
    flex-direction: column-reverse;
  }
}

@media print {
  body {
    background: #fff;
  }

  .hero,
  .tabs,
  .button,
  .workspace,
  footer,
  .fine {
    display: none !important;
  }

  .main {
    width: 100%;
    margin: 0;
  }

  .card.success {
    display: block;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .receipt {
    padding: 0;
    border: 0;
  }

  .receipt,
  .receipt dl {
    break-inside: avoid;
  }

  .receipt h3 {
    font-size: 18pt;
  }

  .protocol {
    border: 1px solid #bbb;
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
