/* careers-polish.css — layer for /apply/* (loaded after base.html's styles), paired with careers-polish.js.
   Adapted from the drop-in to the site palette defined in base.html: --navy #204099 (headings, accents),
   --ink (body text), --muted, --line, --bg; pink buttons and Gabriela headings stay as on mygutfeelings.com. */

:root { --tint:#eef1f9; --focus:0 0 0 3px rgba(32, 64, 153, .22); --radius:10px; }
body { -webkit-font-smoothing:antialiased; }
h1 { text-wrap:balance; }

/* Facts row: pay stands out */
.chips li.pay { background:var(--navy); color:#fff; border-color:var(--navy); }

/* Card */
.card { border-radius:14px; box-shadow:0 1px 2px rgba(32, 64, 153, .04), 0 8px 24px rgba(32, 64, 153, .04); padding:28px 28px 32px; }
.card > p:first-child { font-size:1.02rem; margin-top:0; }
.apply-note { display:flex; flex-wrap:wrap; gap:6px 18px; font-size:.86rem; color:var(--muted);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:12px 0; margin:18px 0 8px; }

/* Numbered section labels inside the form */
form { counter-reset:section; }
form h2 { counter-increment:section; font-family:Poppins, sans-serif; font-size:.78rem; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:28px 0 6px; padding-top:20px; border-top:1px solid var(--line); }
form h2::before { content:counter(section) " · "; color:var(--navy); }
form h2:first-of-type { margin-top:22px; padding-top:0; border-top:0; }
.q:has(+ h2) { border-bottom:0; padding-bottom:6px; }

/* Labels and help */
legend, .q > label:first-child, .row label, .zipbox label { color:var(--ink); font-weight:600; line-height:1.4; }
p.help, .q .help { font-size:.88rem; margin:2px 0 10px; }

/* Inputs */
input[type=text], input[type=email], input[type=tel], input[type=url], textarea { transition:border-color .15s, box-shadow .15s; }
input:focus-visible, textarea:focus-visible, button:focus-visible, label.choice:has(input:focus-visible) {
  outline:none; border-color:var(--navy); box-shadow:var(--focus); }
textarea { min-height:8.5rem; line-height:1.5; }
textarea.long { min-height:12rem; }

/* Choices: bordered, full-width tap targets */
label.choice { margin:8px 0; padding:11px 14px; border:1px solid var(--line); border-radius:var(--radius);
  background:#fff; line-height:1.4; transition:background .12s, border-color .12s; }
label.choice:hover { background:#fff; border-color:#b9bfca; }
label.choice:has(input:checked) { background:var(--tint); border-color:var(--navy); color:var(--ink); }
label.choice input { margin:2px 0 0; }
.choice.off { cursor:not-allowed; }

/* Short option lists ("How did you hear", Yes/No, year bands): a grid of chips on wide screens */
fieldset.compact .choices { display:grid; grid-template-columns:repeat(auto-fill, minmax(165px, 1fr)); gap:8px; }
fieldset.compact label.choice { margin:0; }

/* Character counter */
.counter { display:block; text-align:right; font-size:.8rem; color:var(--muted); margin-top:6px; font-variant-numeric:tabular-nums; }
.counter.near { color:#8a6100; }
.counter.over { color:var(--err); font-weight:600; }

/* File inputs */
input[type=file] { font-size:.92rem; color:var(--muted); }
input[type=file]::file-selector-button { font:inherit; font-weight:600; color:var(--navy); background:#fff;
  border:1px solid #cfd3da; border-radius:8px; padding:9px 14px; margin-right:12px; cursor:pointer; }
input[type=file]::file-selector-button:hover { border-color:var(--navy); }
.file-ok { font-size:.86rem; color:#1f6b3a; margin-top:6px; }
.file-bad { font-size:.86rem; color:var(--err); margin-top:6px; }

/* Progress bar */
.progress { position:sticky; top:0; z-index:5; height:4px; background:var(--line); margin:0 -1px; }
.progress > span { display:block; height:100%; width:0; background:var(--navy); transition:width .25s; }
.progress-label { position:sticky; top:4px; z-index:5; font-size:.78rem; color:var(--muted); text-align:right; padding:4px 0;
  background:linear-gradient(var(--bg), rgba(247, 245, 240, 0)); }

/* Submit (pink, as on mygutfeelings.com) */
form button:active { transform:translateY(1px); }

@media (max-width:560px) {
  .card { padding:20px 16px 24px; border-radius:12px; }
  form button[type=submit] { width:100%; }
  fieldset.compact .choices { grid-template-columns:1fr 1fr; }
}
@media (prefers-reduced-motion:reduce) { * { transition:none !important; } }
