/* 合复官网 · 留资表单样式
 * 设计目标：移动端优先、与企业站主色协调、不依赖主题样式
 */

.hefu-lead {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(17, 42, 84, 0.10);
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.hefu-lead__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #123a6b;
  text-align: center;
  line-height: 1.4;
}

.hefu-lead__sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: #6b7684;
  text-align: center;
  line-height: 1.6;
}

.hefu-lead__row {
  margin-bottom: 12px;
}

.hefu-lead__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  color: #1f2937;
  background: #f8fafc;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .18s, background .18s;
  font-family: inherit;
}

.hefu-lead__input:focus {
  background: #fff;
  border-color: #1a5fb4;
  box-shadow: 0 0 0 3px rgba(26, 95, 180, .12);
}

.hefu-lead__input::placeholder {
  color: #9aa4b2;
}

.hefu-lead__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa4b2' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.hefu-lead__textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.6;
}

.hefu-lead__btn {
  width: 100%;
  margin-top: 6px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1a5fb4 0%, #0d4a94 100%);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  font-family: inherit;
  /* 移动端点击不闪灰底 */
  -webkit-tap-highlight-color: transparent;
}

.hefu-lead__btn:hover {
  box-shadow: 0 6px 20px rgba(26, 95, 180, .35);
}

.hefu-lead__btn:active {
  transform: translateY(1px);
}

.hefu-lead__btn:disabled,
.hefu-lead__btn.is-loading {
  opacity: .7;
  cursor: not-allowed;
}

.hefu-lead__tip {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #98a2b3;
  text-align: center;
}

.hefu-lead__msg {
  margin-top: 14px;
  padding: 0;
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
  border-radius: 8px;
  transition: all .2s;
}

.hefu-lead__msg:empty {
  display: none;
}

.hefu-lead__msg.is-success {
  padding: 12px 16px;
  color: #0f7b3f;
  background: #eaf7ef;
  border: 1px solid #b6e3c6;
}

.hefu-lead__msg.is-error {
  padding: 12px 16px;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fbd3cf;
}

/* 输入框校验失败态 */
.hefu-lead__input.is-invalid {
  border-color: #d64541;
  background: #fffafa;
}

/* 蜜罐字段：真人不可见，机器人会填 */
.hefu-lead__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 480px) {
  .hefu-lead {
    padding: 20px 16px;
    border-radius: 10px;
  }
  .hefu-lead__title { font-size: 19px; }
  .hefu-lead__btn   { padding: 13px 16px; font-size: 15px; }
}
