/* --- デモ レイアウト --- */
.demo-container {
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
  gap: 32px;
}

.vld-pattern {
  max-width: 520px;
  width: 100%;
}

.vld-pattern-label {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: #2B7FE8;
  letter-spacing: 0.04em;
}

/* --- フィールド --- */
.vld-field {
  margin-bottom: 20px;
}

.vld-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2C3A4A;
}

.vld-required {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #EF4444;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.vld-input-wrap {
  position: relative;
}

.vld-input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  font-family: inherit;
  background: #fff;
}

.vld-input:focus {
  border-color: #2B7FE8;
}

/* textarea はアイコンなし・右 padding を通常値に戻す */
.vld-textarea {
  padding-right: 12px;
  resize: vertical;
  min-height: 96px;
}

/* エラー状態 */
.vld-field--error .vld-input {
  border-color: #EF4444;
}

/* 成功状態 */
.vld-field--success .vld-input {
  border-color: #22C55E;
}

/* フィールドアイコン（⚠ / ✓） */
.vld-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  line-height: 1;
}

.vld-field--error .vld-icon {
  color: #EF4444;
}

.vld-field--success .vld-icon {
  color: #22C55E;
}

/* エラーメッセージ */
.vld-msg {
  margin: 4px 0 0;
  font-size: 12px;
  min-height: 16px;
  line-height: 1.4;
}

.vld-field--error .vld-msg {
  color: #EF4444;
}

/* 送信・登録ボタン */
.vld-submit-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #2B7FE8;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin-top: 8px;
}

.vld-submit-btn:hover {
  background: #1A6ED4;
}

/* 送信完了メッセージ */
.vld-complete {
  padding: 20px;
  background: #F0FDF4;
  border: 1.5px solid #22C55E;
  border-radius: 8px;
  margin-bottom: 12px;
}

.vld-complete-text {
  color: #15803D;
  font-weight: 600;
  margin: 0;
  font-size: 15px;
}

/* リセットボタンエリア */
.vld-pattern .demo-controls {
  margin-top: 16px;
}

/* リセットボタン */
.reset-btn {
  padding: 6px 16px;
  font-size: 13px;
  color: #5A6A7A;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.reset-btn:hover {
  background: #F4F6F9;
  border-color: #9AA5B4;
}

/* --- AI 用プロンプト --- */
.prompt-block {
  margin-bottom: 20px;
}

.prompt-block:last-child {
  margin-bottom: 0;
}

.prompt-block-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #2B7FE8;
  letter-spacing: 0.04em;
}
