.page-contact {
  background-color: #121212; /* Dark body background */
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-contact__hero-section {
  position: relative;
  padding: 80px 0 60px;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background-color: #1A1A1A; /* Slightly lighter dark background for contrast */
  overflow: hidden;
}

.page-contact__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700; /* Gold brand color for title */
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
  font-size: 18px;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button--primary {
  background-color: #FFD700; /* Primary brand color */
  color: #121212; /* Dark text for contrast */
}

.page-contact__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-contact__cta-button--secondary {
  background-color: #8B0000; /* Secondary brand color */
  color: #ffffff; /* Light text for contrast */
  border: 2px solid #8B0000;
}

.page-contact__cta-button--secondary:hover {
  background-color: #6a0000;
  border-color: #6a0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.page-contact__contact-methods,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__commitment-section {
  padding: 60px 0;
  background-color: #121212; /* Consistent dark background */
}

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-contact__section-description {
  font-size: 16px;
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

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

.page-contact__method-item {
  background-color: #1A1A1A; /* Darker card background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-contact__method-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: rgba(255, 215, 0, 0.1);
  padding: 10px;
}

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

.page-contact__method-text {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-contact__email-link,
.page-contact__phone-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
  text-decoration: underline;
}

.page-contact__btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background-color: #FFD700;
  color: #121212;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-1px);
}

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

.page-contact__social-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__social-btn--telegram {
    background-color: #0088cc;
}

.page-contact__social-btn--telegram:hover {
    background-color: #006699;
}

.page-contact__social-btn--zalo {
    background-color: #0080ff;
}

.page-contact__social-btn--zalo:hover {
    background-color: #0066cc;
}

.page-contact__contact-form {
  background-color: #1A1A1A;
  padding: 40px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  color: #FFD700;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #222;
  color: #ffffff;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  cursor: pointer;
  background-color: #FFD700;
  color: #121212;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-submit-btn:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-contact__form-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* FAQ Section Styles */
.page-contact__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #1A1A1A; /* Darker background for FAQ item */
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #222222; /* Slightly darker for question header */
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #FFD700; /* Gold text for questions */
}

.page-contact__faq-question:hover {
  background-color: #2A2A2A;
  border-color: #FFD700;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #FFD700;
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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 {
  color: #ffffff;
  transform: rotate(45deg); /* Visual change for active state */
}

.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: #cccccc;
  background-color: #1A1A1A;
  border-radius: 0 0 10px 10px;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-contact__faq-answer p {
  margin: 0;
  font-size: 15px;
  color: #cccccc;
}

.page-contact__faq-answer a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

/* Commitment Section Styles */
.page-contact__commitment-section {
  background-color: #222222;
  padding: 80px 0;
}

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

.page-contact__commitment-item {
  background-color: #1A1A1A;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(139, 0, 0, 0.2);
}

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

.page-contact__commitment-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: rgba(139, 0, 0, 0.1);
  padding: 8px;
}

.page-contact__commitment-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-contact__commitment-text {
  font-size: 15px;
  color: #cccccc;
}

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-contact__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-contact__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-contact__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-contact__hero-image,
  .page-contact__form-image {
    border-radius: 8px;
  }
  .page-contact__contact-methods,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__commitment-section {
    padding: 40px 0;
  }
  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: 14px;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-contact__methods-grid,
  .page-contact__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-contact__method-item,
  .page-contact__commitment-item {
    padding: 25px;
    border-radius: 10px;
  }
  .page-contact__method-icon,
  .page-contact__commitment-icon {
    width: 80px;
    height: 80px;
  }
  .page-contact__method-title,
  .page-contact__commitment-title {
    font-size: 20px;
  }
  .page-contact__contact-form {
    padding: 30px 20px;
    border-radius: 10px;
    margin: 0 15px;
  }
  .page-contact__form-label {
    font-size: 14px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    width: calc(100% - 20px);
    padding: 10px;
    font-size: 14px;
  }
  .page-contact__form-submit-btn {
    padding: 12px;
    font-size: 16px;
  }
  .page-contact__faq-list {
    margin: 0 15px;
  }
  .page-contact__faq-item {
    border-radius: 8px;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-question h3 {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }
  .page-contact__faq-answer p {
    font-size: 14px;
  }
  /* Ensure all images are responsive */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 28px;
  }
  .page-contact__section-title {
    font-size: 24px;
  }
  .page-contact__method-title,
  .page-contact__commitment-title {
    font-size: 18px;
  }
  .page-contact__faq-question h3 {
    font-size: 15px;
  }
  .page-contact__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
  }
}