/* style/contact.css */

/* Base styles for the page-contact scope */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background #1a1a2e */
  background-color: transparent; /* Body background from shared.css */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand green for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Hero Section */
.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 60px;
  text-align: center;
  background-color: #1a1a2e; /* Ensure a background for the section */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 40px;
}

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

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

.page-contact__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-contact__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
  color: #ffffff;
}

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

.page-contact__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Contact Info Section */
.page-contact__contact-info-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

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

.page-contact__contact-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-contact__contact-card:hover {
  transform: translateY(-10px);
}

.page-contact__card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__card-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__btn-link {
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.9em;
  margin-top: auto;
  border: 2px solid #017439;
}

.page-contact__btn-link:hover {
  background-color: #015f2f;
  border-color: #015f2f;
}

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

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

.page-contact__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  line-height: 1;
  pointer-events: none; /* Prevent double click on summary */
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.0em;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Feedback Form Section */
.page-contact__feedback-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

.page-contact__feedback-form {
  max-width: 700px;
  margin: 40px auto 0;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.08);
  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: #ffffff;
  font-size: 1.1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #017439;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

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

/* Why Contact Section */
.page-contact__why-contact-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

.page-contact__why-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-contact__why-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px 25px;
  border-radius: 10px;
  font-size: 1.1em;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-contact__why-item strong {
  color: #017439;
  font-size: 1.2em;
}

.page-contact__cta-buttons--bottom {
  margin-top: 60px;
  margin-bottom: 0;
}

/* Responsive Styles */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-contact__contact-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding, not --header-offset */
    padding-bottom: 40px;
  }

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

  .page-contact__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    padding: 0 15px;
  }

  .page-contact__hero-description {
    font-size: 1em;
    padding: 0 15px;
  }

  /* 按钮与按钮容器 */
  .page-contact__cta-buttons,
  .page-contact__cta-buttons--bottom {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-link,
  .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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__container,
  .page-contact__section,
  .page-contact__contact-card,
  .page-contact__faq-item,
  .page-contact__feedback-form,
  .page-contact__why-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Sản phẩm trưng bày (N/A for contact page, but include placeholder rules if needed) */
  /* .page-contact__products-section, .page-contact__products-grid { */
  /*   grid-template-columns: 1fr !important; */
  /*   max-width: 100% !important; */
  /*   width: 100% !important; */
  /*   overflow-x: hidden !important; */
  /* } */

  /* Các khối nội dung khác */
  .page-contact__section-title {
    font-size: 2em;
    padding: 0 15px;
  }

  .page-contact__section-description {
    font-size: 0.95em;
    padding: 0 15px;
  }

  .page-contact__contact-cards {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-contact__contact-card {
    padding: 25px;
  }

  .page-contact__card-icon {
    width: 80px;
    height: 80px;
  }

  .page-contact__card-title {
    font-size: 1.5em;
  }

  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

  .page-contact__faq-answer {
    font-size: 0.95em;
    padding: 0 20px 18px;
  }

  .page-contact__feedback-form {
    padding: 25px;
  }

  .page-contact__form-label {
    font-size: 1em;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }

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

  .page-contact__why-item {
    font-size: 1em;
    padding: 18px 20px;
  }
}