/* form.css - 表单+按钮+交互（联系页/留言页加载） */

/* ===== 表单样式 ===== */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary);
  font-size: 0.95em;
}
.form-label .required {
  color: #e74c3c;
  margin-left: 4px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1em;
  background: var(--white);
  color: var(--text);
  transition: all 0.3s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0,191,165,0.15);
}
.form-textarea {
  min-height: 150px;
  resize: vertical;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666'%3E%3Cpath d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-hint {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 6px;
}
.form-error {
  font-size: 0.85em;
  color: #e74c3c;
  margin-top: 6px;
}

/* ===== 联系页面布局 ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px;
}
.contact-info h2 {
  color: var(--primary);
  margin-bottom: 20px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.contact-info-item:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.2em;
  flex-shrink: 0;
}
.contact-info-text h4 {
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 1.05em;
}
.contact-info-text p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95em;
}

/* 地图占位 */
.map-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, var(--light), #e8e4ef);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-top: 20px;
}

/* 留言表单 */
.message-form {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.message-form h2 {
  color: var(--primary);
  margin-bottom: 25px;
  font-size: 1.3em;
}

/* 常见问题 */
.faq-list {
  margin-top: 20px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--primary);
  transition: all 0.3s;
}
.faq-question:hover {
  background: var(--light);
}
.faq-question::after {
  content: "+";
  font-size: 1.4em;
  color: var(--secondary);
  transition: transform 0.3s;
}
.faq-question.open::after {
  content: "−";
}
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  background: var(--light);
}
.faq-answer.show {
  padding: 16px 20px;
  max-height: 300px;
}
.faq-answer p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

/* 服务时间 */
.service-hours {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 20px;
}
.service-hours h4 {
  color: var(--primary);
  margin-bottom: 12px;
}
.service-hours p {
  margin: 6px 0;
  color: var(--text);
}
.service-hours .highlight {
  color: var(--secondary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .message-form { padding: 25px 20px; }
}
