/* =========================================================
   APPLY-NOW.CSS — Apply Now page only. Extends careers.css (master
   careers template) with the one component unique to this page: the
   6-step application wizard (progress rail, step dots, form fields,
   drag-and-drop file upload, review summary, success state). No
   generic form-input styling exists anywhere else in the codebase
   (contact.html's form is unstyled), so this file defines its own —
   built on the same tokens (--rule, --teal, --radius-lg, --shadow-*)
   every other template already uses.
   ========================================================= */

/* ---------- Wizard shell ---------- */
.wizard-shell{
  max-width:900px; margin:44px auto 0; background: var(--white); border:1px solid var(--rule);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding:44px;
}
@media (max-width: 640px){ .wizard-shell{ padding:26px 20px; border-radius:16px; } }

/* JS toggles wizard sub-elements via the native `hidden` attribute, but
   several of them (buttons, the draft banner) also carry an explicit
   `display` value of their own — author CSS always beats the browser's
   default `[hidden]{display:none}` UA rule, so without this the element
   stays visible. One blanket rule here instead of patching each one. */
.wizard-shell [hidden]{ display:none !important; }

.wizard-draft-banner{
  display:flex; align-items:center; gap:10px; background: rgba(10,154,144,.08); border:1px solid rgba(10,154,144,.25);
  border-radius:12px; padding:12px 16px; font-size:.83rem; color: var(--teal-deep); margin-bottom:28px;
}
.wizard-draft-banner i{ flex-shrink:0; }

