.page-contact {
  background-color: #08160F; /* Nền tối */
  color: #F2FFF6; /* Chữ sáng */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Đảm bảo hình ảnh trên, văn bản dưới */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Chỉ 10px padding-top, body đã có header-offset */
  overflow: hidden; /* Đảm bảo không tràn */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Hoặc kích thước tối đa của hình ảnh */
  margin-bottom: 30px; /* Khoảng cách giữa hình ảnh và văn bản */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-contact__hero-content {
  position: relative; /* Không absolute để đảm bảo trên ảnh */
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Sử dụng clamp cho kích thước tiêu đề */
  font-weight: bold;
  color: #F2C14E; /* Màu vàng Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Màu Text Secondary */
  margin-bottom: 30px;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Cho phép văn bản nút xuống dòng */
  word-wrap: break-word; /* Đảm bảo văn bản nút xuống dòng */
  max-width: 100%; /* Đảm bảo nút không tràn */
  box-sizing: border-box;
}

.page-contact__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-contact__contact-methods-section,
.page-contact__contact-form-section,
.page-contact__faq-section,
.page-contact__why-choose-us-section,
.page-contact__cta-banner {
  padding: 60px 0;
  border-top: 1px solid #1E3A2A; /* Màu Divider */
}

.page-contact__section-title {
  font-size: 2.5rem;
  color: #F2FFF6; /* Màu Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Màu Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Contact Methods Section */
.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-color: #11271B; /* Màu Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F2FFF6; /* Chữ sáng trên nền tối */
}

.page-contact__method-icon {
  width: 100%; /* Đảm bảo ảnh chiếm hết chiều rộng thẻ */
  max-width: 250px; /* Giới hạn kích thước biểu tượng */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__method-title {
  font-size: 1.8rem;
  color: #F2C14E; /* Màu Gold */
  margin-bottom: 15px;
}

.page-contact__method-text,
.page-contact__method-email,
.page-contact__method-phone {
  font-size: 1rem;
  color: #A7D9B8; /* Màu Text Secondary */
  margin-bottom: 20px;
}

.page-contact__method-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: auto; /* Đẩy nút xuống cuối card */
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__method-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* Contact Form Section */
.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #11271B; /* Màu Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #F2FFF6; /* Màu Text Main */
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Màu Border */
  border-radius: 8px;
  background-color: #0A4B2C; /* Màu Deep Green */
  color: #F2FFF6; /* Chữ sáng */
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #A7D9B8; /* Màu Text Secondary */
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #2AD16F; /* Màu sáng hơn khi focus */
  box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.3);
}

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

.page-contact__form-submit-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__form-submit-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

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

.page-contact__faq-item {
  background-color: #11271B; /* Màu Card BG */
  border: 1px solid #2E7A4E; /* Màu Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Chữ sáng */
}

.page-contact__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #F2C14E; /* Màu Gold */
  list-style: none; /* Ẩn marker mặc định của summary */
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Ẩn marker mặc định của summary trên Webkit */
}

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

.page-contact__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Màu Text Secondary */
}

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

.page-contact__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Why Choose Us Section */
.page-contact__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__benefit-card {
  background-color: #11271B; /* Màu Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Chữ sáng */
}

.page-contact__benefit-icon {
  width: 100%; /* Đảm bảo ảnh chiếm hết chiều rộng thẻ */
  max-width: 180px; /* Giới hạn kích thước biểu tượng */
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__benefit-title {
  font-size: 1.5rem;
  color: #F2C14E; /* Màu Gold */
  margin-bottom: 10px;
}

.page-contact__benefit-text {
  font-size: 1rem;
  color: #A7D9B8; /* Màu Text Secondary */
}

/* CTA Banner */
.page-contact__cta-banner {
  background-color: #0A4B2C; /* Màu Deep Green */
  text-align: center;
  padding: 80px 20px;
  border-top: 1px solid #1E3A2A; /* Màu Divider */
}

.page-contact__cta-title {
  font-size: 2.8rem;
  color: #F2FFF6; /* Màu Text Main */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__cta-description {
  font-size: 1.2rem;
  color: #A7D9B8; /* Màu Text Secondary */
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.page-contact__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-contact__section-title {
    font-size: 2rem;
  }
  .page-contact__cta-title {
    font-size: 2.2rem;
  }
}

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

  .page-contact__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-contact__hero-section {
    padding: 10px 0 40px 0 !important;
  }
  .page-contact__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__hero-content {
    padding: 0 15px;
  }
  .page-contact__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-contact__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Section Styling */
  .page-contact__contact-methods-section,
  .page-contact__contact-form-section,
  .page-contact__faq-section,
  .page-contact__why-choose-us-section,
  .page-contact__cta-banner {
    padding: 40px 0;
  }
  .page-contact__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Contact Methods Section */
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__method-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__method-title {
    font-size: 1.5rem;
  }
  .page-contact__method-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Contact Form Section */
  .page-contact__form {
    padding: 30px;
  }
  .page-contact__form-submit-button {
    font-size: 1.1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Section */
  .page-contact__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  /* Why Choose Us Section */
  .page-contact__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__benefit-card {
    padding: 25px;
  }
  .page-contact__benefit-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__benefit-title {
    font-size: 1.3rem;
  }

  /* CTA Banner */
  .page-contact__cta-banner {
    padding: 50px 15px;
  }
  .page-contact__cta-title {
    font-size: 2rem;
  }
  .page-contact__cta-description {
    font-size: 1.1rem;
  }
  .page-contact__cta-button--large {
    padding: 15px 30px;
    font-size: 1.2rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Ensure all images are responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-contact__video-section {
    padding-top: 10px !important;
  }
}