/* Estilos do simulador AMBRAC SST
   - Mobile first
   - Herdando tipografia e cores básicas do tema
   - Componentes com prefixo .ambrac- para evitar conflitos
*/

#ambrac-simulador.ambrac-sst-wrapper {
  max-width: 1040px;
  margin: 0 auto 48px;
  padding: 24px 20px 28px;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-sizing: border-box;
}

#ambrac-simulador * {
  box-sizing: border-box;
}

.ambrac-sst-header h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #111827;
}

.ambrac-sst-header p {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #4b5563;
}

.ambrac-sst-legenda {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Wizard header */

.ambrac-wizard-header {
  margin-top: 20px;
  margin-bottom: 18px;
}

.ambrac-wizard-progress {
  position: relative;
  height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ambrac-wizard-progress-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.ambrac-wizard-steps {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.ambrac-wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.ambrac-wizard-step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.ambrac-wizard-step-label {
  font-size: 0.72rem;
  color: #6b7280;
}

.ambrac-wizard-step.active .ambrac-wizard-step-number {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}

.ambrac-wizard-step.completed .ambrac-wizard-step-number {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
}

/* Corpo do wizard */

.ambrac-wizard-body {
  margin-top: 10px;
}

.ambrac-step {
  display: none;
}

.ambrac-step.active {
  display: block;
}

.ambrac-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 14px;
}

/* Grid de campos */

.ambrac-step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ambrac-card-input {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
}

.ambrac-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.ambrac-help-text {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0 0 8px;
}

.ambrac-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  color: #111827;
  background-color: #ffffff;
}

.ambrac-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

/* Toggles Sim/Não */

.ambrac-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 4px 8px;
  background: #f9fafb;
  cursor: pointer;
  min-width: 120px;
}

.ambrac-toggle-pill {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ambrac-toggle-labels {
  display: flex;
  justify-content: space-between;
  flex: 1;
  align-items: center;
  margin-left: 8px;
  gap: 6px;
  font-size: 0.78rem;
}

.ambrac-toggle-no {
  color: #6b7280;
}

.ambrac-toggle-yes {
  color: #6b7280;
  font-weight: 600;
}

.ambrac-toggle-on {
  background: #ecfdf3;
  border-color: #16a34a;
}

.ambrac-toggle-on .ambrac-toggle-pill {
  background: #16a34a;
  transform: translateX(52px);
}

.ambrac-toggle-on .ambrac-toggle-yes {
  color: #166534;
}

.ambrac-toggle-on .ambrac-toggle-no {
  color: #9ca3af;
}

/* Cards genéricos */

.ambrac-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
  margin-bottom: 26px;
}

.ambrac-card__title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
}

.ambrac-card__text {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #4b5563;
}

/* Resultado */

.ambrac-resultado {
  margin-bottom: 32px;
}

/* Lead / Contato */

.ambrac-lead-grid {
  margin-top: 8px;
}

.ambrac-lgpd-text {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 6px 0 10px;
}

/* Botões */

.ambrac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.ambrac-btn-primary {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.ambrac-btn-primary:hover {
  background: #020617;
  border-color: #020617;
}

.ambrac-btn-secondary {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.ambrac-btn-secondary:hover {
  background: #f3f4f6;
}

.ambrac-btn:active {
  transform: translateY(1px);
}

.ambrac-wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.ambrac-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.ambrac-primary-btn:hover {
  background: #1e40af;
}

/* Responsive */

@media (min-width: 640px) {
  .ambrac-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  #ambrac-simulador.ambrac-sst-wrapper {
    padding: 28px 28px 32px;
  }
}
