/* Keep custom choice controls from inheriting the text-input box model. */
.wizard-field .field input[type="radio"],
.wizard-field .field input[type="checkbox"] {
  appearance: auto;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border-radius: 50%;
  box-shadow: none;
}

.wizard-field .field input[type="checkbox"] {
  border-radius: 4px;
}

.vigencia-opcion,
.persona-opcion {
  width: 100%;
  min-width: 0;
}

.vigencia-opcion > div,
.persona-opcion > div {
  min-width: 0;
  flex: 1 1 auto;
}

.vigencia-opcion strong,
.vigencia-opcion span,
.persona-opcion strong,
.persona-opcion span {
  display: block;
  overflow-wrap: anywhere;
}

.petition-trust {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(252, 253, 254, 0.86);
  overflow: hidden;
}

.petition-trust span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.petition-trust span:last-child {
  border-right: 0;
}

.petition-trust b {
  color: var(--ok);
  font-size: 14px;
}

.petition-detail-meter {
  margin-top: 2px;
  color: #8A5A22;
  font-size: 12px;
  line-height: 1.45;
}

.petition-detail-meter.ready {
  color: var(--ok);
  font-weight: 700;
}

@media (max-width: 820px) {
  .petition-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .petition-trust span {
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 540px) {
  .wizard-page {
    padding-top: 126px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .wizard-top {
    top: max(12px, env(safe-area-inset-top));
    left: 14px;
    right: 14px;
  }

  .wizard-track {
    top: calc(max(12px, env(safe-area-inset-top)) + 54px);
    left: 14px;
    right: 14px;
  }

  .wizard-doc-hero {
    padding: 16px;
  }

  .wizard-doc-hero h3 {
    font-size: 30px;
  }

  .wizard-doc-hero p {
    font-size: 15px;
  }

  .wizard-card {
    padding: 20px 16px;
  }

  .vigencia-opcion,
  .persona-opcion {
    gap: 10px;
    padding: 12px;
  }

  .petition-trust {
    grid-template-columns: 1fr;
  }

  .petition-trust span {
    border-right: 0;
  }
}
.wizard-card .message {
  white-space: pre-line;
}

.field-validation-error,
.correction-summary {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(138, 45, 45, 0.28);
  border-radius: 16px;
  background: #fff6f5;
  color: #7f2929;
  padding: 14px 16px;
}

.field-validation-error p,
.correction-summary p {
  margin: 0;
  line-height: 1.45;
}

.field-suggestion {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(63, 94, 143, 0.3);
  border-radius: 999px;
  background: #f8faff;
  color: #31517f;
  padding: 9px 13px;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.field-suggestion:hover {
  background: #eef3fb;
  border-color: #466b9f;
}

.auto-correction-notice {
  border: 1px solid rgba(39, 102, 75, 0.22);
  border-radius: 14px;
  background: #f3faf6;
  color: #27664b;
  padding: 12px 14px;
  font-weight: 700;
  line-height: 1.4;
}

.wizard-next:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}
