:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Deep Blue */
  --text-color-light: #ffffff;
  --text-color-dark: #0a0a0a; /* Dark text for light backgrounds */
  --background-dark: #0a0a0a;
  --card-bg-dark: rgba(255, 255, 255, 0.08); /* Subtle white on dark bg */
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-contact {
  color: var(--text-color-light); /* Default text color for the page content on dark body background */
  background-color: var(--background-dark); /* Ensure consistency if main is not transparent */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
  padding-bottom: 60px; /* Space for footer */
}

/* Fixed navigation bar spacing */
.page-contact__hero-section,
.page-contact__methods-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__commitment-section,
.page-contact__security-section,
.page-contact__final-cta-section {
  padding: 60px 20px;
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  position: relative; /* For z-index if needed */
  z-index: 1; /* Ensure content is above any potential background elements */
}

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

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color); /* Use primary color for main titles */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-color-light);
}

/* --- Hero Section --- */
.page-contact__hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--background-dark) 100%);
  color: var(--text-color-light);
  padding-top: 120px; /* Desktop: Initial padding-top for fixed header */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__container--hero {
  position: relative;
  z-index: 2;
}

.page-contact__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-contact__description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  word-wrap: normal;
}

.page-contact__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-color-dark); /* Dark text on gold */
}

.page-contact__cta-button--primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
}

.page-contact__cta-button--secondary:hover {
  background: #1a1a99; /* Slightly lighter deep blue */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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


/* --- Contact Methods Section --- */
.page-contact__methods-section {
  background-color: var(--background-dark); /* Dark background */
  color: var(--text-color-light);
}

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

.page-contact__method-item {
  background: var(--card-bg-dark); /* Subtle white on dark bg */
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

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

.page-contact__method-icon {
  width: 120px; /* Larger illustration, not small icon */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact__method-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-contact__method-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__cta-button--link {
  background: var(--secondary-color);
  color: var(--text-color-light);
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-contact__cta-button--link:hover {
  background: #1a1a99; /* Slightly lighter deep blue */
  transform: translateY(-2px);
}

/* --- Contact Form Section --- */
.page-contact__form-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-contact__form-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-contact__form {
  flex: 1;
  min-width: 300px;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color-light);
  font-size: 16px;
  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: rgba(255, 255, 255, 0.5);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3); /* Using RGB for --primary-color */
  outline: none;
}

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

.page-contact__submit-button {
  width: auto;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  background: var(--primary-color);
  color: var(--text-color-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__form-illustration {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
}

.page-contact__form-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* --- FAQ Section --- */
.page-contact__faq-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

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

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
}

/* 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 25px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.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 để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-item.active .page-contact__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-contact__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-contact__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

/* Question title style */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 tag from blocking click event */
}

/* Toggle icon */
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
  color: var(--text-color-light);
}

.page-contact__faq-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 60px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* --- Commitment Section --- */
.page-contact__commitment-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

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

.page-contact__commitment-item {
  background: var(--card-bg-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__commitment-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__commitment-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-contact__commitment-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.page-contact__commitment-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 60px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* --- Security Section --- */
.page-contact__security-section {
  background-color: var(--secondary-color); /* Use deep blue for this section */
  color: var(--text-color-light);
}

.page-contact__security-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: center;
}

.page-contact__security-item {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-contact__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__security-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact__security-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-contact__security-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__security-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 60px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}