/* apply.css — RoadRunners public applicant portal. Mobile-first, dark,
   neon pink/cyan. Token block copied from styles.css :root (not linked —
   this page must render standalone, independent of the app shell's CSS). */
:root {
  --rr-bg: #0A0118;
  --rr-violet: #200230;
  --rr-violet-2: #2B0D42;
  --rr-pink: #F239F7;
  --rr-cyan: #58F9F4;
  --rr-yellow: #FFF140;
  --rr-light-cyan: #9BF8F4;
  --rr-light-pink: #F65EF8;
  --rr-magenta: #AA235C;
  --rr-text: #FFFFFF;
  --rr-text-dim: #9BF8F4;
  --rr-text-muted: rgba(255,255,255,0.55);
  --rr-border: rgba(242,57,247,0.18);
  --rr-border-cyan: rgba(88,249,244,0.18);
  --rr-panel: rgba(43,13,66,0.55);
  --rr-panel-2: rgba(32,2,48,0.85);
  --rr-danger: #FF5C7A;
  --rr-ok: #4ADE80;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--rr-bg);
  color: var(--rr-text);
  font-family: 'Space Grotesk', -apple-system, system-ui, sans-serif;
  font-size: 15px;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(242,57,247,0.10) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(88,249,244,0.08) 0%, transparent 45%);
  pointer-events: none; z-index: 0;
}
a { color: var(--rr-cyan); }
.ap-wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 20px 16px 64px; }

.ap-hero { text-align: center; padding: 18px 0 22px; }
.ap-logo { width: 64px; height: auto; margin: 0 auto 10px; display: block; }
.ap-hero h1 { font-size: 21px; font-weight: 700; background: linear-gradient(90deg, var(--rr-pink), var(--rr-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-hero p { color: var(--rr-text-muted); font-size: 13.5px; margin-top: 6px; line-height: 1.5; }

.ap-progress { display: flex; gap: 6px; margin: 4px 0 22px; }
.ap-progress-seg { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.12); }
.ap-progress-seg.is-done { background: var(--rr-cyan); }
.ap-progress-seg.is-current { background: var(--rr-pink); }

.ap-card { background: var(--rr-panel); border: 1px solid var(--rr-border); border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.ap-step-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.ap-step-sub { color: var(--rr-text-muted); font-size: 13px; margin-bottom: 16px; }

.ap-field { margin-bottom: 14px; }
.ap-field label { display: block; font-size: 12.5px; color: var(--rr-text-dim); margin-bottom: 5px; font-weight: 600; letter-spacing: 0.2px; }
.ap-field input[type="text"], .ap-field input[type="email"], .ap-field input[type="tel"], .ap-field input[type="date"],
.ap-field select, .ap-field textarea {
  width: 100%; background: rgba(0,0,0,0.28); border: 1px solid var(--rr-border); border-radius: 10px;
  padding: 12px 13px; color: var(--rr-text); font-family: inherit; font-size: 15px;
}
.ap-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.ap-field input:focus, .ap-field select:focus, .ap-field textarea:focus { outline: none; border-color: var(--rr-cyan); }
.ap-charcount { font-size: 11.5px; color: var(--rr-text-muted); text-align: right; margin-top: 4px; }
.ap-nudge { font-size: 12px; color: var(--rr-yellow); margin-top: 5px; }
.ap-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .ap-row2 { grid-template-columns: 1fr; } }

.ap-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--rr-text); }
.ap-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--rr-pink); }

/* Honeypot — visually hidden, still reachable to bots that fill every field */
.ap-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Availability grid: 6 days (Mon-Sat, closed Sunday) x 3 dayparts, tap-to-toggle */
.ap-avail-hint { color: var(--rr-text-muted); font-size: 12px; margin-bottom: 8px; }
.ap-avail { display: grid; grid-template-columns: 52px repeat(3, 1fr); gap: 5px; font-size: 11.5px; }
.ap-avail-h { color: var(--rr-text-muted); text-align: center; padding: 4px 2px; }
.ap-avail-hrs { display: block; font-size: 10px; color: var(--rr-text-dim); }
.ap-avail-day { display: flex; align-items: center; color: var(--rr-text-dim); font-weight: 600; padding-left: 2px; }
.ap-avail-cell { aspect-ratio: 1.4; border-radius: 8px; border: 1px solid var(--rr-border); background: rgba(0,0,0,0.22); cursor: pointer; display: flex; align-items: center; justify-content: center; user-select: none; }
.ap-avail-cell.is-on { background: rgba(88,249,244,0.22); border-color: var(--rr-cyan); box-shadow: 0 0 10px rgba(88,249,244,0.25); }

