/* Assistente de Inscrição — estilos específicos (usa styles.css como base) */

.wiz-hero { background: linear-gradient(180deg, var(--wine) 0%, var(--wine-dark) 100%); color: #fff; }
.wiz-hero .container { padding: 30px 20px; }
.wiz-hero h1 { margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.wiz-hero p { margin: 0; opacity: .95; max-width: 48rem; }
.btn-voltar {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--wine); font-weight: 700; font-size: 1rem;
  padding: 10px 18px; border-radius: 8px; text-decoration: none;
  margin-bottom: 16px; transition: transform .12s, box-shadow .12s;
}
.btn-voltar:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }

/* Faixa de status do prazo */
.deadline { border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; font-weight: 600; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.deadline.open   { background: var(--ok-bg);   border-color: #bfe0cc; color: var(--ok); }
.deadline.soon   { background: var(--warn-bg); border-color: #f0dcae; color: var(--warn); }
.deadline.closed { background: #fdecec;         border-color: #f2c2c2; color: #a12020; }

/* Layout: formulário + preview */
.wiz-layout { display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 30px; padding: 24px 0 60px; align-items: start; }
.wiz-layout > form { min-width: 0; }
@media (max-width: 980px) { .wiz-layout { grid-template-columns: minmax(0,1fr); } }

/* Blocos do formulário */
.fs { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 18px; background: #fff; min-width: 0; }
.fs > legend, .fs > .fs-title { font-weight: 700; color: var(--wine-dark); font-size: 1.15rem; padding: 0; margin: 0 0 4px; }
.fs .fs-help { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 16px; }
.field { grid-column: span 12; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
.field.c8 { grid-column: span 8; }
.field.c6 { grid-column: span 6; }
.field.c4 { grid-column: span 4; }
.field.c3 { grid-column: span 3; }
.field.c2 { grid-column: span 2; }
@media (max-width: 620px) { .field.c8, .field.c6, .field.c4, .field.c3, .field.c2 { grid-column: span 12; } }

/* alinha os inputs na base do campo — mesmo quando o rótulo ocupa 2 linhas,
   os campos da mesma linha ficam alinhados */
.field > input, .field > select, .field > textarea { margin-top: auto; }

.field label { font-weight: 600; font-size: .96rem; line-height: 1.25; }
.field .req { color: #a12020; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field select, .field textarea {
  font: inherit; padding: 11px 12px; border: 1px solid var(--border-2); border-radius: 10px; background: #fff; min-height: 46px; width: 100%;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-050); }
.field .hint { color: var(--muted); font-size: .85rem; }

/* Opções (radio/checkbox) em cartões clicáveis */
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 14px; cursor: pointer; min-height: 46px; background: #fff; }
.opt:hover { background: var(--surface); }
.opt input { width: 18px; height: 18px; accent-color: var(--wine); }
.opt.has-check { font-weight: 600; }

/* Preview ao vivo */
.preview-wrap { position: sticky; top: 16px; }
.preview-card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.preview-head { background: var(--wine-050); border-bottom: 1px solid var(--wine-100); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.preview-head strong { color: var(--wine-dark); }
.preview-doc { padding: 20px; font-size: .9rem; line-height: 1.5; max-height: 62vh; overflow: auto; }
.preview-doc h4 { margin: 16px 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--wine); border-bottom: 1px solid var(--border); padding-bottom: 3px; }
.preview-doc h4:first-child { margin-top: 0; }
.preview-doc .row { margin: 3px 0; }
.preview-doc .lbl { color: var(--muted); }
.preview-doc .val { font-weight: 600; }
.preview-doc .val.empty { font-weight: 400; color: #b9b0ac; font-style: italic; }
.preview-doc .chk { color: var(--ok); font-weight: 700; }

@media (max-width: 980px) {
  .preview-wrap { position: static; }
  .preview-doc { max-height: none; }
  .preview-toggle { display: inline-flex; }
}

/* Upload / checklist */
.doc-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.doc-row .meta { min-width: 0; }
@media (max-width: 560px) { .doc-row { grid-template-columns: 34px minmax(0,1fr); } .doc-row .file { grid-column: 2; } }
.doc-row:last-child { border-bottom: none; }
.doc-row .n { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--wine-dark); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.doc-row .meta .t { font-weight: 600; }
.doc-row .meta .d { color: var(--muted); font-size: .88rem; }
.doc-row.done .n { background: var(--ok); color: #fff; }
.doc-row .file { display: flex; align-items: center; gap: 8px; }
.doc-row input[type=file] { font: inherit; }
.doc-row .filechip { font-size: .85rem; color: var(--ok); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #a12020; }
.opt-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* Barra de envio */
.submit-bar { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); margin-top: 18px; }
.submit-bar .progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 10px 0 14px; }
.submit-bar .progress > i { display: block; height: 100%; background: var(--wine); width: 0; transition: width .3s ease; }

/* Mensagens */
.msg { border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; border: 1px solid; }
.msg.err { background: #fdecec; border-color: #f2c2c2; color: #a12020; }
.msg.ok  { background: var(--ok-bg); border-color: #bfe0cc; color: var(--ok); }
.msg ul { margin: 8px 0 0; padding-left: 1.2em; }

/* Tela de sucesso / protocolo */
.protocol { text-align: center; padding: 40px 24px; }
.protocol .big { font-size: 2rem; font-weight: 800; color: var(--wine-dark); letter-spacing: .04em; margin: 8px 0; }
.protocol .seal { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 12px; }

.hidden { display: none !important; }
