/*
 * apply.css — styles for the same-site application form (/join/apply/). Created 2026-11-22.
 * Ported from Styles.html of the Apps Script "hiring intake" form. NOT ported: the global rules (body, *, header.top, footer, .wrap, main), because the
 * page chrome now comes from layout.html and the vhost CSP forbids inline <style> anyway. Everything is scoped under .apply-page so nothing here
 * can change another page. Colors come from the site's own custom properties (same ones request.css uses). No object is drawn in CSS.
 */
.apply-page { padding-top: clamp(28px, 4vw, 48px); padding-bottom: 60px; }
.apply-page .ap-col { max-width: 760px; }
.apply-page .ap-col *, .apply-page .ap-col *::before, .apply-page .ap-col *::after { box-sizing: border-box; }

.apply-page .card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.apply-page .intro h2 { margin: 0 0 10px; font-size: 1.15rem; text-transform: none; color: var(--navy-900); }
.apply-page .intro ul { margin: 0; padding-left: 1.2em; } .apply-page .intro li { margin: 0 0 6px; }
.apply-page .eeo { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
.apply-page .tools { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.apply-page .tools button { background: none; border: 0; color: var(--blue); font: 600 .9rem var(--font-body); cursor: pointer; padding: 4px; }

.apply-page section.part { position: relative; }
.apply-page section.part > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 1.2rem; text-transform: none; color: var(--navy-900); }
.apply-page section.part > h2 .n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-900); color: #fff;
  display: grid; place-items: center; font: 800 .95rem var(--font-body); }
.apply-page .part-intro { color: var(--muted); margin: 0 0 6px; }

.apply-page .field { margin-top: 16px; }
.apply-page .field > label, .apply-page .field > fieldset > legend { display: block; font-weight: 650; margin: 0 0 6px; padding: 0; }
.apply-page .req::after { content: " *"; color: var(--red); }
.apply-page fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.apply-page input[type=text], .apply-page input[type=email], .apply-page input[type=tel], .apply-page input[type=number], .apply-page select, .apply-page textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: inherit; }
.apply-page textarea { min-height: 92px; resize: vertical; }
.apply-page input:focus, .apply-page select:focus, .apply-page textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--blue); }
.apply-page .help { color: var(--muted); font-size: .88rem; margin: 5px 0 0; }
.apply-page .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.apply-page .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.apply-page .row3 .field { min-width: 0; }

/* Six steps, one on screen at a time. .step-off hides a step on screen only; print shows them all. */
.apply-page .step-off { display: none; }
.apply-page .progress { margin: 0 0 14px; }
.apply-page .progress-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.apply-page .progress-bar i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 999px; transition: width .25s; }
.apply-page .progress p { margin: 6px 2px 0; font: 650 .9rem var(--font-body); color: var(--navy-900); }
.apply-page .sub-title { margin: 22px 0 2px; font-size: 1.02rem; text-transform: none; color: var(--navy-900); border-top: 1px solid var(--line); padding-top: 16px; }
.apply-page .step-nav { justify-content: space-between; margin-top: 22px; }
.apply-page button.back { background: none; border: 1.5px solid var(--line); color: var(--navy-900); border-radius: 999px; padding: 13px 22px; font: 700 1rem var(--font-body); cursor: pointer; }
.apply-page button.add { background: none; border: 1.5px dashed var(--muted); color: var(--blue); border-radius: 10px; padding: 10px 16px; font: 650 .95rem var(--font-body); cursor: pointer; margin-top: 10px; }
.apply-page .more-row { display: none; }
.apply-page .jd details { margin-top: 10px; } .apply-page .jd summary { cursor: pointer; color: var(--blue); font-weight: 650; }
@media (max-width: 560px) { .apply-page .row2, .apply-page .row3 { grid-template-columns: 1fr; } }

/* Yes / No as two large pills, easy to hit with a thumb. */
.apply-page .yesno { display: flex; gap: 10px; }
.apply-page .yesno label { flex: 1; max-width: 140px; position: relative; }
.apply-page .yesno input { position: absolute; opacity: 0; }
.apply-page .yesno span { display: block; text-align: center; padding: 11px 0; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 650; cursor: pointer; background: #fff; }
.apply-page .yesno input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.apply-page .yesno input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Position choice as cards. */
.apply-page .choices { display: grid; gap: 10px; }
.apply-page .choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.apply-page .choice input { margin-top: 4px; accent-color: var(--navy-900); width: 18px; height: 18px; }
.apply-page .choice strong { display: block; } .apply-page .choice small { color: var(--muted); }
.apply-page .choice:has(input:checked) { border-color: var(--navy-900); box-shadow: inset 0 0 0 1px var(--navy-900); background: #f6f7fd; }

.apply-page .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }
.apply-page .checks label, .apply-page .consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.apply-page .checks input, .apply-page .consent input { accent-color: var(--navy-900); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.apply-page .consent { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; margin-top: 12px; }

.apply-page table.grid { border-collapse: collapse; margin-top: 4px; }
.apply-page table.grid th { font: 600 .8rem var(--font-body); color: var(--muted); padding: 4px 10px; text-align: center; }
.apply-page table.grid th[scope=row] { text-align: left; color: inherit; }
.apply-page table.grid td { text-align: center; padding: 4px 10px; }
.apply-page table.grid input { width: 22px; height: 22px; accent-color: var(--navy-900); }

.apply-page .jd { margin-top: 14px; border: 1px solid var(--line); border-left: 6px solid var(--blue); border-radius: 12px; padding: 16px 18px; background: #fafbff; }
.apply-page .jd h3 { margin: 0 0 6px; font-size: 1.05rem; text-transform: none; } .apply-page .jd h4 { margin: 12px 0 4px; font-size: .92rem; color: var(--navy-900); }
.apply-page .jd ul { margin: 0; padding-left: 1.15em; } .apply-page .jd li { margin-bottom: 4px; }
.apply-page .jd.empty { color: var(--muted); border-left-color: var(--line); }

.apply-page .repeat { border: 1px dashed var(--line); border-radius: 12px; padding: 4px 16px 16px; margin-top: 14px; }
.apply-page .repeat > legend { font-weight: 700; color: var(--navy-900); padding: 0 6px; }

.apply-page .hidden { display: none !important; }
/* Honeypot. BUG FOUND 2026-11-22 on the other forms (see request.css): a field parked at left:-5000px sits far down the page and anything that
   focuses or autofills it scrolls the browser there, jittering the sticky header. position:fixed at 1px means focusing it never scrolls. */
.apply-page .hp { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.apply-page .hp input { width: 1px; height: 1px; padding: 0; border: 0; }
.apply-page .actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.apply-page button.go { background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 15px 30px; font: 700 1.02rem var(--font-body); cursor: pointer; }
.apply-page button.go:disabled { opacity: .6; cursor: progress; }
.apply-page .errors { background: #fdecec; border: 1px solid #f1b9b9; color: #7d1919; border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.apply-page .errors h2 { margin: 0 0 6px; font-size: 1rem; text-transform: none; color: inherit; } .apply-page .errors ul { margin: 0; padding-left: 1.2em; }
.apply-page .errors a { color: inherit; font-weight: 700; }
.apply-page .done .num { display: inline-block; font: 800 1.6rem/1 var(--font-body); color: var(--navy-900); background: var(--yellow); padding: 9px 16px; border-radius: 10px; letter-spacing: .02em; }
.apply-page .ap-foot { color: var(--muted); font-size: .85rem; text-align: center; }

/* "Print a blank copy": the paper fallback for anyone who cannot use the form. */
@media print {
  .apply-page .tools, .apply-page .actions, .apply-page .errors, .apply-page .progress, .apply-page button.add, .apply-page .ap-foot { display: none !important; }
  .apply-page .step-off, .apply-page .more-row { display: block !important; }
  .apply-page .jd details { display: block; } .apply-page .jd details > * { display: block; }
  .apply-page .card { border: 0; padding: 0; margin: 0 0 10pt; break-inside: avoid-page; }
  .apply-page .hidden { display: block !important; }
  .apply-page input[type=text], .apply-page input[type=email], .apply-page input[type=tel], .apply-page input[type=number], .apply-page select, .apply-page textarea {
    border: 0; border-bottom: 1px solid #000; border-radius: 0; padding: 4pt 0; background: none; }
  .apply-page textarea { min-height: 48pt; border: 1px solid #000; }
  .apply-page .yesno span, .apply-page .choice { border-color: #000; }
  .apply-page .jd { break-inside: avoid; }
}
