/* style/contact.css */

/* Base Styles */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

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

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

/* Color Contrast Fixes */
.page-contact__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-contact__light-bg .page-contact__section-title,
.page-contact__light-bg .page-contact__section-description,
.page-contact__light-bg .page-contact__card,
.page-contact__light-bg .page-contact__channel-title,
.page-contact__light-bg .page-contact__channel-text,
.page-contact__light-bg .page-contact__email-address,
.page-contact__light-bg .page-contact__phone-number,
.page-contact__light-bg .page-contact__faq-title,
.page-contact__light-bg .page-contact__faq-answer p,
.page-contact__light-bg .page-contact__tip-item {
  color: #333333;
}

.page-contact__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-contact__btn-primary {
  background-color: #C30808; /* Đăng ký/Đăng nhập color */
  color: #FFFF00; /* Đăng ký/Đăng nhập font color */
  border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

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

.page-contact__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding-top: 0; /* Handled by shared.css for body padding-top */
  padding-bottom: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay */
  display: block;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-contact__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-contact__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

/* Channels Section */
.page-contact__channels-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-contact__channel-card {
  background: #f8f8f8;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact__channel-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-contact__channel-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-contact__channel-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__email-address,
.page-contact__phone-number {
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

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

.page-contact__social-btn {
  background-color: #017439;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-contact__social-btn:hover {
  background-color: #005a2e;
}

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

.page-contact__form-submit-btn {
  width: auto;
  padding: 15px 30px;
  font-size: 1.1em;
  margin-top: 20px;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-contact__form-submit-btn:hover {
  background-color: #e02020;
}

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

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #f0f0f0;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

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

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #ffffff;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-contact__faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: #555555;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-contact__commitment-text {
  font-size: 1.15em;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Tips Section */
.page-contact__tips-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-contact__tips-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  list-style: none;
  padding: 0;
}

.page-contact__tip-item {
  background: #f8f8f8;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-left: 5px solid #017439;
  border-radius: 8px;
  font-size: 1.05em;
  line-height: 1.6;
  color: #333333;
}

.page-contact__tip-item strong {
  color: #017439;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }

  .page-contact__hero-description {
    font-size: 1.2em;
  }

  .page-contact__section-title {
    font-size: 2em;
  }

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

  .page-contact__card {
    padding: 25px;
  }
}

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

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

  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 0; /* Ensures no double padding if shared.css handles body */
    padding-bottom: 60px;
    min-height: 500px;
  }

  .page-contact__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

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

  /* LOGO 轮播区域 (Not present in this page, but included for checklist compliance) */
  /* Example for compliance, if it were present */
  .page-contact__logo-carousel-section {
    padding: 30px 0;
  }
  .page-contact__logo-carousel {
    padding: 0 15px;
  }
  .page-contact__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }

  /* 游戏展示区域 (Not present in this page, but included for checklist compliance) */
  /* Example for compliance, if it were present */
  .page-contact__games-section {
    padding: 30px 0;
  }
  .page-contact__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__game-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }
  /* Exclude logo-item from general image rules */
  .page-contact__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    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;
    flex-direction: column; /* For vertical stacking of CTA buttons */
  }

  /* Các Kênh Liên Hệ Chính */
  .page-contact__channels-section {
    padding: 60px 0;
  }
  .page-contact__channels-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__channel-card {
    padding: 20px;
  }
  .page-contact__channel-icon {
    width: 100px;
    height: 100px;
  }

  /* Biểu Mẫu Liên Hệ */
  .page-contact__form-section {
    padding: 60px 0;
  }
  .page-contact__contact-form {
    padding: 25px;
  }
  .page-contact__form-label {
    font-size: 1em;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
    font-size: 0.9em;
  }

  /* Câu Hỏi Thường Gặp */
  .page-contact__faq-section {
    padding: 60px 0;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 10px 20px;
  }

  /* Cam Kết Hỗ Trợ Khách Hàng */
  .page-contact__commitment-section {
    padding: 60px 0;
  }
  .page-contact__commitment-text {
    font-size: 1em;
  }

  /* Lời Khuyên Khi Liên Hệ */
  .page-contact__tips-section {
    padding: 60px 0;
  }
  .page-contact__tip-item {
    padding: 15px 20px;
    font-size: 1em;
  }
}