/* Formularul conversațional · o întrebare pe ecran */

.talk { position: relative; min-height: calc(100svh - 76px); display: flex; flex-direction: column; }
.talk-progress { height: 2px; background: var(--line); }
.talk-progress span { display: block; height: 100%; width: 0; background: var(--pink-deep); transition: width .4s var(--ease); }

#lead-form {
  flex: 1; width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter);
  padding-block: clamp(3rem, 10vh, 7rem) 3rem; display: flex; flex-direction: column;
}

.step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.step.is-active { display: grid; gap: 1.25rem; animation: stepIn .28s var(--ease) both; }
.step.is-back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

.q {
  display: block; font-family: var(--serif); font-weight: 400; color: var(--burgundy);
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); line-height: 1.15; letter-spacing: 0; padding: 0; margin: 0 0 .25rem; text-wrap: balance;
}
legend.q { float: left; width: 100%; margin-bottom: 1.25rem; }
legend.q + * { clear: both; }
.help { color: var(--muted); max-width: 34rem; }
.greet { font-family: var(--italic); font-style: italic; font-size: 1.4rem; color: var(--pink-deep); filter: brightness(.8); margin: 0; }

.field {
  width: 100%; font: inherit; font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0;
  padding: .6rem 0; transition: border-color .25s var(--ease);
}
.field::placeholder { color: #B3A6A6; }
.field:focus { outline: none; border-bottom-color: var(--burgundy); }
.field-sm { font-size: var(--fs-lg); }
.area { resize: vertical; min-height: 7rem; line-height: 1.5; font-size: var(--fs-lg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; background: var(--paper); }
.area:focus { border-color: var(--burgundy); }
.field[aria-invalid="true"] { border-color: #A0484F; }

.sub-label { font-size: var(--fs-sm); color: var(--muted); margin-top: .75rem; }
.sub-label span { opacity: .8; }

.choices { display: grid; gap: .75rem; }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; padding: 1.05rem 1.35rem 1.05rem 3.2rem; border: 1px solid var(--line); border-radius: var(--r-small);
  background: var(--paper); font-size: var(--fs-base); line-height: 1.35; position: relative;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.choice span::before {
  content: ""; position: absolute; left: 1.2rem; top: 1.35rem; width: 1rem; height: 1rem; border: 1.5px solid var(--pink-deep); border-radius: 50%;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.multi .choice span::before { border-radius: 3px; }
.choice span small { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: .2rem; }
.choice:hover span { border-color: var(--pink-deep); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice input:checked + span { border-color: var(--burgundy); background: var(--pink-soft); }
.choice input:checked + span::before { background: var(--burgundy); border-color: var(--burgundy); box-shadow: inset 0 0 0 3px var(--pink-soft); }

.reveal-field { display: grid; gap: .25rem; animation: stepIn .25s var(--ease) both; }

.consent { display: grid; gap: .75rem; margin-top: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; line-height: 1.5; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--burgundy); flex: none; }
.check a { color: var(--burgundy); }

.done-line { font-family: var(--italic); font-style: italic; font-size: 1.5rem; color: var(--burgundy); margin-top: .5rem; }

.err { color: #A0484F; font-size: var(--fs-sm); min-height: 0; margin: 0; }
.err:empty { display: none; }

.step-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1rem; }
.step-actions.col { flex-direction: column; align-items: flex-start; }
.hint { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .02em; }
.skip-btn { background: none; border: 0; font: inherit; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.skip-btn:hover { color: var(--burgundy); }

.talk-nav { margin-top: auto; padding-top: 3rem; }
.back-btn { background: none; border: 0; font: inherit; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; padding: .5rem 0; }
.back-btn:hover { color: var(--burgundy); }

.btn[disabled] { opacity: .6; cursor: progress; }

.thanks .q { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.demo-note { font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.5rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
  #lead-form { padding-block: 2.25rem 1.5rem; }
  .step-actions .btn { width: 100%; justify-content: center; }
  .hint { display: none; }
  .choice span { font-size: var(--fs-base); }
}

/* ==========================================================
   V9 · formular mai viu, fără spațiu gol; ecran de mulțumire bogat
   ========================================================== */
.talk { min-height: 0; }
#lead-form { flex: none; padding-block: clamp(2.5rem, 7vh, 5rem) clamp(3rem, 8vh, 5rem); max-width: 720px; }
.talk-nav { margin-top: 1.5rem; padding-top: 0; }
.talk::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 40% at 90% 5%, rgba(246, 222, 224, .7), transparent 70%),
    radial-gradient(45% 35% at 0% 70%, rgba(248, 228, 226, .55), transparent 70%);
}
.talk-progress { height: 3px; background: #F2E2E2; }
.talk-progress span { background: linear-gradient(90deg, #C98F95, var(--wine, #5A0B1C)); }
.q em { font-style: italic; color: var(--wine, #5A0B1C); }
legend.q, label.q { color: var(--ink); }

/* întrebările stau pe o foaie albă, ca o carte poștală */
.step.is-active:not([data-step="gata"]) {
  background: #FFFFFF; border: 1px solid #F1E2E2; border-radius: var(--r-card);
  padding: clamp(1.75rem, 5vw, 3rem);
  box-shadow: 0 40px 70px -45px rgba(90, 11, 28, .28);
}

.intro-chips { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.intro-chips li { font-size: .88rem; padding: .45rem 1rem; border-radius: 999px; background: #FBF1F1; border: 1px solid #F0DADB; color: var(--ink); }
.intro-chips b { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: var(--wine, #5A0B1C); margin-right: .2rem; }

.after-peek { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed #EBD3D4; }
.after-peek .k, .next .k { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: #8E4F57; font-weight: 500; margin-bottom: .8rem; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.mini-steps li { display: flex; align-items: center; gap: .75rem; font-size: .92rem; color: var(--text); }
.mini-steps span { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--wine, #5A0B1C); color: #FFF8F5; flex: none; }

/* mulțumesc: card burgundy, timeline, WhatsApp */
.thanks.is-active { display: grid; gap: 1.25rem; }
.thanks-card {
  position: relative; overflow: hidden; border-radius: var(--r-card); padding: clamp(2rem, 6vw, 3.25rem);
  background: radial-gradient(70% 80% at 15% 0%, #8E2336, transparent 70%), linear-gradient(160deg, #5A0B1C, #3A0610);
  color: #FFF8F5; box-shadow: 0 50px 80px -40px rgba(90, 11, 28, .55);
  animation: rise .9s var(--ease-out, ease) both;
}
.thanks-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 215, 210, .18), transparent 70%); }
.thanks-card .eyebrow { color: #F2C9C2; }
.thanks-card .eyebrow::before { background: #F2C9C2; }
.thanks-card .q { color: #FFF8F5; font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); margin: 1rem 0 1.1rem; }
.thanks-card .q em { color: #F6D2CB; }
.thanks-card .lead { color: rgba(255, 243, 240, .92); max-width: 34rem; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.next { background: #FFFFFF; border: 1px solid #F1E2E2; border-radius: var(--r-card); padding: clamp(1.5rem, 5vw, 2.5rem); animation: rise .9s .15s var(--ease-out, ease) both; }
.timeline { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem; position: relative; padding-bottom: 1.25rem; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 1.1rem; top: 2.2rem; bottom: .2rem; width: 1px; background: #EBD3D4; }
.timeline .dot { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; border: 1px solid #E5C5C8; color: var(--wine, #5A0B1C); background: #FFF8F7; }
.timeline .done .dot { background: var(--wine, #5A0B1C); color: #FFF8F5; border-color: transparent; }
.timeline b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--ink); line-height: 1.3; margin-top: .2rem; }
.timeline p { font-size: .92rem; color: var(--text); margin-top: .2rem; }

.wa-card {
  border-radius: var(--r-card); padding: clamp(1.5rem, 5vw, 2.25rem); display: grid; gap: 1rem;
  background: linear-gradient(160deg, #FFFFFF, #FBF0F0); border: 1px solid #EFD9DA;
  animation: rise .9s .3s var(--ease-out, ease) both;
}
.wa-head { display: flex; gap: .9rem; align-items: flex-start; }
.wa-icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--wine, #5A0B1C); color: #FFF8F5; flex: none; }
.wa-head b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--ink); line-height: 1.25; }
.wa-head p { font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.bubble {
  position: relative; justify-self: start; max-width: 30rem; background: #FFFFFF; border: 1px solid #EAD6D7;
  border-radius: var(--r-card) 18px 18px 4px; padding: .9rem 1.1rem; font-size: .95rem; line-height: 1.5; color: var(--ink);
  box-shadow: 0 12px 30px -20px rgba(90, 11, 28, .35);
}
.btn-wa { justify-self: start; }
.thanks .demo-note { border-top: 0; margin-top: 0; }

@media (max-width: 600px) {
  #lead-form { padding-inline: 12px; }
  .step.is-active:not([data-step="gata"]) { padding: 1.5rem 1.25rem; border-radius: var(--r-card); }
  .btn-wa, .next .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .thanks-card, .next, .wa-card { animation: none; } }

/* V11: formular pe sistemul nou */
:root { --radius: 3px; }
.q { font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 1.5rem + 2vw, 3rem); line-height: 1.1; }
.greet, .done-line { font-family: var(--serif); font-size: 1.5rem; color: var(--wine-ink); }
.step.is-active:not([data-step="gata"]) { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: none; }
.choice span { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-small); }
.choice:hover span { border-color: var(--line-2); transform: translateX(3px); }
.choice input:checked + span { background: #FDF6F6; border-color: var(--wine-ink); }
.choice input:checked + span::before { background: var(--wine); border-color: var(--wine); }
.talk-progress span { background: linear-gradient(90deg, #E7C3C7, var(--wine-2), var(--wine)); }
.talk::before { background: none; }
.thanks-card { background: radial-gradient(70% 80% at 15% 0%, var(--wine-2), transparent 70%), linear-gradient(160deg, var(--wine), var(--wine-3)); }
.next, .wa-card { background: #FFFFFF; border: 1px solid var(--line); box-shadow: none; }
.timeline b, .wa-head b { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.wa-icon { background: var(--wine); }

/* titlul întrebării stă în interiorul casetei, nu pe margine */
fieldset.step { min-width: 0; }
fieldset.step.is-active { padding-top: clamp(1.75rem, 5vw, 3rem) !important; }
fieldset.step > legend.q { float: left; width: 100%; padding: 0; margin: 0 0 1.25rem; }
fieldset.step > legend.q + * { clear: both; }
