/* 联系页面特定样式 */

/* 联系卡片 */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.contact-row .col-md-6 {
  width: calc(50% - 30px);
  margin: 0 15px 30px;
}

@media (max-width: 767px) {
  .contact-row .col-md-6 {
    width: 100%;
    margin: 0 0 30px;
  }
}

.contact-card {
  display: flex;
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.contact-text h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.contact-text p {
  margin: 0 0 10px;
  font-size: 1rem;
}

.contact-text p:last-child {
  margin-bottom: 0;
}

/* 表单样式 */
.contact-main .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.contact-main .col-lg-6 {
  width: calc(50% - 30px);
  margin: 0 15px;
}

@media (max-width: 991px) {
  .contact-main .col-lg-6 {
    width: 100%;
    margin: 0 0 30px;
  }
}

.contact-form-card, .contact-map-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.contact-form-card h2, .contact-map-card h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 10px;
}

.contact-form-card h2:after, .contact-map-card h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--orange);
}

.contact-form-card p {
  margin-bottom: 25px;
}

.contact-form .form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.contact-form .form-group {
  margin-bottom: 20px;
  padding: 0 10px;
  width: 100%;
}

.contact-form .form-group.half {
  width: 50%;
}

@media (max-width: 767px) {
  .contact-form .form-group.half {
    width: 100%;
  }
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-form .required {
  color: red;
}

.btn-block {
  display: block;
  width: 100%;
}

/* 地图样式 */
.map-container {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.transportation-info {
  margin-top: 30px;
}

.transportation-info h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.transportation-item {
  margin-bottom: 15px;
}

.transportation-item h4 {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.transportation-item h4 i {
  margin-right: 10px;
  color: var(--orange);
}

.transportation-item p {
  margin-left: 25px;
  margin-bottom: 0;
}

/* FAQ样式 */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: var(--white);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #f8f9fa;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
}

.faq-icon {
  color: var(--orange);
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 25px 20px;
  max-height: 500px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* 增加小卡片之间的垂直间距 */
.contact-row .col-md-6 .row .col-md-12 {
  margin-bottom: 32px; /* 控制垂直间距，可以根据需要调整数值 */
}

/* 最后一个卡片不需要下边距 */
.contact-row .col-md-6 .row .col-md-12:last-child {
  margin-bottom: 0;
}