/* 表单系统前台样式（作用域 .aid-forms-） */
.aid-forms-form { --afc: #4f46e5; max-width: 640px; }
.aid-forms-form, .aid-forms-form input, .aid-forms-form select, .aid-forms-form textarea, .aid-forms-form button, .aid-forms-form table, .aid-forms-form th, .aid-forms-form td { box-sizing: border-box; }
.aid-forms-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aid-forms-field { margin-bottom: 16px; }
.aid-forms-label { display: block; font-size: 14px; font-weight: 600; color: #1d2939; margin-bottom: 6px; }
.aid-forms-req { color: #d92d20; }
.aid-forms-field input[type=text],
.aid-forms-field input[type=email],
.aid-forms-field input[type=tel],
.aid-forms-field input[type=url],
.aid-forms-field input[type=number],
.aid-forms-field input[type=date],
.aid-forms-field input[type=file],
.aid-forms-field select,
.aid-forms-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px;
  font-size: 14px; font-family: inherit; color: #101828; background: #fff; transition: border-color .15s;
}
.aid-forms-field input:focus, .aid-forms-field select:focus, .aid-forms-field textarea:focus { border-color: var(--afc); outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.aid-forms-field textarea { resize: vertical; }
.aid-forms-choices { display: flex; flex-direction: column; gap: 6px; }
.aid-forms-choice, .aid-forms-consent { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #344054; cursor: pointer; }
.aid-forms-help { font-size: 12px; color: #667085; margin: 6px 0 0; }
.aid-forms-html-inner { font-size: 13px; color: #475467; background: #f9fafb; border: 1px solid #eaecf0; border-radius: 8px; padding: 10px 12px; }

.aid-forms-field.aid-forms-error input,
.aid-forms-field.aid-forms-error select,
.aid-forms-field.aid-forms-error textarea { border-color: #d92d20; }
.aid-forms-error-text { color: #d92d20; font-size: 12px; margin-top: 4px; }

.aid-forms-message { display: none; margin: 4px 0 16px; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.aid-forms-message.show { display: block; }
.aid-forms-message.ok { background: #ecfdf3; color: #087443; border: 1px solid #abefc6; }
.aid-forms-message.error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

.aid-forms-actions { margin-top: 8px; }
.aid-forms-submit { background: var(--afc); color: #fff; border: none; border-radius: 8px; padding: 11px 22px; font-size: 15px; cursor: pointer; }
.aid-forms-submit:hover { background: #4338ca; }
.aid-forms-submit:disabled { opacity: .6; cursor: default; }
.aid-forms-draft { opacity: .96; }
.aid-forms-locked { padding: 14px; background: #fffaeb; border: 1px solid #fedf89; border-radius: 8px; color: #93370d; font-size: 14px; }
