:root {
  --primary-color: #0A2463; /*帝王蓝*/
  --secondary-color: #FFD700; /*奢华金*/
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0d0d0d;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

/* Base styles for the entire page content */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Dark body background #0d0d0d, so light text */
  background-color: var(--bg-dark); /* Inherited from body, but explicitly set for safety */
  padding-top: 10px; /* Account for fixed header - Desktop */
}

/* General container for content sections */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles and descriptions */
.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

/* Hero Section */
.page-contact__hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(10, 36, 99, 0.8) 100%), url('[GALLERY:contact:hero_banner,sum_vip,support_team_large,1920x800]') no-repeat center center / cover;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -10px 20px rgba(0,0,0,0.2);
}

.page-contact__hero-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 22px;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.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;
  white-space: nowrap;
}

.page-contact__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-contact__cta-button--primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button--secondary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

.page-contact__cta-button--secondary:hover {
  background: #071c4d; /* Slightly darker blue */
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Contact Info Section */
.page-contact__contact-info-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-contact__info-card {
  background: rgba(255, 255, 255, 0.05); /* Semi-transparent light for contrast */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-contact__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__info-icon {
  width: 100px; /* Ensure minimum size */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--secondary-color)); /* Subtle glow */
}

.page-contact__info-card-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__info-card-text {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1; /* Push link to bottom */
}

.page-contact__info-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  transition: color 0.3s ease;
  padding: 8px 15px;
  border: 1px solid var(--secondary-color);
  border-radius: 5px;
}

.page-contact__info-link:hover {
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

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

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  font-size: 17px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-light);
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
  outline: none;
}

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

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__submit-button:hover {
  background: #e6c200; /* Darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

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

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

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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 25px;
  opacity: 0;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
}

/* FAQ展开状态 - 🚨 Sử dụng!important và max-height đủ lớn để đả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 mức ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__faq-answer p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-contact__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__faq-answer a:hover {
  color: #e6c200;
}

/* Vấn đề kiểu dáng */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(10, 36, 99, 0.9); /* Màu chính với độ trong suốt */
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  position: relative;
}

.page-contact__faq-item.active .page-contact__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-contact__faq-question:hover {
  background: rgba(10, 36, 99, 1);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-contact__faq-question:active {
  transform: translateY(0);
}

/* Kiểu dáng 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;
  color: var(--secondary-color);
  pointer-events: none; /* Ngă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: var(--secondary-color);
  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;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg);
}

/* Promotion CTA Section */
.page-contact__promotion-cta-section {
  padding: 80px 0;
  background: linear-gradient(90deg, var(--secondary-color) 0%, #ffd700cc 100%), url('[GALLERY:contact:promotion_bg,sum_vip,bonus_coins,1920x400]') no-repeat center center / cover;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 10px 20px rgba(0,0,0,0.2);
}

.page-contact__promotion-cta-content {
  background: rgba(0, 0, 0, 0.6); /* Lớp phủ tối cho khả năng đọc văn bản */
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__promotion-cta-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.page-contact__promotion-cta-description {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 42px;
  }
  .page-contact__hero-description {
    font-size: 20px;
  }
  .page-contact__section-title {
    font-size: 32px;
  }
  .page-contact__section-description {
    font-size: 17px;
  }
  .page-contact__info-card-title {
    font-size: 22px;
  }
  .page-contact__promotion-cta-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: 10px !important; /* Mobile fixed header padding */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__container {
    padding: 0 15px; /* Adjust padding for smaller screens */
  }

  .page-contact__hero-section {
    padding: 80px 0 60px;
  }

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

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

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

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

  .page-contact__contact-info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__promotion-cta-section {
    padding: 60px 0;
  }

  .page-contact__info-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }

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

  .page-contact__info-icon {
    width: 80px;
    height: 80px;
  }

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

  .page-contact__form {
    padding: 30px;
  }

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

  .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;
  }

  /* FAQ */
  .page-contact__faq-question {
    padding: 18px 20px;
  }
  
  .page-contact__faq-question h3 {
    font-size: 16px;
  }
  
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

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

  .page-contact__promotion-cta-title {
    font-size: 28px;
  }

  .page-contact__promotion-cta-description {
    font-size: 17px;
  }

  .page-contact__promotion-cta-content {
    padding: 30px;
  }
}

/* Ensure all images are responsive */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all containers for images/videos are responsive */
.page-contact__section,
.page-contact__card,
.page-contact__container,
.page-contact__hero-section,
.page-contact__contact-info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__promotion-cta-section,
.page-contact__info-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile specific overrides for images and containers */
@media (max-width: 768px) {
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__contact-info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__promotion-cta-section,
  .page-contact__info-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Adding padding to sections to prevent content touching edges */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Override section padding for mobile to ensure content stays within bounds */
  .page-contact__hero-section,
  .page-contact__contact-info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__promotion-cta-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* Specific padding for form and info grid container on mobile */
  .page-contact__form,
  .page-contact__info-grid,
  .page-contact__faq-list,
  .page-contact__promotion-cta-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Text contrast for dark background */
.page-contact h1, .page-contact h2, .page-contact h3, .page-contact p, .page-contact li, .page-contact label {
  color: var(--text-light); /* Default to light text on dark body background */
}

/* Specific elements on primary/secondary colors need contrast */
.page-contact__cta-button--primary { /* Gold button */
  background: var(--secondary-color);
  color: var(--primary-color); /* Dark text on gold */
}

.page-contact__cta-button--secondary { /* Blue button */
  background: var(--primary-color);
  color: var(--text-light); /* Light text on blue */
  border-color: var(--secondary-color);
}

.page-contact__info-card-title,
.page-contact__info-link {
  color: var(--secondary-color); /* Gold text on dark background */
}

.page-contact__form-label {
  color: var(--secondary-color); /* Gold text on dark background */
}

.page-contact__submit-button { /* Gold button */
  background: var(--secondary-color);
  color: var(--primary-color); /* Dark text on gold */
}

.page-contact__faq-question h3,
.page-contact__faq-toggle {
  color: var(--secondary-color); /* Gold text on primary blue background */
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: var(--text-light); /* Light text when active */
}

.page-contact__promotion-cta-title {
  color: var(--secondary-color); /* Gold text on dark overlay */
}

.page-contact__promotion-cta-description {
  color: var(--text-light); /* Light text on dark overlay */
}

/* Emergency fix classes */
.page-contact__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-contact__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}