/* Base reutilizable para formularios de leads Zigler.
   Todas las reglas quedan aisladas bajo el prefijo zigler-lead-. */

.zigler-lead-page {
  min-height: 100vh;
  background: #f4f7fb;
  color: #1d2630;
  font-family: "Inter", Arial, sans-serif;
}

.zigler-lead-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 44px;
}

.zigler-lead-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 86, 179, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(22, 38, 58, 0.12);
}

.zigler-lead-illustration {
  display: inline-flex;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0, 86, 179, 0.1);
  color: #0056b3;
  font-size: 24px;
}

.zigler-lead-title {
  margin: 0 0 8px;
  color: #17212b;
  font-size: 1.75rem;
  line-height: 1.18;
  font-weight: 700;
}

.zigler-lead-subtitle {
  margin: 0 0 22px;
  color: #5a6674;
  font-size: 1rem;
  line-height: 1.5;
}

.zigler-lead-progress {
  width: 100%;
  height: 8px;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.zigler-lead-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0056b3, #0099e6);
  transition: width 0.2s ease;
}

.zigler-lead-step {
  display: none;
}

.zigler-lead-step.is-active {
  display: block;
}

.zigler-lead-field {
  margin-bottom: 18px;
}

.zigler-lead-field.zigler-lead-is-hidden {
  display: none;
}

.zigler-lead-label {
  display: block;
  margin: 0 0 8px;
  color: #243140;
  font-size: 0.95rem;
  font-weight: 700;
}

.zigler-lead-input,
.zigler-lead-select,
.zigler-lead-textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  background: #ffffff;
  color: #17212b;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.zigler-lead-textarea {
  min-height: 112px;
  resize: vertical;
}

.zigler-lead-input:focus,
.zigler-lead-select:focus,
.zigler-lead-textarea:focus {
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.13);
  outline: 0;
}

.zigler-lead-input[aria-invalid="true"],
.zigler-lead-select[aria-invalid="true"],
.zigler-lead-textarea[aria-invalid="true"] {
  border-color: #c62828;
}

.zigler-lead-radio-group {
  display: grid;
  gap: 10px;
}

.zigler-lead-radio {
  display: flex;
  min-height: 52px;
  padding: 13px 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  background: #ffffff;
  color: #243140;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.zigler-lead-radio:hover,
.zigler-lead-radio:focus-within {
  border-color: #0056b3;
  background: #f7fbff;
}

.zigler-lead-radio input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0056b3;
}

.zigler-lead-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.zigler-lead-btn {
  display: inline-flex;
  min-height: 52px;
  padding: 12px 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.zigler-lead-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.zigler-lead-btn-primary {
  background: #08c;
  border-color: #08c #08c #069;
  color: #ffffff;
  box-shadow: none;
}

.zigler-lead-btn-primary:hover,
.zigler-lead-btn-primary:focus {
  background: #00a1f2;
  border-color: #0af #0af #08c;
  color: #ffffff;
}

.zigler-lead-btn-secondary {
  background: transparent;
  color: #08c;
  box-shadow: none;
}

.zigler-lead-btn-secondary:hover,
.zigler-lead-btn-secondary:focus {
  background: rgba(0, 136, 204, 0.08);
  color: #0077b3;
}

.zigler-lead-error {
  margin-top: 7px;
  color: #c62828;
  font-size: 0.88rem;
  line-height: 1.35;
}

.zigler-lead-error:empty {
  display: none;
}

.zigler-lead-help {
  margin-top: 7px;
  color: #6c7886;
  font-size: 0.88rem;
  line-height: 1.35;
}

.zigler-lead-success {
  text-align: center;
}

.zigler-lead-success .zigler-lead-title {
  margin-top: 4px;
}

@media (min-width: 576px) {
  .zigler-lead-shell {
    padding: 42px 20px 58px;
  }

  .zigler-lead-card {
    padding: 34px;
    border-radius: 22px;
  }

  .zigler-lead-step.is-active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .zigler-lead-field {
    grid-column: 1 / -1;
  }

  .zigler-lead-field--half {
    grid-column: auto;
  }

  .zigler-lead-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .zigler-lead-btn {
    width: auto;
    min-width: 168px;
  }
}

@media (min-width: 768px) {
  .zigler-lead-shell {
    padding-top: 58px;
  }

  .zigler-lead-card {
    padding: 42px;
  }

  .zigler-lead-title {
    font-size: 2.15rem;
  }

  .zigler-lead-radio-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
