/* style/contact.css */

/* --- Base Styles for Contact Page --- */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background #0d0d0d */
  background-color: #0d0d0d;
}

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

.page-contact__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #FFCC00; /* Gold accent color for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px; /* Adjust for fixed header */
}

.page-contact__section-description {
  font-size: 18px;
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__text-link {
  color: #FFCC00;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-contact__text-link:hover {
  color: #fff;
}

/* --- Hero Section --- */
.page-contact__hero-contact-section {
  background: linear-gradient(135deg, #003366, #001a33); /* Dark blue gradient */
  padding-top: 120px; /* Account for fixed header on desktop */
  padding-bottom: 60px;
  text-align: center;
}

.page-contact__hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #FFCC00;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}

.page-contact__btn--primary {
  background-color: #FFCC00;
  color: #003366;
  border-color: #FFCC00;
}

.page-contact__btn--primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
  color: #001a33;
}

.page-contact__btn--secondary {
  background-color: transparent;
  color: #FFCC00;
  border-color: #FFCC00;
}

.page-contact__btn--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
}

/* --- Methods Section --- */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

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

.page-contact__method-card {
  background: rgba(0, 51, 102, 0.8); /* Semi-transparent dark blue */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 204, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-contact__method-icon-wrapper {
  margin-bottom: 20px;
  height: 100px; /* Fixed height for icon wrapper */
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-contact__method-title {
  font-size: 24px;
  color: #FFCC00;
  margin-bottom: 15px;
  font-weight: 700;
}

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

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

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

.page-contact__step-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 204, 0, 0.2);
}

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

.page-contact__step-title {
  font-size: 22px;
  color: #FFCC00;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-contact__step-text {
  font-size: 16px;
  color: #e0e0e0;
}

.page-contact__important-note {
  background: rgba(255, 204, 0, 0.1);
  border-left: 5px solid #FFCC00;
  padding: 20px;
  margin-top: 40px;
  border-radius: 8px;
  font-size: 17px;
  color: #f0f0f0;
  text-align: left;
}

.page-contact__important-note strong {
  color: #FFCC00;
}

/* --- Common Issues Section --- */
.page-contact__common-issues-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

.page-contact__issues-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-contact__issues-item {
  background: #1a1a1a;
  border: 1px solid rgba(255, 204, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
  font-size: 17px;
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-contact__issues-item:hover {
  background-color: #2a2a2a;
}

.page-contact__issues-item strong {
  color: #FFCC00;
}

/* --- Form Section --- */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #003366; /* Main brand color for dark background */
  color: #ffffff;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4); /* Darker overlay for form */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 204, 0, 0.4);
}

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

.page-contact__form-label {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #FFCC00;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 204, 0, 0.5);
  border-radius: 8px;
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.6); /* Dark input background */
  color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #cccccc;
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFCC00;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.3);
  outline: none;
}

.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;
}

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ默认状态 - 答案隐藏 */
.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #e0e0e0;
  background-color: #2a2a2a;
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important đảm bảo ưu tiên, giá trị đủ lớn */
  padding: 20px !important;
  opacity: 1;
  background-color: #2a2a2a;
  border-radius: 0 0 8px 8px;
}

/* Vấn đề styles */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #003366; /* Dark blue for question background */
  border: 1px solid rgba(255, 204, 0, 0.3);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #FFCC00;
}

.page-contact__faq-question:hover {
  background: #004080;
  border-color: #FFCC00;
}

.page-contact__faq-question:active {
  background: #00264d;
}

/* Vấn đề tiêu đề styles */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn h3 chặn sự kiện click */
  color: #FFCC00;
}

/* Toggle icon */
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn icon chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #FFCC00;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #fff;
  background-color: #FFCC00;
  border-color: #FFCC00;
  transform: rotate(45deg); /* Rotate for 'x' effect, or simply change content to '−' */
}

/* --- Commitment Section --- */
.page-contact__commitment-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

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

.page-contact__commitment-item {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 204, 0, 0.2);
}

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

.page-contact__commitment-title {
  font-size: 24px;
  color: #FFCC00;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-contact__commitment-text {
  font-size: 16px;
  color: #e0e0e0;
}

.page-contact__final-call {
  font-size: 20px;
  color: #FFCC00;
  text-align: center;
  margin-top: 50px;
  font-weight: 600;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 40px;
  }

  .page-contact__section-title {
    font-size: 28px;
  }

  .page-contact__hero-contact-section {
    padding-top: 100px; /* Adjust for fixed header on tablet */
  }
}

@media (max-width: 768px) {
  .page-contact__hero-contact-section {
    padding-top: 100px; /* Adjust for fixed header on mobile */
    padding-bottom: 40px;
  }

  .page-contact__hero-title {
    font-size: 32px;
  }

  .page-contact__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-contact__btn {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-contact__section-title {
    font-size: 24px;
    padding-top: 30px;
  }

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

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

  .page-contact__methods-grid,
  .page-contact__steps-grid,
  .page-contact__commitment-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-card,
  .page-contact__step-card,
  .page-contact__commitment-item {
    padding: 25px;
  }

  .page-contact__method-title,
  .page-contact__step-title,
  .page-contact__commitment-title {
    font-size: 20px;
  }

  .page-contact__method-text,
  .page-contact__step-text,
  .page-contact__issues-item,
  .page-contact__commitment-text {
    font-size: 15px;
  }

  .page-contact__form {
    padding: 30px 20px;
  }

  .page-contact__form-label {
    font-size: 16px;
  }

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

  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-contact__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-contact__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }

  .page-contact__important-note {
    font-size: 15px;
    padding: 15px;
  }

  /* Ensure all images and containers are responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__method-card,
  .page-contact__step-card,
  .page-contact__commitment-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Smart Color Contrast Fixes (if needed, applied manually) */
.page-contact__dark-bg {
  color: #ffffff; /* Deep background with light text */
}

.page-contact__light-bg {
  color: #333333; /* Light background with dark text */
}