.ap-position-card { border: 1px solid var(--rr-border); border-radius: 12px; padding: 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s; }
.ap-position-card.is-selected { border-color: var(--rr-pink); box-shadow: 0 0 0 1px var(--rr-pink), 0 0 18px rgba(242,57,247,0.25); }
.ap-position-title { font-weight: 700; font-size: 15.5px; }
.ap-position-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ap-position-desc { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--rr-text-muted); white-space: pre-line; }
.ap-doc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.ap-doc-name { font-size: 13px; color: var(--rr-text-muted); word-break: break-all; }
.ap-doc-clear { background: none; border: 0; color: var(--rr-text-muted); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; }
.ap-chip { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(88,249,244,0.12); border: 1px solid var(--rr-border-cyan); color: var(--rr-light-cyan); }

/* Video question card */
.ap-vq-prompt { font-size: 15px; line-height: 1.5; margin-bottom: 4px; }
.ap-vq-helper { color: var(--rr-text-muted); font-size: 12.5px; margin-bottom: 12px; }
.ap-vq-stage { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; max-height: 60vh; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rr-border); }
.ap-vq-stage video { width: 100%; height: 100%; object-fit: cover; }
.ap-vq-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.ap-vq-countdown { font-size: 64px; font-weight: 700; color: var(--rr-cyan); text-shadow: 0 0 24px rgba(88,249,244,0.7); }
.ap-vq-recdot { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.5); padding: 5px 10px; border-radius: 999px; font-size: 12px; }
.ap-vq-recdot .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rr-danger); animation: ap-pulse 1s infinite; }
@keyframes ap-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.ap-vq-timer { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.5); padding: 5px 10px; border-radius: 999px; font-size: 12px; font-family: 'JetBrains Mono', monospace; }
.ap-vq-controls { display: flex; gap: 10px; margin-top: 12px; justify-content: center; flex-wrap: wrap; }
.ap-vq-status { font-size: 12.5px; color: var(--rr-text-muted); text-align: center; margin-top: 8px; }
.ap-vq-done { display: flex; align-items: center; gap: 8px; color: var(--rr-ok); font-size: 13px; font-weight: 600; margin-top: 10px; }

.ap-vq-onetake { background: rgba(242,57,247,0.08); border: 1px solid var(--rr-border); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.ap-vq-onetake-h { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.ap-vq-onetake-b { color: var(--rr-text-muted); font-size: 13px; line-height: 1.55; }

.ap-btn { border: none; border-radius: 10px; padding: 12px 18px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--rr-text); background: rgba(255,255,255,0.08); border: 1px solid var(--rr-border); }
.ap-btn--primary { background: linear-gradient(90deg, var(--rr-pink), var(--rr-magenta)); border: none; box-shadow: 0 0 18px rgba(242,57,247,0.35); }
.ap-btn--cyan { background: rgba(88,249,244,0.14); border: 1px solid var(--rr-border-cyan); color: var(--rr-light-cyan); }
.ap-btn--block { width: 100%; }
.ap-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ap-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.ap-actions > * { flex: 1; }

.ap-summary-item { border-bottom: 1px solid var(--rr-border); padding: 10px 0; }
.ap-summary-item:last-child { border-bottom: none; }
.ap-summary-label { font-size: 11.5px; color: var(--rr-text-muted); text-transform: uppercase; letter-spacing: .4px; }
.ap-summary-value { font-size: 14px; margin-top: 2px; white-space: pre-wrap; }
.ap-edit-link { font-size: 12px; color: var(--rr-cyan); cursor: pointer; }

.ap-progressbar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); overflow: hidden; margin-top: 8px; }
.ap-progressbar-fill { height: 100%; background: linear-gradient(90deg, var(--rr-pink), var(--rr-cyan)); transition: width .2s; }

.ap-error { background: rgba(255,92,122,0.12); border: 1px solid rgba(255,92,122,0.4); color: #ffb3c0; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }

.ap-success { text-align: center; padding: 40px 16px; }
.ap-success .icon { font-size: 48px; margin-bottom: 12px; }
.ap-success h2 { font-size: 20px; margin-bottom: 8px; }
.ap-success p { color: var(--rr-text-muted); line-height: 1.6; }

/* onboard.html — secure new-hire doc upload tiles */
.ap-doc-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--rr-border); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.ap-doc-tile.is-done { border-color: var(--rr-ok); background: rgba(74,222,128,0.08); }
.ap-doc-title { font-weight: 700; font-size: 14.5px; }
.ap-doc-sub { font-size: 12px; color: var(--rr-text-muted); margin-top: 2px; }
.ap-doc-status { font-size: 20px; }
.ap-doc-upload-label { cursor: pointer; }

