/* ── Page ── */
.cad-page {
  min-height: calc(100vh - 72px - 50px);
  background: #edf0f5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 64px;
}

.cad-wrap {
  width: 100%;
  max-width: 560px;
}

/* ── Card ── */
.cad-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.05);
}

.cad-card__stripe {
  height: 5px;
  background: linear-gradient(90deg, #ff6a00 0%, #5b2a86 100%);
}

.cad-card__body {
  padding: 32px 36px 36px;
}

/* ── Passo a passo ── */
.cad-steps {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
}

.cad-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cad-step__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  transition: all .2s;
}

.cad-step--active .cad-step__circle {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,106,0,.28);
}

.cad-step--done .cad-step__circle {
  border-color: #ff6a00;
  color: #ff6a00;
  background: #fff5f0;
}

.cad-step__label {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-align: center;
  white-space: nowrap;
}

.cad-step--active .cad-step__label,
.cad-step--done .cad-step__label {
  color: #ff6a00;
}

.cad-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin-top: 15px;
}

.cad-step-line--done { background: #ff6a00; }

/* ── Títulos ── */
.cad-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #0f1729;
  text-align: center;
  letter-spacing: -.2px;
}

.cad-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
  line-height: 1.7;
}

/* ── Badge de segurança ── */
.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  padding: 7px 16px;
  margin: 18px auto 0;
  width: fit-content;
}

.trust-badge svg { flex-shrink: 0; }

/* ── Upload de arquivo ── */
.upload-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 13.5px;
  color: #64748b;
  font-weight: 500;
  transition: border-color .15s, background .15s;
  text-transform: none;
  letter-spacing: 0;
}
.upload-label:hover { border-color: #ff6a00; background: #fff8f5; color: #ff6a00; }
.upload-label--done  { border-color: #22c55e; background: #f0fdf4; color: #16a34a; }
.upload-prog {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

/* ── Campos ── */
.cad-field { margin-bottom: 16px; }

.cad-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 6px;
}

.req { color: #ef4444; }

.cad-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f1729;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.cad-input::placeholder { color: #a0aec0; }

.cad-input:focus {
  border-color: #ff6a00;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,106,0,.12);
}

.cad-input option { color: #0f1729; background: #fff; }

/* ── Booleano ── */
.bool-group {
  display: flex;
  gap: 8px;
}

.bool-btn {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}

.bool-btn:hover {
  border-color: #ff6a00;
  color: #ff6a00;
  background: #fff8f5;
}

.bool-btn--active {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,106,0,.25);
}

/* ── Seções do formulário ── */
.form-section { margin-bottom: 24px; }

.form-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.form-section-head::before {
  content: "";
  display: block;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff6a00, #5b2a86);
  flex-shrink: 0;
}

/* ── Botão principal ── */
.cad-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 15.5px;
  font-weight: 700;
  justify-content: center;
  background: linear-gradient(135deg, #ff6a00 0%, #d84f00 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 8px 22px rgba(255,106,0,.30);
  transition: all .18s;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.cad-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255,106,0,.40);
}

.cad-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

/* ── Botão voltar ── */
.cad-back { margin-bottom: 18px; }

.cad-back button {
  background: none;
  border: none;
  color: #64748b;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cad-back button:hover { color: #ff6a00; }

/* ── Mensagens ── */
.cad-msg {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.cad-msg--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.cad-msg--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

/* ── Multi-seleção (turnos) ── */
.multi-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0;
}

.multi-opt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-family: "Poppins", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}

.multi-opt:hover {
  border-color: #ff6a00;
  background: #fff8f5;
  color: #ff6a00;
}

.multi-opt input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #ff6a00;
  cursor: pointer;
  flex-shrink: 0;
}

.multi-opt:has(input:checked) {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,106,0,.22);
}

.no-opts {
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
}

/* ── Ícone de sucesso ── */
.cad-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  border: 3px solid #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 24px;
}

/* ── Responsivo ── */
@media (max-width: 520px) {
  .cad-card__body { padding: 24px 20px 28px; }
  .cad-title { font-size: 19px; }
  .cad-step__label { display: none; }
}
