.yinengjing-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

[data-form] {
  --yinengjing-field-border: rgba(31, 41, 55, 0.18);
  --yinengjing-field-border-focus: #1473e6;
  --yinengjing-field-bg: #fff;
  position: relative;
}

[data-form] input,
[data-form] select,
[data-form] textarea {
  max-width: 100%;
}

[data-form] input:focus,
[data-form] select:focus,
[data-form] textarea:focus {
  border-color: var(--yinengjing-field-border-focus);
  outline: 2px solid rgba(20, 115, 230, 0.16);
  outline-offset: 1px;
}

[data-form] input:invalid:not(:placeholder-shown),
[data-form] select:invalid:not(:placeholder-shown),
[data-form] textarea:invalid:not(:placeholder-shown) {
  border-color: #d93025;
}

[data-form].is-submitting {
  pointer-events: none;
}

[data-form] [type="submit"]:disabled {
  cursor: wait;
  opacity: 0.72;
}

[data-form] .form-note,
[data-form] [data-form-note] {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 40;
  box-sizing: border-box;
  width: max-content;
  max-width: min(340px, calc(100% - 48px));
  min-height: 0;
  margin: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(29, 35, 39, 0.92);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, calc(-50% + 8px));
  transition: opacity 0.18s ease, transform 0.18s ease;
}

[data-form] .form-note.is-visible,
[data-form] [data-form-note].is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

[data-form] .form-note[data-state="success"],
[data-form] [data-form-note][data-state="success"] {
  background: rgba(19, 115, 51, 0.94);
  color: #fff;
}

[data-form] .form-note[data-state="error"],
[data-form] [data-form-note][data-state="error"] {
  background: rgba(201, 63, 83, 0.95);
  color: #fff;
}

.yinengjing-form-anchor {
  scroll-margin-top: var(--yinengjing-scroll-offset, 96px);
}
