/* Mais calmo que a página inicial: aqui a pessoa está preenchendo. */
body.brief-page::after { display: none; }
.brief-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 18px; }
.brief { padding-bottom: 90px; }

.steps-bar { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 6px 0 28px; }
.steps-bar li { position: relative; padding-top: 20px; font-size: .92rem; font-weight: 600; color: #6b627d; }
.steps-bar li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 4px; background: #D9DBEA; transition: background-color .3s; }
.steps-bar li.done, .steps-bar li.now { color: var(--berinjela); }
.steps-bar li.done::before { background: linear-gradient(180deg, #0000003d, #ffffff40 50%, #0000003d), var(--vime); }
.steps-bar li.now::before { background: linear-gradient(180deg, #0000003d, #ffffff40 50%, #0000003d), var(--azul); }

.brief-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.brief-cols > form { grid-column: 1; grid-row: 1; }
.box { background: #fff; border-radius: 26px; padding: clamp(20px, 3.6vw, 40px); box-shadow: 0 22px 54px #1e103312; }
[data-step] { display: flex; flex-direction: column; gap: 20px; }
[data-step] h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
[data-step] h1:focus { outline: none; }
.field em { font-style: normal; font-weight: 500; color: #6b627d; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; align-items: start; }
.chips.bad { outline: 2px solid #B3261E; outline-offset: 8px; border-radius: 14px; }

.piece-box { position: relative; border: 2px solid #E6E8F3; border-left: 12px solid var(--c); border-radius: 16px; padding: 14px 18px 18px; min-width: 0; }
.piece-box legend { float: left; width: calc(100% - 52px); font: 500 1rem/1.4 var(--titulo); }
/* lixeira: área de toque generosa, vermelho só no ícone e no destaque */
.take { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: none; border: 0; border-radius: 11px; color: #A41E17; transition: background-color .15s, transform .15s; }
.take:hover { background: #FDECEA; transform: translateY(-1px); }
.take:active { transform: scale(.92); }
.take svg { width: 20px; height: 20px; }
.piece-box .take { float: right; margin: -6px -8px 0 0; }
.piece-box .question { clear: both; padding-top: 8px; margin-bottom: 10px; font-weight: 600; }
.piece-box .options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.piece-box input[type=text] { width: 100%; min-height: 44px; padding: 9px 13px; border: 2px solid #E6E8F3; border-radius: 11px; }


.resume { background: #F3F0FB; border-radius: 18px; padding: 20px 22px; overflow-wrap: anywhere; }
.resume h2 { font-size: 1.05rem; margin-bottom: 6px; }
.resume p { margin-top: 8px; white-space: pre-line; }
.resume .edit { display: flex; flex-wrap: wrap; gap: 16px; font-size: .92rem; }

.wizard-acts { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.failure { background: #FDECEA; border: 2px solid #B3261E; border-radius: 18px; padding: 20px 22px; }
.failure p { margin: 6px 0 16px; }
.failure-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.failure textarea { width: 100%; margin-top: 10px; padding: 10px; }

/* campo-isca contra robôs */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.sheet { grid-column: 2; grid-row: 1; position: sticky; top: 20px; background: #FFF7E4; border-radius: 14px; padding: 22px; box-shadow: 0 14px 30px #1e10331f; }
.sheet summary { font: 500 1rem/1.4 var(--titulo); list-style: none; cursor: default; }
.sheet summary::-webkit-details-marker { display: none; }
.sheet dt { margin-top: 14px; font-size: .82rem; color: #6d5a38; }
.sheet dd { min-height: 28px; padding-bottom: 4px; font-weight: 700; border-bottom: 2px dashed #1e103330; overflow-wrap: anywhere; }

.sent { max-width: 640px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sent h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
/* depois do pedido: criar a senha da área do cliente (ou entrar) */
.account-box { display: grid; gap: 14px; width: 100%; padding: 22px; border: 2px solid var(--azul); border-radius: 20px; background: #F4F5FF; text-align: left; }
.account-box h2 { font: 500 1.15rem/1.3 var(--titulo); }
.account-box > p { color: #4d4463; }
.account-box .btn { justify-self: start; }
.sent-extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; color: #4d4463; }
.sent .ok { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 22px; background: var(--menta); font-size: 2.3rem; font-weight: 700; rotate: -6deg; }

@media (max-width: 899px) {
    .brief-cols { grid-template-columns: minmax(0, 1fr); }
    .brief-cols > form { grid-row: 2; }
    .sheet { grid-column: 1; position: static; padding: 14px 18px; }
    .sheet summary { cursor: pointer; display: flex; justify-content: space-between; }
    .sheet summary::after { content: 'mostrar'; font: 600 .85rem var(--texto); text-decoration: underline; }
    .sheet[open] summary::after { content: 'esconder'; }
}
@media (max-width: 640px) {
    .two { grid-template-columns: minmax(0, 1fr); }
    /* seis etapas não cabem com nome: no celular só a barra, e o "Etapa X de 6" diz onde está */
    .steps-bar li { font-size: 0; padding-top: 10px; }
    .wizard-acts .btn { flex: 1; }
}

/* a ficha avisa, de leve, o que acabou de mudar */
.sheet dd.changed { animation: changed .8s ease-out; }
@keyframes changed { from { background: #FFD66B; } }

.model-help { margin-top: 10px; color: #6b627d; font-size: .94rem; }

/* ---------- formulário mais simples: uma pergunta por bloco, respostas em cartões ---------- */
[data-step] { gap: 26px; }
.step-count { margin-bottom: -18px; color: #6b627d; font-size: .88rem; font-weight: 600; }
.box .lead { margin-top: -10px; color: #4d4463; font-size: 1.05rem; max-width: 60ch; }
.field > span { font-size: .98rem; }
.field-hint { display: block; margin: -2px 0 8px; color: #6b627d; font-size: .9rem; font-weight: 500; }
.field textarea { min-height: 0; }
.group { border: 0; min-width: 0; }
.group legend { margin-bottom: 10px; font-weight: 700; font-size: .98rem; }
.group .field-hint { margin-top: -4px; }
.group legend em, .field em { font-style: normal; font-weight: 500; color: #8a8199; font-size: .88em; }
.group.bad .choices { outline: 2px solid #B3261E; outline-offset: 6px; border-radius: 14px; }
.part { display: grid; gap: 12px; }
.part-title { font: 500 1.05rem/1.3 var(--titulo); }
.part-note { margin-bottom: 10px; color: #4d4463; font-weight: 600; }

/* cartão de escolha: rádio ou caixa de seleção de verdade, com cara de botão grande */
.choices { display: grid; gap: 10px; }
.choices.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* sem selecionar texto no toque duplo e sem pular no hover: o clique sempre cai no cartão */
.choice { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 2px solid var(--linha); border-radius: 16px; background: #fff; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: border-color .15s, background-color .15s; }
.choice:hover { border-color: #AEB4E8; }
.choice:active { background: #F4F5FF; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:focus-visible) { outline: 3px solid var(--azul); outline-offset: 3px; }
.choice:has(input:checked) { border-color: var(--azul); background: #EEF0FF; }
.choice-mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border: 2px solid #BFC3DB; border-radius: 50%; background: #fff; transition: background-color .15s, border-color .15s; }
.choice input[type=checkbox] ~ .choice-mark { border-radius: 7px; }
.choice:has(input:checked) .choice-mark { border-color: var(--azul); background: var(--azul); }
.choice:has(input:checked) .choice-mark::after { content: ''; width: 10px; height: 6px; margin-top: -3px; border: solid #fff; border-width: 0 0 2.5px 2.5px; rotate: -45deg; }
.choice-text { display: grid; gap: 3px; min-width: 0; line-height: 1.35; }
.choice-text strong { font-size: 1rem; }
.choice-text small { color: #6b627d; font-size: .9rem; }
/* peças: a cor de cada uma numa faixa à esquerda */
.piece-pick { border-left: 8px solid var(--c, var(--linha)); }
/* respostas curtas: etiquetas lado a lado */
.choices.compact { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.compact .choice { align-items: center; gap: 9px; padding: 9px 14px 9px 11px; border-radius: 99px; }
.choices.compact .choice-mark { width: 20px; height: 20px; margin: 0; }
.choices.compact .choice-text strong { font-size: .95rem; font-weight: 600; }
.choices.compact .choice:has(input:checked) .choice-text strong { font-weight: 700; }
.piece-boxes { display: grid; gap: 12px; }

/* hospedagem com a parceira */
.host-card { display: grid; gap: 12px; padding: 20px 22px; border: 2px solid #D8E7F5; border-radius: 18px; background: linear-gradient(180deg, #F2F8FD, #fff); }
.host-card img { width: 176px; height: auto; }
.host-card p { color: #4d4463; }
.host-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.host-perks li { display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px; border-radius: 99px; background: #fff; border: 1px solid #D8E7F5; font-size: .9rem; font-weight: 600; }
.host-perks li::before { content: '✓'; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1D9BE2; color: #fff; font-size: .7rem; font-weight: 800; }

/* revisão: a ficha completa, por partes, cada uma com "Mudar" */
.brief-cols.reviewing { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; }
.brief-cols.reviewing .sheet { display: none; }
.review-card { padding: 18px 20px; border: 2px solid #ECE6F7; border-radius: 18px; background: #FBFAFE; overflow-wrap: anywhere; }
.review-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.review-card h2 { font: 500 1.05rem/1.3 var(--titulo); }
.review-card dl > div { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 2px 16px; padding: 8px 0; border-top: 1px solid #ECE6F7; }
.review-card dt { color: #6b627d; font-size: .92rem; }
.review-card dd { font-weight: 600; white-space: pre-line; }
.consent { padding: 14px 16px; border-radius: 14px; background: var(--nevoa); }
.ready-pick { max-width: 420px; }
/* celular: um cartão por linha e a revisão em pilha (fica depois das regras acima, para valer) */
@media (max-width: 640px) {
    .choices.cols-2, .choices.cols-3 { grid-template-columns: minmax(0, 1fr); }
    .review-card dl > div { grid-template-columns: minmax(0, 1fr); }
    .review-card { padding: 16px; }
}
/* modelo pronto já escolhido: aparece marcado, sem perguntar de novo */
.ready-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; padding: 14px 16px; border: 2px solid var(--azul); border-radius: 16px; background: #EEF0FF; }
.ready-check { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 700; }
.ready-chosen p { flex: 1; min-width: 160px; display: grid; line-height: 1.35; }
.ready-chosen small { color: #6b627d; font-size: .85rem; }
.ready-chosen strong { font-size: 1.05rem; }

/* material da marca: link e PDF */
.material { border: 2px solid #E6E8F3; border-radius: 16px; padding: 4px 18px 18px; min-width: 0; }
.material legend { padding: 0 6px; margin-left: -6px; font: 500 1rem/1.4 var(--titulo); }
.material-help { margin: 6px 0 16px; color: #6b627d; font-size: .94rem; }
.pdf { margin-top: 14px; }
.pdf-drop, .pdf-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; border-radius: 14px; }
.pdf-drop { position: relative; padding: 14px 16px; border: 2px dashed #BFC3DB; cursor: pointer; transition: border-color .15s, background-color .15s; }
.pdf-drop:hover, .pdf.over .pdf-drop { border-color: var(--azul); background: #EEF0FF; }
/* o seletor nativo some da vista, mas continua alcançável pelo teclado */
.pdf-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pdf-drop:focus-within { outline: 3px solid var(--azul); outline-offset: 3px; }
.pdf-info { color: #6b627d; font-size: .92rem; }
/* nome e situação empilhados; a lixeira fica sempre à direita */
.pdf-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; min-height: 64px; padding: 10px 12px 10px 16px; border: 2px solid var(--azul); background: #EEF0FF; }
.pdf-name { grid-column: 1; font-weight: 700; overflow-wrap: anywhere; }
.pdf-file .pdf-info { grid-column: 1; }
.pdf-file .take { grid-column: 2; grid-row: 1 / span 2; }
.pdf .error { display: block; margin-top: 8px; }

/* cores da marca: uma amostra por cor */
.brand-colors { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.brand-color { display: flex; align-items: center; gap: 4px; padding: 5px 4px 5px 5px; border: 2px solid var(--linha); border-radius: 15px; background: #fff; transition: border-color .15s, background-color .15s; }
.brand-color.open { border-color: var(--azul); background: #EEF0FF; }
.brand-open { display: flex; align-items: center; gap: 10px; padding: 0 4px 0 0; border: 0; border-radius: 10px; background: none; }
.brand-swatch { width: 44px; height: 44px; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px #1e103333; }
.brand-code { min-width: 8ch; font-weight: 700; font-variant-numeric: tabular-nums; }
.brand-add { min-height: 58px; padding: 10px 18px; border: 2px dashed #BFC3DB; border-radius: 15px; background: none; font-weight: 700; cursor: pointer; transition: border-color .15s, background-color .15s; }
.brand-add:hover { border-color: var(--azul); background: #EEF0FF; }
.brand-tag { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
.brand-tag i { width: 16px; height: 16px; border-radius: 5px; background: var(--c); border: 1px solid #1e103333; }

.own-help { padding: 14px 16px; border-radius: 14px; background: #EEF0FF; font-size: .96rem; }
.material legend em { font: 500 .9rem var(--texto); color: #6b627d; }

/* seletor de cor da Korbify */
.cp-modal { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 24px; overflow: auto; background: #fff; color: var(--berinjela); box-shadow: 0 34px 80px #1e103373; }
.cp-modal[open] { animation: cp-in .24s cubic-bezier(.2, .9, .3, 1.15); }
.cp-modal::backdrop { background: #1e1033a6; backdrop-filter: blur(4px); }
/* as quatro fitas da marca */
.cp-modal::before { content: ''; display: block; height: 7px; background: linear-gradient(90deg, var(--vime) 0 25%, var(--coral) 25% 50%, var(--menta) 50% 75%, var(--lilas) 75%); }
html:has(.cp-modal[open]) { overflow: hidden; }
@keyframes cp-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.cp { padding: 16px 18px 18px; }
.cp-title { margin-bottom: 14px; font-size: 1.15rem; }
.cp-area { position: relative; height: 170px; margin: 0 2px 16px; border-radius: 14px; cursor: crosshair; touch-action: none; user-select: none;
    background: linear-gradient(to top, #000, #0000), linear-gradient(to right, #fff, var(--tom)); }
.cp-thumb { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #1e103366, 0 3px 10px #1e103366; pointer-events: none; }
.cp-step { margin-bottom: 8px; font-size: .9rem; font-weight: 700; }
.cp input.cp-hue { appearance: none; -webkit-appearance: none; width: 100%; height: 20px; min-height: 0; margin: 4px 0 20px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
    background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
.cp-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border: 3px solid #fff; border-radius: 50%; background: var(--tom, var(--berinjela)); box-shadow: 0 3px 10px #1e103366; }
.cp-hue::-moz-range-thumb { width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%; background: var(--tom, var(--berinjela)); box-shadow: 0 3px 10px #1e103366; }
.cp-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.cp-sample { width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px #1e103333; }
.cp-field { flex: 1 1 110px; display: grid; gap: 2px; }
.cp-field span { font-size: .82rem; font-weight: 700; }
.cp-field input.cp-code { width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid var(--linha); border-radius: 12px; background: #fff; font-weight: 700; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.cp-row .btn { min-height: 44px; }
.cp-done { margin-left: auto; }
@media (max-width: 640px) {
    .cp-modal { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .cp-modal[open] { animation: none; } }

.material-example { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; background: var(--nevoa); }
.material-example span { flex: 1 1 200px; font-size: .94rem; font-weight: 600; }
.material-example .btn { background: #fff; }
