/* style/contact.css */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background: #FFFFFF; /* Body background is default white */
}

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #f0f0f0; /* Light background for hero section */
  overflow: hidden;
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-contact__hero-section img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-contact__hero-content h1 {
  font-size: 36px;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: bold;
}

.page-contact__hero-content p {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Use custom color for action button */
  color: #FFFF00; /* Use custom font color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__cta-button:hover {
  background: #a30707;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__section h2 {
  font-size: 28px;
  color: #017439;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-contact__section p {
  font-size: 16px;
  color: #555555;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-contact__contact-methods p {
  margin-bottom: 40px;
}

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

.page-contact__card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__method-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.page-contact__method-card h3 {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__method-card p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 25px;
  text-align: center;
}

.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__btn-primary:hover {
  background: #005f2f;
  transform: translateY(-1px);
}

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

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #017439;
  font-size: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  text-indent: -9999px; /* Hide text, use background for icon */
}

.page-contact__social-icon--telegram {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23017439"><path d="M18.364 5.636l-12.728 12.728M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM15.424 8.783l-5.657 5.657m0 0L8.083 12.51l-2.062-2.062L15.424 8.783z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.page-contact__social-icon--facebook {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23017439"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3 8h-2v4h2v6h-4v-6H9V8h2V6c0-1.657 1.343-3 3-3h2v4h-2c-.552 0-1 .448-1 1v1z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.page-contact__social-icon--zalo {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23017439"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-.001 15.004c-2.485 0-4.503-2.018-4.503-4.503 0-2.485 2.018-4.503 4.503-4.503 2.485 0 4.503 2.018 4.503 4.503 0 2.485-2.018 4.503-4.503 4.503zm-.001-7.503c-1.657 0-3 1.343-3 3 0 1.657 1.343 3 3 3s3-1.343 3-3c0-1.657-1.343-3-3-3z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

.page-contact__social-icon:hover {
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-contact__social-icon--telegram:hover {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M18.364 5.636l-12.728 12.728M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM15.424 8.783l-5.657 5.657m0 0L8.083 12.51l-2.062-2.062L15.424 8.783z"/></svg>');
}

.page-contact__social-icon--facebook:hover {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3 8h-2v4h2v6h-4v-6H9V8h2V6c0-1.657 1.343-3 3-3h2v4h-2c-.552 0-1 .448-1 1v1z"/></svg>');
}

.page-contact__social-icon--zalo:hover {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-.001 15.004c-2.485 0-4.503-2.018-4.503-4.503 0-2.485 2.018-4.503 4.503-4.503 2.485 0 4.503 2.018 4.503 4.503 0 2.485-2.018 4.503-4.503 4.503zm-.001-7.503c-1.657 0-3 1.343-3 3 0 1.657 1.343 3 3 3s3-1.343 3-3c0-1.657-1.343-3-3-3z"/></svg>');
}

.page-contact__inquiry-form h2,
.page-contact__why-contact h2,
.page-contact__office-info h2 {
  margin-top: 40px;
}

.page-contact__form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

.page-contact__form-group input[type="text"],
.page-contact__form-group input[type="email"],
.page-contact__form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-group input[type="text"]:focus,
.page-contact__form-group input[type="email"]:focus,
.page-contact__form-group textarea:focus {
  border-color: #017439;
  outline: none;
}

.page-contact__form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__form .page-contact__btn-primary {
  width: auto;
  padding: 12px 30px;
  margin-top: 10px;
}

.page-contact__faq p {
  margin-bottom: 40px;
}

/* FAQ容器样式 */
.page-contact__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 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;
  padding: 0 15px;
  opacity: 0;
  color: #555555;
  font-size: 15px;
}

/* FAQ展开状态 - 🚨 Sử dụng !important và đủ lớn max-height để đảm bảo mở rộng */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important for priority, value large enough for any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề phong cách */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

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

/* Chuyển đổi biểu tượng */
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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;
}

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

.page-contact__why-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-contact__why-list li {
  background: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 16px;
  color: #444444;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.page-contact__why-list li strong {
  color: #017439;
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #017439;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
  margin-top: 20px;
}

.page-contact__btn-secondary:hover {
  background: #017439;
  color: #ffffff;
  transform: translateY(-1px);
}

.page-contact__office-info {
  text-align: center;
}

.page-contact__address {
  font-style: normal;
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.8;
  color: #555555;
}

.page-contact__office-info img {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* 🚨 Mobile Responsive Design */
@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__hero-section img {
    border-radius: 4px;
    margin-bottom: 20px;
  }
  
  .page-contact__hero-content h1 {
    font-size: 28px;
  }

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

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

  .page-contact__section {
    margin: 20px auto;
    padding: 15px;
  }

  .page-contact__section h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-contact__section p {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-contact__method-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-card img {
    
  }

  .page-contact__method-card h3 {
    font-size: 20px;
  }

  .page-contact__method-card p {
    font-size: 14px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    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;
  }

  .page-contact__social-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .page-contact__form {
    padding: 20px;
  }

  .page-contact__form-group label {
    font-size: 14px;
  }

  .page-contact__form-group input,
  .page-contact__form-group textarea {
    font-size: 14px;
    padding: 10px;
  }
  
  /* FAQ mobile adaptation */
  .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;
  }

  .page-contact__why-list {
    padding: 0 10px;
  }

  .page-contact__why-list li {
    font-size: 15px;
    padding: 12px 15px;
  }

  .page-contact__address {
    font-size: 15px;
  }

  .page-contact__office-info img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}