/* Solution assistant (/assistant, /lt/asistentas) — on top of /css/pages.css. */

.flow { width: min(880px, 100%); margin: 0 auto; display: grid; gap: 18px; }
.flow .panel-body { padding: 20px 22px 22px; }
[hidden] { display: none !important; }

/* form controls */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: 14px; color: var(--muted); }
.field label b { color: var(--warn); font-weight: 500; }
.input, .textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; font-size: 15.5px; line-height: 1.55;
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
}
.textarea { resize: vertical; min-height: 150px; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent-ring); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 16px; }
.chip {
  font-size: 13.5px; padding: 6px 12px; border-radius: 100px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.chip:hover { border-color: var(--accent-ring); background: var(--accent-soft); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.actions .btn-primary { padding: 13px 22px; }
.hint { font-size: 13px; color: var(--faint); margin: 10px 0 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 16px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
/* Honeypot: off-screen for people, still in the form for bots. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.msg { font-size: 14.5px; margin: 12px 0 0; }
.msg.err { color: var(--warn); }

/* thinking */
.thinking { padding: 6px 0 2px; }

/* ideas */
.understood {
  margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; font-size: 15.5px;
  background: var(--accent-soft); border: 1px solid var(--accent-ring);
}
.understood b { display: block; font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 4px; }
.understood.off { background: var(--surface-2); border-color: var(--border); }
.understood.off b { color: var(--muted); }
.sols { display: grid; gap: 14px; }
.sol { border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: var(--bg); animation: rise .4s ease both; }
.sol-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag-kind, .tag-cx { font-size: 12.5px; padding: 3px 10px; border-radius: 100px; }
.tag-kind { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.tag-cx { border: 1px solid var(--border); color: var(--muted); }
.sol h3 { margin: 0 0 10px; font-size: 19px; font-weight: 500; line-height: 1.3; }
.sol ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 5px; font-size: 15px; }
.sol ol li::marker { color: var(--accent); font-weight: 500; }
.sol-sys { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sol-sys span { font-size: 12.5px; padding: 3px 9px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.sol-benefit { margin: 0; font-size: 14.5px; color: var(--muted); }
.sol-benefit::before { content: "→ "; color: var(--accent); }
.sub-h { font-size: 15px; font-weight: 500; margin: 24px 0 10px; }
.cases { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.case { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); }
.case h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 500; }
.case p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.case span { font-size: 12.5px; color: var(--accent); }
.qs { margin: 0 0 12px; padding-left: 20px; font-size: 15px; display: grid; gap: 4px; }
.refine .textarea { min-height: 90px; }

/* email + booking */
.lead-note { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; }
.email-draft { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 18px; background: var(--bg); }
.email-draft .input { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; font-weight: 500; }
.email-draft .textarea { border: 0; border-radius: 0; background: transparent; min-height: 200px; resize: none; overflow: hidden; }
.email-draft .input:focus, .email-draft .textarea:focus { box-shadow: none; background: var(--accent-soft); }
.done-box {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid var(--accent-ring); font-size: 15.5px; animation: rise .4s ease both;
}
.done-box .ok { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.done-box .ok::before { content: ""; width: 10px; height: 5px; border: 2px solid currentColor; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
#cal-embed { margin-top: 16px; min-height: 0; border-radius: 14px; overflow: hidden; }
#cal-embed.on { min-height: 620px; }
.alt-link { font-size: 14px; color: var(--muted); }
.demo-link { text-align: center; color: var(--muted); margin: 36px 0 0; font-size: 15.5px; }
.demo-link a { color: var(--accent); text-decoration: none; }
.demo-link a:hover { text-decoration: underline; }

/* savings calculator */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.combo { display: flex; gap: 8px; }
.combo .input:first-child { flex: 1 1 90px; min-width: 0; }
.combo select.input { flex: 0 1 auto; width: auto; max-width: 60%; }
@media (max-width: 420px) { .combo { flex-direction: column; } .combo select.input { max-width: none; width: 100%; } }
select.input { cursor: pointer; }
.opt { color: var(--faint); }
.field label b#c-share-val { color: var(--accent); font-weight: 500; }
input[type="range"] { width: 100%; accent-color: var(--accent); margin: 6px 0 2px; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); margin: 6px 0 18px; }
.tile { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--bg); display: grid; gap: 2px; }
.tile span { font-size: 13px; color: var(--muted); }
.tile b { font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.tile small { font-size: 13px; color: var(--faint); }
.tile.hl { background: var(--accent-soft); border-color: var(--accent-ring); }
.tile.hl b { color: var(--accent); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 1fr auto; } .bar-row .bar { grid-column: 1 / -1; grid-row: 2; } }
.bar-label { color: var(--muted); }
.bar { height: 12px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--faint); transition: width .45s cubic-bezier(.22,.61,.36,1); }
.bar i.after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar-val { white-space: nowrap; font-weight: 500; }
