/* Colors come from the Chicago Transload logo (Documents\Chicago TL\Logo): the green arrows mark. */
:root {
  --brand-dark: #2d4a0a;   /* darkest arrow shade: header text, selected states */
  --brand: #4f6b0c;        /* buttons and links; white text on it passes contrast */
  --brand-mid: #708f10;    /* main arrow green: borders, focus, accents */
  --brand-bright: #aec610; /* arrow highlight: small accents only, never text on white */
  --tint: #eef5d6;
  --tint-strong: #dfebb8;
  --red: #d7263d;          /* errors, required marks, hazmat, cancel */
  --red-dark: #a81b2e;
  --ink: #1b2410;
  --muted: #5d6857;
  --line: #dde3d6;
  --bg: #f4f6f1;
  --card: #ffffff;
  --ok: #3f7d12;
  --warn-bg: #fff4e5;
  --warn-ink: #7a4200;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 36, 16, .06), 0 4px 16px rgba(27, 36, 16, .06);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.test-banner { background: #ffd23f; color: #3a2d00; text-align: center; font-weight: 700; padding: 8px 12px; font-size: 14px; }
.staff-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 8px 14px; background: var(--brand-dark); color: #fff; font-size: 14px; font-weight: 600; }
.staff-bar strong { letter-spacing: .08em; color: var(--brand-bright); }
.staff-bar button { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 6px; background: transparent; color: #fff; font: 600 13px var(--font); cursor: pointer; }
.staff-invalid { background: var(--warn-bg); color: var(--warn-ink); text-align: center; font-weight: 600; padding: 8px 12px; font-size: 14px; }

.site-header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 26px; padding-top: 14px; padding-bottom: 14px; }
.brand img { display: block; width: 230px; height: auto; }
.header-text { padding-left: 26px; border-left: 2px solid var(--line); }
.header-text h1 { margin: 0; font: 700 34px/1.05 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--brand-dark); }
.header-text p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.flag-stripe { height: 4px; background: linear-gradient(90deg, var(--brand-dark), var(--brand-mid) 45%, var(--brand-bright)); }

main.wrap { padding-top: 24px; padding-bottom: 32px; }

.steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #e6eae0; color: var(--muted); font-weight: 600; font-size: 14px; }
.steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 13px; }
.steps li.active { background: var(--brand-dark); color: #fff; }
.steps li.active span { background: var(--brand-bright); color: var(--brand-dark); font-weight: 700; }
.steps li.done { background: var(--tint); color: var(--brand); }
.steps li.done span { background: var(--brand); color: #fff; }

.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.panel h2 { margin: 0 0 16px; font: 700 27px/1.15 var(--font-head); }
.panel h2:focus { outline: none; }
.panel-head h2 { margin: 6px 0 2px; }
.chosen { margin: 0 0 18px; color: var(--muted); }

.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.type-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.type-card:hover, .type-card:focus-visible { border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(112, 143, 16, .2); transform: translateY(-1px); outline: none; }
.type-card strong { font: 700 22px/1.15 var(--font-head); }
.type-card .desc { flex: 1; color: var(--muted); font-size: 14px; }
.type-card .dur { font-size: 13px; font-weight: 700; }
.dir { align-self: flex-start; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dir-inbound { background: var(--tint); color: var(--brand); }
.dir-outbound { background: #e4e9ee; color: #3d5366; }
.hours-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.empty-note { margin: 12px 0 0; padding: 10px 14px; border-left: 4px solid var(--brand-mid); border-radius: 6px; background: var(--tint); font-size: 14px; }
.badge-approval { display: inline-block; padding: 1px 7px; border-radius: 4px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.pending-note { margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid var(--brand-mid); border-radius: 6px; background: var(--tint); text-align: left; }

.picker { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; }
.cal { width: 100%; max-width: 380px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; font-size: 17px; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { padding: 4px 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-day { position: relative; aspect-ratio: 1; border: 0; border-radius: 8px; background: transparent; color: #aab2a3; font: inherit; font-size: 15px; }
.cal-day.open { background: var(--tint); color: var(--ink); font-weight: 700; cursor: pointer; }
.cal-day.open:hover { background: var(--tint-strong); }
.cal-day.today::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--brand-mid); }
.cal-day.selected { background: var(--brand-dark); color: #fff; }
.cal-day.selected.today::after { background: var(--brand-bright); }
.slots h3 { margin: 4px 0 12px; font: 700 21px/1.2 var(--font-head); }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slot { padding: 11px 8px; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 600 15px var(--font); cursor: pointer; }
.slot:hover { border-color: var(--brand-mid); background: #f8fbee; }
.notice { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }

.cal-day:focus-visible, .slot:focus-visible, .icon-btn:focus-visible, .link-btn:focus-visible,
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-danger:focus-visible { outline: 3px solid var(--brand-mid); outline-offset: 2px; }

.details { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; align-items: start; }
fieldset { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 10px; padding: 0; font: 700 17px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 14px; }
.field label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.req { color: var(--red); }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c4ccbc; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-mid); box-shadow: 0 0 0 3px rgba(112, 143, 16, .25); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.err { display: block; margin-top: 4px; font-size: 13px; color: var(--red-dark); }
.err:empty { display: none; }
.hint { margin: 4px 0 0; font-size: 13px; }
.hint:empty { display: none; }
.hint.ok { color: var(--ok); }
.hint.warn { color: var(--warn-ink); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.warn { margin-bottom: 14px; padding: 10px 14px; border-left: 4px solid var(--red); border-radius: 6px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red-dark); font-weight: 600; }

.btn-primary, .btn-secondary, .btn-danger { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 8px; font: 700 17px var(--font); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-dark); }
.btn-primary:disabled, .btn-danger:disabled { opacity: .6; cursor: wait; }
.btn-secondary { background: #fff; color: var(--brand-dark); border: 2px solid var(--brand-dark); }
.link-btn { padding: 0; border: 0; background: none; color: var(--brand); font: 600 15px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.summary { position: sticky; top: 16px; padding: 18px; border: 1px solid var(--line); border-top: 4px solid var(--brand-mid); border-radius: var(--radius); background: #f8faf4; }
.summary h3 { margin: 0 0 6px; font: 700 21px var(--font-head); }
.summary dl, .confirm-list { margin: 0 0 12px; }
.summary dt, .confirm-list dt { margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.summary dd, .confirm-list dd { margin: 2px 0 0; }

.confirm { max-width: 560px; margin: 0 auto; text-align: center; }
.check-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 34px; font-weight: 700; }
.confirm .ref { margin: 0 0 16px; font-size: 18px; }
.confirm .ref strong { font: 700 28px var(--font-head); letter-spacing: .06em; color: var(--brand-dark); }
.confirm-list { padding: 6px 18px 14px; border-radius: var(--radius); background: #f8faf4; text-align: left; }
.confirm-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }

.notes { margin-top: 20px; padding: 18px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.notes h3 { margin: 0 0 6px; font: 700 18px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark); }
.notes ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.site-footer { padding: 0 20px 28px; text-align: center; font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .picker, .details { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
}
@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand img { width: 190px; }
  .header-text { padding-left: 0; border-left: 0; }
  .header-text h1 { font-size: 29px; }
  .panel { padding: 18px 16px; }
  .steps li { font-size: 13px; padding-right: 10px; }
}
