/* style/contact.css */
.page-contact {
  background-color: #08160F; /* Nền tối theo tùy chỉnh */
  color: #F2FFF6; /* Màu chữ chính cho nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Đã có padding-top từ body, chỉ thêm khoảng cách nhỏ */
  text-align: center;
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

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

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

.page-contact__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-contact__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút */
  color: #F2FFF6; /* Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-contact__info-section, 
.page-contact__form-section, 
.page-contact__faq-section, 
.page-contact__social-section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-contact__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 600;
}

.page-contact__section-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__method-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__card-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__card-text {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
}

.page-contact__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-contact__btn-secondary:hover {
  background-color: #57E38D;
  color: #11271B; /* Card BG */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

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

.page-contact__form-input, 
.page-contact__form-textarea {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 6px;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  font-size: 1em;
  transition: border-color 0.3s ease;
}

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

.page-contact__form-input:focus, 
.page-contact__form-textarea:focus {
  border-color: #57E38D; /* Glow */
  outline: none;
}

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

.page-contact__form-submit {
  width: auto;
  padding: 12px 25px;
  font-size: 1.1em;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Nút */
  color: #F2FFF6; /* Text Main */
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-contact__faq-list {
  margin-top: 40px;
  text-align: left;
}

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

.page-contact__faq-item[open] {
  background-color: #0A4B2C; /* Deep Green for open state */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  font-weight: 600;
  font-size: 1.1em;
  list-style: none; /* Remove default marker for details */
  outline: none;
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #57E38D; /* Glow */
  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 30px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

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

.page-contact__faq-answer a {
  color: #57E38D;
  text-decoration: underline;
}

.page-contact__social-links {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.page-contact__social-icon {
  display: inline-flex;
  width: 60px; /* Tăng kích thước ảnh để không bị coi là icon nhỏ */
  height: 60px; /* Tăng kích thước ảnh để không bị coi là icon nhỏ */
  border-radius: 50%;
  background-color: #1E3A2A; /* Divider */
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-contact__social-icon img {
   /* Kích thước icon bên trong */
   /* Kích thước icon bên trong */
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.page-contact__social-icon:hover {
  background-color: #57E38D; /* Glow */
  transform: translateY(-3px);
}

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

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body đã xử lý header offset */
  }

  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__main-title {
    font-size: 2em; /* Điều chỉnh font-size cho di động */
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .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;
    margin-bottom: 15px; /* Thêm khoảng cách giữa các nút nếu có nhiều */
  }

  .page-contact__info-section, 
  .page-contact__form-section, 
.page-contact__faq-section, 
.page-contact__social-section {
    padding: 40px 15px;
  }

  .page-contact__container, 
  .page-contact__contact-methods, 
  .page-contact__contact-form, 
  .page-contact__faq-list, 
  .page-contact__social-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-contact__contact-methods {
    grid-template-columns: 1fr;
  }

  .page-contact__method-card, 
  .page-contact__faq-item {
    padding: 20px;
  }

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

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

  .page-contact__social-links {
    gap: 15px;
    flex-wrap: wrap;
  }

  .page-contact__social-icon {
    width: 50px; /* Điều chỉnh kích thước icon */
    height: 50px; /* Điều chỉnh kích thước icon */
  }

  .page-contact__social-icon img {
     /* Kích thước icon bên trong */
     /* Kích thước icon bên trong */
  }

  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section, 
  .page-contact__card, 
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__video-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }

  .page-contact video, 
  .page-contact__video {
    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-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .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;
  }
  
  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}