/* ============================================================
   HIRE PAGE  ·  reactive intake bot + project form (v2 theme)
   ============================================================ */
/* aliases so the reused hire.js bot colors resolve to the new palette */
:root { --acc: var(--brand); --azure: var(--brand); --amber: var(--data); --acc-glow: var(--brand-glow); }

.hire-wrap { position: relative; z-index: 2; max-width: 1180px; margin-inline: auto; padding: clamp(84px,11vh,130px) var(--gutter) var(--s9); }
.hire-back { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-3); margin-bottom: var(--s6); transition: color .2s, gap .2s var(--ease); }
.hire-back:hover { color: var(--brand); gap: var(--s3); }
.hire-grid { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: var(--s6); align-items: start; }

.bot-panel { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: radial-gradient(130% 80% at 50% 0%, var(--brand-glow), transparent 60%), var(--surface); padding: var(--s6); overflow: hidden; }
.bot-panel__bar { display: flex; align-items: center; gap: var(--s3); font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-bottom: var(--s4); margin-bottom: var(--s5); border-bottom: 1px solid var(--line-soft); }
.bot-panel__bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.bot-stage { display: grid; place-items: center; padding: var(--s3) 0 var(--s5); }
.bot { width: min(230px,60vw); filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.bot .bot-eye { transition: transform .12s var(--ease), height .25s var(--ease); transform-box: fill-box; transform-origin: center; }
.bot .bot-mouth { transition: d .3s var(--ease); }
.bot .bot-antenna-light { transition: fill .5s, filter .5s; }
.bot.is-blink .bot-eye { transform: scaleY(.1); }

.bot-mood { margin-top: var(--s3); }
.bot-mood__label { display: flex; align-items: center; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.bot-mood__label b { color: var(--brand); font-weight: 500; }
.bot-mood__bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bot-mood__fill { height: 100%; width: 12%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2) 55%, var(--data)); transition: width .5s var(--ease); }

.bot-speech { position: relative; margin-top: var(--s5); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); padding: var(--s4); min-height: 92px; font-family: var(--f-mono); font-size: var(--t-sm); line-height: 1.65; }
.bot-speech::before { content:""; position: absolute; top: -7px; left: 32px; width: 12px; height: 12px; background: var(--bg-2); border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); transform: rotate(45deg); }
.bot-speech .caret { display: inline-block; width: 8px; height: 1.05em; background: var(--brand); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.bot-facts { margin-top: var(--s4); display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.bot-facts div { background: var(--bg-2); padding: 8px var(--s4); display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: var(--t-xs); }
.bot-facts .k { color: var(--ink-3); } .bot-facts .v { color: var(--ink); } .bot-facts .v.ok { color: var(--ok); }

.form-panel { border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; }
.form-head { padding: var(--s6) var(--s6) var(--s5); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.form-head h1 { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 700; letter-spacing: -.04em; margin-bottom: 6px; }
.form-head p { color: var(--ink-2); font-size: var(--t-sm); max-width: 52ch; }
.form-progress { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.form-progress__bar { flex: 1; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.form-progress__fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .4s var(--ease); }
.form-progress__pct { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-3); }

.form-body { padding: var(--s6); display: flex; flex-direction: column; gap: var(--s5); }
.fg { display: flex; flex-direction: column; gap: 8px; }
.fg > label { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: var(--s2); }
.fg > label .req { color: var(--brand); }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.hire-input, .hire-area, .hire-select { width: 100%; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--ink); font-family: var(--f-body); font-size: var(--t-md); transition: border-color .2s, box-shadow .2s; }
.hire-input:focus, .hire-area:focus, .hire-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); outline: none; }
.hire-area { resize: vertical; min-height: 130px; line-height: 1.6; }
.hire-select { appearance: none; cursor: pointer; padding-right: 32px; background-image: linear-gradient(45deg,transparent 50%,var(--ink-3) 50%),linear-gradient(135deg,var(--ink-3) 50%,transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px,5px 5px; background-repeat: no-repeat; }
.hire-count { font-family: var(--f-mono); font-size: 11px; color: var(--ink-4); text-align: right; }
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 99px; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-2); background: var(--bg-2); cursor: pointer; transition: all .2s var(--ease); user-select: none; }
.chip-opt:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.chip-opt.is-on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
.form-foot { padding: var(--s5) var(--s6); border-top: 1px solid var(--line); background: var(--surface-2); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.form-foot .note { font-family: var(--f-mono); font-size: 11px; color: var(--ink-4); max-width: 40ch; }
.form-error { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--bad); padding: 0 var(--s6) var(--s4); }
.hire-done { display: none; text-align: center; padding: var(--s9) var(--s6); }
.hire-done.is-on { display: block; }
.hire-done__ico { width: 76px; height: 76px; margin: 0 auto var(--s5); display: grid; place-items: center; border-radius: 50%; background: var(--brand-glow); border: 1px solid color-mix(in srgb,var(--brand) 40%,transparent); color: var(--brand); }
.hire-done__ico svg { width: 38px; height: 38px; }
.hire-done h2 { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 700; letter-spacing: -.03em; margin-bottom: var(--s3); }
.hire-done p { color: var(--ink-2); max-width: 46ch; margin: 0 auto var(--s5); }
canvas.confetti { position: fixed; inset: 0; z-index: 980; pointer-events: none; }

@media (max-width: 940px) { .hire-grid { grid-template-columns: 1fr; } .bot-panel { position: static; } .bot { width: 170px; } }
@media (max-width: 560px) { .fg-row { grid-template-columns: 1fr; } .form-foot { flex-direction: column; align-items: stretch; } }
