/* ============================================
   FORM DE QUALIFICAÇÃO
   Paleta: #FFFFFF · #000000 · #7B00FF · #C8C3E8 · #3D3B4A
   ============================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: #FFFFFF;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- PROGRESS BAR ---- */
.progress-bar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #F0EEF8;
  z-index: 100;
}

.progress-bar-fill {
  height: 100%;
  background: #7B00FF;
  width: 0%;
  transition: width 0.4s ease;
}

/* ---- FORM WRAPPER ---- */
.form-wrapper {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* ---- STEPS ---- */
.step {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 48px;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateX(0);
}

.step.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  position: absolute;
}

.step.slide-out {
  opacity: 0;
  transform: translateX(-40px);
}

/* conclusão pode ser mais alta que a tela: alinha ao topo e permite rolar */
.conclusion-step {
  align-items: flex-start;
}

/* ---- STEP INNER ---- */
.step-inner {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- CAPA ---- */
.cover-inner {
  align-items: flex-start;
  gap: 20px;
}

.cover-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: #000000;
}

.cover-title .highlight {
  color: #7B00FF;
}

.cover-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: #3D3B4A;
  line-height: 1.6;
  max-width: 480px;
}

.cover-hint {
  font-size: 13px;
  color: #C8C3E8;
  font-weight: 400;
  margin-top: -8px;
}

/* ---- STEP LABELS / TITLE ---- */
.step-label {
  font-size: 13px;
  font-weight: 500;
  color: #C8C3E8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-title {
  font-size: 28px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.step-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #3D3B4A;
  line-height: 1.5;
  margin-top: -8px;
}

/* ---- BACK BUTTON ---- */
.btn-back {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #3D3B4A;
  cursor: pointer;
  padding: 0;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
  align-self: flex-start;
}

.btn-back:hover {
  color: #7B00FF;
}

/* ---- CAMPOS DE TEXTO ---- */
.textarea-field,
.input-field {
  width: 100%;
  border: 1px solid #C8C3E8;
  border-radius: 8px;
  padding: 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #000000;
  outline: none;
  transition: border 0.2s;
  line-height: 1.6;
  background: #FFFFFF;
}

.textarea-field {
  resize: vertical;
}

.textarea-field::placeholder,
.input-field::placeholder {
  color: #C8C3E8;
}

.textarea-field:focus,
.input-field:focus {
  border: 2px solid #7B00FF;
}

/* agrupa textarea + alerta + botão com respiro uniforme */
#segmento-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contato-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(123, 0, 255, 0.22);
  border-left: 3px solid #7B00FF;
  background: linear-gradient(180deg, rgba(123, 0, 255, 0.07), rgba(123, 0, 255, 0.03));
  color: #3D3B4A;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 6px 18px rgba(123, 0, 255, 0.08);
  animation: field-error-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

/* ícone de alerta (badge circular) */
.field-error::before {
  content: "!";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #7B00FF;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  animation: field-error-pulse 1.6s ease-in-out infinite;
}

@keyframes field-error-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes field-error-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123, 0, 255, 0.35); }
  50%      { box-shadow: 0 0 0 5px rgba(123, 0, 255, 0); }
}

/* ---- BOTÕES ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7B00FF;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 48px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  align-self: flex-start;
  white-space: nowrap;
  animation: cta-pulse 1.8s ease-in-out infinite;
}

.btn-primary:hover {
  background: #6500d6;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
}

/* ---- PULSE DOS CTAs ---- */
@keyframes cta-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(123, 0, 255, 0.30);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 8px 24px 0 rgba(123, 0, 255, 0.28);
  }
}

/* ---- LOADING ---- */
.loading-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid #C8C3E8;
  border-top-color: #7B00FF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 15px;
  color: #3D3B4A;
  font-weight: 400;
}

