/* 智唯网络 · 询盘增强 样式（inquiry_plus.js 配套） */

/* ---------- 字段级错误提示 ---------- */
.iqp-field-error {
  color: #d9483b;
  font-size: 12.5px;
  margin: 4px 0 0;
  line-height: 1.5;
}
.iqp-field-error::before {
  content: "!";
  display: inline-block;
  width: 15px; height: 15px; line-height: 15px;
  margin-right: 5px; text-align: center;
  border-radius: 50%; background: #d9483b; color: #fff;
  font-weight: 700; font-size: 11px;
}
.iqp-invalid {
  border-color: #d9483b !important;
  box-shadow: 0 0 0 2px rgba(217,72,59,.12);
}

/* ---------- 多步表单 ---------- */
.iqp-steps {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 18px; padding: 0; list-style: none;
}
.iqp-steps li {
  flex: 1 1 auto; min-width: 90px;
  font-size: 13px; color: #9aa6a0; text-align: center;
  padding: 8px 6px; border-radius: 10px;
  background: #f1f6f3; border: 1px solid #e3ece7;
}
.iqp-steps li.on {
  color: #11705a; background: #e3f1ea; border-color: #11705a;
  font-weight: 600;
}
.iqp-step { display: none; }
.iqp-step.on { display: block; }
.iqp-step-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 16px;
}
.iqp-step-nav button {
  min-width: 96px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid #11705a; cursor: pointer; font-size: 14px;
}
.iqp-step-nav .iqp-prev { background: #fff; color: #11705a; }
.iqp-step-nav .iqp-next,
.iqp-step-nav .iqp-submit { background: #11705a; color: #fff; }

/* ---------- 浮窗 ---------- */
.iqp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 9998;
  width: 300px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15,40,32,.22);
  border: 1px solid #e3ece7; overflow: hidden;
}
.iqp-float .iqp-float-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: #11705a; color: #fff;
}
.iqp-float .iqp-float-hd b { font-size: 14.5px; font-weight: 600; }
.iqp-float .iqp-float-close {
  border: none; background: rgba(255,255,255,.18); color: #fff;
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 15px;
}
.iqp-float .iqp-float-bd { padding: 14px; }
.iqp-float .iqp-pitch { font-size: 13.5px; color: #2a3b35; line-height: 1.7; margin: 0 0 12px; }
.iqp-float .iqp-qr { text-align: center; margin: 0 0 10px; }
.iqp-float .iqp-qr img { width: 132px; height: 132px; object-fit: contain; border: 1px solid #e3ece7; border-radius: 10px; }
.iqp-float .iqp-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #2a3b35; margin: 6px 0; }
.iqp-float .iqp-line .iqp-k { color: #6b7a73; min-width: 42px; }
.iqp-float .iqp-line a { color: #11705a; font-weight: 600; text-decoration: none; }
.iqp-float .iqp-cta {
  display: block; text-align: center; margin-top: 10px;
  background: #f0a500; color: #3a2a00; font-weight: 700;
  padding: 10px; border-radius: 10px; text-decoration: none; font-size: 14px;
}
.iqp-float.iqp-min {
  width: auto;
}
.iqp-float.iqp-min .iqp-float-bd,
.iqp-float.iqp-min .iqp-float-hd b { display: none; }
.iqp-float.iqp-min .iqp-float-hd { padding: 8px; background: #11705a; }
.iqp-float.iqp-min .iqp-float-hd::after { content: "💬"; font-size: 16px; }

@media(max-width:560px) {
  .iqp-float { right: 12px; bottom: 12px; width: 260px; }
}
