/* style/contact.css */

/* Global styles for page-contact scope */
.page-contact {
  background-color: transparent; /* Body background is #000, so this section will inherit */
  color: #ffffff; /* Default text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 80px; /* Space above footer */
}

/* Fixed header padding */
.page-contact__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #0A1931, #1e3a5f); /* Dark gradient background for hero */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:m99,contact-hero-pattern,1920x1080]') no-repeat center center/cover;
  opacity: 0.1;
  z-index: 0;
}

.page-contact__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-contact__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold color for main title */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-contact__cta-button--primary {
  background: #FFD700; /* Gold */
  color: #0A1931; /* Dark blue */
}

.page-contact__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button--secondary {
  background: #0A1931; /* Dark blue */
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-contact__cta-button--secondary:hover {
  background: #1e3a5f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

/* Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* 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.1); /* Card background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-contact__info-icon {
  width: 100%; /* Ensure image fills card width responsively */
  max-width: 250px; /* Limit max width */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

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

.page-contact__info-card-text {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1; /* Make text take available space */
}

.page-contact__btn-link {
  display: inline-block;
  background: #FFD700;
  color: #0A1931;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

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

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

.page-contact__social-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-contact__social-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

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

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

.page-contact__form-input::placeholder {
  color: #888;
}

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

.page-contact__form-input[type="submit"] {
  background: #FFD700;
  color: #0A1931;
  font-weight: bold;
  cursor: pointer;
  border: none;
  padding: 15px 25px;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__form-input[type="submit"]:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: #FFD700;
  color: #0A1931;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  margin-top: 20px;
}

.page-contact__submit-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

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

.page-contact__commitment-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

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

.page-contact__commitment-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.1);
}

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

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08); /* Darker card 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 20px; /* Adjusted padding */
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đả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 !important; /* Adjusted padding */
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #e0e0e0; /* Light text color for answer */
}

/* Vấn đề phong cách */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.12); /* Question background */
  border: 1px solid #444; /* Darker border */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: rgba(255, 255, 255, 0.15); /* Lighter hover background */
  border-color: #FFD700; /* Gold border on hover */
}

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

/* Vấn đề tiêu đề phong cách */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em; /* Increased font size */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
  color: #FFD700; /* Gold color for question title */
}

/* Chuyển đổi biểu tượng */
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 215, 0, 0.2); /* Light gold background for toggle */
  border-radius: 50%;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #ffffff; /* White color when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
  background: #FFD700; /* Gold background when active */
}

/* Blog Section */
.page-contact__blog-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-contact__blog-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-contact__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure link covers entire card */
}

.page-contact__blog-image {
  width: 100%;
  height: 200px; /* Fixed height for blog images */
  object-fit: cover;
  border-bottom: 1px solid #444;
}

.page-contact__blog-item-title {
  font-size: 1.5em;
  color: #FFD700;
  padding: 20px 20px 10px 20px;
  margin: 0;
}

.page-contact__blog-item-excerpt {
  font-size: 0.95em;
  color: #e0e0e0;
  padding: 0 20px 15px 20px;
  flex-grow: 1; /* Make excerpt take available space */
}

.page-contact__blog-item-date {
  display: block;
  font-size: 0.85em;
  color: #888;
  padding: 0 20px 20px 20px;
  text-align: right;
}

/* General image responsiveness */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
  }

  .page-contact__main-title {
    font-size: 2.2em;
  }

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

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

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

  .page-contact__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__commitment-section,
  .page-contact__faq-section,
  .page-contact__blog-section {
    padding: 50px 0;
  }

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

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

  .page-contact__form {
    padding: 25px;
  }

  .page-contact__form-label {
    font-size: 1em;
  }

  .page-contact__form-input {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  .page-contact__submit-button {
    padding: 12px 20px;
    font-size: 1em;
  }

  /* FAQ mobile adjustments */
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-contact__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-contact__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }

  /* Image responsiveness for mobile */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__info-icon,
  .page-contact__commitment-icon {
    max-width: 150px; /* Adjust max-width for smaller screens */
  }

  .page-contact__blog-image {
    height: 180px; /* Adjust height for mobile blog images */
  }

  .page-contact__blog-item-title {
    font-size: 1.3em;
  }
}

/* Ensure images and videos are responsive and don't overflow */
.page-contact img,
.page-contact video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__info-card,
.page-contact__commitment-item,
.page-contact__blog-item,
.page-contact__form {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-contact__info-card,
  .page-contact__commitment-item,
  .page-contact__blog-item,
  .page-contact__form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__info-icon,
  .page-contact__commitment-icon,
  .page-contact__blog-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
}