:root {
  --navy: #00264f;
  --navy-deep: #001930;
  --red: #c2262c;
  --red-dark: #8a1a1f;
  --gold: #e3c785;
  --ice: #f0f5fa;
  --line: #e2e8f0;
  --slate: #64748b;
  --ink: #0f172a;
  --green: #15803d;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 3px solid var(--red);
}
header.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
header.site .inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header.site img { height: 84px; width: auto; display: block; }
header.site .help {
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
header.site .help:hover { color: var(--red); }

/* Hero */
.hero {
  position: relative;
  background: var(--navy) url('assets/boa_panorama.jpg') center 60% / cover no-repeat;
  color: #fff;
  padding: 72px 16px 140px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,38,79,.72) 0%, rgba(0,25,48,.88) 100%);
}
.hero > * { position: relative; }
.eyebrow {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.hero p {
  font-size: 18px;
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto;
  opacity: .92;
}

/* Card */
main {
  max-width: 820px;
  margin: -96px auto 64px;
  padding: 0 16px;
  position: relative;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(0,25,48,.35), 0 2px 6px rgba(0,25,48,.06);
  overflow: hidden;
}
.card-head {
  border-top: 6px solid var(--red);
  padding: 28px 32px 0;
}
.card-head h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
}
.card-head p { margin: 0; color: var(--slate); font-size: 15px; }
.card-body { padding: 24px 32px 32px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}
input, select, textarea {
  font: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,38,79,.15);
}

/* Dropzone */
.dropzone {
  display: block;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  background: var(--ice);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--red);
  background: #fff5f5;
}
.dropzone .icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
}
.dropzone strong { display: block; font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.dropzone .hint { color: var(--slate); font-size: 14px; }
.dropzone .browse { color: var(--red); font-weight: 700; text-decoration: underline; }
.dropzone input { display: none; }

/* File list */
.files { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.file {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.file .badge {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  text-transform: uppercase;
}
.file .name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file .meta { font-size: 12px; color: var(--slate); }
.bar { height: 5px; background: var(--line); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.file.done .bar i { background: var(--green); }
.file .remove {
  border: 0; background: none; cursor: pointer;
  color: var(--slate); font-size: 20px; line-height: 1; padding: 4px 6px;
}
.file .remove:hover { color: var(--red); }

.error { color: var(--red-dark); font-size: 14px; font-weight: 600; margin: 12px 0 0; }
.error:empty { display: none; }
.file > div { min-width: 0; }
.hp { position: absolute; left: -9999px; }

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.actions small { color: var(--slate); font-size: 13px; }
.btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  padding: 14px 28px;
  cursor: pointer;
  transition: background-color .15s, transform .1s;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #cbd5e1; cursor: not-allowed; }
.btn.secondary { background: var(--navy); }
.btn.secondary:hover { background: var(--navy-deep); }

/* Success */
.success { display: none; text-align: center; padding: 48px 32px 56px; }
.success.show { display: block; }
.success .check, .panel .check {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.success h2 { color: var(--navy); font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.success p { color: var(--slate); margin: 0 auto 24px; max-width: 440px; }

footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  text-align: center;
  font-size: 13px;
  padding: 28px 16px;
  border-top: 4px solid var(--red);
}
footer img { height: 56px; margin-bottom: 10px; }

@media (max-width: 640px) {
  header.site img { height: 60px; }
  .hero { padding: 48px 16px 120px; }
  .card-head { padding: 24px 20px 0; }
  .card-body { padding: 20px; }
  .grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}

/* Order page */
.panel { text-align: center; padding: 48px 32px 56px; }
.panel h2 { color: var(--navy); font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.panel p { color: var(--slate); margin: 0 auto 12px; max-width: 480px; }
.panel a, .deadline a { color: var(--red); font-weight: 700; }
.deadline {
  background: #fff8e6;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
  margin: 0 0 8px;
}
.deadline.late { background: #fff5f5; border-color: var(--red); }
.group { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.group h3 { margin: 0; color: var(--navy); font-size: 19px; font-weight: 800; }
.slot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}
.slot-head .count { color: var(--slate); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cards:not(:empty) { margin-bottom: 12px; }
.pcard { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.pcard img, .pcard .ph { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--ice); }
.pcard .ph { display: grid; place-items: center; padding: 10px; color: var(--slate); font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.pcard input { width: 100%; border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 14px; padding: 10px; }
.pcard input:placeholder-shown { background: #fff8e6; }
.pcard .caption { border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; padding: 10px; text-align: left; overflow-wrap: anywhere; }
.pcard .remove {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px;
  border: 0; border-radius: 50%;
  background: rgba(0,25,48,.72); color: #fff;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.pcard .remove:hover { background: var(--red); }
.pcard .bar { margin: 0; border-radius: 0; }
.dropzone.small { padding: 22px 16px; }
.dropzone.small strong { font-size: 16px; }
.confirm { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ice); padding: 16px; margin-top: 20px; }
.confirm p { margin: 0 0 12px; font-size: 15px; }
.confirm .btn { margin-right: 8px; }
.confirm .btn:disabled { opacity: .45; cursor: not-allowed; }
.confirm .warn {
  border: 2px solid var(--red); border-radius: var(--radius);
  background: #fff1f1; color: #0f172a;
  padding: 14px 16px; margin: 0 0 14px; font-size: 15px; line-height: 1.45;
}
.confirm .warn strong { display: block; color: var(--red-dark); font-size: 16px; margin-bottom: 4px; }
.confirm .ack { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 15px; font-weight: 600; cursor: pointer; }
.confirm .ack input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
.name-note {
  margin: 0 0 12px; padding: 10px 12px;
  border: 1px solid #f0d58a; border-radius: var(--radius); background: #fff8e6;
  font-size: 14px; line-height: 1.45; color: #0f172a;
}
.pcard .pname { margin: 0; padding: 8px 10px 10px; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.pcard .pname legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.pcard .pname label { display: block; clear: both; }
.pcard .pname label + label { margin-top: 6px; }
.pcard .pname span { display: block; font-size: 12px; color: var(--slate); margin-bottom: 2px; }
.pcard .pname input { border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; }
.pcard .pname .jersey input { width: 5.5em; }
.summary { text-align: left; padding: 0 32px 40px; }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .summary { padding: 0 20px 32px; }
}
