/* Asistentul cererii de pe pagina Contact (src/site/wizard.mjs, asistent.js). Cardul vine din subsol.css (.ft-card:
   albul, umbra, linia aurie, câmpurile formularului); aici sunt pașii: bara de progres cu pătratul mărcii, întrebarea
   (serif), opțiunile cu litera lor, rezumatul care se poate modifica. Fără JavaScript se vede doar formularul. */
.wz { --wz-line: color-mix(in srgb, var(--alera-navy) 14%, transparent); --wz-soft: color-mix(in srgb, var(--alera-text) 76%, #fff); display: flex; flex-direction: column; min-height: clamp(520px, 44vw, 600px); }
.wz:not(.is-js) .wz-step:not([data-step="contact"]), .wz:not(.is-js) .wz-top, .wz:not(.is-js) .wz-bar, .wz:not(.is-js) .wz-keys, .wz:not(.is-js) .wz-review { display: none; }
.wz.is-js .wz-step { display: none; }
/* Întrebările traseului într-o singură celulă: cea vizibilă deasupra, celelalte ascunse dar păstrându-și înălțimea. */
.wz.is-js .wz-steps { display: grid; }
.wz.is-js .wz-steps > .wz-step { display: block; grid-area: 1 / 1; visibility: hidden; }
.wz.is-js .wz-steps > .wz-step.is-on { visibility: visible; }
.wz.is-js .wz-steps > .wz-step.is-out, .wz[data-at-last] .wz-steps { display: none; }
.wz.is-js .wz-step.is-on { display: block; animation: wz-in .38s cubic-bezier(.2, .8, .2, 1) both; }
.wz.is-js .wz-step.is-on.is-back { animation-name: wz-back; }
@keyframes wz-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes wz-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.wz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; margin-bottom: 10px; }
.wz-back { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font: 500 14px/1.2 var(--font-sans); color: var(--alera-navy); }
.wz-back:hover span { text-decoration: underline; text-underline-offset: 3px; }
.wz-count { margin: 0 0 0 auto; font-size: 13px; color: var(--wz-soft); font-variant-numeric: tabular-nums; }
.wz-bar { position: relative; height: 3px; margin-bottom: clamp(20px, 2.2vw, 30px); background: var(--alera-crem); }
.wz-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--alera-navy); transition: width .5s cubic-bezier(.6, 0, .2, 1); }
.wz-bar i::after { content: ""; position: absolute; right: -4px; top: -3px; width: 9px; height: 9px; background: var(--alera-nisip); }

