/* style/contact.css */
/* body đã padding-top: var(--header-offset)；trang này KHÔNG được viết lại padding-top cho main/hero */
.page-contact {
  background-color: #08160F; /* Custom background from palette */
  color: #F2FFF6; /* Custom main text color from palette */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom for overall page */
}

.page-contact__section-title {
  color: #F2FFF6; /* Custom main text color */
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__section-description {
  color: #A7D9B8; /* Custom secondary text color */
  text-align: center;
  margin-bottom: 40px;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  background-color: #08160F; /* Use custom background color */
  color: #F2FFF6; /* Use custom main text color */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width for large screens */
  margin-bottom: 30px;
  box-sizing: border-box;
}

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

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

.page-contact__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F2FFF6; /* Custom main text color */
  margin-bottom: 20px;
  /* H1 font-size is not fixed, relying on responsive scaling */
}

.page-contact__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Custom secondary text color */
}

.page-contact__contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-contact__method-card {
  background-color: #11271B; /* Custom card background */
  border: 1px solid #2E7A4E; /* Custom border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  flex: 1 1 calc(33% - 40px); /* Three cards per row on desktop */
  max-width: calc(33% - 40px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6; /* Custom main text color */
}

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

.page-contact__method-card h3 {
  color: #F2C14E; /* Custom gold color for headings */
  margin-bottom: 15px;
  font-size: 1.4em;
}

.page-contact__method-card p {
  font-size: 1em;
  margin-bottom: 15px;
  color: #A7D9B8; /* Custom secondary text color */
}

.page-contact__method-card a.page-contact__btn {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Custom button text color */
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
}

.page-contact__method-card a.page-contact__btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Slightly altered gradient on hover */
}

/* Contact Form Section */
.page-contact__form-section {
  background-color: #08160F; /* Custom background */
  padding: 80px 20px;
  text-align: center;
}

.page-contact__form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #11271B; /* Custom card background */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Custom border color */
}

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

.page-contact__form-group label {
  display: block;
  margin-bottom: 10px;
  color: #F2FFF6; /* Custom main text color */
  font-weight: bold;
}

.page-contact__form-group input[type="text"],
.page-contact__form-group input[type="email"],
.page-contact__form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #2E7A4E; /* Custom border color */
  border-radius: 8px;
  background-color: #0A4B2C; /* Deep Green for input background */
  color: #F2FFF6; /* Custom main text color for input */
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-group input::placeholder,
.page-contact__form-group textarea::placeholder {
  color: #A7D9B8; /* Custom secondary text color for placeholders */
  opacity: 0.7;
}

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

.page-contact__submit-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Custom button text color */
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

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

/* FAQ Section */
.page-contact__faq-section {
  background-color: #08160F; /* Custom background */
  padding: 80px 20px;
}

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

.page-contact__faq-item {
  background-color: #11271B; /* Custom card background */
  border: 1px solid #2E7A4E; /* Custom border color */
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-contact__faq-item details > summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #F2C14E; /* Custom gold color for question text */
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-contact__faq-item details > summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-contact__faq-item details > summary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Hover effect using border color */
}

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

.page-contact__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: #F2FFF6; /* Custom main text color */
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8; /* Custom secondary text color for answer */
  font-size: 1em;
  line-height: 1.8;
}

/* Call to Action Section */
.page-contact__cta-section {
  background-color: #08160F; /* Custom background */
  padding: 80px 20px;
  text-align: center;
}

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

.page-contact__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Custom button text color */
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

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

/* --- Responsive Design --- */
/* Ensure content area images are not smaller than 200px */
.page-contact__content-area img,
.page-contact__form-section img,
.page-contact__faq-section img,
.page-contact__cta-section img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .page-contact__method-card {
    flex: 1 1 calc(50% - 30px); /* Two cards per row on tablet */
    max-width: calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 40px 15px !important; /* Adjust padding for mobile */
  }

  /* Images responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-contact__hero-image-wrapper,
  .page-contact__form-container,
  .page-contact__faq-container,
  .page-contact__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__hero-title,
  .page-contact__form-section h2,
  .page-contact__faq-section h2,
  .page-contact__cta-section h2 {
    font-size: 1.8em !important; /* Smaller headings on mobile */
  }

  .page-contact__hero-description,
  .page-contact__form-section p,
  .page-contact__cta-section p {
    font-size: 1em !important;
  }

  .page-contact__method-card {
    flex: 1 1 100% !important; /* One card per row on mobile */
    max-width: 100% !important;
    padding: 20px !important;
  }

  .page-contact__form-group input[type="text"],
  .page-contact__form-group input[type="email"],
  .page-contact__form-group textarea {
    padding: 12px !important;
  }

  .page-contact__submit-button,
  .page-contact__cta-button {
    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 {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 15px !important;
  }

  .page-contact__faq-item details > summary {
    font-size: 1.1em !important;
    padding: 15px 20px !important;
  }

  .page-contact__faq-answer {
    padding: 0 20px 15px 20px !important;
  }
}