/* Página de Diagnóstico estilo Typeform */

.typeform-main {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 24px 100px;
  background-color: var(--color-dark-1);
}

.typeform-main .blob-decor {
  z-index: 0;
}

/* Barra de progresso fixa */
.tf-progress-track {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-dark-2);
  z-index: 1001;
}

.tf-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-teal), var(--color-mint));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tf-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
}

.tf-step {
  display: none;
  flex-direction: column;
}

.tf-step.active {
  display: flex;
  animation: tfFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes tfShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); }
}

.tf-step.tf-shake {
  animation: tfFadeIn 0.5s ease, tfShake 0.4s ease;
}

.tf-step-welcome {
  text-align: center;
  align-items: center;
  gap: 8px;
}

.tf-step-welcome .badge { margin-bottom: 16px; }

.tf-title {
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.tf-eyebrow {
  display: block;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.tf-counter {
  display: block;
  color: var(--color-gray);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.tf-question {
  font-size: 1.85rem;
  margin-bottom: 28px;
  line-height: 1.35;
}

.tf-desc {
  color: var(--color-gray);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 16px;
}

.tf-desc-muted {
  font-size: 0.95rem;
  opacity: 0.85;
}

.tf-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-dark-3);
  color: var(--color-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  padding: 12px 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

textarea.tf-input {
  resize: none;
  min-height: 100px;
  line-height: 1.6;
}

.tf-input::placeholder {
  color: var(--color-gray);
  opacity: 0.7;
}

.tf-input:focus {
  border-bottom-color: var(--color-teal);
}

.tf-step.tf-shake .tf-input {
  border-bottom-color: #FF6B6B;
}

.tf-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.tf-btn-back,
.tf-btn-skip {
  background: transparent;
  border: none;
  color: var(--color-gray);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 16px 4px;
  transition: color var(--transition);
}

.tf-btn-back:hover,
.tf-btn-skip:hover {
  color: var(--color-white);
}

.tf-btn-skip {
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tf-arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.tf-btn-next:hover .tf-arrow,
.tf-start:hover .tf-arrow {
  transform: translateX(4px);
}

.tf-hint {
  display: block;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--color-gray);
}

.tf-hint strong {
  color: var(--color-teal);
  border: 1px solid var(--color-dark-3);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* Passo final */
.tf-step-final {
  text-align: center;
  align-items: center;
  gap: 8px;
}

.tf-final-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(4, 173, 191, 0.1);
  border: 1px solid var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-teal);
}

.tf-final-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.tf-link-muted {
  color: var(--color-gray);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tf-link-muted:hover {
  color: var(--color-teal);
}

@media (max-width: 768px) {
  .typeform-main { padding: 120px 24px 80px; }
  .tf-title { font-size: 2rem; }
  .tf-question { font-size: 1.4rem; }
  .tf-input { font-size: 1.05rem; }
  .tf-desc { font-size: 1rem; }
}
