/*!
 * KIMO 客户转换插件：前台留资表单样式
 * 与 theme-guanchen 的视觉语言保持一致（品牌橙 #E04A16 / 墨色 #172021 / 米白 #F2F0ED）
 */

.kimo-lead {
  padding: 88px 0 96px;
  background:
    radial-gradient(120% 140% at 88% 0%, rgba(224, 74, 22, 0.08) 0%, rgba(224, 74, 22, 0) 55%),
    #f7f6f4;
  color: #172021;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
}

.kimo-lead .container {
  width: 100%;
  max-width: 1244px;
  margin: 0 auto;
  padding: 0 32px;
}

.kimo-lead__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(23, 32, 33, 0.1);
  border-radius: 6px;
  padding: 56px;
  box-shadow: 0 24px 60px -32px rgba(23, 32, 33, 0.28);
}

.kimo-lead__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #e04a16;
  margin-bottom: 12px;
}

.kimo-lead__title {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.kimo-lead__sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #5e686d;
}

.kimo-lead__form {
  display: block;
}

.kimo-lead__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.kimo-lead__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.kimo-lead__field:not(.is-half) {
  grid-column: 1 / -1;
}

.kimo-lead__label {
  font-size: 13px;
  font-weight: 600;
  color: #172021;
  letter-spacing: 0.01em;
}

.kimo-lead__label em {
  font-style: normal;
  color: #e04a16;
  margin-left: 4px;
}

.kimo-lead__field input,
.kimo-lead__field textarea,
.kimo-lead__field select {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid rgba(23, 32, 33, 0.18);
  border-radius: 4px;
  background: #fff;
  color: #172021;
  font-size: 15px;
  line-height: 1.5;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

.kimo-lead__field textarea {
  resize: vertical;
  min-height: 116px;
}

.kimo-lead__field select {
  background-image: linear-gradient(45deg, transparent 50%, #5e686d 50%),
    linear-gradient(135deg, #5e686d 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.kimo-lead__field input::placeholder,
.kimo-lead__field textarea::placeholder {
  color: rgba(94, 104, 109, 0.7);
}

.kimo-lead__field input:focus,
.kimo-lead__field textarea:focus,
.kimo-lead__field select:focus {
  outline: none;
  border-color: #e04a16;
  box-shadow: 0 0 0 3px rgba(224, 74, 22, 0.12);
}

.kimo-lead__field.has-error input,
.kimo-lead__field.has-error textarea,
.kimo-lead__field.has-error select {
  border-color: #d33a2c;
}

.kimo-lead__help {
  font-size: 12px;
  line-height: 1.6;
  color: #5e686d;
}

.kimo-lead__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.kimo-lead__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.kimo-lead__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 34px;
  border: 1px solid #c63e10;
  border-radius: 4px;
  background: #c63e10;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s ease, transform 0.25s ease;
}

.kimo-lead__submit > span {
  position: relative;
  z-index: 1;
}

.kimo-lead__submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #e04a16;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.kimo-lead__submit:hover::before {
  transform: scaleX(1);
}

.kimo-lead__submit:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.kimo-lead__submit:disabled::before {
  transform: scaleX(0);
}

.kimo-lead__status {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5e686d;
  min-height: 20px;
}

.kimo-lead__status.is-error {
  color: #d33a2c;
}

.kimo-lead__status.is-success {
  color: #1d7a4c;
}

.kimo-lead__note {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(94, 104, 109, 0.9);
}

@media (max-width: 960px) {
  .kimo-lead {
    padding: 64px 0 72px;
  }

  .kimo-lead__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  .kimo-lead .container {
    padding: 0 20px;
  }

  .kimo-lead__inner {
    padding: 28px 20px;
  }

  .kimo-lead__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kimo-lead__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kimo-lead__submit,
  .kimo-lead__submit::before {
    transition: none;
  }
}

/* 富文本补充说明（由后台富文本编辑器产出） */
.kimo-lead__richtext {
  margin-top: 14px;
  color: #5e686d;
  font-size: 14px;
  line-height: 1.75;
}

.kimo-lead__richtext ul,
.kimo-lead__richtext ol {
  margin: 10px 0;
  padding-left: 20px;
}

.kimo-lead__richtext li {
  margin: 4px 0;
}

.kimo-lead__richtext a {
  color: #c63e10;
  text-decoration: underline;
}

.kimo-lead__richtext strong {
  color: #172021;
}
