.page-contact {
  color: #333333; /* Default text color for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--secondary-color); /* Body background from shared */
}

/* Header offset for desktop */
.page-contact__hero-section {
  padding-top: var(--header-offset, 120px);
}

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

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

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

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  background-color: #017439; /* Dark background for hero */
  color: #ffffff;
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-contact__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #FFFF00;
}

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

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
}

.page-contact__cta-button:hover {
  background: #a10707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__info-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-contact__grid-container {
  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;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-contact__contact-detail {
  font-size: 16px;
  color: #333333;
  margin-bottom: 10px;
}

.page-contact__link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__link:hover {
  text-decoration: underline;
}

.page-contact__form-section {
  padding: 80px 0;
  background-color: #f0f8f0; /* Light green tint */
}

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

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

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

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

.page-contact__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 2px rgba(1, 116, 57, 0.2);
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px;
  background: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__submit-button:hover {
  background: #005a2e;
  transform: translateY(-2px);
}

.page-contact__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
}

/* 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;
  padding: 0 20px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.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 bất kỳ nội dung nào */
  padding: 20px !important;
  opacity: 1;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề phong cách */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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;
}

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

/* Phong cách tiêu đề câu hỏi */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
  color: #333333;
}

/* Chuyển đổi biểu tượng */
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e6f7ed;
}

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

.page-contact__social-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

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

.page-contact__social-icon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__social-icon img {
  
  
  object-fit: contain;
  max-width: 100%;
}

.page-contact__social-icon:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* --- Màu sắc thông minh và tương phản --- */
.page-contact__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-contact__medium-bg {
  background-color: #f0f8f0;
  color: #333333;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

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

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

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__social-section {
    padding: 40px 0;
  }

  .page-contact__container {
    padding: 0 15px;
  }

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

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

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

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

  .page-contact__submit-button {
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .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: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }

  .page-contact__social-icon {
    width: 50px;
    height: 50px;
  }
  
  .page-contact__social-icon img {
    
    
  }

  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__hero-image,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__social-section,
  .page-contact__container,
  .page-contact__contact-card,
  .page-contact__contact-form,
  .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;
  }
}