:root {
  --ink: #061846;
  --copy: #536783;
  --teal: #00535d;
  --teal-bright: #00c9c1;
  --teal-soft: #c7fbf4;
  --surface: #ffffff;
  --surface-soft: #f1f8f9;
  --line: #d7e3e7;
  --muted-pill: #e8eef4;
  --shadow: 0 5px 18px rgba(16, 57, 70, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #eef8f9;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

.contact-support-link {
  color: #008f8a;
}

.page-shell {
  width: min(100%, 1490px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 50px 28px;
  background: linear-gradient(90deg, #eef8f9 0%, #f8fcfd 52%, #eef8f9 100%);
}

.site-header {
  display: grid;
  grid-template-columns: 280px 1fr 180px;
  align-items: center;
  min-height: 72px;
  padding: 0 28px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 22px;
}

.brand,
.nav-links,
.account-link,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  width: fit-content;
}

.brand img {
  display: block;
  width: 205px;
  max-width: 100%;
  height: auto;
}

.nav-links {
  justify-content: center;
  gap: 42px;
  height: 100%;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
}

.nav-links a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  content: "";
  background: var(--teal-bright);
}

.header-actions {
  justify-content: flex-end;
  gap: 24px;
  height: 100%;
  font-weight: 800;
}

.header-actions a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
}

.account-link {
  justify-content: flex-end;
  font-weight: 800;
}

.header-actions a.active {
  position: relative;
  justify-self: end;
  width: fit-content;
  height: 100%;
}

.header-actions a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  content: "";
  background: var(--teal-bright);
}

/* BEGIN Django messages */

.message-area {
  width: min(calc(100% - 52px), 1320px);
  margin: 16px auto 0;
}

.message-area .message-area-alert {
  position: relative;
  margin-bottom: 10px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(16, 57, 70, 0.08);
  font-size: 14px;
  font-weight: 600;
}

.message-area .message-area-alert:last-child {
  margin-bottom: 0;
}

/* Message levels */

.message-area .alert-success {
  color: #155f59;
  background: #e8fbf7;
  border-color: #b9e8df;
  border-left-color: #008f83;
}

.message-area .alert-info {
  color: #15516a;
  background: #eaf7fb;
  border-color: #bfdfeb;
  border-left-color: #2488a6;
}

.message-area .alert-warning {
  color: #765000;
  background: #fff8e2;
  border-color: #ecd99b;
  border-left-color: #d89500;
}

.message-area .alert-error,
.message-area .alert-danger {
  color: #7a202b;
  background: #fff0f2;
  border-color: #efc5cb;
  border-left-color: #bd111b;
}

.message-area .alert-debug {
  color: #46546b;
  background: #f1f4f7;
  border-color: #d7e0e8;
  border-left-color: #718096;
}

/* END Django messages */

.result-file-size {
    margin-bottom: 0;
    color: var(--copy);
    font-size: 17px;
}

main {
  max-width: 1320px;
  margin: 40px auto 0;
}

.intro {
  margin-bottom: 28px;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
}

