:root {
  --navy: #070F1E;
  --blue: #2563EB;
  --blue-light: #60A5FA;
  --ok: #16A34A;
  --err: #DC2626;
  --border: #E2E8F0;
  --text: #0F172A;
  --mid: #64748B;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0B1220 0%, #1E293B 100%);
  color: var(--text);
}

.card {
  width: 100%;
  max-width: 620px;   /* largura confortável no desktop (era 440 = cara de mobile) */
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.brand {
  background: var(--navy);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-img { height: 30px; width: auto; display: block; }
.tag { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 600; }

.step { padding: 34px 40px; }
.hidden { display: none; }

h1 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.lead { margin: 0 0 22px; font-size: 14px; color: var(--mid); line-height: 1.5; }

.field { display: block; margin-bottom: 8px; }
.field span { display: block; font-size: 11px; font-weight: 700; color: var(--mid); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 18px;
  letter-spacing: 0.5px;
  border: 2px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.field input:focus { border-color: var(--blue-light); }

.feedback { min-height: 20px; font-size: 13px; font-weight: 600; margin: 6px 2px 18px; }
.feedback.checking { color: var(--mid); }
.feedback.ok  { color: var(--ok); }
.feedback.err { color: var(--err); }

.btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity .15s, background .15s;
  font-family: inherit;
}
.btn:disabled { background: #CBD5E1; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--mid); border: 1px solid var(--border); }

.foot { font-size: 11px; color: #94A3B8; text-align: center; margin: 18px 0 0; }

.ok-badge {
  display: inline-block;
  background: #DCFCE7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ── Wizard (motor de formulário) ─────────────────────────── */
.wz-prog { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.wz-title { margin: 0 0 4px; font-size: 19px; font-weight: 800; }
.wz-hint { margin: 0 0 18px; font-size: 13px; color: var(--mid); line-height: 1.45; }

.ffield { margin-bottom: 16px; }
/* Campo numérico + data calculada ao lado (contrato de experiência). */
.frow { display: flex; gap: 12px; align-items: flex-end; }
.frow .inp-dias { width: 110px; flex: 0 0 auto; }
.fcalc { flex: 1; min-width: 0; }
.fcalc-box { padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: #F1F5F9; font-size: 15px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcalc-box.vazio { color: #94A3B8; font-weight: 400; }
.fcalc-lbl { font-size: 11px; font-weight: 700; color: var(--mid); margin-bottom: 6px; }
.flabel { display: block; margin-bottom: 6px; }
.flabel > span { display: block; font-size: 12px; font-weight: 700; color: var(--text); }
.fhint { display: block; font-size: 11px; color: var(--mid); font-weight: 400; margin-top: 2px; }
.inp {
  width: 100%;
  padding: 11px 13px;
  font-size: 16px;               /* ≥16px evita o autozoom do iOS ao focar o input */
  border: 1.5px solid var(--border);
  border-radius: 9px;
  outline: none;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s;
}
.inp:focus { border-color: var(--blue-light); }
select.inp { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; }

/* Autocomplete (cidade IBGE) */
.ac { position: relative; }
.ac-dd { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: #fff; border: 1px solid var(--border); border-radius: 0 0 9px 9px; box-shadow: 0 8px 20px rgba(0,0,0,.1); max-height: 240px; overflow-y: auto; }
.ac-item { padding: 9px 12px; font-size: 14px; cursor: pointer; border-bottom: 1px solid #F1F5F9; }
.ac-item:hover { background: #F0FDFA; }

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-item { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; padding: 4px 0; }
.radio-item input { width: 16px; height: 16px; }

.ferr { min-height: 15px; font-size: 12px; color: var(--err); font-weight: 600; margin-top: 4px; }

/* Dropzone (upload arrastar-e-soltar) */
.dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  background: #F8FAFC;
  transition: border-color .15s, background .15s;
}
.dropzone:hover { border-color: var(--blue-light); background: #F1F5F9; }
.dropzone.drag { border-color: var(--blue); background: #EFF6FF; }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background: #F0FDF4; cursor: default; }

.dz-prompt { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dz-icon { color: var(--blue); margin-bottom: 6px; display: flex; }
.dz-l1 { font-size: 14px; font-weight: 700; color: var(--text); }
.dz-l2 { font-size: 12px; color: var(--mid); }
.dz-browse { font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: underline; }
.dz-hint { font-size: 11px; color: #94A3B8; margin-top: 8px; }

.dz-example { margin: 0 0 12px; }
.dz-example img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.dz-example figcaption { font-size: 12px; color: var(--mid); line-height: 1.4; margin-top: 6px; }

.dz-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dz-name { font-size: 13px; font-weight: 600; color: #166534; word-break: break-word; text-align: left; }
.dz-del {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 7px; cursor: pointer;
  border: 1px solid #FECACA; background: #FEF2F2; color: #DC2626; font-weight: 700; line-height: 1;
}
.dz-del:hover { background: #FEE2E2; }

/* Grupo repetível (dependentes) */
.repeat-item { border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: #FCFDFE; }
.repeat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.repeat-num { font-size: 12px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.repeat-del { width: 26px; height: 26px; border-radius: 7px; cursor: pointer; border: 1px solid #FECACA; background: #FEF2F2; color: #DC2626; font-weight: 700; }
.repeat-del:hover { background: #FEE2E2; }
.repeat-add { width: 100%; border-style: dashed !important; }

.wz-nav { display: flex; gap: 10px; margin-top: 22px; }
.wz-nav .btn { width: auto; flex: 1; }
.wz-nav .btn.ghost { flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }
