:root {
  --ink: #14231e;
  --muted: #65736d;
  --paper: #f6f4ee;
  --panel: #fffdf7;
  --line: rgba(20, 35, 30, 0.14);
  --green: #1f5d45;
  --deep: #163f52;
  --gold: #c79b36;
  --red: #b94435;
  --blue: #316c9c;
  --shadow: 0 20px 50px rgba(20, 35, 30, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.94);
  padding: 16px clamp(18px, 4vw, 54px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.83rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: #24362f;
  font-size: 0.93rem;
  font-weight: 800;
}

.nav a {
  padding: 8px 0;
}

.flash {
  max-width: 1180px;
  margin: 18px auto 0;
  border-radius: 8px;
  padding: 13px 16px;
  font-weight: 800;
}

.flash.success {
  background: #e4f3e9;
  color: #1e5d37;
}

.flash.warning {
  background: #fff1d4;
  color: #8a5a08;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  min-height: 78vh;
  padding: 70px clamp(18px, 5vw, 68px);
  background:
    linear-gradient(115deg, rgba(246, 244, 238, 0.97), rgba(246, 244, 238, 0.76)),
    url("https://images.unsplash.com/photo-1582719508461-905c673771fd?auto=format&fit=crop&w=1600&q=82")
      center/cover;
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6.5vw, 5.9rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.actions,
.inline-form,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 14px 34px rgba(31, 93, 69, 0.23);
}

.secondary {
  border-color: rgba(22, 63, 82, 0.25);
  background: white;
  color: var(--deep);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-panel div {
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-panel strong {
  display: block;
  color: var(--green);
  font-size: 2.4rem;
}

.hero-panel span {
  color: var(--muted);
  font-weight: 800;
}

.band,
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px clamp(18px, 3vw, 0px);
}

.band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.band article,
.form-card,
.table-card,
.detail-card,
.success-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.band article {
  padding: 24px;
}

.page-shell.narrow {
  max-width: 760px;
}

.page-heading {
  margin-bottom: 28px;
}

.form-card,
.detail-card,
.success-panel {
  padding: clamp(20px, 4vw, 34px);
}

.form-card h2 {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-card h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.grid {
  display: grid;
  gap: 16px;
}

.two {
  grid-template-columns: repeat(2, 1fr);
}

.three {
  grid-template-columns: repeat(3, 1fr);
}

label,
legend {
  color: #2d4138;
  font-size: 0.92rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(20, 35, 30, 0.2);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

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

.checks legend {
  padding: 0 8px;
}

.checks label,
.declaration {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
}

.checks input,
.declaration input {
  width: auto;
  margin-top: 2px;
}

.declaration {
  margin: 24px 0;
  border: 1px solid rgba(199, 155, 54, 0.45);
  border-radius: 8px;
  background: #fff8e6;
  padding: 16px;
}

.tracking-code {
  display: inline-flex;
  margin: 8px 0 18px;
  border-radius: 8px;
  background: #ecf4ef;
  color: var(--green);
  padding: 14px 18px;
  font-size: clamp(1.3rem, 4vw, 2.4rem);
  font-weight: 900;
}

.tracking-code.small {
  font-size: 1rem;
}

.notice {
  border-radius: 8px;
  background: #eef3f7;
  padding: 13px 15px;
}

.status-result {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.status.submitted {
  background: #ecf0f2;
  color: #40525a;
}

.status.review {
  background: #e8f0fb;
  color: var(--blue);
}

.status.info {
  background: #fff1d4;
  color: #8a5a08;
}

.status.approved {
  background: #e4f3e9;
  color: #1e5d37;
}

.status.rejected {
  background: #fde7e2;
  color: var(--red);
}

.filters {
  margin-bottom: 16px;
}

.filters input {
  flex: 1 1 300px;
  margin-top: 0;
}

.filters select {
  flex: 0 1 220px;
  margin-top: 0;
}

.table-card {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 15px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #31463c;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.text-link {
  color: var(--deep);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  margin-top: 18px;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  line-height: 1.5;
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-list a,
.document-list p {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafafa;
  padding: 13px;
}

.document-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.85rem;
}

.review-card {
  position: sticky;
  top: 96px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(18px, 4vw, 54px);
  background: #17231f;
}

.footer p {
  max-width: 1180px;
  margin: 0 auto 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .topbar,
  .hero,
  .band,
  .review-layout,
  .definition-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .two,
  .three,
  .checks {
    grid-template-columns: 1fr;
  }

  .review-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .actions .button,
  .inline-form .button,
  .inline-form input {
    width: 100%;
  }
}
