@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(assets/fonts/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(assets/fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(assets/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ==========================================================================
   Chestionar de pornire — stiluri. Mobil întâi; fără resurse externe.
   ========================================================================== */
:root {
  --bg: #FBF7F0;
  --paper: #FFFDF9;
  --ink: #1F1A17;
  --muted: #62574E;
  --line: #E2D8C8;
  --accent: #8B1E2D;
  --accent-ink: #FFFFFF;
  --accent-soft: #F3E4E3;
  --ok: #2F6B3F;
  --radius: 10px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 var(--sans); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; }
p { margin: 0 0 .75rem; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
.sr, .mx-label.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* antet + progres */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 62rem; margin: 0 auto; padding: .7rem 1rem .6rem; }
.brand { font-family: var(--serif); font-size: .98rem; letter-spacing: .01em; margin: 0; }
.brand-sub { color: var(--muted); font-family: var(--sans); font-size: .85rem; }
.dot { color: var(--accent); }
.progress { margin-top: .45rem; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }
.where { display: flex; justify-content: space-between; gap: 1rem; margin: .35rem 0 0; font-size: .85rem; color: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: inherit; }

.shell { max-width: 62rem; margin: 0 auto; padding: 0 1rem; display: block; }
.steps { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin: .75rem 0 0; padding: .5rem; }
.steps ol { list-style: none; margin: 0; padding: 0; }
.steps button { width: 100%; text-align: left; background: none; border: 0; padding: .5rem .6rem; border-radius: 6px; cursor: pointer; display: flex; gap: .6rem; align-items: baseline; font-size: .95rem; }
.steps button:disabled { color: #8A7F74; cursor: default; }
.steps button:not(:disabled):hover { background: var(--accent-soft); }
.steps .num { font-family: var(--serif); min-width: 1.4rem; color: var(--muted); }
.steps [aria-current="step"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.steps .seen .num::after { content: "✓"; color: var(--ok); font-size: .8em; margin-left: .15rem; }

main { padding: 1.5rem 0 2rem; outline: none; min-width: 0; }
.step-title { font-size: clamp(1.7rem, 5.5vw, 2.4rem); margin-bottom: .6rem; }
.step-title:focus { outline: none; }
.intro { color: var(--muted); max-width: 40rem; margin-bottom: 1.5rem; }

/* câmpuri */
.field { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.field > label, .field > legend, .field > .lbl { display: block; font-weight: 600; margin-bottom: .3rem; padding: 0; }
.field.sub { margin-bottom: 1rem; }
.field.sub > label, .field.sub > legend { font-weight: 500; font-size: .95rem; }
.req { color: var(--accent); margin-left: .15rem; }
.help { color: var(--muted); font-size: .92rem; margin: 0 0 .5rem; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], select, textarea {
  width: 100%; padding: .65rem .8rem; background: var(--paper); border: 1px solid #CDBFAA; border-radius: 8px; min-height: 2.9rem;
}
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #7A6F65; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.error-msg { color: var(--accent); font-size: .92rem; margin: .35rem 0 0; font-weight: 500; }
.other { margin: .4rem 0 0 2rem; width: calc(100% - 2rem); }

.choices { display: grid; gap: .5rem; }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; line-height: 1.4; }
.choice:hover { border-color: #CDBFAA; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice input { appearance: none; -webkit-appearance: none; flex: none; width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; border: 1.5px solid #8A7B69; background: #fff; display: grid; place-content: center; }
.choice input[type=radio] { border-radius: 50%; }
.choice input[type=checkbox] { border-radius: 4px; }
.choice input:checked { background: var(--accent); border-color: var(--accent); }
.choice input[type=radio]:checked::after { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #fff; }
.choice input[type=checkbox]:checked::after { content: ""; width: .6rem; height: .32rem; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.choice input:focus-visible { outline: none; }
.choice:has(input:disabled) { opacity: .5; cursor: not-allowed; }
@media (min-width: 640px) { .choices.cols { grid-template-columns: repeat(2, 1fr); } }
.counter { font-size: .9rem; color: var(--muted); margin: .5rem 0 0; }
.counter.full { color: var(--accent); font-weight: 600; }
.clear { margin-top: .4rem; font-size: .88rem; }

.sample { display: block; font-size: 1.5rem; line-height: 1.3; margin-top: .15rem; }
.s-serif { font-family: var(--serif); }
.s-modern { font-family: var(--sans); letter-spacing: -.01em; }
.s-handwritten { font-family: "Caveat", "Segoe Script", cursive; font-size: 1.8rem; font-weight: 500; }

/* scală */
.scale { display: flex; gap: .4rem; flex-wrap: wrap; }
.scale .pt { flex: 1 1 3rem; }
.scale label { display: grid; place-items: center; border: 1px solid #CDBFAA; background: var(--paper); border-radius: 8px; min-height: 3rem; cursor: pointer; }
.scale label:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.scale label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale-ends { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--muted); margin-top: .3rem; }

/* slidere */
.slider-row { padding: .9rem 0; border-top: 1px solid var(--line); }
.slider-row:last-of-type { border-bottom: 1px solid var(--line); }
.slider-ends { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; margin-bottom: .3rem; }
.slider-ends span:last-child { text-align: right; }
.slider-row input[type=range] { width: 100%; accent-color: var(--accent); height: 2rem; margin: 0; }
.slider-row.untouched input[type=range] { opacity: .45; }
.slider-row .any { margin-top: .2rem; font-size: .9rem; color: var(--muted); display: flex; gap: .5rem; align-items: center; cursor: pointer; }
.slider-row .any input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.slider-row.is-any input[type=range] { opacity: .2; }

/* matrice */
.mx-head { display: none; }
.mx-row { border: 0; border-top: 1px solid var(--line); margin: 0; padding: .9rem 0; min-width: 0; }
.mx-row legend { padding: 0; font-weight: 600; float: left; width: 100%; margin-bottom: .1rem; }
.mx-row legend small { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.mx-row .mx-opts { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: .5rem; }
.mx-opt { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; font-size: .95rem; }
.mx-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mx-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.mx-opt input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; margin: 0; }
@media (min-width: 760px) {
  .mx-head { display: grid; grid-template-columns: 1fr repeat(4, 7rem); gap: .4rem; font-size: .85rem; color: var(--muted); padding: 0 0 .4rem; text-align: center; }
  .mx-row { display: grid; grid-template-columns: 1fr repeat(4, 7rem); gap: .4rem; align-items: center; }
  .mx-row legend { float: none; display: contents; }
  .mx-row .mx-name { grid-column: 1; }
  .mx-row .mx-opts { display: contents; }
  .mx-opt { justify-content: center; border: 0; background: none; padding: .4rem; }
  .mx-opt:has(input:checked) { background: var(--accent-soft); }
  .mx-opt input { width: 1.3rem; height: 1.3rem; }
  .mx-opt span:not(.sr) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* repetitoare */
.rep-row { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; position: relative; }
.rep-row .rep-del { position: absolute; top: .5rem; right: .5rem; }
.rep-row .rep-n { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; font-family: var(--serif); }
.rep-row .field:last-child { margin-bottom: 0; }

/* butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.9rem; padding: .6rem 1.25rem; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: #741824; border-color: #741824; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.small { min-height: 2.4rem; padding: .35rem .9rem; font-size: .92rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.x { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.4rem; line-height: 1; padding: .25rem .5rem; border-radius: 6px; }
.x:hover { color: var(--accent); background: var(--accent-soft); }
.nav { display: flex; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2.5rem; flex-wrap: wrap; }
.nav .spacer { flex: 1; }

/* culori */
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; align-items: center; }
.swatch { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: .25rem .1rem .25rem .35rem; }
.swatch input[type=color] { width: 2.4rem; height: 2.4rem; padding: 0; border: 0; background: none; cursor: pointer; }

/* pagebuilder */
.pcards { display: grid; gap: .6rem; }
.pcard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.pcard.on { border-color: #B98A90; }
.pcard-head { display: flex; gap: .8rem; align-items: center; padding: .75rem .9rem; }
.pcard-head .t { flex: 1; min-width: 0; }
.pcard-head strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.pcard-head small { color: var(--muted); }
.pcard-body { padding: .25rem .9rem 1rem; border-top: 1px dashed var(--line); padding-top: 1rem; }
.lock { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.switch { position: relative; flex: none; width: 3rem; height: 1.7rem; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; z-index: 2; }
.switch i { position: absolute; inset: 0; background: #C9BCA8; border-radius: 999px; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.7rem; height: calc(1.7rem - 6px); width: calc(1.7rem - 6px); border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(1.3rem); }
.switch input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
.sep-title { font-family: var(--serif); font-size: 1.05rem; margin: 1.5rem 0 .5rem; }

/* sloturi */
.slot-day { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: .6rem .8rem; margin: 0 0 .5rem; }
.slot-day legend { font-weight: 600; padding: 0 .3rem; text-transform: capitalize; }
.slot-opts { display: grid; grid-template-columns: 1fr; gap: .4rem; }
@media (min-width: 560px) { .slot-opts { grid-template-columns: repeat(3, 1fr); } }

/* upload */
.drop { display: block; border: 1.5px dashed #B6A68F; border-radius: var(--radius); background: var(--paper); padding: 1.25rem 1rem; text-align: center; cursor: pointer; color: var(--muted); }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.drop strong { color: var(--accent); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop small { display: block; margin-top: .25rem; }
.files { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .6rem; }
.file { display: grid; grid-template-columns: 4rem 1fr auto; gap: .2rem .8rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: .6rem; }
.file .th { width: 4rem; height: 4rem; border-radius: 6px; background: #EFE7D8; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); overflow: hidden; }
.file .th img { width: 100%; height: 100%; object-fit: cover; }
.file .meta { min-width: 0; }
.file .nm { font-size: .95rem; overflow-wrap: anywhere; }
.file .sz { color: var(--muted); font-size: .82rem; }
.file input[type=text] { grid-column: 1 / -1; min-height: 2.4rem; font-size: .92rem; }
.file progress { width: 100%; height: .5rem; accent-color: var(--accent); }
.file.err { border-color: var(--accent); }

/* recapitulare */
.rev-sec { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.rev-sec header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.rev-sec h3 { font-size: 1.2rem; }
.rev dl { margin: 0; display: grid; gap: .6rem; }
.rev dt { font-size: .88rem; color: var(--muted); }
.rev dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.rev .none { color: var(--muted); font-style: italic; }
.rev-files { margin: .3rem 0 0; padding-left: 1.1rem; font-size: .92rem; }
.meter { background: var(--accent-soft); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; }
details.gaps { margin: .5rem 0 1.5rem; color: var(--muted); font-size: .95rem; }
details.gaps summary { cursor: pointer; }
details.gaps ul { padding-left: 1.1rem; }
.consent { margin: 1.5rem 0 1rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: .75rem 1rem; margin: 1rem 0; }

/* bun venit + confirmare */
.how { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .6rem; counter-reset: how; }
.how li { counter-increment: how; display: flex; gap: .8rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.how li::before { content: counter(how); flex: none; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--serif); }
@media (min-width: 700px) { .how { grid-template-columns: repeat(3, 1fr); } }
.resume { border: 1px solid #B98A90; background: var(--accent-soft); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; }
.resume .row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.refno { font-family: var(--serif); font-size: clamp(1.4rem, 6vw, 2rem); letter-spacing: .04em; color: var(--accent); border: 1.5px solid var(--accent); border-radius: var(--radius); display: inline-block; padding: .4rem 1rem; margin: .5rem 0 1.5rem; }

.foot { max-width: 62rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 .4rem; }
.foot-small { font-size: .85rem; }
.noscript { padding: 1rem; text-align: center; }

/* desktop: pașii lângă conținut */
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; }
  .steps { display: block !important; position: sticky; top: 5.2rem; align-self: start; margin-top: 1.5rem; max-height: calc(100vh - 6.5rem); overflow: auto; }
  #steps-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* tipărire: doar copia răspunsurilor */
#print-area { display: none; }
@media print {
  body { background: #fff; color: #000; font-size: 11pt; overflow: visible; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  #print-area h1 { font-size: 20pt; margin-bottom: 4pt; }
  #print-area h2 { font-size: 14pt; margin: 14pt 0 4pt; border-bottom: 1px solid #999; padding-bottom: 2pt; break-after: avoid; }
  #print-area dt { font-size: 9pt; color: #444; }
  #print-area dd { margin: 0 0 6pt; white-space: pre-line; }
  #print-area dl { margin: 0; }
  #print-area .pr-item { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
