/* ============================================
   LEADS (Captura Multi-Step Horizontal) — LJR Digital Studio
   ============================================ */

.leads {
  padding: 75px 0 85px;
  background: var(--off-white);
  position: relative;
}

/* ——— Header Compacto ——— */
.leads__header {
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.leads__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.leads__badge svg {
  width: 14px;
  height: 14px;
}

.leads__headline {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.leads__headline--blue {
  color: var(--blue);
}

.leads__sub {
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 8px;
}

.leads__campaign-note {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 780px;
}

/* Benefícios Horizontais — Largura Total Alinhada */
.leads__benefits-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  padding: 16px 36px;
  background: var(--white);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.leads__benefit-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
}

.leads__benefit-item svg {
  width: 14px;
  height: 14px;
  color: var(--blue);
}

/* ——— Card Principal do Wizard ——— */
.leads__wizard-card {
  background: var(--white);
  border-radius: 24px;
  padding: 44px 52px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ——— Indicador de Progresso Desktop ——— */
.leads__progress-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-mid);
  transition: color var(--trans-base);
}

.step-num {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--off-white);
  color: var(--gray-mid);
  transition: all var(--trans-base);
}

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

.progress-step.active .step-num {
  background: var(--blue);
  color: var(--white);
}

.progress-step.completed {
  color: var(--blue);
}

.progress-step.completed .step-num {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--gray-light);
  margin: 0 16px;
  border-radius: 99px;
  transition: background var(--trans-base);
}

.progress-line.completed {
  background: var(--blue);
}

/* ——— Indicador de Progresso Mobile ——— */
.leads__progress-mobile {
  display: none;
  margin-bottom: 24px;
}

.progress-mobile-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.progress-mobile-percent {
  color: var(--blue);
}

.progress-mobile-bar {
  height: 4px;
  background: var(--gray-light);
  border-radius: 99px;
  overflow: hidden;
}

.progress-mobile-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
  transition: width 300ms ease;
}

/* ——— Wizard Form & Steps ——— */
.leads__form {
  position: relative;
  width: 100%;
}

.wizard-step {
  display: none;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 350ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

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

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

/* Step Header */
.step-header {
  margin-bottom: 24px;
}

.step-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--blue);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.step-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.3;
}

.step-desc {
  font-size: 14px;
  color: var(--gray-text);
  margin-top: 4px;
}

/* ——— PASSO 01: Project Chips Grid ——— */
.project-chips-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 16px;
}

.project-chips-fieldset legend {
  display: none !important;
}

.project-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.project-chip {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.project-chip input[type="radio"],
.project-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.chip-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-light);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--trans-base);
  height: 100%;
}

.chip-radio {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--trans-base);
}

.chip-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.2px;
  line-height: 1.3;
}

/* Radio & Checkbox Checked State */
.project-chip input[type="radio"]:checked + .chip-card,
.project-chip input[type="checkbox"]:checked + .chip-card {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: 0 0 0 1px var(--blue);
}

.project-chip input[type="radio"]:checked + .chip-card .chip-radio,
.project-chip input[type="checkbox"]:checked + .chip-card .chip-radio {
  border-color: var(--blue);
  background: var(--blue);
}

.project-chip input[type="radio"]:checked + .chip-card .chip-radio::after,
.project-chip input[type="checkbox"]:checked + .chip-card .chip-radio::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Hover */
.chip-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

/* Descrição Contextual */
.chip-description-box {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  margin-top: 12px;
}

.chip-description-text {
  font-size: 13.5px;
  color: var(--gray-text);
  line-height: 1.5;
  margin: 0;
}

.step-error-msg {
  font-size: 13px;
  font-weight: 600;
  color: #EF4444;
  margin-top: 8px;
  min-height: 20px;
}

/* ——— Inputs e Selects ——— */
.optional-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-mid);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.char-count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-text);
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

.required {
  color: var(--blue);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--trans-base), box-shadow var(--trans-base);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-mid);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.form-select-wrapper {
  position: relative;
}

.form-select {
  padding-right: 40px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--gray-text);
  pointer-events: none;
}

/* Textarea compacto no Passo 4 */
.form-textarea--compact {
  height: 95px;
  padding: 12px 16px;
  resize: vertical;
  min-height: 80px;
  max-height: 160px;
}

/* Checkbox LGPD */
.form-checkbox {
  display: flex;
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-text);
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--gray-mid);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-base);
}

.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--blue);
  border-color: var(--blue);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.form-link {
  color: var(--blue);
  text-decoration: underline;
}

/* ——— Summary Bar no Passo 4 ——— */
.step-summary-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  gap: 6px;
}

.summary-label {
  color: var(--gray-mid);
}

.summary-value {
  color: var(--black);
  font-weight: 700;
}

.summary-divider {
  color: var(--gray-mid);
}

/* ——— Botões de Ação do Wizard ——— */
.step-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.step-actions.flex-end {
  justify-content: flex-end;
}

.step-actions.flex-between {
  justify-content: space-between;
}

.btn-prev {
  background: transparent;
  color: var(--gray-text);
  border: 1.5px solid rgba(15, 23, 42, 0.15);
  height: 48px;
  padding: 0 24px;
}

.btn-prev:hover {
  background: var(--gray-light);
  color: var(--black);
}

.btn-next,
.leads__submit {
  height: 48px;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ——— Estado de Sucesso ——— */
.leads__success-card {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-icon-wrapper svg {
  width: 30px;
  height: 30px;
}

.success-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.success-text {
  font-size: 15px;
  color: var(--gray-text);
  max-width: 480px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.success-actions {
  margin-bottom: 32px;
  width: 100%;
  max-width: 360px;
}

.success-actions .btn {
  width: 100%;
  height: 52px;
  font-size: 15px;
}

/* Bloco LJR Care no Sucesso */
.leads__success-care-block {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  max-width: 580px;
  text-align: center;
}

.care-mini-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.care-mini-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}

.care-mini-desc {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.5;
  margin-bottom: 16px;
}

.care-mini-cta {
  height: 40px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
}

/* ——— Responsividade ——— */
@media (max-width: 992px) {
  .project-chips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leads__wizard-card {
    padding: 32px 28px;
  }
}

@media (max-width: 768px) {
  .leads {
    padding: 55px 0 65px;
  }

  .leads__progress-desktop {
    display: none;
  }

  .leads__progress-mobile {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-chips-grid {
    grid-template-columns: 1fr;
  }

  .step-actions {
    flex-direction: column-reverse;
  }

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

  .leads__benefits-horizontal {
    gap: 12px 16px;
    border-radius: var(--radius-md);
  }

  .step-summary-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .summary-divider {
    display: none;
  }
}
