/* Busy Bee Maids — shared styles for the applicant pages and the dashboard.
   Palette is honey/amber over warm neutrals. Swap the tokens in :root to
   match the real brand; nothing else needs touching. */
:root{
  --honey:#E8A723;        /* primary accent */
  --honey-deep:#C8860A;   /* hover / pressed */
  --honey-wash:#FDF6E6;   /* tinted fill */
  --honey-line:#F0DCAE;
  --ink:#1F1B16;
  --ink-soft:#57503F;
  --muted:#8A8172;
  --bg:#FAF8F4;
  --card:#FFFFFF;
  --line:#E9E3D8;
  --bad:#A32C2C; --bad-bg:#FCEDED; --bad-line:#F0C9C9;
  --good:#2C6E49; --good-bg:#EDF6F1; --good-line:#C3E2D1;
  --radius:12px;
  --shadow:0 1px 2px rgba(31,27,22,.05), 0 4px 14px rgba(31,27,22,.05);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font:16px/1.6 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.wrap{max-width:700px;margin:0 auto;padding:0 16px 72px}
.wrap.wide{max-width:1100px}

/* ---- brand header ---- */
.brand{display:flex;align-items:center;gap:10px;padding:22px 0 6px}
.brand svg{flex:0 0 auto}
.brand b{font-size:1.02rem;letter-spacing:-.01em}
.brand span{color:var(--muted);font-size:.88rem}
header{padding:6px 0 14px}
h1{font-size:1.55rem;line-height:1.25;letter-spacing:-.02em;margin:0 0 6px;font-weight:650}
h2{font-size:1.12rem;letter-spacing:-.01em;margin:0 0 4px;font-weight:650}
h3{font-size:1rem;margin:0 0 10px;font-weight:650}
.sub{color:var(--ink-soft);font-size:.95rem;margin:0}

.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:20px;margin:14px 0;box-shadow:var(--shadow)}

/* ---- questions ---- */
.q{margin:0 0 22px;padding:0 0 20px;border-bottom:1px solid var(--line)}
.q:last-child{border-bottom:0;padding-bottom:0;margin-bottom:0}
.q label.t{display:block;font-weight:600;margin-bottom:7px;line-height:1.45}
.help{color:var(--muted);font-size:.88rem;margin:0 0 9px}
.req{color:var(--honey-deep);margin-left:3px}
input[type=text],input[type=email],input[type=tel],input[type=date],input[type=number],textarea,select{
  width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:9px;
  font:inherit;background:#fff;color:inherit;transition:border-color .12s,box-shadow .12s}
textarea{min-height:104px;resize:vertical}
input:focus,textarea:focus,select:focus{
  outline:none;border-color:var(--honey);box-shadow:0 0 0 3px rgba(232,167,35,.18)}
.opts{display:flex;flex-direction:column;gap:9px}
.opt{display:flex;gap:11px;align-items:flex-start;padding:13px 14px;border:1px solid var(--line);
  border-radius:9px;cursor:pointer;background:#fff;transition:border-color .12s,background .12s}
.opt:hover{border-color:var(--honey-line)}
.opt:has(input:checked){border-color:var(--honey);background:var(--honey-wash);box-shadow:0 0 0 1px var(--honey)}
.opt input{margin-top:3px;flex:0 0 auto;width:19px;height:19px;accent-color:var(--honey-deep)}
.qnum{display:block;color:var(--muted);font-size:.8rem;font-weight:500;margin-bottom:2px;font-variant-numeric:tabular-nums}

/* A question that still needs an answer, marked where it is rather than only
   in a message at the top of the page. */
.q.bad{border-left:3px solid var(--bad);padding-left:12px;margin-left:-15px}
.fielderr{color:var(--bad);font-size:.88rem;font-weight:500;margin:8px 0 0}

/* ---- 1-7 / 1-10 scale ----
   Always one row. The page sets --n to the number of choices, and every button
   gets an equal share of the width, so 1-10 never wraps its last numbers onto a
   second line on a phone. Buttons stay tall so they are easy to tap. */
.scale{display:grid;grid-template-columns:repeat(var(--n,7),minmax(0,1fr));gap:6px}
.scale button{min-width:0;min-height:50px;padding:0;border:1px solid var(--line);
  background:#fff;border-radius:9px;font:inherit;font-weight:600;color:var(--ink-soft);
  cursor:pointer;transition:all .12s;font-variant-numeric:tabular-nums;touch-action:manipulation}
.scale button:hover{border-color:var(--honey-line);background:var(--honey-wash)}
.scale button[aria-pressed=true]{background:var(--honey);color:#fff;border-color:var(--honey-deep);
  box-shadow:0 1px 3px rgba(200,134,10,.35)}
.scale button:focus-visible{outline:2px solid var(--honey-deep);outline-offset:2px}
.ends{display:flex;justify-content:space-between;color:var(--muted);font-size:.82rem;margin-top:8px;gap:14px}
.ends span:last-child{text-align:right}
.rank{display:flex;flex-direction:column;gap:9px}
.rankrow{display:flex;gap:12px;align-items:center;border:1px solid var(--line);
  border-radius:9px;padding:11px 13px;background:#fff}
.rankrow span{flex:1;line-height:1.4}
.rankrow select{width:auto;min-width:76px;font-weight:600}

/* ---- buttons ---- */
button.primary{background:var(--honey);color:#fff;border:1px solid var(--honey-deep);border-radius:9px;
  padding:13px 22px;font:inherit;font-weight:600;cursor:pointer;min-height:50px;
  box-shadow:0 1px 3px rgba(200,134,10,.3);transition:background .12s}
button.primary:hover:not(:disabled){background:var(--honey-deep)}
button.ghost{background:#fff;border:1px solid var(--line);border-radius:9px;padding:12px 18px;
  font:inherit;font-weight:500;cursor:pointer;min-height:46px;transition:border-color .12s,background .12s}
button.ghost:hover:not(:disabled){border-color:var(--honey-line);background:var(--honey-wash)}
button:disabled{opacity:.45;cursor:default;box-shadow:none}
.nav{display:flex;gap:10px;justify-content:space-between;margin-top:20px}

/* ---- progress ---- */
.bar{height:5px;background:var(--line);border-radius:99px;overflow:hidden;margin:8px 0 6px}
.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--honey),var(--honey-deep));
  border-radius:99px;transition:width .3s ease}
