.onboarding-body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 20px;
}

.onboarding-wrap {
  width: 100%;
  max-width: 720px;
}

.onboarding-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.onboarding-header {
  text-align: center;
  margin-bottom: 32px;
}

.onboarding-logo {
  width: 105px;
  height: auto;
  margin-bottom: 20px;
}

#logo-success {
  width: 220px;
}

.onboarding-header h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
}

.onboarding-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* PROGRESS BAR */
.progress {
  margin-bottom: 36px;
}

.progress-track {
  height: 6px;
  background: var(--bg);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 100px;
  width: 16.66%;
  transition: width 0.25s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
  flex: 1;
}

.progress-step.clickable {
  cursor: pointer;
}

.step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  display: none;
}

.progress-step.active .step-dot {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}

.progress-step.active .step-label {
  color: var(--black);
}

.progress-step.done .step-dot {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

@media (min-width: 640px) {
  .step-label {
    display: block;
  }
}

/* STEPS */
.step {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.step.active {
  display: flex;
}

.step-head {
  margin-bottom: 4px;
}

.step-head h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
}

.step-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Campos obrigatórios têm a mesma aparência dos opcionais — só o navegador
   valida por baixo dos panos ao clicar em "Próximo" */
input:required,
textarea:required,
input:invalid,
textarea:invalid {
  border-color: var(--border);
  background: var(--bg);
  box-shadow: none;
  outline: none;
}

input:required:focus,
textarea:required:focus,
input:invalid:focus,
textarea:invalid:focus {
  border-color: var(--orange);
  background: var(--white);
}

/* Alguns navegadores (Chrome/Edge) pintam campos de e-mail/telefone
   de um jeito diferente quando reconhecem o tipo do campo — força o
   mesmo visual dos outros campos */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  box-shadow: 0 0 0 1000px var(--bg) inset;
  -webkit-text-fill-color: var(--black);
  caret-color: var(--black);
  border-color: var(--border);
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}

.campo-erro {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #c23b3b;
}

/* TERMS */
.terms-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--black);
  line-height: 1.5;
}

/* CHECKBOX ROW (label + text, used standalone or in a grid) */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-text {
  font-weight: 500;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px 16px;
}

/* FILE UPLOAD */
.upload-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border: 1.5px dashed rgba(253, 128, 46, 0.45);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}

.upload-box:hover {
  border-color: var(--orange);
}

.upload-box.filled {
  border-style: solid;
  border-color: var(--orange);
}

.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding: 12px;
}

.upload-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}

.upload-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

.upload-action {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--orange-dark);
  text-decoration: underline;
}

.upload-preview {
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
}

.modal-overlay-grande .modal-card-grande {
  width: 94vw;
  max-width: 1400px;
  height: 90vh;
  max-height: none;
  display: flex;
  flex-direction: column;
}

.area-trabalho-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.area-trabalho-topo h2 {
  margin: 0;
}

.area-trabalho-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: 10px;
  background: #ffffff;
  border: 1.5px dashed rgba(253, 128, 46, 0.45);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-trabalho-canvas:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.area-trabalho-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 20px;
  pointer-events: none;
}

.area-trabalho-imagem {
  position: absolute;
  max-width: none;
  cursor: grab;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  user-select: none;
}

.area-trabalho-imagem:active {
  cursor: grabbing;
}

.area-trabalho-controles {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.area-trabalho-zoom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}


.upload-remover {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.field-note {
  margin: -6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.photo-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
}

.photo-guide-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.photo-guide-text {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

.phone-icon {
  flex-shrink: 0;
}

/* REFERENCES GALLERY */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.ref-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2.5px solid transparent;
  background: var(--white);
}

.ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ref-thumb.selected {
  border-color: var(--orange);
}

.ref-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: transparent;
}

.ref-thumb.selected .ref-check {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--black);
}

/* NAV */
.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

.step-nav button {
  font-family: inherit;
  cursor: pointer;
  margin-top: 0;
}

.step-nav .btn-outline {
  background: transparent;
}

.step-nav .btn-outline:disabled {
  opacity: 0;
  pointer-events: none;
}

/* SUCCESS SCREEN */
.success-screen {
  text-align: center;
  padding: 20px 0;
}

.success-screen h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
}

.success-screen p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.checklist-cta-wrap {
  margin-top: 20px;
}

.checklist-cta-wrap .btn-primary {
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 600px) {
  .onboarding-card {
    padding: 26px 20px;
  }
}