/* ---------- Progress rail + step dots ---------- */
.wizard-progress-track{ height:5px; background: var(--rule); border-radius:999px; position:relative; overflow:hidden; }
.wizard-progress-fill{
  height:100%; width:0%; border-radius:999px; background: linear-gradient(90deg, var(--navy-brand), var(--teal));
  transition: width .5s var(--ease);
}
.wizard-steps-nav{ display:flex; justify-content:space-between; margin-top:20px; gap:6px; }
.wizard-step-dot{
  display:flex; flex-direction:column; align-items:center; gap:8px; background:none; border:0; cursor:pointer;
  flex:1; min-width:0; opacity:.45; transition: opacity .3s;
}
.wizard-step-dot.active, .wizard-step-dot.completed{ opacity:1; }
.wizard-step-num{
  width:36px; height:36px; border-radius:50%; background: var(--paper-dim); color: var(--slate-soft);
  display:grid; place-items:center; font-family: var(--f-mono); font-size:.8rem; transition: all .3s var(--ease);
}
.wizard-step-dot.active .wizard-step-num{ background: var(--teal-deep); color:#fff; box-shadow: 0 0 0 5px rgba(10,154,144,.15); }
.wizard-step-dot.completed .wizard-step-num{ background: var(--teal); color:#fff; }
.wizard-step-label{ font-size:.7rem; color: var(--slate-soft); text-align:center; white-space:nowrap; }
@media (max-width: 760px){ .wizard-step-label{ display:none; } }

/* ---------- Step panels ---------- */
.wizard-panel{ margin-top:40px; animation: panelIn .4s var(--ease); }
@keyframes panelIn{ from{ opacity:0; transform: translateY(14px); } to{ opacity:1; transform:none; } }
.wizard-panel h3{ font-size:1.3rem; margin:0 0 6px; }
.wizard-panel .panel-hint{ font-size:.86rem; color: var(--slate-soft); margin:0 0 28px; }

/* ---------- Form fields ---------- */
.field{ margin-bottom:22px; }
.field label{ display:block; font-size:.83rem; font-weight:600; color: var(--ink); margin-bottom:8px; }
.field label .req{ color: var(--teal-deep); margin-left:2px; }
.field label .optional{ font-weight:400; color: var(--slate-soft); font-size:.78rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field input[type="url"], .field select, .field textarea{
  width:100%; padding:12px 16px; border-radius:12px; border:1px solid var(--rule); background: var(--white);
  font-family: var(--f-body); font-size:.9rem; color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.field textarea{ resize:vertical; min-height:104px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,154,144,.15);
}
.field-error{ display:none; color:#C0392B; font-size:.78rem; margin-top:7px; }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color:#C0392B; }
.field.has-error .field-error{ display:block; }

.field-row2{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.field-row3{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width: 640px){ .field-row2, .field-row3{ grid-template-columns:1fr; } }

/* ---------- Work-mode pill radios ---------- */
.pill-radio-group{ display:flex; gap:10px; flex-wrap:wrap; }
.pill-radio{ position:relative; }
.pill-radio input{ position:absolute; opacity:0; width:1px; height:1px; }
.pill-radio label{
  display:inline-flex; align-items:center; gap:8px; padding:10px 20px; border-radius:999px;
  border:1px solid var(--rule); cursor:pointer; font-size:.85rem; font-weight:500; color: var(--ink);
  margin:0; transition: all .25s;
}
.pill-radio input:checked + label{ background: var(--teal-deep); border-color: var(--teal-deep); color:#fff; }
.pill-radio input:focus-visible + label{ box-shadow: 0 0 0 3px rgba(10,154,144,.25); }

/* ---------- File upload ---------- */
.upload-zone{
  border:2px dashed var(--rule); border-radius: var(--radius-lg); padding:32px 20px; text-align:center;
  cursor:pointer; transition: border-color .25s, background .25s; background: var(--paper-dim);
}
.upload-zone:hover, .upload-zone.dragover{ border-color: var(--teal); background: rgba(10,154,144,.06); }
.upload-zone i{ font-size:1.7rem; color: var(--teal-deep); margin-bottom:10px; display:block; }
.upload-zone .upload-title{ font-size:.9rem; font-weight:600; color: var(--ink); }
.upload-zone .upload-hint{ font-size:.76rem; color: var(--slate-soft); margin-top:6px; }
.upload-zone input[type="file"]{ display:none; }

.upload-file-chip{
  display:flex; align-items:center; gap:12px; background: var(--white); border:1px solid var(--rule);
  border-radius:12px; padding:10px 14px; margin-top:12px;
}
.upload-file-chip .file-type-icon{ color: var(--teal-deep); flex-shrink:0; }
.upload-file-chip .file-name{ flex:1; font-size:.85rem; color: var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.upload-file-chip .file-size{ font-size:.74rem; color: var(--slate-soft); flex-shrink:0; }
.upload-file-chip .file-remove{ background:none; border:0; color: var(--slate-soft); cursor:pointer; padding:4px; flex-shrink:0; }
.upload-file-chip .file-remove:hover{ color:#C0392B; }

/* ---------- Review & submit ---------- */
.review-summary{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:28px; }
@media (max-width: 640px){ .review-summary{ grid-template-columns:1fr; } }
.review-block{ background: var(--paper-dim); border-radius:14px; padding:22px; }
.review-block h4{ font-size:.76rem; text-transform:uppercase; letter-spacing:.05em; color: var(--teal-deep); margin:0 0 14px; font-family: var(--f-mono); }
.review-block dl{ margin:0; }
.review-block dt{ font-size:.72rem; color: var(--slate-soft); margin-top:10px; }
.review-block dt:first-child{ margin-top:0; }
.review-block dd{ margin:2px 0 0; font-size:.88rem; color: var(--ink); }

.consent-check{ display:flex; align-items:flex-start; gap:12px; margin-bottom:14px; font-size:.85rem; color: var(--slate); line-height:1.5; padding:8px 10px; border-radius:10px; border:1px solid transparent; transition: border-color .25s, background .25s; }
.consent-check input{ margin-top:3px; flex-shrink:0; }
.consent-check a{ color: var(--teal-deep); text-decoration:underline; }
.consent-check.has-error{ border-color:#C0392B; background: rgba(192,57,43,.05); }
.consent-check.has-error span{ color:#C0392B; }

/* ---------- Wizard nav row ---------- */
.wizard-nav{
  display:flex; justify-content:space-between; align-items:center; margin-top:36px; padding-top:26px;
  border-top:1px solid var(--rule); flex-wrap:wrap; gap:14px;
}
.wizard-nav-right{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-left:auto; }
.wizard-save-draft{
  background:none; border:1px solid var(--rule); border-radius:999px; padding:.85em 1.5em; font-size:.85rem;
  color: var(--slate-soft); cursor:pointer; transition: all .25s; font-family: var(--f-body);
}
.wizard-save-draft:hover{ border-color: var(--teal-deep); color: var(--teal-deep); }
.wizard-draft-toast{
  font-size:.78rem; color: var(--teal-deep); opacity:0; transition: opacity .3s; font-family: var(--f-mono);
}
.wizard-draft-toast.show{ opacity:1; }
.wizard-status{ font-size:.83rem; margin-top:16px; }

/* ---------- Success state ---------- */
.wizard-success{ text-align:center; padding:70px 20px; }
.wizard-success-icon{
  width:92px; height:92px; border-radius:50%; background: linear-gradient(135deg, var(--navy-brand), var(--teal));
  display:grid; place-items:center; margin:0 auto 26px; color:#fff; font-size:2.2rem; animation: successPop .5s var(--ease);
}
@keyframes successPop{ from{ transform: scale(0); opacity:0; } to{ transform: scale(1); opacity:1; } }
.wizard-success h3{ margin:0 0 10px; }
.wizard-success p{ color: var(--slate-soft); max-width:460px; margin:0 auto 26px; }
