/* style/contact.css */

/* Base styles for the page-contact specific content */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default light text color for dark body background */
  background-color: #121212; /* Matches body background */
}

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

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

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

/* Links within content */
.page-contact a {
  color: #FFD700; /* Gold links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-contact a:hover {
  color: #ffe066; /* Lighter gold on hover */
}

/* Buttons */
.page-contact__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-contact__btn--primary {
  background-color: #FFD700; /* Gold button */
  color: #000000; /* Black text for gold button */
}

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

.page-contact__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text for secondary button */
  border-color: #FFD700;
}

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

.page-contact__btn--small {
  padding: 8px 15px;
  font-size: 14px;
}

.page-contact__btn--large {
  padding: 15px 30px;
  font-size: 18px;
}

/* Section: Hero Contact */
.page-contact__hero-contact-section {
  position: relative;
  padding-top: 120px; /* Spacing for fixed header */
  padding-bottom: 80px;
  background: linear-gradient(135deg, #000080, #121212);
  text-align: center;
}

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

.page-contact__hero-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* Section: Channels */
.page-contact__channels-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-contact__channel-card {
  background-color: rgba(255, 255, 255, 0.05); /* Transparent white for dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__channel-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.08);
}

.page-contact__channel-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background-color: #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-contact__channel-icon img {
  max-width: 60%;
  max-height: 60%;
  height: auto;
  display: block;
  object-fit: contain;
}

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

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

.page-contact__channel-info {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 10px;
}

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

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

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #000080; /* Dark blue border */
  border-radius: 5px;
  background-color: #222222;
  color: #ffffff;
  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: #888888;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFD700; /* Gold focus */
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  outline: none;
}

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

.page-contact__form-submit {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border-radius: 5px;
}

/* Section: Tips */
.page-contact__tips-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-contact__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-contact__tip-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: #cccccc;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__tip-item img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-top: 5px;
}

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

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

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

/* 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: #cccccc;
  font-size: 16px;
}

/* 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-color: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
}

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

.page-contact__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

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

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

/* 切换图标 */
.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: 30px;
  height: 30px;
}

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

/* Section: Commitment */
.page-contact__commitment-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__commitment-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: #cccccc;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__commitment-item img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-top: 5px;
}

/* Section: CTA */
.page-contact__cta-section {
  padding: 80px 0;
  background: linear-gradient(45deg, #000080, #121212);
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 40px;
  }
  .page-contact__hero-description {
    font-size: 18px;
  }
  .page-contact__section-title {
    font-size: 28px;
  }
  .page-contact__section-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* Fixed navigation bar spacing for mobile */
  .page-contact__hero-contact-section {
    padding-top: 100px !important;
    padding-bottom: 60px;
  }

  .page-contact__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-contact__hero-description {
    font-size: 16px;
  }

  .page-contact__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__btn--large {
    width: 100%;
  }

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

  .page-contact__section-description {
    font-size: 15px;
  }

  .page-contact__channels-grid,
  .page-contact__tips-list,
  .page-contact__commitment-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__channel-card,
  .page-contact__tip-item,
  .page-contact__commitment-item {
    padding: 20px;
  }

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

  .page-contact__channel-text,
  .page-contact__channel-info {
    font-size: 15px;
  }

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

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

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

  .page-contact__faq-question {
    padding: 15px;
  }

  .page-contact__faq-question h3 {
    font-size: 16px;
  }

  .page-contact__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }

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

  /* Ensure all images are responsive on mobile */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__channel-icon img {
    max-width: 60% !important;
    max-height: 60% !important;
    width: auto !important;
  }

  .page-contact__tip-item img,
  .page-contact__commitment-item img {
    max-width: 48px !important;
    width: auto !important;
  }

  .page-contact__hero-cta-group .page-contact__btn {
    width: 100%;
  }

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

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 28px;
  }
  .page-contact__section-title {
    font-size: 22px;
  }
  .page-contact__hero-cta-group {
    flex-direction: column;
  }
  .page-contact__btn--large {
    width: 100%;
  }
}