/* 中文站预约表单（.cn-form）—— 简化版配套样式
 * 与 phase2.css 独立，避免 build_phase2_css.py 重跑时被覆盖。
 * 只作用于 .cn-form，不污染首页（首页用 index-style.css）和英文站（.en-form）。
 *
 * 简化后字段：怎么称呼(选填) / 联系电话(必填) / 故障现象 / 算术验证
 * 「设备类型」下拉已去掉 —— 来源页 URL 与 form_type 里已带分类，后端能归因。
 */

.cn-form .f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.cn-form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.cn-form label {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  line-height: 1.4;
}

.cn-form .opt {
  font-weight: 400;
  color: #94A3B8;
  font-size: 12.5px;
}

.cn-form .req {
  color: #DC2626;
  font-weight: 700;
}

.cn-form input,
.cn-form select,
.cn-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  color: #0F172A;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.cn-form textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.6;
}

.cn-form input:focus,
.cn-form select:focus,
.cn-form textarea:focus {
  outline: none;
  border-color: #1677CB;
  box-shadow: 0 0 0 3px rgba(22, 119, 203, .12);
}

.cn-form ::placeholder {
  color: #B6C2D0;
}

/* ---- 校验提示：默认不显示，字段加 .bad 才出现 ---- */
.cn-form .err {
  display: none;
  color: #DC2626;
  font-size: 12.5px;
  line-height: 1.5;
}

.cn-form .f.bad input,
.cn-form .f.bad select,
.cn-form .f.bad textarea,
.cn-form .check.bad input {
  border-color: #DC2626;
  background: #FEF2F2;
}

.cn-form .f.bad .err,
.cn-form .check.bad .err {
  display: block;
}

/* ---- 蜜罐：移出屏幕而不是 display:none（部分机器人会跳过隐藏字段） ---- */
.cn-form .hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- 算术验证：整块用品牌蓝描边，做成醒目的独立卡片（与英文站同款） ---- */
.cn-form .check {
  background: #EFF6FF;
  border: 1.5px solid #1677CB;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.cn-form .check .chd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1677CB;
  margin-bottom: 11px;
}

.cn-form .check .cic {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  background: #1677CB;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cn-form .check .cbd {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cn-form .check .q {
  flex: 1 1 auto;
  min-width: 150px;
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
}

.cn-form .check input {
  flex: 0 0 96px;
  width: 96px;
  padding: 9px 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  border: 2px solid #93C5FD;
  border-radius: 9px;
  background: #fff;
}

.cn-form .check input:focus {
  border-color: #1677CB;
  box-shadow: 0 0 0 3px rgba(22, 119, 203, .15);
}

/* ---- 提交后提示条 ---- */
.cn-form .sent {
  display: none;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 9px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
  font-size: 14px;
}

.cn-form .sent.on {
  display: block;
}

.cn-form .hint {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.6;
}

.cn-form h3 {
  margin: 0 0 4px;
}

.cn-form .submit {
  margin-top: 2px;
}

@media (max-width: 640px) {
  .cn-form .row2 {
    grid-template-columns: 1fr;
  }

  .cn-form .check .q {
    min-width: 100%;
    font-size: 17px;
  }
}
