/* style/contact.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

.page-contact {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Mặc định chữ trắng trên nền body #121212 */
  line-height: 1.6;
}

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ để tránh khoảng trắng kép với body padding-top */
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: relative; /* Không absolute để không bị overlay */
  margin-bottom: 30px; /* Khoảng cách giữa ảnh và nội dung */
  border-radius: 10px;
}

.page-contact__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Đảm bảo nội dung hiển thị trên ảnh */
}

.page-contact__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em);
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-contact__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

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

/* Info Section */
.page-contact__info-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-contact__method-card {
  background: rgba(255, 255, 255, 0.08); /* Nền tối, chữ sáng */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  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.4);
}

.page-contact__method-icon {
  width: 120px;
  height: 90px; /* Điều chỉnh tỷ lệ để không quá nhỏ */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-contact__method-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__method-text {
  font-size: 0.95em;
  color: #e0e0e0;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #2a2a2a; /* Nền tối hơn cho form */
  color: #ffffff;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #f0f0f0;
}

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #26A9E0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

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

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

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #f0f0f0;
  background-color: #2a2a2a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #3a3a3a;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-contact__faq-answer {
  padding: 0 25px;
  color: #e0e0e0;
  font-size: 0.95em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 500px; /* Đủ lớn để chứa nội dung */
  padding: 15px 25px 25px;
}

.page-contact__faq-item[open] .page-contact__faq-question {
  border-bottom: none;
}

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

.page-contact__faq-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-contact__faq-link:hover {
  color: #1e87c0;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(90deg, #26A9E0, #1e87c0); /* Nền màu thương hiệu */
  color: #ffffff;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo nút không tràn */
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #EA7C07; /* Màu login */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-contact__btn-primary:hover {
  background-color: #d16b05;
  border-color: #d16b05;
  transform: translateY(-2px);
}

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

.page-contact__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-contact__social-btn {
  font-size: 0.95em;
  padding: 10px 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }

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

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

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

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-contact__hero-image {
    margin-bottom: 20px;
  }

  .page-contact__hero-content {
    padding: 0 15px;
  }

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

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

  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__section-title {
    font-size: clamp(1.6em, 5vw, 2em);
  }

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

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

  .page-contact__method-card,
  .page-contact__contact-form,
  .page-contact__faq-item {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__social-btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 移动端图片响应式适配 */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !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;
  }
}