/* Woody's Hiring Portal - Apply page (separate from the home page) */

.apply-main { padding: 40px 0 72px; min-height: calc(100svh - var(--nav)); }
.apply-shell { width: min(720px, calc(100% - 28px)); margin: 0 auto; }

.apply-intro { display: grid; gap: 10px; margin-bottom: 26px; text-align: center; }
.apply-intro .kicker { justify-self: center; }
.apply-intro h1 { font-size: 40px; line-height: 1.12; }
.apply-intro p { color: var(--muted); font-size: 17px; max-width: 52ch; margin: 0 auto; }

/* progress */
.steps { display: grid; grid-auto-flow: column; gap: 8px; margin-bottom: 24px; }
.step-dot { height: 5px; border-radius: 999px; background: var(--cream); transition: background .25s; }
.step-dot.is-active { background: var(--red); }
.step-dot.is-done { background: var(--red-deep); }

/* card */
.apply-card {
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px;
}
.apply-step { display: none; }
.apply-step.is-active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.apply-step h2 { font-size: 26px; margin-bottom: 8px; }
.apply-step .step-sub { color: var(--muted); margin-bottom: 30px; }

/* fields */
.field { display: grid; gap: 9px; margin-bottom: 30px; }
.field:last-of-type { margin-bottom: 0; }
.field label { font-family: var(--font-ui); font-size: 14px; font-weight: 650; color: var(--ink); }
.field .hint { font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-size: 15px; transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(201, 20, 34, .14);
}
.field input:user-invalid, .field select:user-invalid { border-color: #d65151; }
.field-row { display: grid; gap: 18px; margin-bottom: 30px; align-items: start; }
.field-row .field { margin-bottom: 0; }   /* row owns the spacing; keep columns top-aligned */
@media (min-width: 560px) { .field-row.two { grid-template-columns: 1fr 1fr; } }

/* choice cards (positions + locations) */
.position-list { display: grid; gap: 12px; }
.position-option { position: relative; }
.position-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.position-option > label {
  display: grid; gap: 4px; padding: 16px 18px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.position-option .pos-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.position-option .pos-meta { font-family: var(--font-ui); font-size: 13px; color: var(--muted); }
.position-option input:checked + label {
  border-color: var(--red); background: var(--red-soft);
  box-shadow: 0 0 0 3px rgba(201, 20, 34, .12);
}
.position-option input:focus-visible + label { box-shadow: 0 0 0 3px rgba(201, 20, 34, .22); }
/* closed position */
.position-option.is-closed > label { opacity: .55; cursor: not-allowed; }
.position-option.is-closed .pos-meta { color: var(--red-deep); font-weight: 650; }
.closed-msg {
  display: none; margin-top: 12px; padding: 14px 16px; border-radius: 10px;
  background: var(--red-soft); border: 1px solid rgba(201,20,34,.2);
  font-family: var(--font-ui); font-size: 14px; color: var(--red-deep);
}
.closed-msg.show { display: block; }

/* simple option groups (yes/no, hours, etc.) */
.opt-group { display: grid; gap: 10px; }
.opt-group.inline { grid-auto-flow: column; grid-auto-columns: 1fr; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt label {
  display: block; padding: 13px 16px; text-align: center; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.opt-group:not(.inline) .opt label { text-align: left; }
.opt input:checked + label {
  border-color: var(--red); background: var(--red-soft);
  box-shadow: 0 0 0 3px rgba(201, 20, 34, .12);
}
.opt input:focus-visible + label { box-shadow: 0 0 0 3px rgba(201, 20, 34, .22); }

/* location "select all" */
.select-all {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 650; color: var(--muted); cursor: pointer;
}
.select-all input { width: 18px; height: 18px; accent-color: var(--red); }

/* conditional helper note */
.cond-note {
  font-family: var(--font-ui); font-size: 13px; color: var(--red-deep);
  background: var(--red-soft); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px;
}
.doc-block { display: none; }
.doc-block.show { display: block; }

/* resume dropzone */
.dropzone {
  display: grid; gap: 8px; place-items: center; text-align: center;
  padding: 28px; border: 1.5px dashed rgba(201, 20, 34, .4); border-radius: 12px;
  background: var(--red-soft); cursor: pointer; transition: background .18s, border-color .18s;
}
.dropzone:hover { background: #ffe7e9; border-color: var(--red); }
.dropzone svg { width: 30px; height: 30px; stroke: var(--red); stroke-width: 2; fill: none; }
.dropzone .dz-title { font-family: var(--font-ui); font-weight: 650; }
.dropzone .dz-hint { font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); }
.dropzone input { display: none; }
.file-pill {
  display: none; align-items: center; gap: 10px; margin-top: 12px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-family: var(--font-ui); font-size: 14px;
}
.file-pill.show { display: flex; }
.file-pill .file-remove { margin-left: auto; color: var(--red); cursor: pointer; font-weight: 700; background: none; border: none; }

/* review */
.review-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.review-row:last-child { border-bottom: 0; }
.review-row dt { font-family: var(--font-ui); font-size: 13px; font-weight: 650; color: var(--muted); }
.review-row dd { margin: 0; font-size: 15px; }

/* nav buttons */
.apply-actions { display: flex; gap: 12px; margin-top: 26px; }
.apply-actions .btn { flex: 1; width: auto; }   /* width:auto beats the site's mobile .btn{width:100%} */
.apply-actions .btn-back { flex: 0 0 auto; }

/* success */
.apply-card.apply-success { display: none; text-align: center; padding: 52px 24px; }
.apply-success.show { display: block; }
.success-mark {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--status-hired-bg); color: var(--status-hired-fg);
}
.success-mark svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.apply-success h2 { font-size: 22px; margin-bottom: 7px; }
.apply-success p { color: var(--muted); font-size: 14.5px; max-width: 42ch; margin: 0 auto 18px; }

.required-star { color: var(--red); }

@media (max-width: 560px) {
  .apply-card { padding: 22px; }
  .apply-intro h1 { font-size: 32px; }
}