.wz-q { margin: 0 0 8px; font: 400 clamp(24px, 2.1vw, 31px)/1.2 var(--font-serif); letter-spacing: -.01em; color: var(--alera-navy); outline: none; }
.wz-hint { max-width: 52ch; margin: 0 0 18px; font-size: 14.5px; color: var(--wz-soft); }
.wz-q + .wz-opts, .wz-q + .wz-field { margin-top: 18px; }
.wz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wz-opts.is-list { grid-template-columns: 1fr; }
.wz-paths .wz-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.wz-opt { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; border: 1px solid var(--wz-line); background: #fff; font: 500 15px/1.3 var(--font-sans); color: var(--alera-navy); text-align: left; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.wz-opt:hover { border-color: var(--alera-navy); }
.wz-opt:active { transform: scale(.99); }
.wz-opt kbd { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--wz-line); font: 500 12px/1 var(--font-sans); color: var(--wz-soft); transition: inherit; }
.wz-opt span { min-width: 0; }
.wz-opt b { display: block; font-weight: 500; }
.wz-opt small { display: block; margin-top: 2px; font: 400 13px/1.4 var(--font-sans); color: var(--wz-soft); }
.wz-opt[aria-pressed="true"] { border-color: var(--alera-navy); background: var(--alera-navy); color: #fff; }
.wz-opt[aria-pressed="true"] kbd { border-color: var(--alera-nisip); background: var(--alera-nisip); color: var(--alera-navy); }
.wz-opt[aria-pressed="true"] small { color: rgba(255, 255, 255, .75); }
.wz-opts.is-multi .wz-opt kbd { border-radius: 0; }
.wz-field { display: flex; align-items: center; gap: 12px; }
.wz-input { flex: 1; min-width: 0; padding: 15px 16px; border: 1px solid var(--wz-line); background: #fcfbf8; font: 400 17px/1.3 var(--font-sans); color: var(--alera-navy); }
.wz-input:focus { border-color: var(--alera-navy); background: #fff; outline: none; }
.wz-field b { font: 400 20px/1 var(--font-serif); color: var(--alera-navy); }
.wz-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wz-suggest button { padding: 8px 13px; border: 1px solid var(--wz-line); background: #fff; font: 500 14px/1.2 var(--font-sans); color: var(--alera-navy); transition: background .2s, color .2s, border-color .2s; }
.wz-suggest button:hover { border-color: var(--alera-navy); }
.wz-suggest button[aria-pressed="true"] { border-color: var(--alera-navy); background: var(--alera-navy); color: #fff; }
.wz-actions { margin-top: 18px; }
.wz-next:disabled { opacity: .4; cursor: not-allowed; }

/* Ultimul pas: rezumatul (butoane mici, fiecare duce la întrebarea lui), cum și când te sunăm, formularul. */
.wz-review { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.wz-review button { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; max-width: 100%; padding: 6px 10px; border: 0; background: var(--alera-crem); font-size: 13px; line-height: 1.3; color: var(--alera-navy); text-align: left; transition: background .2s; }
.wz-review button span { color: var(--wz-soft); }
.wz-review button b { font-weight: 500; }
.wz-review button:hover { background: color-mix(in srgb, var(--alera-nisip) 35%, #fff); }
.wz-finals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.wz-final { margin-bottom: 14px; }
.wz [data-step="contact"] .al-field textarea { min-height: 88px; }
.wz-k { margin: 0 0 8px; font: 500 14px/1.3 var(--font-sans); color: var(--alera-navy); }
.wz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-chips button { padding: 8px 13px; border: 1px solid var(--wz-line); background: #fff; font: 500 14px/1.2 var(--font-sans); color: var(--alera-navy); transition: background .2s, color .2s; }
.wz-chips button[aria-pressed="true"] { border-color: var(--alera-navy); background: var(--alera-navy); color: #fff; }
.wz [data-step="contact"] .al-form { margin-top: 18px; }
/* Josul cardului: ce a spus omul până acum (butoane care duc la întrebare), telefonul și, la primul pas, tastele. */
.wz-foot { display: grid; gap: 16px; margin-top: auto; padding-top: 24px; }
.wz-sofar .wz-k { margin-bottom: 8px; font-size: 13px; color: var(--wz-soft); }
.wz-sofar.is-empty { visibility: hidden; }
.wz-sofar-list { align-content: flex-start; min-height: 64px; margin: 0; }
.wz-sofar-list button { padding: 6px 10px; }
.wz-foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-top: 16px; border-top: 1px solid var(--wz-line); }
.wz-alt { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 14px; color: var(--wz-soft); }
.wz-alt .ai { color: var(--alera-nisip); }
.wz-alt a { font-weight: 500; color: var(--alera-navy); text-decoration: underline; text-decoration-color: var(--alera-nisip); text-underline-offset: 4px; }
.wz-keys { margin: 0; font-size: 12.5px; color: var(--wz-soft); }
.wz[data-path] .wz-keys { display: none; }
@media (hover: none) { .wz-keys, .wz-opt kbd { display: none; } }
@media (max-width: 767px) {
  .wz { min-height: 0; }
  /* Pe telefon (o singură coloană), fiecare pas are înălțimea lui și rezumatul gol nu ține loc. */
  .wz.is-js .wz-steps { display: block; }
  .wz.is-js .wz-steps > .wz-step { display: none; visibility: visible; }
  .wz.is-js .wz-steps > .wz-step.is-on { display: block; }
  .wz-sofar.is-empty { display: none; }
  .wz-sofar-list { min-height: 0; }
  .wz-finals { grid-template-columns: 1fr; }
  .wz-opts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wz.is-js .wz-step.is-on { animation: none; }
  .wz-bar i { transition: none; }
}
