/* style/contact.css */

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

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

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

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

/* Buttons */
.page-contact__btn-primary {
  display: inline-block;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid #017439;
  box-sizing: border-box;
}

.page-contact__btn-primary:hover {
  background-color: #005a2d; /* Darker shade for hover */
  border-color: #005a2d;
}

.page-contact__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #ffffff;
  box-sizing: border-box;
}

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

/* Specific button colors for register/login */
.page-contact__register-btn {
  background-color: #C30808; /* Custom Register color */
  border-color: #C30808;
  color: #FFFF00; /* Custom Register font color */
}
.page-contact__register-btn:hover {
  background-color: #a30707;
  border-color: #a30707;
}

.page-contact__login-btn {
  background-color: #C30808; /* Custom Login color */
  border-color: #C30808;
  color: #FFFF00; /* Custom Login font color */
}
.page-contact__login-btn:hover {
  background-color: #a30707;
  border-color: #a30707;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
  background-color: #1a1a2e; /* Match body background for consistency */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Slightly transparent to let text stand out */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: #ffffff;
}

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

.page-contact__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

/* Channels Section */
.page-contact__channels-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Match body background */
}

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

.page-contact__channel-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
}

.page-contact__channel-icon {
  width: 100%; /* Ensure images take full width of card */
  height: auto;
  max-width: 250px; /* Max size for the icon/image within card */
  margin: 0 auto 20px;
  border-radius: 8px;
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

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

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

.page-contact__channel-info {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 10px;
}

.page-contact__channel-button {
  margin-top: 15px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #0e0e1a; /* Slightly darker background for contrast */
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-contact__faq-item summary {
  list-style: none; /* Hide default marker */
  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;
}

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

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #017439; /* Brand color for toggle icon */
  font-weight: normal;
}

.page-contact__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(0, 0, 0, 0.1); /* Slightly darker for content */
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Match body background */
}

.page-contact__form-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.page-contact__form-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-contact__contact-form {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

.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.3);
}

.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-contact__form-submit-btn:hover {
  background-color: #005a2d;
}

/* Why Choose Section */
.page-contact__why-choose-section {
  padding: 80px 0;
  background-color: #0e0e1a; /* Slightly darker background */
}

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

.page-contact__advantage-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

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

.page-contact__advantage-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* CTA Banner */
.page-contact__cta-banner {
  background-color: #017439; /* Primary brand color for the banner */
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.page-contact__banner-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-contact__banner-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-title {
    font-size: 2.5em;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
  }
  .page-contact__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__hero-cta .page-contact__btn-primary,
  .page-contact__hero-cta .page-contact__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-intro {
    font-size: 1em;
  }

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

  .page-contact__channel-card,
  .page-contact__advantage-item,
  .page-contact__contact-form {
    padding: 25px;
  }

  .page-contact__form-image {
    order: -1; /* Image above form on mobile */
  }

  .page-contact__banner-title {
    font-size: 2em;
  }
  .page-contact__banner-description {
    font-size: 1em;
  }
  .page-contact__banner-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__banner-buttons .page-contact__btn-primary,
  .page-contact__banner-buttons .page-contact__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Mobile specific image/video/button responsive rules with !important */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper,
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

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

  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .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 !important; /* Adjust padding for full width buttons */
    padding-right: 15px !important;
  }
  
  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}