/* Gerador de Currículo — interface */
.acv-app, .acv-app * { box-sizing: border-box; }
.acv-app { max-width: 920px; margin: 0 auto; padding: 8px 0 40px; font-family: inherit; color: #1f2937; }
.acv-head h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.2; }
.acv-head p { margin: 0 0 18px; color: #4b5563; }

.acv-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; overflow-x: auto; }
.acv-steps li { flex: 1; min-width: 74px; text-align: center; font-size: 12px; padding: 7px 4px; border-radius: 8px; background: #eef1f5; color: #6b7280; white-space: nowrap; }
.acv-steps li.on { background: #2563eb; color: #fff; font-weight: 700; }
.acv-steps li.done { background: #dbeafe; color: #1d4ed8; }
.acv-steps li.go { cursor: pointer; background: #dbeafe; color: #1d4ed8; transition: background .15s, transform .1s; }
.acv-steps li.go:hover { background: #bfdbfe; transform: translateY(-1px); }
.acv-steps li.go:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.acv-steps li:not(.go):not(.on) { cursor: default; }

.acv-msg { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.acv-msg.ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.acv-msg[hidden], .acv-step[hidden], .acv-pix[hidden], .acv-pay[hidden], .acv-nav[hidden], .acv-steps[hidden] { display: none !important; }

.acv-step { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.acv-step h3 { margin: 0 0 14px; font-size: 20px; }
.acv-step h4 { margin: 22px 0 8px; font-size: 15px; color: #374151; }
.acv-note { color: #4b5563; font-size: 14px; margin: 10px 0; }

.acv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 14px; }
.acv-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; border: 0; padding: 0; margin: 0; min-width: 0; }
.acv-f.w2 { grid-column: span 2; }
.acv-f > span { font-weight: 600; color: #374151; }
.acv-f input[type=text], .acv-f input[type=email], .acv-f input[type=tel], .acv-f input[type=url], .acv-f input[type=month], .acv-f select, .acv-f textarea, .acv-add input {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; font-size: 15px; background: #fff; color: #111827;
}
.acv-f input:focus, .acv-f select:focus, .acv-f textarea:focus, .acv-add input:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
.acv-f.chk { flex-direction: row; align-items: center; gap: 8px; }
.acv-f.chk > span { font-weight: 500; }
.acv-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.acv-checks label { font-size: 14px; display: flex; gap: 6px; align-items: center; }

.acv-btn { appearance: none; border: 0; cursor: pointer; background: #2563eb; color: #fff; padding: 11px 20px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 15px; transition: filter .15s; }
.acv-btn:hover { filter: brightness(1.08); }
.acv-btn:disabled { opacity: .6; cursor: wait; }
.acv-btn.ghost { background: #eef2ff; color: #1d4ed8; }
.acv-btn.big { padding: 15px 26px; font-size: 17px; background: #059669; }
.acv-nav { display: flex; justify-content: space-between; margin-top: 18px; }

.acv-sug, .acv-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0; }
.acv-chip { border: 1px dashed #93c5fd; background: #eff6ff; color: #1d4ed8; padding: 6px 12px; border-radius: 20px; cursor: pointer; font: inherit; font-size: 14px; }
.acv-chips li { background: #2563eb; color: #fff; padding: 6px 8px 6px 14px; border-radius: 20px; font-size: 14px; }
.acv-chips li button { background: none; border: 0; color: #fff; cursor: pointer; margin-left: 4px; }
.acv-add { display: flex; gap: 8px; margin: 10px 0; }

.acv-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fafafa; }
.acv-card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.acv-x { border: 0; background: #fee2e2; color: #b91c1c; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; }

.acv-modelos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.acv-modelo { background: #fff; border: 2px solid #e5e7eb; border-radius: 12px; padding: 8px; cursor: pointer; text-align: center; font: inherit; }
.acv-modelo.on { border-color: #2563eb; box-shadow: 0 0 0 3px #bfdbfe; }
.acv-modelo strong { display: block; margin-top: 6px; }
.acv-preco-modelo { display: inline-block; margin-top: 4px; padding: 3px 12px; border-radius: 20px; background: #ecfdf5; color: #047857; font-weight: 800; font-size: 15px; }
.acv-modelo.on .acv-preco-modelo { background: #059669; color: #fff; }
.acv-thumb { display: block; position: relative; width: 100%; aspect-ratio: 794 / 1123; overflow: hidden; background: #f3f4f6; border: 1px solid #e5e7eb; pointer-events: none; }
.acv-thumb-in { display: block; position: absolute; top: 0; left: 0; width: 794px; transform-origin: top left; }

/* A4 escalado */
.acv-prev-wrap { position: relative; width: 100%; overflow: hidden; border: 1px solid #d1d5db; border-radius: 8px; background: #e5e7eb; }
.acv-prev-scale { width: 794px; transform-origin: top left; }

.acv-pay { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.acv-pix { margin-top: 20px; border: 2px solid #059669; border-radius: 14px; padding: 18px; background: #f0fdf4; }
.acv-pix-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.acv-pix canvas { background: #fff; border-radius: 10px; border: 1px solid #d1d5db; max-width: 100%; }
.acv-pix textarea { width: 100%; font: 12px/1.4 monospace; padding: 8px; border-radius: 8px; border: 1px solid #cbd5e1; margin-bottom: 8px; }
.acv-how { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }
.acv-wait { font-weight: 600; color: #047857; margin: 10px 0 0; }
.acv-wait.err { color: #b91c1c; }
.acv-ok { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; padding: 14px 16px; border-radius: 12px; font-weight: 700; margin-bottom: 14px; }
.acv-final-bar { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- proteção da prévia (somente enquanto a etapa 7 está aberta) ---------- */
.acv-protegido, .acv-protegido * { -webkit-user-select: none !important; user-select: none !important; -webkit-touch-callout: none !important; -webkit-user-drag: none; }
.acv-protegido img, .acv-protegido svg { pointer-events: none; }
.acv-protegido.acv-blur .acv-prev-scale, .acv-protegido.acv-blur-dev .acv-prev-scale { filter: blur(16px); transition: filter .1s; }
.acv-protegido.acv-blur::after, .acv-protegido.acv-blur-dev::after {
  content: "Prévia protegida — volte para esta janela e feche as ferramentas do navegador"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px; font-weight: 700; color: #111; background: rgba(255,255,255,.55); z-index: 99;
}

@media (max-width: 640px) {
  .acv-grid { grid-template-columns: 1fr; }
  .acv-f.w2 { grid-column: auto; }
  .acv-pix-grid { grid-template-columns: 1fr; }
  .acv-step { padding: 16px; }
  .acv-head h2 { font-size: 23px; }
}

/* ---------- impressão ---------- */
#acv-print-root { display: none; }
@media print {
  /* Enquanto a prévia está aberta: nada é impresso */
  body.acv-protect-on > * { display: none !important; }
  body.acv-protect-on::before { content: "A impressão está desativada na prévia. Pague para liberar o currículo em PDF."; display: block; padding: 60px 30px; font: 700 20px Arial, sans-serif; color: #111; }
  /* Versão final: imprime só o currículo */
  body.acv-printing > *:not(#acv-print-root) { display: none !important; }
  body.acv-printing #acv-print-root { display: block !important; }
  body.acv-printing { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body.acv-printing #acv-print-root .acv-page { transform: none; }
}