.count{color:var(--muted);font-size:.84rem;margin:0 0 4px;font-variant-numeric:tabular-nums}

/* ---- messages ---- */
.err{background:var(--bad-bg);border:1px solid var(--bad-line);color:var(--bad);
  padding:12px 14px;border-radius:9px;margin:12px 0;font-size:.93rem}
.ok{background:var(--good-bg);border:1px solid var(--good-line);color:var(--good);
  padding:12px 14px;border-radius:9px;margin:12px 0;font-size:.93rem}
/* ---- phones ----
   Most applicants fill these pages in on a phone, so this is the main layout,
   not an afterthought. */
@media (max-width:480px){
  .wrap{padding:0 12px 56px}
  .card{padding:16px 14px}
  h1{font-size:1.35rem}
  .brand{padding-top:16px}
  .scale{gap:4px}
  .scale button{min-height:48px;border-radius:7px;font-size:.95rem}
  .q.bad{margin-left:-11px;padding-left:8px}
  .nav button{flex:1 1 0}
  .rankrow{padding:10px 11px;gap:10px}
}
@media (max-width:340px){
  .scale{gap:3px}
  .scale button{font-size:.85rem;border-radius:6px}
}

/* Which build this page is. Small, always visible, and loud when it is wrong:
   not knowing which version is on screen cost a whole afternoon once. */
.build{font-size:.72rem;font-variant-numeric:tabular-nums;letter-spacing:.02em;
  color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:2px 7px;cursor:help}
.build.stale{color:#7a2018;background:#fdeceb;border-color:#f3c3bf;font-weight:600;cursor:pointer}
.buildfoot{text-align:center;margin:26px 0 10px;color:var(--muted);font-size:.72rem}
.stalebar{background:#fdeceb;color:#7a2018;border-bottom:1px solid #f3c3bf;
  padding:11px 16px;font-size:.9rem;text-align:center}
.stalebar button{margin-left:10px;background:#7a2018;color:#fff;border:0;
  border-radius:7px;padding:6px 13px;font:inherit;font-weight:600;cursor:pointer}
