/* style/contact.css */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--dark-bg-1); /* Inherit from shared.css, assumed dark */
  padding-top: 120px; /* Fixed nav bar spacing for desktop */
}

.page-contact a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-contact__hero-contact-section {
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-contact__hero-contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__hero-contact-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold color for title */
  line-height: 1.2;
}

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

.page-contact__hero-contact-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
}

.page-contact__btn-primary {
  background: #FFD700;
  color: #000000;
  border: 2px solid #FFD700;
}

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

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

.page-contact__btn-secondary:hover {
  background: #FFD700;
  color: #000000;
}

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

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

.page-contact__dark-section {
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding: 60px 20px;
}

.page-contact__channels-section {
  padding: 60px 20px;
}

.page-contact__channels-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-contact__channel-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-contact__channel-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-contact__channel-icon {
  width: 120px; /* Increased size for icons */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__channel-text {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 20px;
}

.page-contact__btn-link {
  display: inline-block;
  padding: 10px 20px;
  background: #8B0000;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__btn-link:hover {
  background: #a30000;
  text-decoration: none;
}

.page-contact__form-section {
  padding: 60px 20px;
  background-color: #0d0d0d;
}

.page-contact__form-container {
  max-width: 800px;
  margin: 0 auto;
  background: #1a1a1a;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-contact__contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFD700;
}

.page-contact__contact-form input[type="text"],
.page-contact__contact-form input[type="email"],
.page-contact__contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #333;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__contact-form input[type="text"]:focus,
.page-contact__contact-form input[type="email"]:focus,
.page-contact__contact-form textarea:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
  outline: none;
}

.page-contact__contact-form textarea {
  resize: vertical;
}

.page-contact__btn-submit {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: #8B0000;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-contact__btn-submit:hover {
  background: #a30000;
  transform: translateY(-2px);
}

.page-contact__faq-section {
  padding: 60px 20px;
}

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

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255, 215, 0, 0.2);
  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;
  color: #ccc;
}

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

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

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

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

/* 问题标题样式 */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: inherit;
}

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

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

.page-contact__commitment-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-1);
  text-align: center;
}

.page-contact__commitment-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__commitment-cta {
  margin-top: 40px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-contact__hero-contact-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: 100px; /* Adjusted for mobile fixed nav */
  }
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__hero-contact-section,
  .page-contact__channels-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__commitment-section {
    padding: 40px 15px;
  }
  .page-contact__hero-contact-title {
    font-size: 2.2em;
  }
  .page-contact__hero-contact-description {
    font-size: 1em;
  }
  .page-contact__hero-contact-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-submit,
  .page-contact__btn-link {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-contact__channels-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__channel-icon {
    width: 100px;
    height: 100px;
  }
  .page-contact__channel-title {
    font-size: 1.5em;
  }
  .page-contact__channel-text {
    font-size: 0.9em;
  }
  .page-contact__form-container {
    padding: 30px 20px;
  }
  .page-contact__contact-form label {
    font-size: 0.95em;
  }
  .page-contact__contact-form input,
  .page-contact__contact-form textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }
  .page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-question h3 {
    font-size: 1em;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }
  .page-contact__content-area,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-contact-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.6em;
  }
  .page-contact__channel-icon {
    width: 80px;
    height: 80px;
  }
  .page-contact__channel-title {
    font-size: 1.3em;
  }
  .page-contact__faq-question h3 {
    font-size: 0.95em;
  }
}