/* 遮罩 */
.consult-modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

/* 弹窗 */
.consult-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 500px;
  background: linear-gradient(to bottom right, #2563eb, #0891b2);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 32px;
  display: none;
  color: #ffffff;
}

/* 关闭按钮 */
.consult-modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: color 0.2s;
}
.consult-modal-close:hover {
  color: #ffffff;
}

/* 头部 */
.consult-modal-header {
  text-align: center;
  margin-bottom: 32px;
}
.consult-modal-header h3 {
  font-size: 24px;
  color: #ffffff;
  margin: 0 0 8px 0;
  font-weight: 700;
}
.consult-modal-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* 表单 */
.consult-form .form-group {
  margin-bottom: 24px;
}
.consult-form input,
.consult-form textarea {
  width: 100%;
  height: 44px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 16px;
  color: #ffffff;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
}
.consult-form input::placeholder,
.consult-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.consult-form input:focus,
.consult-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}
.consult-form textarea {
  height: 100px;
  padding: 12px 16px;
  resize: none;
}

/* 提交按钮（官网主色调风格） */
.consult-form .form-submit button {
  width: 100%;
  height: 46px;
  background: #ffffff;
  color: #2563eb;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.consult-form .form-submit button:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 显示状态 */
.consult-modal-mask.show,
.consult-modal.show {
  display: block;
}
/* 表单错误提示 */
.form-group-alert {
  color: #ff4d4f;
  font-size: 18px;
  margin-top: 5px;
  padding: 5px 0;
}

/* 输入框错误状态 */
.form-group input.error,
.form-group textarea.error {
  border-color: #ff4d4f;
}
/* ======================
   移动端响应式（手机样式）
====================== */
@media (max-width: 767px) {
  .consult-modal {
    width: 90%;
    max-width: 360px;
    padding: 20px;
  }

  .consult-modal-header h3 {
    font-size: 20px;
  }

  .consult-modal-header p {
    font-size: 13px;
  }

  .consult-form .form-group {
    margin-bottom: 16px;
  }

  .consult-form input,
  .consult-form textarea {
    height: 42px;
    font-size: 14px;
    padding: 12px 16px;
  }

  .consult-form textarea {
    height: 90px;
    padding: 12px 16px;
  }

  .consult-form .form-submit button {
    height: 44px;
    font-size: 15px;
  }

  .consult-modal-close {
    font-size: 22px;
    right: 14px;
    top: 12px;
  }
}