/* style/contact.css */
.page-contact {
  background-color: #08160F; /* Nền tối theo tùy chỉnh */
  color: #F2FFF6; /* Chữ sáng cho nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  padding-top: 10px; /* Nhỏ hơn var(--header-offset) */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 800px;
  margin-top: -150px; /* Kéo nội dung lên trên ảnh một chút nhưng không che phủ hoàn toàn */
  background: linear-gradient(0deg, rgba(8, 22, 15, 0.9) 0%, rgba(8, 22, 15, 0.5) 50%, rgba(8, 22, 15, 0) 100%);
  padding-top: 150px;
}

.page-contact__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #F2C14E; /* Màu vàng Gold */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-contact__hero-description {
  font-size: 1.1rem;
  color: #F2FFF6;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.8;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #F2C14E; /* Màu vàng Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.05rem;
  color: #A7D9B8; /* Màu xanh phụ */
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Methods Section */
.page-contact__info-section {
  padding: 60px 0;
}

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

.page-contact__method-card {
  background-color: #11271B; /* Màu nền Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Màu viền */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 100px; /* Đảm bảo kích thước tối thiểu */
  min-height: 100px;
}

.page-contact__method-title {
  font-size: 1.6rem;
  color: #F2FFF6; /* Chữ chính */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__method-text {
  font-size: 1rem;
  color: #A7D9B8; /* Chữ phụ */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__email-address, .page-contact__phone-number {
  font-size: 1.1rem;
  color: #F2FFF6;
  margin-top: 10px;
  word-break: break-all;
}

.page-contact__email-link, .page-contact__phone-link {
  color: #57E38D; /* Màu Glow */
  text-decoration: none;
}

.page-contact__email-link:hover, .page-contact__phone-link:hover {
  text-decoration: underline;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Màu Deep Green */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #11271B; /* Màu nền Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
}

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

.page-contact__form-label {
  display: block;
  font-size: 1.1rem;
  color: #F2FFF6; /* Chữ chính */
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Màu viền */
  border-radius: 5px;
  background-color: #08160F; /* Nền tối */
  color: #F2FFF6; /* Chữ sáng */
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #A7D9B8; /* Chữ phụ */
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #57E38D; /* Màu Glow khi focus */
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

.page-contact__form-submit-btn {
  width: 100%;
  font-size: 1.2rem;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  font-weight: bold;
}

.page-contact__form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__faq-item {
  background-color: #11271B; /* Màu nền Card BG */
  border: 1px solid #2E7A4E; /* Màu viền */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  color: #F2FFF6; /* Chữ chính */
  font-weight: bold;
  background-color: #1E3A2A; /* Màu Divider */
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-contact__faq-qtext {
  flex-grow: 1;
}

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Màu Glow */
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: '−';
}

.page-contact__faq-answer {
  padding: 20px 25px;
  background-color: #08160F;
  color: #A7D9B8; /* Chữ phụ */
  font-size: 1rem;
  line-height: 1.7;
  border-top: 1px solid #1E3A2A; /* Màu Divider */
}

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0A4B2C; /* Màu Deep Green */
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Màu Glow */
  border: 2px solid #57E38D; /* Màu Glow */
}

.page-contact__btn-secondary:hover {
  background-color: #57E38D;
  color: #08160F; /* Nền tối */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    margin-top: -100px;
    padding-top: 100px;
  }
  .page-contact__hero-title {
    font-size: 2.8rem;
  }
  .page-contact__contact-methods {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 10px !important; /* 顶距约 10px */
    padding-bottom: 40px;
  }
  .page-contact__hero-image-wrapper {
    max-height: 300px;
  }
  .page-contact__hero-content {
    margin-top: -80px !important;
    padding-top: 80px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-contact__hero-description {
    font-size: 1rem;
  }

  /* Section Titles and Descriptions */
  .page-contact__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__section-description {
    font-size: 0.95rem;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__container,
  .page-contact__contact-methods,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Contact Methods Section */
  .page-contact__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__method-title {
    font-size: 1.4rem;
  }

  /* Contact Form Section */
  .page-contact__contact-form {
    padding: 30px 20px;
  }
  .page-contact__form-label {
    font-size: 1rem;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
  .page-contact__form-submit-btn {
    font-size: 1.1rem;
    padding: 12px 20px;
  }

  /* FAQ Section */
  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-contact__faq-toggle {
    font-size: 1.5rem;
  }
  .page-contact__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* 按钮与按钮容器 */
  .page-contact__cta-buttons {
    flex-direction: column !important; /* Xếp dọc các nút */
    gap: 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;
    font-size: 1rem;
  }
}