/* style/contact.css */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure this matches shared.css body background */
}

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

/* Header offset */
.page-contact {
  padding-top: var(--header-offset, 120px);
}

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

.page-contact__hero-contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
}

.page-contact__hero-contact-content {
  flex: 1;
  text-align: left;
}

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

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

.page-contact__hero-contact-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A237E;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__hero-contact-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-contact__hero-contact-image-wrapper {
  flex: 1;
  text-align: right;
}

.page-contact__hero-contact-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

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

.page-contact__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  color: #f0f0f0;
}

.page-contact__channels-section {
  padding: 80px 0;
  background-color: #000000; /* Matching body background */
  color: #ffffff;
}

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

.page-contact__channel-card {
  background: #1A237E; /* Dark brand color */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* Ensure light text on dark background */
}

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

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

.page-contact__channel-description {
  font-size: 1em;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page-contact__channel-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A237E;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__channel-button:hover {
  background-color: #e6c200;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.page-contact__social-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.page-contact__social-icon:hover {
  transform: scale(1.1);
}

.page-contact__social-icon img {
  width: 200px;
  height: 200px;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__form-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for contrast */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  background-color: #ffffff;
}

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

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

.page-contact__form-submit-button {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #1A237E;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__form-submit-button:hover {
  background-color: #0d124b;
  transform: translateY(-2px);
}

.page-contact__faq-section {
  padding: 80px 0;
  background-color: #1A237E; /* Dark brand color */
  color: #ffffff;
}

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

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2c388e; /* Slightly lighter dark background for contrast */
  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 25px;
  opacity: 0;
  color: #e0e0e0;
}

/* 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 ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  background: #3f51b5; /* Slightly different dark shade for expanded answer */
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #1A237E;
  border: 1px solid #3f51b5;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.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: #0d124b;
  border-color: #4c62e6;
}

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

/* Question title style */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #FFD700;
}

/* Toggle icon */
.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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #ffffff;
}

.page-contact__location-section {
  padding: 80px 0;
  background-color: #000000;
  color: #ffffff;
  text-align: center;
}

.page-contact__location-info {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__address {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__map-placeholder img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-contact__hero-contact-container {
    flex-direction: column;
    text-align: center;
  }
  .page-contact__hero-contact-content {
    text-align: center;
  }
  .page-contact__hero-contact-title {
    font-size: 2.8em;
  }
  .page-contact__hero-contact-image-wrapper {
    text-align: center;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-contact__hero-contact-section,
  .page-contact__channels-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__location-section {
    padding: 40px 0;
  }

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

  .page-contact__hero-contact-title {
    font-size: 2.2em;
  }
  .page-contact__hero-contact-description {
    font-size: 1em;
  }
  .page-contact__hero-contact-button {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important;
  }

  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-contact__channels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__channel-card {
    padding: 25px;
  }
  .page-contact__channel-title {
    font-size: 1.5em;
  }
  .page-contact__channel-description {
    font-size: 0.9em;
  }
  .page-contact__channel-button {
    width: 100% !important;
    padding: 10px 15px;
    font-size: 0.95em;
  }
  .page-contact__social-icon img {
    
    
  }

  .page-contact__contact-form {
    padding: 25px;
  }
  .page-contact__form-label {
    font-size: 1em;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
  }
  .page-contact__form-submit-button {
    font-size: 1.1em;
    padding: 12px;
    width: 100% !important;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-question h3 {
    font-size: 1em;
  }
  .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: 15px 20px !important;
  }
  .page-contact__address {
    font-size: 1em;
  }

  /* Ensure all images are responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__hero-contact-image-wrapper,
  .page-contact__social-icon,
  .page-contact__map-placeholder {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}