/* The subcontractor site (/apply). Self-contained: the console's stylesheet is behind sign-in. */
:root {
  --brand: #1D4ED8; --brand-hover: #1E40AF; --brand-soft: #E8EEFD; --navy: #0E1A33; --navy-2: #15244A;
  --ink: #0F172A; --ink-2: #334155; --muted: #526075; --faint: #64748B;
  --bg: #F3F5F9; --surface: #fff; --surface-2: #F8FAFC; --line: #E2E7EF; --line-2: #CBD5E1;
  --ok: #166534; --ok-bg: #E7F6EC; --ok-strong: #16A34A;
  --attn: #92400E; --attn-bg: #FEF3C7; --attn-line: #FCD34D;
  --gold: #F59E0B; --r: 16px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--brand); }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { background: var(--navy); color: #fff; }
.top-in { max-width: 1080px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--gold); color: #3A2402; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.top b { font-size: 15.5px; letter-spacing: .01em; display: block; line-height: 1.2; }
.top span.where { color: #C3CEE3; font-size: 13px; }
.top .help { margin-left: auto; color: #C3CEE3; font-size: 14px; text-decoration: none; }
.top .help:hover { color: #fff; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 72px; }
.narrow { max-width: 760px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-b { padding: 24px; }
.card-h { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.card-h h2 { font-size: 19px; }
.card-h p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.muted { color: var(--muted); } .faint { color: var(--faint); font-size: 14px; }

/* Landing */
.hero { background: linear-gradient(180deg, var(--navy) 0, var(--navy-2) 100%); color: #fff; padding: 12px 0 104px; }
.hero-in { max-width: 1080px; margin: 0 auto; padding: 24px 20px 0; }
.hero h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.14; letter-spacing: -.02em; max-width: 17em; }
.hero p { color: #C3CEE3; font-size: 18px; margin-top: 14px; max-width: 36em; }
.brandline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.brandline span { border: 1px solid #2B3D68; color: #DCE4F5; border-radius: 999px; padding: 5px 12px; font-size: 13.5px; font-weight: 600; }
.land { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; margin-top: -72px; align-items: start; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.how li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.how .n { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; }
.how b { display: block; }
.how span { color: var(--muted); font-size: 15px; }
.need { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.need li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.need svg, .tick { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--ok-strong); }

/* Forms */
.field { margin-bottom: 16px; }
.field label, .legend { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field .opt { color: var(--faint); font-weight: 500; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus-visible, .btn:focus-visible, .pick input:focus-visible + span, .drop:focus-within { outline: 3px solid #93B4FF; outline-offset: 1px; border-color: var(--brand); }
.input[aria-invalid="true"] { border-color: #D97706; background: #FFFBEB; }
.help { color: var(--faint); font-size: 13.5px; margin-top: 5px; }
.error { color: var(--attn); font-size: 14px; font-weight: 600; margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid2 .span2 { grid-column: 1 / -1; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; }
.hp { position: absolute; left: -9999px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); }
.btn.block { width: 100%; }
.btn.lg { min-height: 52px; font-size: 17px; }
.actions { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.actions .right { display: flex; gap: 12px; margin-left: auto; flex-wrap: wrap; }

.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--attn-line); background: var(--attn-bg); color: var(--attn); margin-bottom: 18px; font-size: 15px; }
.banner.ok { border-color: #B7E3C4; background: var(--ok-bg); color: var(--ok); }
.banner.info { border-color: var(--line-2); background: var(--surface-2); color: var(--ink-2); }

/* Stepper */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 22px; padding: 0; counter-reset: s; }
.steps a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; height: 100%; }
.steps a::before { counter-increment: s; content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--muted); font-size: 13px; }
.steps a.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); color: var(--ink); }
.steps a.on::before { background: var(--brand); color: #fff; }
.steps a.done::before { content: "\2713"; background: var(--ok-bg); color: var(--ok); }
.headline { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; flex-wrap: wrap; }
.headline h1 { font-size: 26px; letter-spacing: -.01em; }
.headline p { color: var(--muted); margin-top: 2px; }
.saved { color: var(--ok); font-weight: 600; font-size: 14.5px; }

/* Pick lists (trades, states, companies) */
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.pick span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14.5px; font-weight: 500; background: var(--surface); }
.pick input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-hover); font-weight: 600; }
.picks.states .pick span { min-width: 52px; justify-content: center; padding: 0 8px; }
.co { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.co .pick span { width: 100%; border-radius: 12px; min-height: 54px; font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }

/* Requirement rows */
.req { border-top: 1px solid var(--line); padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 28px; }
.req:first-of-type { border-top: 0; }
.req h3 { font-size: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.req .what p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--muted); }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.attn { background: var(--attn-bg); color: var(--attn); }
.tag.brand { background: var(--brand-soft); color: var(--brand-hover); }
.drop { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); position: relative; cursor: pointer; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .ico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); font-weight: 700; }
.drop b { font-size: 14.5px; display: block; overflow-wrap: anywhere; }
.drop small { color: var(--faint); font-size: 13px; }
.onfile { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ok); font-weight: 600; margin-bottom: 8px; overflow-wrap: anywhere; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pair .field { margin: 0; }
.yn { display: flex; gap: 8px; }
.note { background: var(--attn-bg); border-radius: 10px; color: var(--attn); padding: 10px 12px; font-size: 14.5px; margin-top: 10px; }

/* Summary + status */
.sum { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; font-size: 15px; }
.sum dt { color: var(--muted); } .sum dd { margin: 0; overflow-wrap: anywhere; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 20px; }
.brands { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bcard { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); }
.bcard b { display: block; margin-bottom: 8px; }
.bcard p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.stack { display: grid; gap: 20px; }
.rowline { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); align-items: center; flex-wrap: wrap; }
.rowline:first-child { border-top: 0; }
.foot { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 28px; }

@media (max-width: 820px) {
  .land, .req { grid-template-columns: 1fr; }
  .hero { padding-bottom: 88px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid3, .sum, .pair { grid-template-columns: 1fr; }
  .card-b, .card-h { padding: 18px; } .req, .rowline { padding: 18px; }
  .actions .right, .actions .right .btn, .actions > .btn { width: 100%; }
  .top .help { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .drop, .pick span { transition: background .12s, border-color .12s; } }
