/* Layout móvel por etapas da abertura própria (TF-059 / DEC-297).

   O formulário só é apresentado na shell móvel (até 1000 px); a partir de
   1001 px a tela mostra a orientação de acesso pelo celular. O endpoint, o
   Form e a validação continuam os mesmos. */

.wizard-desktop { display: none; }
.wizard-mobile { display: block; }

@media (min-width: 1001px) {
  .wizard-mobile { display: none; }
  .wizard-desktop { display: block; }
}

/* Cabeçalho e progresso */
.wizard-head { margin-bottom: 16px; padding: 20px 18px; border-radius: 16px; background: var(--green); color: #fff; }
.wizard-head__context { margin: 0; font-size: 0.8125rem; letter-spacing: 0.04em; opacity: 0.9; }
.wizard-head h1 { margin: 6px 0 0; color: #fff; font-size: 1.6rem; line-height: 1.2; }
.wizard-head__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; font-size: 0.9375rem; }
.wizard-head__meta span:first-child { font-weight: 700; overflow-wrap: anywhere; }
.wizard-head__meta span:last-child { white-space: nowrap; }

.wizard-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 0 0 18px; padding: 0; list-style: none; }
.wizard-progress__item { display: grid; gap: 5px; min-width: 0; }
.wizard-progress__bar { display: block; height: 6px; border-radius: 999px; background: var(--line); }
.wizard-progress__item.is-current .wizard-progress__bar { background: var(--green); }
.wizard-progress__label { color: var(--muted); font-size: 0.65rem; line-height: 1.25; overflow-wrap: anywhere; }
.wizard-progress__item.is-current .wizard-progress__label { color: var(--green); font-weight: 750; }

/* Cartões das etapas */
.wizard-card { padding: 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.wizard-card h2 { margin: 0; font-size: 1.2rem; }
.wizard-card__help { margin: 6px 0 16px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.wizard-card h2 + .wizard-card__help { margin-top: 6px; }
.wizard-static { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wizard-static span { color: var(--muted); font-size: 0.875rem; }
.wizard-static strong { font-size: 0.9375rem; text-align: right; overflow-wrap: anywhere; }

/* Campos dentro do cartão */
.wizard-form .wizard-card .field { margin-bottom: 16px; }
.wizard-form .wizard-card .field:last-child { margin-bottom: 0; }
.wizard-form .wizard-card fieldset { margin: 16px 0 0; padding: 0; border: 0; }
.wizard-form .wizard-card legend { padding: 0; font-size: 1rem; font-weight: 700; }
.wizard-form .wizard-card fieldset p { margin: 6px 0 12px; color: var(--muted); font-size: 0.875rem; }

/* Ações */
.wizard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.wizard-actions button { margin-top: 0; min-height: 48px; padding: 10px 12px; font-size: 0.9375rem; }
.wizard-actions .secondary-button { margin-top: 0; }

/* Revisão */
.wizard-review-block { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.wizard-review-block:first-of-type { border-top: 0; }
.wizard-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wizard-review-head h3 { margin: 0; font-size: 1rem; }
.wizard-review-head .text-btn { width: auto; min-height: 40px; margin: 0; padding: 4px 6px; border: 0; background: none; color: var(--green); font-weight: 700; text-decoration: underline; }
.wizard-review-block .summary-list { margin: 10px 0 0; }
.wizard-cancel { margin: 18px 0 0; text-align: center; }
.wizard-cancel a { color: var(--muted); }

/* Fotos */
.wizard-form .photo-actions { grid-template-columns: 1fr 1fr; }
.wizard-form .photo-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; margin-top: 0; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--green); font-weight: 700; }
.wizard-form .photo-choice .icon { width: 28px; height: 28px; }
.wizard-form .photo-actions { margin-bottom: 12px; }

/* Orientação no desktop */
.wizard-desktop__card { max-width: 620px; padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.wizard-desktop__card h2 { margin: 4px 0 0; font-size: 1.6rem; }
.wizard-desktop__card p { margin: 10px 0 0; max-width: 58ch; }
.wizard-desktop__card .button { display: inline-flex; width: auto; margin-top: 20px; padding-inline: 18px; }
