/* ============================================================
   QR Page Template — Formulário de criação (4 passos)
   ============================================================ */

.creator { max-width: 560px; margin: 40px auto 80px; padding-inline: var(--pad); }

/* progresso */
.progress { display: flex; gap: 8px; margin-bottom: 20px; }
.progress__step { flex: 1; height: 6px; border-radius: 999px; background: var(--cream-deep); transition: background .3s ease; }
.progress__step--done { background: var(--amber); }

/* reforço de preço no topo (fix Dia 8 #1) */
.creator__reassure {
  text-align: center; font-size: .9rem; color: var(--ink-soft);
  background: var(--cream-deep); border-radius: var(--radius-md);
  padding: 10px 16px; margin: 0 0 28px;
}
.creator__reassure strong { color: var(--ink); }

/* marcador de obrigatório (fix Dia 8 #2) */
.field__req { color: var(--amber-deep); font-weight: 600; font-size: .82rem; }
.field__hint { margin: 6px 2px 0; color: var(--ink-faint); font-size: .82rem; line-height: 1.45; }

/* aviso inline de erro (fix Dia 8 #2 — substitui alert nativo) */
.form-error {
  background: #FBEAE5; color: #9A3412;
  border: 1px solid #F0C0AE; border-radius: var(--radius-md);
  padding: 12px 16px; margin: 0 0 16px; font-size: .95rem; font-weight: 500;
  animation: fade .25s ease;
}

/* passo */
.form-step { display: none; animation: fade .4s ease; }
.form-step--active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.form-step__eyebrow { color: var(--amber-deep); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.form-step__title { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 8px 0 6px; }
.form-step__hint { color: var(--ink-soft); margin: 0 0 28px; }

/* campos */
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field input[type="date"],
.field input[type="time"],
.field textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-md);
  font-family: inherit; font-size: 1rem; background: var(--white); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(224,138,60,.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field__counter { text-align: right; font-size: .82rem; color: var(--ink-faint); margin-top: 6px; }

.checkbox { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--ink-soft); }
.checkbox input { width: 18px; height: 18px; accent-color: var(--amber); }

/* contador ao vivo dentro do form */
.live-counter { background: var(--cream-deep); border-radius: var(--radius-md); padding: 16px; text-align: center; margin-top: 16px; font-weight: 600; color: var(--amber-deep); }

/* upload de fotos */
.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: 36px 20px; text-align: center; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover { border-color: var(--amber); background: color-mix(in srgb, var(--amber-soft) 25%, transparent); }
.dropzone__icon { font-size: 2rem; }
.dropzone__text { font-weight: 600; margin: 8px 0 2px; }
.dropzone__hint { color: var(--ink-faint); font-size: .85rem; }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; display: grid; place-items: center; }

/* sugestões de tema (chips) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: .88rem; font-weight: 500; transition: all .15s ease; }
.chip:hover { border-color: var(--amber); background: var(--amber-soft); }

/* navegação */
.form-nav { display: flex; gap: 12px; margin-top: 30px; }
.form-nav .btn { flex: 1; }
.btn-back { background: var(--cream-deep); color: var(--ink); }
.btn-back:hover { background: var(--line); transform: translateY(-2px); }

/* passo final: checkout mock */
.summary { display: grid; gap: 10px; margin: 20px 0; }
.summary__row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary__row strong { color: var(--amber-deep); }
