/* ============ 留资弹窗 ============ */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55);
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s ease;
}
.modal-overlay.active {
  display: flex; opacity: 1;
}

.modal-box {
  background: #fff;
  border-radius: 14px;
  width: 90%; max-width: 480px;
  padding: 40px 36px 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,40,175,.15);
  transform: translateY(12px);
  transition: transform .3s ease;
}
.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none;
  font-size: 26px; color: #bbb;
  cursor: pointer; line-height: 1; padding: 4px 8px;
  border-radius: 6px; transition: color .2s, background .2s;
}
.modal-close:hover { color: #333; background: #f5f5f5; }

.modal-title {
  font-size: 22px; font-weight: 600; color: #0028AF;
  margin: 0 0 8px;
}
.modal-desc {
  font-size: 14px; color: #666;
  margin: 0 0 16px; line-height: 1.6;
}

/* iframe 嵌入钉钉 AI 表格表单 */
.modal-box-iframe {
  width: 92%; max-width: 560px;
  padding: 28px 28px 20px;
  display: flex; flex-direction: column;
  max-height: 90vh;
}
.modal-iframe-head { flex: 0 0 auto; margin-bottom: 12px; }
.modal-iframe-head .modal-title { margin-bottom: 4px; }
.modal-iframe-head .modal-desc { margin-bottom: 0; }
.modal-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 62vh;
  min-height: 440px;
  border: 1px solid #e8ecf5; border-radius: 10px;
  background: #fafbff;
}

/* 表单 */
.lead-form { }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  color: #333; margin-bottom: 6px;
}
.req { color: #e53935; }

.form-group input {
  display: block; width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd; border-radius: 8px;
  font-size: 14px; color: #222;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  outline: none;
}
.form-group input:focus {
  border-color: #0028AF;
  box-shadow: 0 0 0 3px rgba(0,40,175,.1);
}
.form-group input::placeholder { color: #aaa; }

.btn-full { width: 100%; padding: 12px; font-size: 16px; }

.form-note {
  font-size: 12px; color: #999; text-align: center;
  margin-top: 12px; line-height: 1.5;
}

/* 成功态 */
.modal-success {
  text-align: center; padding: 20px 0 10px;
}
.success-icon {
  display: inline-block; width: 52px; height: 52px; line-height: 52px;
  text-align: center; font-size: 28px; font-weight: 700; color: #fff;
  background: #30D070; border-radius: 50%;
  margin-bottom: 16px;
}
.modal-success h3 {
  font-size: 20px; color: #222; margin: 0 0 8px;
}
.modal-success p {
  font-size: 14px; color: #666; line-height: 1.6; margin: 0;
}

@media (max-width: 680px) {
  .modal-box {
    width: 94%; padding: 30px 24px 24px;
    border-radius: 12px;
  }
  .modal-title { font-size: 19px; }
}
