/* 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: #0a0a0a; /* Ensure consistency with body background */
}

/* Header offset for the first section */
.page-contact__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  background: linear-gradient(135deg, #017439, #0a0a0a); /* Blend brand color with dark background */
  color: #ffffff;
  padding-bottom: 60px;
}

.page-contact__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 20px;
}

.page-contact__hero-content {
  flex: 1;
  text-align: left;
}

.page-contact__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-contact__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px; /* Ensure image wrapper has min width */
}

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum image size */
}

/* General section styles */
.page-contact__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

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

/* Dark background sections */
.page-contact__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

/* Channels Section */
.page-contact__channels-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-contact__channel-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff; /* Ensure light text on card */
}

.page-contact__channel-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

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

.page-contact__channel-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-contact__email-address,
.page-contact__phone-number {
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight contact info */
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap; /* Allow social buttons to wrap */
  justify-content: center;
}

/* Contact Form Section */
.page-contact__form-section {
  background-color: #1a1a1a; /* A slightly lighter dark background */
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent white for form background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

.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.4);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

.page-contact__form-note {
  text-align: center;
  margin-top: 30px;
  font-size: 0.95em;
  color: #cccccc;
}

/* FAQ Section */
.page-contact__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

.page-contact__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 20px;
  color: #FFFF00; /* Highlight toggle icon */
}

.page-contact__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-contact__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-contact__faq-answer a {
  color: #FFFF00; /* Link color in FAQ */
  text-decoration: underline;
}

.page-contact__faq-answer a:hover {
  color: #017439;
}

/* Why Us Section */
.page-contact__why-us-section {
  background-color: #1a1a1a;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-contact__why-us-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-contact__why-us-list li {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-contact__why-us-item-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFFF00; /* Highlight titles */
}

.page-contact__why-us-list li p {
  font-size: 1em;
  color: #f0f0f0;
}

/* Call to Action Section */
.page-contact__cta-section {
  background-color: #017439; /* Brand primary color */
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
  color: #ffffff;
}

.page-contact__cta-section .page-contact__section-title {
  color: #ffffff;
}

.page-contact__cta-section .page-contact__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__submit-button {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #017439;
  display: inline-block;
  white-space: nowrap;
  cursor: pointer;
  font-size: 1.1em;
}

.page-contact__btn-primary:hover,
.page-contact__submit-button:hover {
  background-color: #005a2e; /* Darker shade on hover */
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid #ffffff;
  display: inline-block;
  white-space: nowrap;
  font-size: 1.1em;
}

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

.page-contact__btn-tertiary {
  background-color: #FFFF00; /* Yellow for tertiary buttons */
  color: #0a0a0a; /* Dark text on yellow */
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  display: inline-block;
  white-space: nowrap;
  font-size: 0.95em;
  margin-top: auto; /* Push to bottom of card */
}

.page-contact__btn-tertiary:hover {
  background-color: #e0e000;
  transform: translateY(-2px);
}

.page-contact__social-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  display: inline-block;
  white-space: nowrap;
  font-size: 0.95em;
}

.page-contact__social-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Specific button styles for Register/Login */
.page-contact__btn-login {
  background-color: #C30808; /* Custom login color */
  color: #FFFF00; /* Custom login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #C30808;
  display: inline-block;
  white-space: nowrap;
  cursor: pointer;
  font-size: 1.1em;
}

.page-contact__btn-login:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-contact__hero-content {
    text-align: center;
  }

  .page-contact__main-title {
    font-size: 2.8em;
  }

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

  .page-contact__channel-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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

  .page-contact__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-contact__main-title {
    font-size: 2.2em;
  }

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

  .page-contact__hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-login,
  .page-contact__submit-button,
  .page-contact__cta-button,
  .page-contact__btn-tertiary,
  .page-contact__social-btn,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    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__cta-buttons-wrapper,
  .page-contact__social-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
    gap: 10px;
  }

  .page-contact__container {
    padding: 40px 15px;
  }

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

  /* All images must be responsive */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers must be responsive */
  .page-contact__hero-image-wrapper,
  .page-contact__channel-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Content area image size constraint */
  .page-contact__channels-section img,
  .page-contact__form-section img,
  .page-contact__faq-section img,
  .page-contact__why-us-section img,
  .page-contact__cta-section img {
    min-width: 200px !important; /* Ensure content images are not too small */
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile video section padding-top */
  }
}

/* Ensure no CSS filter is used on images */
.page-contact img {
  filter: none !important;
}

/* Ensure content area images are not smaller than 200px */
.page-contact__channels-section img,
.page-contact__form-section img,
.page-contact__faq-section img,
.page-contact__why-us-section img,
.page-contact__cta-section img {
  min-width: 200px;
  min-height: 200px;
}