/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-contact__section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.page-contact__section-title {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  color: #ffffff;
  padding: 100px 0;
}

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

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 116, 57, 0.7); /* Main brand color with transparency */
  z-index: -1;
}

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

.page-contact__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

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

/* Channels Section */
.page-contact__channels-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-contact__channel-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark body */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-contact__channel-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Form Section */
.page-contact__form-section {
  background-color: #017439; /* Brand main color */
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-contact__form-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  z-index: 0;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0 auto;
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on brand color */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

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

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

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

.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 {
  border-color: #FFFF00; /* Highlight on focus */
  background-color: rgba(0, 0, 0, 0.5);
  outline: none;
}

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

.page-contact__form-submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
}

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

.page-contact__faq-list {
  max-width: 900px;
  margin: 50px auto;
  position: relative;
  z-index: 1;
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Darker background for FAQ items */
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.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;
  background-color: rgba(255, 255, 255, 0.03);
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 25px;
}

.page-contact__faq-answer p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.7;
}

.page-contact__faq-link {
  color: #FFFF00; /* Custom font color for Register/Login */
  text-decoration: none;
  font-weight: bold;
}

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

/* Commitment Section */
.page-contact__commitment-section {
  background-color: #017439; /* Brand main color */
  text-align: center;
}

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

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

  .page-contact__channel-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    min-height: 500px;
    padding: 60px 0;
  }

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

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

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

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

  .page-contact__section {
    padding: 60px 0;
  }

  .page-contact__section-title {
    font-size: 1.8rem;
  }

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

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

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

  .page-contact__form-section .page-contact__container,
  .page-contact__faq-section .page-contact__container,
  .page-contact__commitment-section .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__contact-form {
    padding: 30px;
    margin-top: 30px;
  }

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

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

  .page-contact__form-submit-btn {
    padding: 15px;
    font-size: 1.1rem;
  }

  .page-contact__faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }

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

  .page-contact img {
    max-width: 100% !important;
    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;
  }

  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Ensure content area images are not too small on mobile */
  .page-contact__channel-icon,
  .page-contact__faq-image,
  .page-contact__form-background-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: auto !important; /* Allow auto-scaling while respecting min-width */
    height: auto !important;
  }
}

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

  .page-contact__section-title {
    font-size: 1.6rem;
  }

  .page-contact__channel-card {
    padding: 20px;
  }

  .page-contact__hero-cta-buttons {
    gap: 10px;
  }
}