.page-contact {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background-color: #0d0d0d; /* Slightly off-black for depth */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-contact__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-contact__hero-description {
  font-size: 1.25rem;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-contact__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-contact__btn-primary {
  background: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
  background: #ff3333;
  border-color: #ff3333;
  color: #ffffff;
}

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

.page-contact__btn-secondary:hover {
  background: #ffffff;
  color: #017439;
}

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

.page-contact__channels-section,
.page-contact__form-section,
.page-contact__info-section {
  background-color: #000000;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-contact__dark-section {
  background-color: #017439; /* Brand green for dark sections */
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-contact__channels-title,
.page-contact__form-title,
.page-contact__faq-title,
.page-contact__info-title,
.page-contact__cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-contact__channels-description,
.page-contact__form-description,
.page-contact__faq-description,
.page-contact__info-description,
.page-contact__cta-description {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

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

.page-contact__channel-item {
  background: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__channel-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
  max-width: 100%; /* Responsive */
  height: auto; /* Responsive */
}

.page-contact__channel-name {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-contact__channel-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-contact__channel-info {
  font-weight: bold;
  color: #FFFF00; /* Custom color for info text */
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.page-contact__btn-text-link {
  color: #FFFF00; /* Custom color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__btn-text-link:hover {
  color: #ffffff;
}

.page-contact__social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-contact__social-list li {
  margin-bottom: 8px;
}

.page-contact__social-list a {
  color: #FFFF00; /* Custom color for social links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__social-list a:hover {
  color: #ffffff;
}

.page-contact__channels-image {
  margin-top: 50px;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #ffffff;
  font-size: 1.1rem;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5); /* Darker input background */
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #017439;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

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

.page-contact__form-image {
  margin-top: 50px;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

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

.page-contact__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for FAQ items */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-question-text {
  margin: 0;
  flex-grow: 1;
  color: #ffffff;
}

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Custom color for toggle icon */
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px;
}

.page-contact__faq-answer p {
  margin: 0;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-contact__faq-image {
  margin-top: 50px;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

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

.page-contact__info-item {
  flex: 1 1 45%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-contact__info-subtitle {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-contact__info-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-contact__info-image {
  margin-top: 50px;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-contact__cta-section {
  padding: 80px 0;
}

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

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

  .page-contact__hero-description {
    font-size: 1.1rem;
  }

  .page-contact__channels-title,
  .page-contact__form-title,
  .page-contact__faq-title,
  .page-contact__info-title,
  .page-contact__cta-title {
    font-size: 2.2rem;
  }
}

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

  .page-contact__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header spacing */
  }

  .page-contact__hero-title {
    font-size: 2rem;
  }

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

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-contact__channels-title,
  .page-contact__form-title,
  .page-contact__faq-title,
  .page-contact__info-title,
  .page-contact__cta-title {
    font-size: 1.8rem;
  }

  .page-contact__channels-description,
  .page-contact__form-description,
  .page-contact__faq-description,
  .page-contact__info-description,
  .page-contact__cta-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-contact__channel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__channel-item {
    padding: 25px;
  }

  .page-contact__channel-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__channels-image,
  .page-contact__form-image,
  .page-contact__faq-image,
  .page-contact__info-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-contact__contact-form {
    padding: 25px;
  }

  .page-contact__form-label {
    font-size: 1rem;
  }

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

  .page-contact__faq-toggle {
    font-size: 1.5rem;
  }

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

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 10px 20px 20px;
  }

  .page-contact__info-item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-contact__info-subtitle {
    font-size: 1.5rem;
  }

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

  .page-contact__cta-buttons a {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.7rem;
  }

  .page-contact__channels-title,
  .page-contact__form-title,
  .page-contact__faq-title,
  .page-contact__info-title,
  .page-contact__cta-title {
    font-size: 1.6rem;
  }

  .page-contact__hero-description {
    font-size: 0.9rem;
  }

  .page-contact__channel-name,
  .page-contact__info-subtitle {
    font-size: 1.4rem;
  }
}