/* style/contact.css */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Ensure consistency with body background */
}

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

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

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #017439, #1a8e4f); /* Gradient for visual appeal */
  color: #ffffff;
  overflow: hidden;
}

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

.page-contact__hero-image {
  width: 100%;
  max-width: 800px; /* Limit image width to prevent it from being too wide */
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__main-heading {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for main heading */
}

.page-contact__intro-text {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

/* Common Button Style */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
  background: #e02020;
  border-color: #e02020;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-secondary {
  background: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
  background: #f0f0f0;
  border-color: #017439;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__method-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-contact__method-card img {
  width: 100%;
  height: auto;
  
  margin: 0 auto 20px auto;
  display: block;
  object-fit: contain;
}

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

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

.page-contact__method-link {
  display: inline-block;
  color: #C30808;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  transition: color 0.3s ease;
}

.page-contact__method-link:hover {
  color: #e02020;
  text-decoration: underline;
}

.page-contact__operating-hours {
  margin-top: 60px;
  text-align: center;
  padding: 30px;
  background: #eef7f2;
  border-radius: 12px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__subtitle {
  font-size: 28px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__operating-hours p {
  font-size: 17px;
  color: #555555;
  line-height: 1.8;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
  color: #ffffff;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

.page-contact__submit-button {
  width: 100%;
  padding: 18px;
  font-size: 20px;
  border-radius: 8px;
  border: none;
  background: #C30808; /* Custom color */
  color: #FFFF00; /* Custom font color */
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__submit-button:hover {
  background: #e02020;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Social Section */
.page-contact__social-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-contact__social-icon {
  display: block;
  transition: transform 0.3s ease;
}

.page-contact__social-icon:hover {
  transform: translateY(-8px) scale(1.1);
}

.page-contact__social-icon img {
  
  
  display: block;
}

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

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

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

/* 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: #fdfdfd;
  color: #444444;
}

/* 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 25px !important;
  opacity: 1;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
}

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

.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: 700;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #333333;
}

/* 切换图标 */
.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; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #C30808;
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

/* CTA App Download Section */
.page-contact__cta-app-download {
  padding: 80px 0;
  background: linear-gradient(90deg, #017439, #1a8e4f); /* Branded gradient */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-contact__cta-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-contact__cta-text-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-contact__cta-app-download .page-contact__section-title {
  color: #FFFF00; /* Custom color */
  text-align: left;
  font-size: 42px;
}

.page-contact__cta-app-download .page-contact__section-description {
  color: #ffffff;
  text-align: left;
  margin-bottom: 30px;
  font-size: 18px;
}

.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.page-contact__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.page-contact__cta-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__main-heading {
    font-size: 40px;
  }
  .page-contact__section-title {
    font-size: 32px;
  }
  .page-contact__intro-text,
  .page-contact__section-description,
  .page-contact__operating-hours p {
    font-size: 17px;
  }
  .page-contact__cta-app-download .page-contact__section-title {
    font-size: 36px;
  }
  .page-contact__cta-content-wrapper {
    gap: 30px;
  }
  .page-contact__hero-image {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__main-heading {
    font-size: 32px;
  }
  
  .page-contact__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__social-section,
  .page-contact__faq-section,
  .page-contact__cta-app-download {
    padding: 50px 0;
  }

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

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

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

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

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

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

  .page-contact__operating-hours {
    margin-top: 40px;
    padding: 25px;
  }

  .page-contact__subtitle {
    font-size: 24px;
  }

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

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

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

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

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

  .page-contact__social-icon img {
    
    
  }

  /* FAQ Mobile Styles */
  .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;
  }

  .page-contact__cta-content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-contact__cta-text-content,
  .page-contact__cta-image-wrapper {
    text-align: center;
    max-width: 100%;
  }

  .page-contact__cta-app-download .page-contact__section-title {
    text-align: center;
    font-size: 30px;
  }

  .page-contact__cta-app-download .page-contact__section-description {
    text-align: center;
    margin-bottom: 20px;
  }

  .page-contact__cta-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-contact__cta-buttons .page-contact__cta-button {
    margin-top: 10px;
  }

  /* Ensure all images are responsive */
  .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__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-image {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Dark/Light Background Colors */
.page-contact__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-contact__dark-section .page-contact__section-title, 
.page-contact__dark-section .page-contact__section-description, 
.page-contact__dark-section p, 
.page-contact__dark-section h3 {
  color: #ffffff;
}

.page-contact__dark-section .page-contact__main-heading {
  color: #FFFF00;
}

/* Specific color overrides for dark sections */
.page-contact__form-section .page-contact__form-label {
  color: #ffffff;
}

.page-contact__form-section .page-contact__form-input, 
.page-contact__form-section .page-contact__form-textarea {
  color: #333333;
  background-color: #ffffff;
}

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

/* Contrast fixes for specific elements */
.page-contact__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Ensure all images adhere to min-size requirements */
.page-contact img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Maintain aspect ratio and cover area */
}

.page-contact__social-icon img {
  min-
  min-
  object-fit: contain; /* For icons, contain is better */
}

.page-contact__method-card img {
  min-
  min-
  object-fit: contain;
}