/* ═════════ CONTACT · prima scânteie ═════════ */

/* ── antet: scânteia pleacă de la tine și aprinde RootIT ── */
.spark-hero {
  position: relative; overflow: hidden;
  min-height: min(680px, 84svh);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px;
  padding: calc(var(--topbar) + 40px) 6vw 56px;
  background: radial-gradient(ellipse at 75% 45%, #102a78 0%, #060b1e 60%, #03050f 100%);
  color: var(--cream);
}
.spark-copy .kicker { color: #6f9bff; }
.spark-copy h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.03; margin-bottom: 18px; }
.spark-copy h1 em { font-style: normal; color: #ffd27f; text-shadow: 0 0 30px rgba(255, 210, 127, .5); }
.spark-copy p { color: rgba(245,244,239,.75); font-size: clamp(17px, 1.4vw, 20px); max-width: 44ch; }
.spark-stage { position: relative; height: min(440px, 56svh); }
.spark-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spark-path .wire { fill: none; stroke: rgba(143,208,255,.28); stroke-width: 2.5; stroke-dasharray: 4 7; }
.spark-path .bolt { fill: none; stroke: #ffd27f; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 8px #ffd27f) drop-shadow(0 0 2px #fff); }
.you {
  position: absolute; left: 8%; bottom: 14%; width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; background: #f5f4ef; color: #060b1e; font: 700 18px var(--font-head);
  box-shadow: 0 0 0 8px rgba(245,244,239,.08), 0 0 40px rgba(255, 210, 127, .35);
}
.you::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255,210,127,.6); animation: you 2.8s ease-out infinite; }
@keyframes you { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.spark-logo {
  position: absolute; right: 6%; top: 12%; width: clamp(110px, 12vw, 170px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: radial-gradient(circle, #1f3f9a, #0b1a52 70%);
  box-shadow: 0 0 0 10px rgba(61,123,255,.1), 0 0 50px rgba(61,123,255,.5);
}
.spark-logo rootit-logo { width: 62%; --rootit-ink: #f5f4ef; --rootit-blue: #3d7bff; }
.spark-logo .flash { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(255,210,127,.9), 0 0 80px 20px rgba(255,210,127,.0); opacity: 0; }
.spark-logo.hit .flash { animation: hit .9s ease-out; }
@keyframes hit { 0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,210,127,.9), 0 0 80px 30px rgba(255,210,127,.7); } 100% { opacity: 0; box-shadow: 0 0 0 40px rgba(255,210,127,0), 0 0 80px 30px rgba(255,210,127,0); } }

/* ── conversația ── */
.chat-section { background: #f2f1ec; scroll-margin-top: var(--topbar); }
.chat-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.chat {
  display: grid; gap: 0; border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(1,4,15,.35); scroll-margin-top: calc(var(--topbar) + 16px);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--space); color: var(--cream); }
.chat-head rootit-logo { width: 38px; --rootit-ink: #f5f4ef; --rootit-blue: #3d7bff; }
.chat-head strong { display: block; font: 700 16px var(--font-head); }
.chat-head span { font-size: 13px; color: #6fdc8c; }
.chat-head span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6fdc8c; margin-right: 6px; vertical-align: 1px; }
.chat-log { display: grid; gap: 10px; padding: 22px 20px 8px; min-height: 220px; align-content: end; }
.msg { max-width: 82%; padding: 12px 15px; border-radius: 18px; font-size: 16px; line-height: 1.45; animation: msg .35s cubic-bezier(.22,1,.36,1) both; }
@keyframes msg { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg.bot { justify-self: start; background: #eceae3; border-bottom-left-radius: 6px; }
.msg.me { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.me button { all: unset; cursor: pointer; text-decoration: underline; opacity: .8; font-size: 12px; margin-left: 8px; }
.msg.typing { display: inline-flex; gap: 5px; padding: 15px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8a8a85; animation: dots 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.step { border: 0; margin: 0; padding: 12px 20px 4px; display: grid; gap: 10px; }
.step[hidden] { display: none; }
.step .field input, .step .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
.step .field textarea { min-height: 120px; resize: vertical; }
.step .field input:focus, .step .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,67,210,.14); }
.step .btn { justify-self: start; border: 0; cursor: pointer; }
.step .link, .chat-tools .link { all: unset; cursor: pointer; font-size: 14px; color: var(--muted); text-decoration: underline; justify-self: start; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; font: 500 15px/1 var(--font-body); padding: 11px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; transition: all .2s ease; }
.pick input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pick input:focus-visible + span { box-shadow: 0 0 0 4px rgba(0,67,210,.2); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.consent-row input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); flex: none; }
.chat-err { color: #d93a3f; font-size: 14px; padding: 0 20px; min-height: 1.4em; margin: 6px 0 0; }
.chat-tools { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px 18px; font-size: 13px; color: var(--muted); }
.chat.done .step, .chat.done .chat-tools, .chat.done .chat-err { display: none; }
.chat.at-start [data-back] { visibility: hidden; }

/* ── ce urmează ── */
.next h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; margin-bottom: 20px; }
.next-steps { list-style: none; margin: 0 0 24px; padding: 0 0 0 0; display: grid; gap: 22px; position: relative; counter-reset: n; }
.next-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(#3d7bff, #9fd4ff); transform-origin: top; animation: line 1.4s .3s cubic-bezier(.65,0,.35,1) both; }
@keyframes line { from { transform: scaleY(0); } }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; position: relative; }
.next-steps li::before { content: counter(n); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--space); color: #fff; font: 700 15px var(--font-head); }
.next-steps strong { font: 700 18px var(--font-head); align-self: end; }
.next-steps span { color: var(--muted); font-size: 15px; }
.mail-alt { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.mail-alt a { font-weight: 600; }
.faq-section { background: #ebe8df; }

@media (max-width: 900px) {
  .spark-hero { grid-template-columns: 1fr; min-height: auto; padding: calc(var(--topbar) + 16px) 18px 48px; gap: 8px; }
  .spark-stage { order: -1; height: 240px; }
  .you { width: 58px; height: 58px; font-size: 15px; left: 4%; bottom: 8%; }
  .spark-logo { width: 104px; right: 4%; top: 6%; }
  .chat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .msg { max-width: 90%; font-size: 15px; }
  .step .btn { justify-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .you::after, .next-steps::before, .msg, .msg.typing i { animation: none; }
}

/* capcană pentru roboți: câmp invizibil pentru oameni */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chat.sending button[type="submit"] { opacity: .6; pointer-events: none; }
.consent-note { margin: 2px 0 0 30px; font-size: 13px; line-height: 1.45; color: var(--muted, #5b6170); }