h3 {
  margin-bottom: 5px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

p {
  margin-bottom: 0;
  color: var(--copy);
  font-size: 17px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.order-panel {
  padding: 28px 26px 32px;
  margin-bottom: 26px;
}

.order-head {
  display: grid;
  grid-template-columns: 1fr 240px 200px;
  gap: 26px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.order-head h2 {
  margin-bottom: 14px;
}

.status-summary {
  align-self: center;
}

.status-summary p {
  margin-top: 6px;
  font-size: 15px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 4px 15px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.pill-teal {
  color: #00736f;
  background: var(--teal-soft);
}

.pill-muted {
  color: #65758d;
  background: var(--muted-pill);
}

.button {
  appearance: none;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  color: inherit;
  border: 2px solid var(--teal);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary,
.button-primary:visited {
  color: #ffffff;
  background: var(--teal);
}

.button-outline {
  color: var(--teal);
  background: #ffffff;
}

.margin-top-10 {
  margin-top: 10px;
}

.margin-top-15 {
  margin-top: 15px;
}

.margin-top-20 {
  margin-top: 20px;
}

.margin-top-25 {
  margin-top: 25px;
}

.margin-top-30 {
  margin-top: 30px;
}

.progress-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 28px 18px 28px;
  padding: 0;
  list-style: none;
}

.progress-list::before,
.progress-list::after {
  position: absolute;
  top: 21px;
  right: 8.5%;
  left: 8.5%;
  height: 3px;
  content: "";
  background: #dce6eb;
}

.progress-list.timeline_blob_1::after {
  right: 90%;
  background: var(--teal-bright);
}

.progress-list.timeline_blob_2::after {
  right: 70%;
  background: var(--teal-bright);
}

.progress-list.timeline_blob_3::after {
  right: 50%;
  background: var(--teal-bright);
}

.progress-list.timeline_blob_4::after {
  right: 30%;
  background: var(--teal-bright);
}

.progress-list.timeline_blob_5::after {
  right: 10%;
  background: var(--teal-bright);
}

.progress-list li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--copy);
  font-size: 16px;
}

.step-dot {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #8495aa;
  background: #f6fbfc;
  border: 3px solid #d5e3e9;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
}

.complete .step-dot {
  color: #ffffff;
  background: #14b7b2;
  border-color: #14b7b2;
}

.current {
  color: #00948c;
  font-weight: 800;
}

.current .step-dot {
  color: #00948c;
  background: #eafffc;
  border-color: var(--teal-bright);
}

.next-strip,
.soft-card {
  background: var(--surface-soft);
  border-radius: 8px;
}

.next-strip {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 24px 30px;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.soft-card {
  min-height: 140px;
  padding: 26px 28px;
}

.order-actions {
  display: flex;
  gap: 18px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.order-actions .button {
  min-width: 250px;
}

.quick-access {
  margin-top: 30px;
}

.quick-access h2 {
  margin-bottom: 18px;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.access-card {
  min-height: 232px;
  padding: 24px 26px;
}

.access-card .pill {
  margin-bottom: 18px;
}

.access-card p {
  max-width: 620px;
}

.access-card .button {
  min-width: 230px;
  margin-top: 18px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  max-width: 1440px;
  margin: 36px auto 0;
  padding-top: 18px;
  color: var(--copy);
  border-top: 2px solid #18c3bd;
  font-size: 13px;
}

@media (max-width: 980px) {
  .page-shell {
    padding: 14px 18px 24px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 14px 18px;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: center;
    gap: 24px;
    padding-bottom: 2px;
    flex-wrap: wrap;
    row-gap: 15px;
  }

  .nav-links a {
    height: 38px;
  }

  .account-link,
  .header-actions {
    justify-content: flex-end;
  }

  main {
    margin-top: 28px;
  }

  .order-head,
  .next-strip,
  .order-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .order-head {
    align-items: start;
  }

  .button,
  .order-actions .button,
  .access-card .button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding-inline: 12px;
  }

  .site-header {
    border-radius: 14px;
  }

  .brand img {
    width: 178px;
  }

  .account-link,
  .header-actions {
    font-size: 14px;
  }

  .intro,
  .order-panel,
  .access-card {
    padding-inline: 18px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 20px;
  }

  p {
    font-size: 15px;
  }

  .progress-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-inline: 0;
  }

  .progress-list::before,
  .progress-list::after {
    top: 24px;
    bottom: 24px;
    left: 23px;
    width: 3px;
    height: auto;
    right: auto;
  }

  .progress-list::after {
    bottom: calc(100% - 90px);
  }

  .progress-list li {
    grid-template-columns: 48px 1fr;
    justify-items: start;
    align-items: center;
  }

  .next-strip,
  .soft-card {
    padding: 20px;
  }

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

  .site-footer {
    flex-wrap: wrap;
    gap: 8px 12px;
    text-align: center;
  }
}
