/* ==========================================================================
   参观登记表单
   ========================================================================== */
.reg-wrap {
  max-width: 880px;
  margin: 0 auto;
}

/* 顶部说明 */
.reg-intro {
  text-align: center;
  margin-bottom: 28px;
}
.reg-intro h2 {
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -.3px;
}
.reg-intro p {
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 0 0 16px;
  line-height: 1.7;
}
.reg-tips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.reg-tips li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-3);
}
.reg-tips li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .28;
}

/* 表单容器 */
.reg-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px 30px;
  box-shadow: var(--shadow-sm);
}

/* 分组 */
.reg-fs {
  border: 0;
  padding: 0;
  margin: 0 0 26px;
}
.reg-fs:last-of-type { margin-bottom: 8px; }
.reg-fs legend {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  padding: 0 0 14px;
  margin-bottom: 16px;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.reg-fs legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
}
.reg-fs legend em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
}

/* 栅格 */
.reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.reg-row { min-width: 0; }
.reg-span2 { grid-column: 1 / -1; }

.reg-lbl {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.reg-lbl i {
  color: #e0483c;
  font-style: normal;
  margin-left: 3px;
}

/* 输入控件 */
.reg-form input[type="text"],
.reg-form input[type="tel"],
.reg-form input[type="email"],
.reg-form select {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #d8dde0;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s;
}
.reg-form select {
  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='%237a8790' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
}
.reg-form input::placeholder { color: #a8b2b9; }
.reg-form input:focus,
.reg-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 122, 153, .1);
}
.reg-form input.is-bad,
.reg-form select.is-bad {
  border-color: #e0483c;
  background-color: #fff8f7;
}
.reg-form select:disabled {
  background-color: #f6f7f8;
  color: #a8b2b9;
  cursor: not-allowed;
}

/* 错误提示 */
.reg-err {
  min-height: 0;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #e0483c;
  display: none;
}
.reg-err.on {
  display: block;
  margin-top: 6px;
}

/* 多选项 */
.chk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 9px 14px;
}
.chk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #e2e7ea;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
  transition: all .16s;
  background: #fff;
  user-select: none;
}
.chk:hover { border-color: var(--brand); background: #f7fbfc; }
.chk input {
  margin: 1px 0 0;
  width: 15px; height: 15px;
  flex: 0 0 15px;
  accent-color: var(--brand);
  cursor: pointer;
}
.chk:has(input:checked) {
  border-color: var(--brand);
  background: #eff8fb;
  color: var(--ink);
  font-weight: 600;
}

/* 产品分组 */
.chk-group { margin-bottom: 18px; }
.chk-group:last-of-type { margin-bottom: 0; }
.chk-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  margin: 0 0 10px;
  padding-left: 9px;
  border-left: 3px solid var(--accent);
  line-height: 1.3;
}

/* 「其他」输入框 */
.reg-other {
  margin-top: 10px;
}
.reg-other:disabled {
  background: #f6f7f8;
  cursor: not-allowed;
}

/* 提交区 */
.reg-actions {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.reg-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 50px;
  padding: 0 42px;
  border: 0;
  border-radius: 26px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.reg-submit:hover { background: var(--brand-dark); }
.reg-submit:active { transform: translateY(1px); }
.reg-submit:disabled { background: #9bbecb; cursor: not-allowed; }
.reg-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* 成功态 */
.reg-success {
  text-align: center;
  padding: 44px 20px 30px;
}
.reg-success svg {
  width: 62px; height: 62px;
  color: #1a9c5b;
  margin-bottom: 16px;
}
.reg-success h3 {
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 10px;
}
.reg-success p {
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 0 0 22px;
  line-height: 1.7;
}
.reg-again {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 28px;
  border: 1px solid var(--brand);
  border-radius: 22px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}
.reg-again:hover { background: var(--brand); color: #fff; }

/* 提交成功后的「去邮箱确认」提示 */
.reg-verify {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 20px 22px;
  background: #fff8ea;
  border: 1px solid #f0d49a;
  border-radius: 8px;
  text-align: left;
}
.reg-verify-t {
  font-size: 15px;
  font-weight: 700;
  color: #8a5a00;
  margin: 0 0 8px;
  line-height: 1.6;
}
.reg-verify-d {
  font-size: 14px;
  color: #6b5230;
  margin: 0 0 8px;
  line-height: 1.8;
  word-break: break-all;
}
.reg-verify-d b { color: #8a5a00; }
.reg-verify-tip {
  font-size: 12.5px;
  color: #9a8b6f;
  margin: 0;
  line-height: 1.7;
}

/* ---------------- 移动端 ---------------- */
@media (max-width: 900px) {
  .reg-form { padding: 22px 18px 24px; border-radius: 12px; }
  .reg-intro h2 { font-size: 20px; }
  .reg-grid { grid-template-columns: 1fr; gap: 14px; }
  .chk-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .chk { padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 640px) {
  .reg-form { padding: 18px 14px 20px; }
  .reg-tips { flex-direction: column; align-items: flex-start; gap: 6px; padding-left: 8px; }
  .reg-fs legend { font-size: 14.5px; padding-bottom: 11px; margin-bottom: 14px; }
  .reg-fs legend span { width: 21px; height: 21px; font-size: 11px; }
  .reg-form input[type="text"],
  .reg-form input[type="tel"],
  .reg-form input[type="email"],
  .reg-form select { height: 42px; font-size: 15px; }
  .chk-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .chk { padding: 8px 9px; font-size: 12.5px; gap: 6px; }
  .chk input { width: 14px; height: 14px; flex: 0 0 14px; }
  .reg-submit { width: 100%; min-width: 0; }
}
