/* UPLINE — chestionarul (/start/) și formularele de contact. */

.qz-wrap { padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); background: var(--bg-soft); min-height: calc(100vh - 72px); }
.qz-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .qz-grid { grid-template-columns: 1fr; } .qz-intro .lead, .qz-promise { display: none; } .qz-intro h1 { font-size: 1.9rem; margin-bottom: 0; } }
.qz-intro { position: sticky; top: 100px; }
@media (max-width: 960px) { .qz-intro { position: static; } }
.qz-intro h1 { font-size: clamp(2rem, 4vw, 3rem); }
.qz-promise { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; color: var(--ink-2); }
.qz-promise li { display: flex; gap: 10px; align-items: center; }

.qz { background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); padding: clamp(22px, 3.4vw, 40px); position: relative; overflow: hidden; }
.qz-progress { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--bg-warm); }
.qz-progress i { display: block; height: 100%; width: 5%; background: var(--grad); transition: width .35s ease; border-radius: 0 4px 4px 0; }
.qz-count { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 4px 0 14px; min-height: 1.2em; }

.q { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .q[hidden] { display: none; }
.q-title { font: 700 clamp(1.45rem, 2.6vw, 1.9rem)/1.2 var(--font-display); letter-spacing: -.02em; padding: 0; margin: 0 0 8px; }
.q-hint { color: var(--muted); margin: 0 0 22px; }
.q-sub { font-weight: 600; margin: 26px 0 12px; }
@media (prefers-reduced-motion: no-preference) { .q.is-in { animation: qin .35s ease both; } @keyframes qin { from { opacity: 0; transform: translateX(14px); } } }

/* variantele de răspuns */
.ch { display: grid; gap: 10px; }
.ch-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ch-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ch-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ch-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 640px) { .ch-2, .ch-3 { grid-template-columns: 1fr; } .ch-4, .ch-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ch-sm.ch-3 { grid-template-columns: 1fr; } }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt > span { display: flex; flex-direction: column; gap: 2px; min-height: 64px; justify-content: center; padding: 14px 16px 14px 48px; border: 2px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .15s, background-color .15s, box-shadow .15s; position: relative; height: 100%; }
.opt > span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid #c9c1b2; border-radius: 50%; background: #fff; transition: all .15s; }
.opt input[type="checkbox"] + span::before { border-radius: 6px; }
.opt b { font-weight: 600; }
.opt small { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.opt:hover > span { border-color: #cdbfa6; }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px rgba(209,0,74,.08); }
.opt input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.opt input[type="checkbox"]:checked + span::before { box-shadow: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.opt input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.opt-c > span { padding: 12px 12px 12px 42px; min-height: 52px; font-size: .95rem; }
.opt-c > span::before { left: 13px; width: 18px; height: 18px; margin-top: -9px; }

/* câmpuri */
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .lf-row { grid-template-columns: 1fr; } }
.lf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.lf-field label { font-weight: 600; font-size: .95rem; }
.lf-field small { font-weight: 400; color: var(--muted); }
.lf input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .lf textarea, .lf select { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 13px 14px; min-height: 52px; transition: border-color .15s; -webkit-appearance: none; appearance: none; }
.lf select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23232222' stroke-width='2'/%3E%3C/svg%3E") right 14px center/16px no-repeat; padding-right: 40px; }
.lf textarea { resize: vertical; min-height: 80px; }
.lf input:focus, .lf textarea:focus, .lf select:focus { outline: none; border-color: var(--ink); }
.lf ::placeholder { color: #9a948b; }
.lf .is-bad { border-color: var(--accent) !important; }
.ch + .lf-field { margin-top: 22px; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .92rem; color: var(--ink-2); margin: 8px 0 18px; cursor: pointer; }
.lf-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.lf-error { background: var(--accent-soft); color: var(--accent-dark); border-radius: 12px; padding: 12px 14px; font-size: .95rem; margin: 14px 0; }
[data-when] { display: none; }
[data-when].is-on { display: flex; }

.qz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.qz-nav [data-quiz-next] { margin-left: auto; min-width: 180px; }
.qz-nav .btn[disabled] { opacity: .6; cursor: progress; }

/* venitul dorit */
.venit-box { background: var(--bg-soft); border-radius: 18px; padding: 20px 22px; }
.venit-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.est { margin-top: 16px; font-size: .95rem; color: var(--ink-2); }
.est table { font-size: .92rem; margin: 10px 0 6px; background: #fff; border-radius: 12px; overflow: hidden; }
.est td { padding: 8px 12px; }
.est td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.est .note { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }

/* confirmarea */
.lf-done { text-align: left; }
.lf-done:focus { outline: none; }
.lf-done-mark { display: block; width: 56px; height: 56px; border-radius: 50%; background: #e8f5ee; position: relative; margin-bottom: 18px; }
.lf-done-mark::after { content: ""; position: absolute; left: 20px; top: 13px; width: 13px; height: 24px; border: solid var(--ok); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.lf-done h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.lf-done h3 { margin-top: 26px; font-size: 1.1rem; }
.done-sum { background: var(--bg-soft); border-radius: 16px; padding: 16px 18px; margin: 18px 0; }
.done-sum dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .95rem; }
.done-sum dt { color: var(--muted); }
.done-sum dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .done-sum dl { grid-template-columns: 1fr; } .done-sum dd { margin-bottom: 6px; } }
.qz-status { margin: 32px 0 0; max-width: 100%; }
@media (max-width: 960px) { .qz-status { display: none; } }

/* mobil: chestionarul începe imediat sub titlu, butoanele încap pe orice lățime */
@media (max-width: 960px) {
  .qz-wrap { padding-top: 18px; }
  .qz-intro .crumbs, .qz-intro .eyebrow, .qz-promise { display: none; }
  .qz-intro h1 { font-size: 1.6rem; margin: 0 0 4px; }
  .qz-grid { gap: 14px; }
}
@media (max-width: 560px) {
  .qz { padding: 20px 16px 18px; border-radius: 20px; }
  .q-title { font-size: 1.35rem; }
  .q-hint { margin-bottom: 16px; }
  .qz-nav { gap: 10px; margin-top: 20px; padding-top: 16px; }
  .qz-nav .btn { padding: 12px 16px; }
  .qz-nav [data-quiz-next] { min-width: 0; flex: 1; }
  .qz-nav [data-quiz-back] { flex: none; }
  .opt > span { min-height: 56px; padding: 12px 12px 12px 44px; }
  .venit-box { padding: 16px; }
}
