/* style/contact.css */

/* --- General Contact Page Styles --- */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

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

.page-contact__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for titles */
}

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

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #CC0000 0%, #800000 100%);
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for H1 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-contact__description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  line-height: 1.8;
}

.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-contact__btn-primary {
  background: #FFD700; /* Gold for primary CTA */
  color: #CC0000; /* Red text for contrast */
}

.page-contact__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-secondary {
  background: #CC0000; /* Red for secondary CTA */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #FFD700; /* Gold border */
}

.page-contact__btn-secondary:hover {
  background: #a30000;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- Contact Methods Section --- */
.page-contact__methods-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark gray background for this section */
  color: #f0f0f0;
}

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

.page-contact__method-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-contact__method-icon {
  width: 300px; /* Actual display size, must be >= 200px */
  height: 200px; /* Actual display size, must be >= 200px */
  object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Gold glow for icons */
  display: block; /* Ensure it respects width/height */
}

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

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

.page-contact__method-card .page-contact__btn-primary,
.page-contact__method-card .page-contact__btn-secondary {
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-contact__method-card .page-contact__btn-primary {
  background: #FFD700;
  color: #CC0000;
}

.page-contact__method-card .page-contact__btn-primary:hover {
  background: #e6c200;
}

.page-contact__method-card .page-contact__btn-secondary {
  background: #CC0000;
  color: #ffffff;
  border: 1px solid #FFD700;
}

.page-contact__method-card .page-contact__btn-secondary:hover {
  background: #a30000;
  border-color: #e6c200;
}

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

.page-contact__faq-list {
  margin-top: 50px;
}

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

/* 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 20px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.03); /* Light background for answer on dark section */
  color: #cccccc;
}

/* FAQ展开状态 - 🚨 使用!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 mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Vấn đề kiểu */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for question */
  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: rgba(255, 255, 255, 0.12);
}

.page-contact__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

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

/* Chuyển đổi biểu tượng */
.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; /* Ngăn chặn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Xoay để tạo hiệu ứng 'x' */
}

/* --- Support Hours Section --- */
.page-contact__support-hours {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-contact__hours-info {
  text-align: center;
  margin-top: 40px;
}

.page-contact__hours-text {
  font-size: 18px;
  margin-bottom: 15px;
  color: #cccccc;
}

.page-contact__hours-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px auto 0; /* Centered */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  display: block; /* Ensure it respects width/height and margin auto */
}

/* --- Bottom CTA Section --- */
.page-contact__bottom-cta {
  padding: 80px 20px;
  background: linear-gradient(135deg, #CC0000 0%, #800000 100%);
  color: #ffffff;
  text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 42px;
  }
  .page-contact__section-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

  .page-contact__description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__support-hours,
  .page-contact__bottom-cta {
    padding: 60px 0;
  }
  
  .page-contact__container {
    padding: 0 15px;
  }

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

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

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

  .page-contact__method-icon {
    width: 300px; /* Display size */
    height: 200px; /* Display size */
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Enforce min-size even on mobile */
    min-height: 200px !important; /* Enforce min-size even on mobile */
  }

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

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

  /* FAQ Mobile */
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-contact__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
    color: #FFD700;
  }
  
  .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__hours-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Ensure all content sections are responsive */
  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__support-hours,
  .page-contact__bottom-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-contact__method-grid {
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-contact__faq-list {
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-contact__hours-info {
    padding: 0 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 30px;
  }
  .page-contact__section-title {
    font-size: 26px;
  }
  .page-contact__description {
    font-size: 16px;
  }
  .page-contact__method-title {
    font-size: 20px;
  }
  .page-contact__method-text {
    font-size: 14px;
  }
  .page-contact__hours-text {
    font-size: 16px;
  }
}

/* --- Image specific styles for minimum size compliance --- */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Ensure no small icons */
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* default for general images */
}