:root {
  --ink: #16202a;
  --muted: #667382;
  --line: #dfe5e8;
  --paper: #ffffff;
  --field: #f8fafb;
  --navy: #0d3439;
  --teal: #0f766e;
  --copper: #b5643b;
  --amber: #f1a33a;
  --error: #b42318;
  --success: #057a55;
  --shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f3f6f5;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.site-header {
  position: relative;
  min-height: 560px;
  isolation: isolate;
  color: #ffffff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(8, 32, 36, 0.88), rgba(8, 32, 36, 0.5) 42%, rgba(8, 32, 36, 0.08)), url("/assets/logistics-hero.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero-overlay {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  max-width: min(420px, 58vw);
  min-height: 58px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(8, 32, 36, 0.22);
}

.brand-lockup img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 100%;
  object-fit: contain;
}

.confidential-pill,
.status-tag,
.required-mark {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
}

.confidential-pill {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.hero-content {
  width: min(690px, 100%);
  padding: 92px 0 72px;
}

.document-ref,
.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  max-width: 760px;
}

.hero-copy {
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.5;
  max-width: 620px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-meta strong {
  color: #ffffff;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: -58px auto 70px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.section-rail {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 12px;
}

.progress-panel,
.form-surface {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.progress-panel {
  padding: 16px;
}

.progress-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.progress-panel strong {
  display: block;
  font-size: 26px;
  color: var(--navy);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #edf1f3;
  margin-top: 14px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: width 180ms ease;
}

.section-nav {
  display: grid;
  gap: 7px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #40505f;
  text-align: left;
  cursor: pointer;
  padding: 7px 9px;
}

.nav-item span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #eef3f2;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.active {
  background: #e8f3f1;
  color: var(--navy);
}

.form-surface {
  overflow: hidden;
}

.form-heading {
  padding: 34px 36px 18px;
  border-bottom: 1px solid var(--line);
}

.form-heading h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.15;
}

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

.form-section {
  padding: 34px 36px;
  scroll-margin-top: 28px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.section-heading > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 800;
}

.section-heading h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.form-field.wide,
.option-group.wide {
  grid-column: 1 / -1;
}

label,
legend {
  color: #273542;
  font-size: 14px;
  font-weight: 750;
}

.required-mark {
  min-height: 20px;
  margin-left: 6px;
  padding: 3px 6px;
  color: #87340e;
  background: #fff3e4;
  font-size: 10px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #ccd6dc;
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 12px 13px;
  outline: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

textarea {
  resize: vertical;
  min-height: 116px;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.question-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin-top: 18px;
  background: #fbfcfc;
}

.question-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.question-title span {
  display: block;
  color: var(--copper);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.question-title h4 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.status-tag {
  color: #0e544f;
  background: #e2f5f1;
  flex: 0 0 auto;
}

.question-note {
  margin: -4px 0 18px;
  padding: 13px 15px;
  border-left: 4px solid var(--copper);
  background: #fff8f4;
  color: #5f4637;
  line-height: 1.5;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-line,
.check-line {
  min-height: 46px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #d8e0e4;
  border-radius: 8px;
  background: #ffffff;
  color: #273542;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.option-line input,
.check-line input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}

.field-error {
  min-height: 18px;
  margin: 0;
  color: var(--error);
  font-size: 12px;
  font-weight: 700;
}

.invalid input,
.invalid textarea,
.invalid.option-group .option-line,
.invalid .check-line {
  border-color: var(--error);
}

.submit-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 36px;
  background: #0f2f35;
  color: #ffffff;
}

.submit-panel h3 {
  margin: 0 0 5px;
  font-size: 22px;
}

.submit-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.primary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--amber);
  color: #102a2f;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.primary-action svg {
  width: 18px;
  height: 18px;
}

.primary-action:hover {
  background: #f6b955;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 52px;
  padding: 0 36px 28px;
  color: var(--muted);
  font-weight: 700;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .site-header,
  .hero-overlay {
    min-height: 510px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    margin-top: -42px;
  }

  .section-rail {
    position: static;
  }

  .section-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-overlay,
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    min-height: 80px;
  }

  .confidential-pill {
    display: none;
  }

  .brand-lockup {
    max-width: min(250px, 72vw);
    min-height: 50px;
    padding: 8px 10px;
  }

  .brand-lockup img {
    height: 42px;
  }

  .hero-content {
    padding: 58px 0 56px;
  }

  .hero-content h1 {
    font-size: 42px;
    line-height: 1.05;
  }

  .hero-copy {
    font-size: 17px;
  }

  .form-heading,
  .form-section,
  .submit-panel {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  .field-grid,
  .option-grid,
  .section-nav {
    grid-template-columns: 1fr;
  }

  .question-block {
    padding: 18px;
  }

  .question-title,
  .submit-panel {
    display: grid;
  }

  .primary-action {
    width: 100%;
  }
}
