/* style/contact.css */
/* body đã padding-top: var(--header-offset); trang này không được viết lại biến đó */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* 上图下文 */
  align-items: center;
  text-align: center;
  background-color: #f0f0f0; /* Light background for the section */
  padding-bottom: 40px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure image wrapper is full width */
  overflow: hidden;
  box-sizing: border-box;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 450px; /* Limit height for hero image */
}

.page-contact__hero-content {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive H1 font size */
  font-weight: bold;
  color: #017439; /* Brand color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-contact__description {
  font-size: 1.1em;
  color: #555555;
  max-width: 700px;
  margin: 0 auto;
}

/* General Container */
.page-contact__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: 2em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-contact__section-description {
  font-size: 1em;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__section-description--white {
  color: #f0f0f0;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for form */
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  color: #333333;
}

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

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #aaaaaa;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-primary {
  background-color: #017439; /* Main brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-contact__btn-primary:hover {
  background-color: #005f2f;
  border-color: #005f2f;
}

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

.page-contact__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #005f2f;
  border-color: #005f2f;
}

.page-contact__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-contact__submit-button {
  width: auto;
  align-self: flex-start; /* Align button to the left */
  min-width: 150px;
}

/* Other Contact Methods Section */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background for this section */
  color: #ffffff;
}

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

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.page-contact__method-icon {
  width: 100px; /* Ensure icon is not too small, min 200x200px source */
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.page-contact__method-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 5px;
}

.page-contact__method-text {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1; /* Push button to bottom */
}

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

.page-contact__social-icon-link img {
   /* Social icons, ensure source is 200x200 minimum */
  
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.page-contact__social-icon-link img:hover {
  transform: scale(1.1);
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9; /* Light background for FAQ */
}

.page-contact__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-contact__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 0; /* Reset default padding for details */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  user-select: none; /* Prevent text selection on click */
}

.page-contact__faq-question::after {
  content: '+';
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
  padding: 15px 25px 25px;
  font-size: 0.95em;
  color: #555555;
}

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


/* Responsive Design */
@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-contact__hero-image {
    max-height: 250px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-contact__description {
    font-size: 1em;
  }

  .page-contact__section-title {
    font-size: 1.7em;
  }

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

  .page-contact__form-section,
  .page-contact__methods-section,
  .page-contact__faq-section {
    padding: 40px 0;
  }

  .page-contact__contact-form {
    padding: 20px;
    margin: 0 15px;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    margin: 0 15px;
  }

  .page-contact__faq-list {
    margin: 30px 15px 0;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-contact__faq-answer {
    padding: 10px 20px 20px;
    font-size: 0.9em;
  }
  
  /* Mobile responsive overrides for images, videos, buttons */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__hero-image-wrapper,
  .page-contact__methods-section,
  .page-contact__method-card,
  .page-contact__faq-section,
  .page-contact__form-section,
  .page-contact__container,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Buttons on mobile */
  .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; /* Make buttons full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__submit-button {
    align-self: stretch; /* Make submit button full width */
  }

  .page-contact__social-links {
    justify-content: center;
  }
}