/* style/contact.css */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg-1); /* Ensure body background is respected */
}

.page-contact__intro-section {
  padding: 120px 20px 60px; /* Top padding for fixed header */
  background-color: #0A2463; /* Main brand color */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-contact__title {
  font-size: 3.2em;
  color: #E0B14A; /* Accent color for titles */
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-contact__subtitle {
  font-size: 2.5em;
  color: #E0B14A; /* Accent color for subtitles */
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

.page-contact__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__text-block {
  font-size: 1.05em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: center;
}

.page-contact__methods-section {
  padding: 80px 20px;
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333;
}

.page-contact__methods-section .page-contact__text-block {
  color: #333333;
}

.page-contact__methods-section .page-contact__subtitle {
  color: #0A2463;
}

.page-contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__card {
  background-color: #0A2463; /* Dark brand color for cards */
  color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.page-contact__card-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 25px;
  display: block;
}

.page-contact__card-title {
  font-size: 1.8em;
  color: #E0B14A;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__card-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__email-address, .page-contact__phone-number {
  font-size: 1.1em;
  margin-bottom: 15px;
}

.page-contact__email-link, .page-contact__phone-link, .page-contact__social-link {
  color: #E0B14A;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__email-link:hover, .page-contact__phone-link:hover, .page-contact__social-link:hover {
  color: #ffd700;
  text-decoration: underline;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.page-contact__btn-primary {
  display: inline-block;
  background-color: #E0B14A;
  color: #0A2463;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto; /* Push button to bottom */
}

.page-contact__btn-primary:hover {
  background-color: #ffd700;
  transform: translateY(-3px);
  color: #000000;
}

.page-contact__btn--large {
  padding: 18px 35px;
  font-size: 1.2em;
  margin-top: 40px;
}

.page-contact__form-section {
  padding: 80px 20px;
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.page-contact__form-group {
  margin-bottom: 25px;
}

.page-contact__form-label {
  display: block;
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #E0B14A;
  font-weight: bold;
}

.page-contact__form-input, .page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #1a3a70;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder, .page-contact__form-textarea::placeholder {
  color: #bbb;
}

.page-contact__form-input:focus, .page-contact__form-textarea:focus {
  border-color: #E0B14A;
  background-color: #2a4a80;
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__contact-form .page-contact__btn-primary {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.2em;
  margin-top: 15px;
}

.page-contact__faq-section {
  padding: 80px 20px;
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333;
}

.page-contact__faq-section .page-contact__subtitle, .page-contact__faq-section .page-contact__text-block {
  color: #0A2463;
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #ffffff;
  color: #333333;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #0A2463;
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border: none; /* Removed border from here as it's on parent */
}

.page-contact__faq-item.active .page-contact__faq-question {
  border-radius: 8px 8px 0 0;
}

.page-contact__faq-question:hover {
  background: #1a3a70;
}

.page-contact__faq-question:active {
  background: #051a4a;
}

/* 问题标题样式 */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #E0B14A;
}

/* 切换图标 */
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E0B14A;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #ffd700;
  transform: rotate(180deg);
}

.page-contact__commitment-section {
  padding: 80px 20px;
  background-color: #0A2463;
  color: #ffffff;
  text-align: center;
}

.page-contact__commitment-section .page-contact__subtitle {
  color: #E0B14A;
}

.page-contact__commitment-section .page-contact__text-block {
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__title {
    font-size: 2.8em;
  }
  .page-contact__subtitle {
    font-size: 2em;
  }
  .page-contact__card-title {
    font-size: 1.6em;
  }
  .page-contact__card-image {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .page-contact__intro-section {
    padding: 100px 15px 40px;
  }
  .page-contact__title {
    font-size: 2.2em;
  }
  .page-contact__subtitle {
    font-size: 1.8em;
  }
  .page-contact__description, .page-contact__text-block, .page-contact__card-description {
    font-size: 1em;
  }
  .page-contact__methods-section, .page-contact__form-section, .page-contact__faq-section, .page-contact__commitment-section {
    padding: 60px 15px;
  }
  .page-contact__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__card {
    padding: 25px;
  }
  .page-contact__card-image {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }
  .page-contact__card-title {
    font-size: 1.4em;
  }
  .page-contact__btn-primary {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-contact__contact-form {
    padding: 30px;
  }
  .page-contact__form-label {
    font-size: 1em;
  }
  .page-contact__form-input, .page-contact__form-textarea {
    padding: 12px;
    font-size: 0.95em;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-question h3 {
    font-size: 1em;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Mobile image responsive adaptation */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact__title {
    font-size: 1.8em;
  }
  .page-contact__subtitle {
    font-size: 1.5em;
  }
  .page-contact__intro-section {
    padding: 90px 10px 30px;
  }
  .page-contact__methods-section, .page-contact__form-section, .page-contact__faq-section, .page-contact__commitment-section {
    padding: 40px 10px;
  }
  .page-contact__contact-form {
    padding: 20px;
  }
  .page-contact__faq-question {
    padding: 12px 15px;
  }
  .page-contact__faq-question h3 {
    font-size: 0.95em;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 10px 15px !important;
  }
  .page-contact__social-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Dark background color classes */
.page-contact__dark-bg {
  background-color: #0A2463;
  color: #ffffff;
}

.page-contact__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

.page-contact__dark-bg .page-contact__subtitle {
  color: #E0B14A;
}

.page-contact__light-bg .page-contact__subtitle {
  color: #0A2463;
}

.page-contact__dark-bg .page-contact__text-block {
  color: #f0f0f0;
}

.page-contact__light-bg .page-contact__text-block {
  color: #333333;
}

.page-contact__dark-bg .page-contact__form-label {
  color: #E0B14A;
}

.page-contact__dark-bg .page-contact__form-input,
.page-contact__dark-bg .page-contact__form-textarea {
  background-color: #1a3a70;
  color: #ffffff;
  border-color: #444;
}

.page-contact__dark-bg .page-contact__form-input::placeholder,
.page-contact__dark-bg .page-contact__form-textarea::placeholder {
  color: #bbb;
}

.page-contact__dark-bg .page-contact__form-input:focus,
.page-contact__dark-bg .page-contact__form-textarea:focus {
  border-color: #E0B14A;
  background-color: #2a4a80;
}