/* 
 * 联系表单样式冲突修复文件
 * 此文件用于解决contact.css与contact-form.css之间的样式冲突
 * 应在所有其他CSS文件之后加载
 */

/* 更新联系内容区域的布局 */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 50px auto 0;
  align-items: flex-start;
  max-width: 1200px;
  padding: 0 20px;
}

/* 统一联系表单和联系信息的样式 */
.contact-form,
.contact-info {
  flex: 1;
  min-width: 320px;
  max-width: calc(50% - 20px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 35px;
}

/* 增强卡片效果 */
.contact-form,
.contact-info {
  position: relative;
  border-top: 5px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info {
  border-color: var(--secondary-color);
}

.contact-form:hover,
.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* 调整间距和排版 */
.info-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.info-item:last-child {
  border-bottom: none;
}

/* 修复联系表单样式 */
.contact-form {
  background-color: #fff;
  padding: 35px 32px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  border-top: 5px solid var(--primary-color);
  height: fit-content;
}

/* 清除contact.css中的::before伪元素，避免重复的顶部边框 */
.contact-form::before {
  display: none;
}

/* 覆盖subscribe-compact.css中的表单样式，防止冲突 */
.contact-form .form-group {
  margin-bottom: 20px;
  display: block;
  position: static;
  padding: 0;
}

/* 确保订阅表单的样式不受联系表单影响 */
.newsletter-form .form-group {
  position: relative;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
}

.newsletter-section .form-row {
  display: flex;
  align-items: stretch;
}

/* 确保联系表单中的标签正确显示 */
.contact-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}

/* 修复输入框样式 */
.contact-form .form-group input:not([type="checkbox"]),
.contact-form .form-group textarea,
.contact-form .form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #fff;
  line-height: 1.5;
  margin-top: 2px;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus,
.contact-form .form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
  outline: none;
  background-color: #fafafa;
}

/* 修复复选框样式 */
.contact-form .form-checkbox {
  display: flex;
  align-items: flex-start;
  padding: 5px 0;
  margin-bottom: 10px;
}

.contact-form .form-checkbox input {
  width: auto;
  margin-right: 10px;
  margin-top: 4px;
  cursor: pointer;
}

.contact-form .form-checkbox label {
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

/* FAQ样式已移至faq.css */

/* 修复响应式样式 */
@media (max-width: 992px) {
  .contact-content {
    gap: 30px;
  }
  
  .contact-form,
  .contact-info {
    max-width: 100%;
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .contact-form {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .form-group label {
    font-size: 14px;
  }
  
  .form-group input:not([type="checkbox"]),
  .form-group textarea,
  .form-group select {
    padding: 12px 15px;
    font-size: 14px;
  }
}

/* 更新联系信息区块的样式以保持布局对齐 */
.contact-info {
  padding: 35px;
  border-top: 5px solid var(--secondary-color);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: 100%; /* 确保高度与表单匹配 */
}

.contact-info .info-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-top: 0; /* 移除顶部内边距 */
}

/* 联系方式区块的标题样式 */
.contact-info .section-header {
  text-align: left;
  margin-bottom: 30px;
}

.contact-info .section-header h3 {
  font-size: 24px;
  color: var(--text-color);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.contact-info .section-header h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.contact-info .section-header p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.5;
}

/* 修改发送信息为咨询表格 */
.contact-form .section-header {
  text-align: left;
  margin-bottom: 30px;
}

.contact-form .section-header h3 {
  font-size: 24px;
  color: var(--text-color);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.contact-form .section-header h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.contact-form .section-header p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.5;
}

/* 联系信息区块内图标样式 */
.info-item .info-icon {
    pointer-events: none; /* 禁用图标的鼠标事件 */
    user-select: none; /* 禁止选中 */
}

.info-item {
    cursor: default; /* 移除可点击的鼠标样式 */
}

.info-item * {
    user-select: text; /* 允许选择文本内容 */
}

.info-content {
    user-select: text; /* 确保内容可以选择 */
}

.info-content a {
    cursor: pointer; /* 保持链接的可点击效果 */
    user-select: text;
}
