/* ================= drumul în 6 pași (pașii 3–6) ================= */
.journey.j6 { max-width: 1040px; }
.journey.j6 li { font-size: clamp(.72rem, 1vw, .9rem); }
.journey.j6 .jl { max-width: 11ch; text-align: center; line-height: 1.15; }
@media (max-width: 700px) {
  .journey.j6 .jn { width: 30px; height: 30px; font-size: .85rem; }
  .journey.j6 li + li::before { top: 14px; }
  .journey.j6 li:not(.is-now) .jl { display: none; }
  .journey.j6 .is-now .jl { position: absolute; top: 40px; white-space: nowrap; max-width: none; }
  .journey.j6 { padding-bottom: 26px; }
}

/* alegerea făcută anterior */
.theme-card.is-chosen { box-shadow: 0 0 0 5px var(--mustard), 0 16px 30px rgba(120, 80, 60, .16); }
.tc-chosen { position: absolute; top: 10px; left: 10px; padding: .25em .7em; border-radius: 999px; background: var(--ink); color: #fff; font-family: 'Fredoka', var(--f-body); font-weight: 600; font-size: .78rem; }

/* grile de 6 (stiluri, fonturi) */
.theme-grid.grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 1180px; }
@media (max-width: 900px) { .theme-grid.grid-3 { grid-template-columns: repeat(2, 1fr); } }
.tc-tall .tc-art { aspect-ratio: auto; }
.tc-tall .tc-art img { height: auto; }
.tc-desc { display: block; margin-top: -6px; padding: 0 14px 16px; text-align: center; font-size: clamp(.85rem, 1.1vw, .98rem); color: #5b3f37; }

/* pasul 5: fonturi */
.font-card { align-items: center; justify-content: center; gap: 10px; min-height: clamp(170px, 18vw, 230px); padding: 22px 14px; text-align: center; }
.font-book { width: clamp(52px, 5vw, 66px); height: auto; }
.font-name { font-family: var(--ff), var(--f-body); font-weight: var(--fw); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.1; color: #3d1d17; }
.font-sample { font-family: var(--ff), var(--f-body); font-weight: var(--fw); font-size: clamp(.95rem, 1.3vw, 1.12rem); color: #6a4a40; opacity: .9; }
.font-try { display: grid; justify-items: center; gap: 8px; margin: clamp(16px, 2.5vw, 26px) auto 0; max-width: 460px; }
.font-try label { font-weight: 700; }
.font-try input, .dt-card input, .dt-card select, .dt-card textarea {
  width: 100%; min-height: 50px; padding: .7em 1.1em; font: inherit; font-size: 1.02rem; color: var(--ink);
  background: #fff; border: 1.6px solid #e3d6c2; border-radius: 18px; transition: border-color .2s, box-shadow .2s;
}
.font-try input { text-align: center; border-radius: 999px; font-family: 'Fredoka', var(--f-body); font-size: 1.15rem; }
.font-try input:focus, .dt-card input:focus, .dt-card select:focus, .dt-card textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(246, 181, 50, .35); }

/* ================= pasul 6: configurează cartea ================= */
.dt-sec { padding: clamp(6px, 1.5vw, 16px) 0 clamp(30px, 5vw, 60px); }
.dt-wrap { max-width: 860px; }
.dt-card { margin-bottom: clamp(16px, 2.4vw, 24px); padding: clamp(20px, 3.4vw, 36px); background: rgba(255, 253, 248, .92); border-radius: 30px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .8), 0 14px 30px rgba(120, 80, 60, .1); }
.dt-h { font-family: 'Fredoka', var(--f-body); font-weight: 600; font-size: clamp(1.45rem, 2.6vw, 2rem); color: #3d1d17; margin-bottom: 14px; }
.dt-lead { margin: -6px 0 18px; color: #4a3b38; }
.dt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.fld { display: block; margin-bottom: 16px; }
.fld > span:first-child { display: block; margin-bottom: 7px; font-weight: 700; color: #3d1d17; }
.fld em { font-style: normal; font-weight: 500; color: var(--ink-3); font-size: .9em; }
.fld .req { color: var(--orange); }
.fld.bad input { border-color: #e2553a; box-shadow: 0 0 0 4px rgba(226, 85, 58, .15); }
.fld.half { max-width: 220px; }
.dt-card textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.dt-card select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1b1b' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat; padding-right: 44px; cursor: pointer; }

/* alegerile tale */
.choice-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choice-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.6px #efdcc6, 0 4px 10px rgba(120, 80, 60, .08); text-decoration: none; color: #3d1d17; font-family: 'Fredoka', var(--f-body); font-weight: 600; transition: transform .3s var(--ease-spring), box-shadow .2s; }
.choice-chip:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 0 0 2px var(--mustard), 0 8px 16px rgba(120, 80, 60, .12); }
.cc-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--mustard-2); }
.cc-ic img { width: 100%; height: 100%; object-fit: cover; }
.cc-font { font-size: 1.15rem; color: var(--orange); background: #fff1ea; }
.cc-edit { width: 18px; height: 18px; flex: none; }
.choice-chip.is-missing { background: transparent; box-shadow: none; outline: 1.6px dashed #d9c5ad; outline-offset: -1.6px; color: var(--orange); }
.choice-chip.is-missing .cc-ic { background: #fff; color: var(--orange); font-weight: 700; }

/* personaje */
.char-card { position: relative; margin: 0 0 18px; padding: clamp(18px, 3vw, 28px); padding-top: clamp(26px, 3.4vw, 34px); border: 1.6px solid #f1dcc4; border-radius: 26px; background: #fffaf3; min-width: 0; }
.char-head { display: flex; align-items: center; gap: 10px; padding: 0 10px; margin-left: -10px; font-family: 'Fredoka', var(--f-body); font-weight: 600; font-size: 1.2rem; color: #3d1d17; }
.char-num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--mustard); font-size: .95rem; }
.char-rm { margin-left: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.4px #ead6c0; cursor: pointer; font-size: .85rem; }
.char-rm:hover { background: #ffe1d8; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1.6px solid var(--orange); border-radius: 999px; background: #fff; color: var(--orange); font-weight: 700; font-size: 1rem; cursor: pointer; transition: background-color .2s, color .2s, transform .25s var(--ease-spring); }
.seg button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.seg button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.seg button:active { transform: scale(.96); }
.seg-sm button { min-height: 42px; padding: 0 16px; }
.char-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 4px; padding-top: 16px; border-top: 1.6px dashed #ecd8c2; }
.char-fields > .fld:first-child { grid-column: 1 / -1; }
.up-box { position: relative; display: grid; justify-items: center; gap: 8px; padding: 26px 18px; border: 2px dashed #d9bfa5; border-radius: 22px; background: #fff; color: #8a7a74; text-align: center; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s; }
.up-box:hover { border-color: var(--orange); background: #fff8f2; }
.up-box svg { width: 34px; height: 34px; fill: none; stroke: #8a7a74; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.up-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.up-prev { display: flex; align-items: center; gap: 14px; }
.up-prev img { width: 110px; height: 110px; object-fit: cover; border-radius: 20px; box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(0, 0, 0, .12); }
.up-del { min-height: 42px; padding: 0 16px; border: 1.6px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 700; cursor: pointer; }
.up-tip { display: flex; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #ffe9dc; color: #b1461d; font-weight: 600; font-size: .95rem; }
.up-i { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid currentColor; font-style: italic; font-weight: 800; font-size: .8rem; }
.up-tip details { display: inline; }
.up-tip summary { display: inline; cursor: pointer; text-decoration: underline; }
.up-tip ul { margin: 8px 0 0; padding-left: 18px; font-weight: 500; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: 18px; background: #e9f4fd; }
.sg-lbl { font-weight: 700; color: #2c5a80; }
.sg-btn { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px #b9daf3; font-weight: 700; color: #1b1b1b; cursor: pointer; }
.sg-btn:hover { box-shadow: 0 0 0 2px var(--cobalt); }
.add-char { width: 100%; min-height: 56px; border-color: var(--orange); color: var(--orange); }
.add-char:hover { background: var(--orange); color: #fff; }
.dt-submit { display: grid; justify-items: center; gap: 12px; margin-top: 8px; }
.form-err { padding: 12px 16px; border-radius: 16px; background: #ffe1d8; color: #9c2f14; font-weight: 700; text-align: center; }
.form-err a { color: inherit; }
.brief-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.brief-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; border-radius: 14px; background: #fff; }
.brief-list span { color: var(--ink-2); }
.brief-list b { text-align: right; }
.brief-note { font-size: .95rem; padding: 10px 14px; border-radius: 14px; background: #fde9b8; color: #3d1d17 !important; }
@media (max-width: 640px) {
  .dt-grid2, .char-fields { grid-template-columns: 1fr; }
  .fld.half { max-width: none; }
  .seg button { flex: 1; justify-content: center; padding: 0 10px; }
}
@media (max-width: 700px) { .journey.j6 .is-done a { padding: 8px; margin: -8px; min-width: 46px; min-height: 46px; place-items: center; } }
