/*
 * StockZero Leads — formulário público.
 * Tokens do design.md (inspirado no Apple HIG): um acento (systemBlue por padrão),
 * grid de 8pt, alvos de 44px, corpo 17px. Tudo escopado em .szl para não
 * conflitar com o tema/Elementor.
 */
.szl {
  --szl-accent: #0071e3;
  --szl-label: #1d1d1f;
  --szl-label-2: #6e6e73;
  --szl-label-3: #8e8e93;
  --szl-surface: #ffffff;
  --szl-fill: rgba(120, 120, 128, 0.12);
  --szl-fill-strong: rgba(120, 120, 128, 0.2);
  --szl-separator: rgba(60, 60, 67, 0.14);
  --szl-danger: #d70015;
  --szl-danger-soft: rgba(255, 59, 48, 0.1);
  --szl-success: #248a3d;
  --szl-success-soft: rgba(52, 199, 89, 0.14);
  --szl-radius: 20px;
  --szl-radius-control: 12px;
  --szl-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  font-family: var(--szl-font);
  color: var(--szl-label);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  max-width: 640px;
  margin-inline: auto;
  text-align: left;
}

.szl *,
.szl *::before,
.szl *::after {
  box-sizing: border-box;
}

.szl [hidden] {
  display: none !important;
}

.szl-card {
  background: var(--szl-surface);
  border-radius: var(--szl-radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.06);
  padding: 32px;
  margin: 0;
}

@media (max-width: 480px) {
  .szl-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
}

/* Cabeçalho */
.szl .szl-header {
  margin: 0 0 24px;
}

.szl .szl-title {
  font-family: var(--szl-font);
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--szl-label);
  margin: 0;
  padding: 0;
  text-transform: none;
}

.szl .szl-subtitle {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 21px;
  color: var(--szl-label-2);
}

/* Progresso das etapas */
.szl .szl-progress {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  counter-reset: none;
}

.szl .szl-progress-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--szl-label-3);
}

.szl .szl-progress-item::before {
  content: "";
  height: 4px;
  border-radius: 2px;
  background: var(--szl-fill-strong);
  transition: background-color 0.25s ease;
}

.szl .szl-progress-item.is-current,
.szl .szl-progress-item.is-done {
  color: var(--szl-label);
}

.szl .szl-progress-item.is-current::before,
.szl .szl-progress-item.is-done::before {
  background: var(--szl-accent);
}

.szl .szl-progress-num {
  display: none;
}

.szl .szl-progress-item.is-current .szl-progress-label {
  font-weight: 600;
}

@media (max-width: 480px) {
  .szl .szl-progress-label {
    display: none;
  }
  .szl .szl-progress-item.is-current .szl-progress-label {
    display: inline;
  }
}

/* Etapas */
.szl .szl-step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.szl .szl-step-title {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
  color: var(--szl-label);
}

.szl .szl-step-count {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--szl-label-2);
}

.szl .szl-step-desc {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--szl-label-2);
}

.szl .szl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  margin-top: 24px;
}

.szl .szl-full {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .szl .szl-grid {
    grid-template-columns: 1fr;
  }
}

/* Campos */
.szl .szl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.szl .szl-label {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--szl-label);
  padding: 0;
  margin: 0;
}

.szl .szl-req {
  color: var(--szl-label-3);
}

.szl .szl-input {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--szl-radius-control);
  background: var(--szl-fill);
  color: var(--szl-label);
  font-family: var(--szl-font);
  font-size: 17px;
  line-height: 22px;
  box-shadow: none;
  outline: none;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.szl .szl-input::placeholder {
  color: var(--szl-label-3);
  opacity: 1;
}

.szl .szl-input:hover {
  background: var(--szl-fill-strong);
}

.szl .szl-input:focus-visible,
.szl .szl-input:focus {
  background: var(--szl-surface);
  box-shadow: 0 0 0 2px var(--szl-accent), 0 0 0 6px color-mix(in srgb, var(--szl-accent) 20%, transparent);
}

.szl .szl-textarea {
  min-height: 120px;
  resize: vertical;
}

.szl .szl-select-wrap {
  position: relative;
}

.szl .szl-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--szl-label-3);
  border-bottom: 2px solid var(--szl-label-3);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

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

.szl .szl-choices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.szl .szl-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--szl-radius-control);
  background: var(--szl-fill);
  font-size: 17px;
  cursor: pointer;
}

.szl .szl-choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--szl-accent);
}

.szl .szl-help {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--szl-label-2);
}

.szl .szl-error {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--szl-danger);
}

.szl .szl-error:empty {
  display: none;
}

.szl .is-invalid .szl-input,
.szl .is-invalid .szl-choice {
  box-shadow: 0 0 0 2px var(--szl-danger);
  background: var(--szl-danger-soft);
}

/* Alerta geral */
.szl .szl-alert {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: var(--szl-radius-control);
  background: var(--szl-danger-soft);
  color: var(--szl-danger);
  font-size: 15px;
  line-height: 20px;
}

/* Ações */
.szl .szl-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 32px;
}

.szl .szl-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  font-family: var(--szl-font);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
  box-shadow: none;
}

.szl .szl-btn-primary {
  background: var(--szl-accent);
  color: #ffffff;
}

.szl .szl-btn-primary:hover {
  filter: brightness(0.92);
}

.szl .szl-btn-secondary {
  background: var(--szl-fill);
  color: var(--szl-label);
  margin-right: auto;
}

.szl .szl-btn-secondary:hover {
  background: var(--szl-fill-strong);
}

.szl .szl-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--szl-accent) 35%, transparent);
}

.szl .szl-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

@media (max-width: 480px) {
  .szl .szl-actions {
    flex-direction: column-reverse;
  }
  .szl .szl-btn {
    width: 100%;
  }
  .szl .szl-btn-secondary {
    margin-right: 0;
  }
}

/* Honeypot */
.szl .szl-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Sucesso */
.szl .szl-success {
  text-align: center;
  padding-block: 48px;
  outline: none;
}

.szl .szl-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--szl-success-soft);
  color: var(--szl-success);
}

.szl .szl-success-title {
  margin: 16px 0 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
}

.szl .szl-success-text {
  margin: 8px auto 0;
  max-width: 400px;
  font-size: 17px;
  color: var(--szl-label-2);
}

@media (prefers-reduced-motion: reduce) {
  .szl *,
  .szl *::before {
    transition: none !important;
  }
}
