/* ============================================
   WORKFACILIT - Landing de Onboarding de Instancia
   ============================================ */

.oi-hero {
  position: relative;
  padding: 9rem 0 4.5rem;
  overflow: hidden;
}

.oi-hero__content {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.oi-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 1.2rem 0;
  color: var(--wf-text-1);
}

.oi-hero__desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  color: var(--wf-text-2);
  max-width: 780px;
  margin: 0 auto 2rem;
}

.oi-highlights {
  padding-top: 2rem;
}

.oi-highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.oi-highlight {
  background: linear-gradient(160deg, rgba(6, 182, 212, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-r-xl);
  padding: 1.5rem;
}

.oi-highlight i {
  font-size: 1.4rem;
  color: var(--wf-primary-light);
}

.oi-highlight h3 {
  margin: 0.8rem 0;
  color: var(--wf-text-1);
  font-size: 1.05rem;
}

.oi-highlight p {
  color: var(--wf-text-2);
  line-height: 1.65;
  font-size: 0.92rem;
}

.oi-form-wrap {
  max-width: 980px;
  margin: 0 auto;
  background: var(--wf-bg-card);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-r-xl);
  padding: 1.75rem;
}

.oi-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.oi-step {
  border: 1px solid var(--wf-border);
  border-radius: 999px;
  background: transparent;
  color: var(--wf-text-2);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.oi-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wf-border);
  font-size: 0.75rem;
}

.oi-step.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--wf-primary), #0ea5e9);
}

.oi-step.is-active span {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.oi-pane {
  display: none;
}

.oi-pane.is-active {
  display: block;
  animation: oiFade 220ms var(--wf-ease);
}

.oi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.oi-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.oi-field span {
  color: var(--wf-text-2);
  font-weight: 600;
  font-size: 0.82rem;
}

.oi-input {
  padding: 12px 14px;
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-r-md);
  background: var(--wf-bg);
  color: var(--wf-text-1);
  outline: none;
  font: inherit;
  transition: all 240ms var(--wf-ease);
}

.oi-input:focus {
  border-color: var(--wf-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.oi-input.oi-input--error {
  border-color: var(--wf-rose);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.14);
}

.oi-field .oi-error {
  color: var(--wf-rose);
  font-size: 0.78rem;
}

.oi-help {
  min-height: 1rem;
  color: var(--wf-text-3);
  font-size: 0.78rem;
}

.oi-help--success {
  color: var(--wf-emerald-light);
}

.oi-help--loading {
  color: var(--wf-primary-light);
}

.oi-alert {
  margin-bottom: 1rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--wf-r-md);
  color: var(--wf-text-2);
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.oi-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.oi-global-error {
  margin-top: 1rem;
  margin-bottom: 0;
  border-radius: var(--wf-r-md);
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.1);
  color: var(--wf-rose);
  padding: 0.75rem 0.9rem;
}

.oi-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.oi-success__icon {
  font-size: 3.6rem;
  color: var(--wf-emerald-light);
  margin-bottom: 1rem;
}

.oi-success h3 {
  margin: 0 0 0.85rem;
  color: var(--wf-text-1);
}

.oi-success p {
  color: var(--wf-text-2);
  max-width: 620px;
  margin: 0 auto 1.4rem;
  line-height: 1.7;
}

.oi-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.oi-faq__item {
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-r-xl);
  padding: 1.2rem;
  background: var(--wf-bg-card);
}

.oi-faq__item h3 {
  margin: 0 0 0.6rem;
  color: var(--wf-text-1);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.oi-faq__item p {
  margin: 0;
  color: var(--wf-text-2);
  line-height: 1.65;
}

@keyframes oiFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .oi-highlights__grid,
  .oi-faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .oi-hero {
    padding-top: 8rem;
  }

  .oi-form-wrap {
    padding: 1rem;
  }

  .oi-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oi-grid {
    grid-template-columns: 1fr;
  }

  .oi-actions {
    justify-content: stretch;
  }

  .oi-actions .btn {
    width: 100%;
  }
}

/* Garante que o atributo hidden nos botoes do wizard nao seja sobrescrito por .btn */
#nextStep[hidden],
#submitBtn[hidden] {
  display: none !important;
}
