/* style/contact.css */

/* General Page Styles */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--dark-bg-1);
}

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

.page-contact__section-title {
  font-size: 36px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 18px;
  color: #ccc;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #003366;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary:hover {
  background-color: #e6c200;
  color: #002244;
}

.page-contact__btn-link {
  display: inline-block;
  background-color: #003366;
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #FFD700;
  font-size: 15px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-link:hover {
  background-color: #FFD700;
  color: #003366;
  border-color: #003366;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('[GALLERY:hero:1920x1080:s666 contact hero,customer service,online support,vietnam]') no-repeat center center/cover;
  padding: var(--header-offset, 120px) 0 80px; /* Use header offset if body doesn't have it */
  text-align: center;
  color: #ffffff;
}

.page-contact__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__hero-title {
  font-size: 52px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-contact__hero-description {
  font-size: 20px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  color: #f0f0f0;
}

/* Info Section */
.page-contact__info-section {
  background-color: #003366; /* Dark blue background */
  padding: 80px 0;
  color: #ffffff;
}

.page-contact__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-contact__info-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__info-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__info-icon {
  width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
  max-width: 100%;
  display: block;
}

.page-contact__card-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: #1a1a1a;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #003366;
  border-radius: 5px;
  background-color: #0a0a0a;
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD700;
  outline: none;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.page-contact__form-textarea {
  resize: vertical;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #002244; /* Slightly darker blue */
  padding: 80px 0;
  color: #ffffff;
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #003366;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #003366;
  border: 1px solid #004488;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: #004488;
  border-color: #FFD700;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none;
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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-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;
  color: #f0f0f0;
  background: #002a52;
  border-radius: 0 0 8px 8px;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Use rotate for 'X' effect */
}

/* Location Section */
.page-contact__location-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
}

.page-contact__map-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 100%;
}

.page-contact__address-text {
  text-align: center;
  font-size: 18px;
  color: #f0f0f0;
}

/* Responsive Styles */

@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 44px;
  }

  .page-contact__hero-description {
    font-size: 18px;
  }

  .page-contact__section-title {
    font-size: 32px;
  }

  .page-contact__section-description {
    font-size: 16px;
  }

  .page-contact__info-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 60px; /* Adjust for mobile, assuming shared handles body padding */
    padding-bottom: 50px;
  }

  .page-contact__hero-title {
    font-size: 36px;
  }

  .page-contact__hero-description {
    font-size: 16px;
    padding: 0 15px;
  }

  /* 产品展示图区域 (Not applicable for contact page, but included for completeness if it were a homepage) */
  /* .page-contact__products-section { padding: 40px 15px; width: 100%; max-width: 100%; overflow-x: hidden; box-sizing: border-box; } */
  /* .page-contact__products-container { grid-template-columns: 1fr; gap: 15px; width: 100%; max-width: 100%; overflow-x: hidden; box-sizing: border-box; } */
  /* .page-contact__products-grid--small { grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%; max-width: 100%; box-sizing: border-box; } */
  /* .page-contact__products-grid--large { grid-template-columns: 1fr; gap: 15px; width: 100%; max-width: 100%; box-sizing: border-box; } */
  /* .page-contact__product-card, .page-contact__product-card-image { max-width: 300px; } */
  /* .page-contact__product-card-image img { max-width: 100%; width: 100%; height: auto; } */

  /* 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-contact__btn-primary,
  .page-contact__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__info-card .page-contact__btn-link {
    width: auto !important; /* Allow buttons in cards to be smaller than 100% width */
    max-width: 200px !important;
  }

  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Other content modules */
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__location-section {
    padding: 40px 0;
  }

  .page-contact__info-card {
    padding: 20px;
  }

  .page-contact__card-title {
    font-size: 20px;
  }

  .page-contact__card-text {
    font-size: 15px;
  }

  .page-contact__contact-form {
    padding: 30px 20px;
  }

  .page-contact__form-label {
    font-size: 16px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    font-size: 15px;
    padding: 10px 12px;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
  }

  .page-contact__faq-question h3 {
    font-size: 16px;
  }

  .page-contact__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }
}