/* ---- RESULT CARDS ---- */
.result-card {
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-approved {
  border-left: 3px solid #7B00FF;
  background: rgba(123, 0, 255, 0.04);
}

.result-rejected {
  border-left: 3px solid #3D3B4A;
  background: rgba(61, 59, 74, 0.04);
}

.result-icon {
  font-size: 20px;
  font-weight: 700;
  color: #7B00FF;
}

.result-icon-no {
  color: #3D3B4A;
}

.result-title {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  line-height: 1.3;
}

.result-desc {
  font-size: 14px;
  color: #3D3B4A;
  line-height: 1.6;
  margin-top: 4px;
}

.link-instagram {
  font-size: 14px;
  color: #7B00FF;
  font-weight: 500;
  text-decoration: none;
  margin-top: 4px;
}

.link-instagram:hover {
  text-decoration: underline;
}

/* ---- BARRA DE AUTO-AVANÇO (etapa 1 aprovado) ---- */
.auto-bar {
  width: 100%;
  height: 6px;
  background: rgba(123, 0, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.auto-bar-fill {
  height: 100%;
  width: 0%;
  background: #7B00FF;
  border-radius: 999px;
}

/* ---- OPTION CARDS GRID ---- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card {
  border: 1px solid #C8C3E8;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: border 0.2s, background 0.2s;
  display: flex;
  align-items: center;
}

.option-card-full {
  width: 100%;
}

.option-card:hover {
  border-color: #7B00FF;
}

.option-card.selected {
  border: 2px solid #7B00FF;
  background: rgba(123, 0, 255, 0.04);
}

.card-label {
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  line-height: 1.4;
}

/* ---- CONCLUSÃO ---- */
.conclusion-inner {
  align-items: flex-start;
  padding-bottom: 0;
}

.check-icon-wrap {
  margin-bottom: 4px;
  animation: check-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

@keyframes check-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

.conclusion-title {
  font-size: 30px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
  max-width: 520px;
}

/* ---- SUMMARY CARD ---- */
.summary-card {
  background: #000000;
  border-radius: 12px;
  padding: 28px 24px;
  width: 100%;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
}

.summary-item:first-child {
  padding-top: 0;
}

.summary-item:last-child {
  padding-bottom: 0;
}

.summary-label {
  font-size: 11px;
  font-weight: 500;
  color: #C8C3E8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-value {
  font-size: 16px;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1.4;
}

.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ---- OFFER CARD ---- */
.offer-card {
  width: 100%;
  border: 1px solid #7B00FF;
  border-radius: 8px;
  padding: 28px 24px;
  background: rgba(123, 0, 255, 0.03);
}

.offer-title {
  font-size: 17px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 20px;
}

.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.offer-list li {
  font-size: 15px;
  font-weight: 400;
  color: #3D3B4A;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.check-item {
  color: #7B00FF;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.offer-price-wrap {
  border-top: 1px solid rgba(123, 0, 255, 0.15);
  padding-top: 20px;
}

.offer-price {
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  display: block;
  margin-bottom: 8px;
}

.offer-period {
  font-size: 18px;
  font-weight: 400;
  color: #3D3B4A;
}

.offer-terms {
  font-size: 13px;
  color: #3D3B4A;
  margin-bottom: 4px;
}

.offer-guarantee {
  font-size: 13px;
  color: #3D3B4A;
  font-style: italic;
}

/* ---- CTA BUTTON (WhatsApp) ---- */
.btn-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #7B00FF;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  padding: 20px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 8px;
  animation: cta-pulse 1.8s ease-in-out infinite;
}

.btn-cta:hover {
  background: #6500d6;
}

.btn-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
}

/* recolore o ícone do WhatsApp para branco */
.cta-icon {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.cta-hint {
  font-size: 13px;
  color: #C8C3E8;
  text-align: center;
  width: 100%;
}

/* ---- SELO "ENVIADO" ---- */
.sent-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  background: rgba(123, 0, 255, 0.10);
  color: #7B00FF;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  animation: badge-in 0.5s ease both 0.15s;
}

@keyframes badge-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- SUBTÍTULO DA CONCLUSÃO ---- */
.conclusion-sub {
  font-size: 16px;
  font-weight: 400;
  color: #3D3B4A;
  line-height: 1.5;
  max-width: 520px;
  margin-top: -8px;
}

/* ---- SETA DE ROLAGEM (inline, guia o lead) ---- */
.scroll-cue {
  align-self: center;
  line-height: 0;
  margin-top: -4px;
  animation: cue-bob 1.3s ease-in-out infinite;
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ---- CTA STICKY (acompanha a rolagem) ---- */
.cta-sticky {
  position: sticky;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0 14px;
  margin-top: 8px;
  background: linear-gradient(to top, #FFFFFF 55%, rgba(255, 255, 255, 0));
  z-index: 20;
}

/* ---- UTILITY ---- */
.hidden {
  display: none !important;
}

/* respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .btn-primary,
  .btn-cta,
  .scroll-cue,
  .sent-badge,
  .check-icon-wrap,
  .field-error,
  .field-error::before {
    animation: none;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .cover-title {
    font-size: 32px;
  }

  .cover-subtitle {
    font-size: 16px;
  }

  .step-title {
    font-size: 24px;
  }

  .conclusion-title {
    font-size: 24px;
  }

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

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .offer-price {
    font-size: 28px;
  }

  .step {
    padding: 72px 20px 48px;
  }
}

@media (max-width: 380px) {
  .cover-title {
    font-size: 28px;
  }
}
