/* ============================================================
   Property Pros — hiring funnel UI
   Shared by apply.html (pre-application), application.html and
   applicants.html (review queue). Builds on the tokens already
   defined in styles.css — no new palette, no second design.
   ============================================================ */

/* ---------- progress ---------- */
.wiz-progress { margin-bottom: 20px; }
.wiz-bar {
  height: 8px; border-radius: 999px; background: var(--paper-2);
  overflow: hidden; box-shadow: inset 0 1px 2px rgba(10,22,40,.08);
}
.wiz-bar span {
  display: block; height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-300));
  transition: width .45s var(--ease);
}
.wiz-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px; font-size: .85rem; color: var(--steel);
}
.wiz-meta #wizStepLabel { font-weight: 600; color: var(--ink); }

/* ---------- the card ---------- */
.wiz-card {
  padding: 32px; box-shadow: var(--shadow-md); border-radius: var(--radius);
  background: var(--white);
}
@media (max-width: 640px) { .wiz-card { padding: 22px 18px; } }

.wiz-card h2 {
  font-family: var(--font-head); font-size: 1.45rem; line-height: 1.25;
  margin: 0 0 8px; color: var(--ink); overflow-wrap: break-word;
}
.wiz-card .wiz-sub { color: var(--steel); margin: 0 0 24px; font-size: .96rem; line-height: 1.6; }

.wiz-loading { text-align: center; padding: 40px 0; color: var(--steel); }
.spinner {
  width: 32px; height: 32px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--paper-2); border-top-color: var(--accent);
  animation: wiz-spin .8s linear infinite;
}
@keyframes wiz-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .wiz-bar span { transition: none; }
}

/* ---------- questions ---------- */
.q-stem {
  font-size: 1.06rem; line-height: 1.6; color: var(--ink); font-weight: 600;
  margin: 0 0 18px; overflow-wrap: break-word;
}
.q-num {
  display: inline-block; font-family: var(--font-head); font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-600);
  margin-bottom: 10px; font-weight: 700;
}

.opt-list { display: grid; gap: 10px; }
.opt {
  display: flex; gap: 13px; align-items: flex-start; padding: 15px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; background: var(--white);
  transition: border-color .18s, background .18s, transform .18s var(--ease);
}
.opt:hover { border-color: var(--accent-300); background: #fffaf7; }
.opt:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(255,107,53,.10);
}
.opt:has(input:focus-visible) { outline: 2px solid var(--accent-600); outline-offset: 2px; }
.opt input { margin-top: 3px; accent-color: var(--accent); flex: none; width: 18px; height: 18px; }
.opt span { font-size: .95rem; line-height: 1.55; color: var(--ink); }

/* agree scale */
.scale-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.scale-item:last-child { border-bottom: 0; }
.scale-item p { margin: 0 0 12px; font-size: 1rem; line-height: 1.55; color: var(--ink); font-weight: 500; }
.scale {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
}
.scale label {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; text-align: center; transition: border-color .18s, background .18s;
}
.scale label:hover { border-color: var(--accent-300); }
.scale label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.scale input { accent-color: var(--accent); }
.scale small { font-size: .68rem; line-height: 1.2; color: var(--steel); }
@media (max-width: 520px) { .scale small { display: none; } .scale label { padding: 12px 2px; } }

/* ---------- actions ---------- */
.wiz-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
}
.wiz-actions .grow { flex: 1; }
@media (max-width: 520px) {
  .wiz-actions { flex-direction: column-reverse; align-items: stretch; }
  .wiz-actions .btn { width: 100%; }
}

.wiz-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 13px 15px; border-radius: var(--radius-sm); margin-bottom: 18px;
  font-size: .92rem; line-height: 1.55;
}
.wiz-legal {
  margin-top: 22px; font-size: .82rem; line-height: 1.65; color: var(--steel-300);
  text-align: center; max-width: 62ch; margin-left: auto; margin-right: auto;
}

/* ---------- done ---------- */
.wiz-done { text-align: center; padding: 20px 0; }
.wiz-done .mark {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 2rem;
  background: var(--accent-soft); color: var(--accent-600);
}
.wiz-done h2 { font-size: 1.6rem; }

/* ---------- application form ---------- */
.form-section { margin-bottom: 34px; }
.form-section > h3 {
  font-family: var(--font-head); font-size: 1.1rem; color: var(--ink);
  margin: 0 0 4px; padding-bottom: 10px; border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field small.help { display: block; color: var(--steel); font-size: .82rem; margin-top: 5px; line-height: 1.5; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #dc2626; }
.field .err { color: #dc2626; font-size: .82rem; margin-top: 5px; display: block; }

.check-row { display: flex; gap: 11px; align-items: flex-start; padding: 12px 0; }
.check-row input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.check-row label { font-size: .95rem; line-height: 1.6; color: var(--ink); }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-group label {
  padding: 9px 15px; border: 1.5px solid var(--line); border-radius: 999px;
  cursor: pointer; font-size: .9rem; transition: border-color .18s, background .18s;
}
.chip-group label:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft); font-weight: 600;
}
.chip-group input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- review queue ---------- */
.queue-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.queue-table th {
  text-align: left; padding: 11px 12px; font-size: .74rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--steel); border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.queue-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.queue-table tbody tr:hover { background: var(--paper); cursor: pointer; }

.band { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.band-strong { background: rgba(45,212,167,.16); color: #0f7a5f; }
.band-fit    { background: rgba(47,155,255,.14); color: #1a5f9e; }
.band-review { background: rgba(255,107,53,.16); color: var(--accent-600); }
.band-below  { background: rgba(84,100,122,.14); color: var(--steel); }

.flagchip {
  display: inline-block; background: #fef3c7; color: #92400e; border-radius: 5px;
  padding: 2px 7px; font-size: .72rem; margin: 2px 3px 2px 0; white-space: nowrap;
}
.dim-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; }
.dim-row b { width: 116px; font-size: .84rem; font-weight: 600; text-transform: capitalize; flex: none; }
.dim-bar { flex: 1; height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.dim-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.dim-row i { font-style: normal; font-size: .84rem; color: var(--steel); width: 44px; text-align: right; flex: none; }

.answer-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.answer-block .q { font-size: .9rem; color: var(--steel); margin: 0 0 6px; line-height: 1.5; }
.answer-block .a { font-size: .95rem; color: var(--ink); margin: 0; line-height: 1.6; white-space: pre-wrap; }
