.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background */
  padding-top: var(--header-offset, 120px);
}

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

.page-contact__main-title {
  font-size: 38px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-contact__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 25px;
  padding-top: 40px;
}

.page-contact__section-title--light {
  color: #ffffff;
}

.page-contact__section-intro {
  font-size: 17px;
  color: #666666;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-contact__section-intro--light {
  color: #f0f0f0;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover {
  background: #1e87c2;
  border-color: #1e87c2;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
  background: #e0f2f7;
  color: #1e87c2;
  border-color: #1e87c2;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #26A9E0 0%, #1a7bb5 100%); /* Brand blue gradient */
  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;
  z-index: 2;
}

.page-contact__hero-image {
  width: 100%;
  max-width: 800px; /* Adjust max-width for image in hero */
  margin-bottom: 30px;
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

/* Contact Methods Section */
.page-contact__contact-methods {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-contact__method-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__method-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-contact__card-title {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-contact__card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__email-address,
.page-contact__phone-number {
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-contact__email-address a {
  color: #26A9E0;
  text-decoration: none;
}

.page-contact__email-address a:hover {
  text-decoration: underline;
}

.page-contact__social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.page-contact__social-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-contact__social-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Contact Form Section */
.page-contact__contact-form-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a7bb5 0%, #26A9E0 100%);
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #26A9E0;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
  outline: none;
}

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

.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: #EA7C07; /* Login color */
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__form-submit-btn:hover {
  background: #d46f06;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px 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 20px;
  opacity: 0;
  background: #f0f8ff; /* Light blue background for answer */
  color: #444444;
}

/* 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;
  border-radius: 0 0 12px 12px;
}

/* 问题样式 */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #26A9E0;
  border: 1px solid #26A9E0;
  border-radius: 12px;
  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-radius: 12px 12px 0 0;
  background: #1e87c2;
}

.page-contact__faq-question:hover {
  background: #1e87c2;
  border-color: #1e87c2;
}

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

/* 切换图标 */
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  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: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Use rotation for '+' to 'x' */
}

/* Why Contact Section */
.page-contact__why-contact {
  padding: 80px 0;
  background: linear-gradient(135deg, #26A9E0 0%, #1a7bb5 100%);
}

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

.page-contact__why-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__why-item img {
  width: 100%;
  
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-contact__why-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-contact__why-text {
  font-size: 15px;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-contact__center-button {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 32px;
  }
  .page-contact__section-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-contact__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-contact__hero-section {
    padding: 40px 15px;
  }
  .page-contact__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-contact__description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .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-title {
    font-size: 24px;
    padding-top: 30px;
    margin-bottom: 20px;
  }
  .page-contact__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-contact__contact-methods {
    padding: 50px 0;
  }
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__method-card img {
    max-width: 200px;
    margin-bottom: 20px;
  }
  .page-contact__card-title {
    font-size: 20px;
  }
  .page-contact__card-text {
    font-size: 15px;
  }
  .page-contact__social-links {
    flex-direction: column;
    gap: 10px;
  }
  .page-contact__social-link {
    width: 100%;
  }
  .page-contact__contact-form-section {
    padding: 50px 0;
  }
  .page-contact__form {
    padding: 30px;
  }
  .page-contact__form-label {
    font-size: 15px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-contact__form-submit-btn {
    padding: 12px;
    font-size: 16px;
  }
  .page-contact__faq-section {
    padding: 50px 0;
  }
  .page-contact__faq-item {
    margin-bottom: 10px;
  }
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-contact__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-contact__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }
  .page-contact__why-contact {
    padding: 50px 0;
  }
  .page-contact__why-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-contact__why-item {
    padding: 25px;
  }
  .page-contact__why-item img {
    
  }
  .page-contact__why-title {
    font-size: 20px;
  }
  .page-contact__why-text {
    font-size: 14px;
  }
  /* Mobile image specific rules */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__section, .page-contact__card, .page-contact__container, .page-contact__hero-container, .page-contact__methods-grid, .page-contact__why-grid, .page-contact__faq-list, .page-contact__form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Ensure no image filter is applied */
  .page-contact img {
    filter: none !important;
  }
  .page-contact__social-links {
    flex-direction: column;
    gap: 10px;
  }
  .page-contact__social-link {
    width: 100%;
  }
}

/* Ensure no image filter is applied globally */
.page-contact img {
  filter: none;
}

/* Content area image CSS dimensions lower bound enforcement */
.page-contact img:not(.shared-header img):not(.shared-footer img) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific adjustment for small images within card (if they were icons, but they are not) */
.page-contact__why-item img {
   /* Still large enough, >200px is for content display images */
  min-width: unset; /* Allow smaller for specific decorative images if needed, but not too small */
  min-height: unset;
}

/* Mobile button specific rules */
@media (max-width: 768px) {
  .page-contact__cta-button,
  .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;
  }
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
  .page-contact__form-submit-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}