.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8;
}

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

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

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

/* Hero Banner Section */
.page-contact__hero-banner {
  position: relative;
  width: 100%;
  height: 400px; /* Fixed height for visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-contact__hero-image-actual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
  border-radius: 8px;
  max-width: 800px;
}

.page-contact__hero-title {
  font-size: 48px;
  margin-bottom: 15px;
  color: #FFD700; /* Accent color for title */
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 20px;
  margin-bottom: 0;
  color: #f0f0f0;
}

/* Contact Info Section */
.page-contact__contact-info-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-contact__contact-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__icon-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.page-contact__contact-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-contact__card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

.page-contact__address-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  font-style: italic;
}

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

.page-contact__btn-link:hover {
  background-color: #e0b800;
  color: #000000;
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
}

.page-contact__dark-section {
  background-color: #0A2E36;
  color: #ffffff;
}

.page-contact__dark-section .page-contact__section-title {
  color: #FFD700;
}

.page-contact__dark-section .page-contact__section-description {
  color: #f0f0f0;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  color: #0A2E36;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD700;
  outline: none;
}

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

.page-contact__btn-primary {
  display: block;
  width: 100%;
  background-color: #0A2E36;
  color: #ffffff;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary:hover {
  background-color: #1a4a5a;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px 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 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f0f0f0;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

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

/* 切换图标 */
.page-contact__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #0A2E36;
  transform: rotate(45deg);
}

/* Social Media Section */
.page-contact__social-media-section {
  padding: 80px 0;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-contact__social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-contact__social-link:hover {
  transform: translateY(-5px);
  color: #FFD700;
}

.page-contact__social-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 50%; /* Make icons circular */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  height: auto;
  display: block;
}

/* General Image Responsiveness */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
/* @media (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 40px;
  }

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

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

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

/* @media (max-width: 768px) - Mobile specific styles */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-contact__hero-banner {
    height: 300px; /* Adjust height for mobile */
    padding-top: 0 !important; /* Ensure no double padding if shared.css sets body padding */
  }

  .page-contact__hero-content {
    padding: 15px;
    max-width: 90%;
  }

  .page-contact__hero-title {
    font-size: 32px;
    margin-bottom: 10px;
  }

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

  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

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

  /* Contact Info Section */
  .page-contact__contact-info-section {
    padding: 60px 0;
  }

  .page-contact__contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__contact-card {
    padding: 25px;
  }

  .page-contact__icon-wrapper {
    margin-bottom: 15px;
  }

  .page-contact__contact-icon {
    width: 200px !important;
    height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }

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

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

  /* Form Section */
  .page-contact__form-section {
    padding: 60px 0;
  }

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

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

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

  .page-contact__btn-primary {
    padding: 12px 15px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Section */
  .page-contact__faq-section {
    padding: 60px 0;
  }

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

  .page-contact__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-contact__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .page-contact__faq-answer {
    padding: 0 15px;
  }

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

  /* Social Media Section */
  .page-contact__social-media-section {
    padding: 60px 0;
  }

  .page-contact__social-links {
    gap: 20px;
  }

  .page-contact__social-link {
    font-size: 14px;
  }

  .page-contact__social-icon {
    width: 200px !important;
    height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Universal Image and Container Responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-group,
  .page-contact__social-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Buttons and Button Containers */
  .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__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;
    overflow-x: hidden;
  }
}