/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background: var(--dark-bg-1); /* Inherited from shared, assumed dark */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Ensure contrast on dark background */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 60px 20px;
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Use brand color for hero section background */
}

.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;
  color: #ffffff;
  max-width: 900px;
}

.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: 30px;
  line-height: 1.5;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

.page-contact__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

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

.page-contact__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #005f2e;
  border-color: #005f2e;
}

/* Section Backgrounds */
.page-contact__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-contact__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-contact__light-bg .page-contact__section-title {
  color: #017439;
}

.page-contact__light-bg .page-contact__section-description {
  color: #555555;
}

/* Channels Section */
.page-contact__channels-section {
  padding: 80px 0;
}

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

.page-contact__channel-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-contact__channel-card .page-contact__channel-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 5px solid #017439;
}

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

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

/* Office Info Section */
.page-contact__office-info-section {
  padding: 80px 0;
}

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

.page-contact__info-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

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

.page-contact__info-card .page-contact__info-text {
  font-size: 1em;
  margin-bottom: 15px;
}

.page-contact__info-card .page-contact__address,
.page-contact__info-card .page-contact__license {
  font-size: 1.1em;
  font-weight: bold;
  color: #FFFF00; /* Yellow for important info */
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
}

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

.page-contact__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e6ffe6; /* Light green for FAQ question background */
  border-bottom: 1px solid #c8e6c9;
  list-style: none; /* For details tag */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details tag */
}

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

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
}

.page-contact__form-wrapper {
  display: flex;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

.page-contact__contact-form {
  flex: 1;
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #ffffff;
}

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

.page-contact__form-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Video Section */
.page-contact__video-section {
  padding: 80px 0;
}

.page-contact__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 50px auto 30px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-contact__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-contact__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

.page-contact__video-cta {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 300px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__form-wrapper {
    flex-direction: column;
  }
  .page-contact__form-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
  }
  .page-contact__channels-grid,
  .page-contact__info-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__channel-card,
  .page-contact__info-card {
    padding: 20px;
  }
  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-contact__form-image {
    max-width: 100%;
  }

  /* Mobile specific overrides for images, videos, and buttons */
  .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,
  .page-contact__form-wrapper,
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-contact__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Fixed header spacing for video section */
  }

  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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;
    padding-right: 15px;
  }
  
  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__hero-section {
    min-height: 400px;
    padding: 40px 15px;
  }
}