/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body handles background, this section is transparent */
}

/* --- Section Layout --- */
.page-contact__section {
  padding: 60px 20px;
  text-align: center;
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add padding for inner content */
  box-sizing: border-box;
}

.page-contact__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #cccccc; /* Slightly lighter for descriptions */
}

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: #0d0d0d; /* Dark background for hero section */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  max-width: 1920px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-content {
  max-width: 800px;
  padding: 0 15px;
  text-align: center;
  color: #ffffff;
  z-index: 1; /* Ensure text is above any potential overlays */
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: bold;
  line-height: 1.2;
}

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

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-text-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Ensure padding/border included in width */
  max-width: 100%; /* For responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-primary {
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand color */
  border: 2px solid #26A9E0;
  margin-left: 20px; /* Space between primary and secondary */
}

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

.page-contact__btn-text-link {
  color: #26A9E0;
  border: none;
  padding: 0;
  text-decoration: underline;
}

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

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Why Contact Section --- */
.page-contact__why-contact {
  background-color: #1a1a1a; /* Darker background for contrast */
  color: #f0f0f0;
}

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

.page-contact__feature-item {
  background-color: #262626; /* Slightly lighter dark card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-height: 200px; /* Minimum height for content images */
  color: #f0f0f0;
}

.page-contact__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-contact__feature-text {
  font-size: 1em;
  color: #cccccc;
}

.page-contact__keyword {
  color: #26A9E0; /* Highlight keywords with brand color */
  font-weight: bold;
}

/* --- Contact Channels Section --- */
.page-contact__contact-channels {
  background-color: #0d0d0d;
  color: #f0f0f0;
}

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

.page-contact__channel-item {
  background-color: #262626;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact__channel-icon {
  width: 400px; /* Match HTML width attribute */
  height: 300px; /* Match HTML height attribute */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px; /* Slightly rounded corners for images */
  display: block; /* Ensure images behave as block elements */
  min-width: 200px; /* Minimum size for all images on desktop */
  min-height: 200px;
}

.page-contact__channel-name {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-contact__channel-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
  color: #cccccc;
}

/* --- Effective Contact Section --- */
.page-contact__effective-contact {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

.page-contact__guide-item {
  background-color: #262626;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.page-contact__guide-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-contact__guide-text {
  font-size: 1em;
  color: #cccccc;
}

/* --- FAQ Section --- */
.page-contact__faq {
  background-color: #0d0d0d;
  color: #f0f0f0;
}

.page-contact__faq-image {
  width: 600px; /* Match HTML width attribute */
  height: 338px; /* Match HTML height attribute */
  object-fit: cover;
  margin: 30px auto;
  border-radius: 10px;
  display: block;
  min-width: 200px; /* Minimum size for all images on desktop */
  min-height: 200px;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff; /* White text for question */
  background-color: #26A9E0; /* Brand color for summary background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__faq-item[open] .page-contact__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #cccccc; /* Lighter text for answer */
  background-color: #333333; /* Darker background for answer */
}

.page-contact__faq-answer p {
  margin-bottom: 15px;
}

.page-contact__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Remove default details marker */
.page-contact__faq-item summary {
  list-style: none;
}
.page-contact__faq-item summary::-webkit-details-marker {
  display: none;
}

/* --- CTA Bottom Section --- */
.page-contact__cta-bottom {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  padding: 80px 20px;
}

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

.page-contact__cta-bottom .page-contact__section-description {
  color: #f0f0f0;
}

.page-contact__cta-bottom .page-contact__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  border-color: #EA7C07;
}

.page-contact__cta-bottom .page-contact__btn-primary:hover {
  background-color: #d16b05;
  border-color: #d16b05;
}

.page-contact__cta-bottom .page-contact__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-contact__cta-bottom .page-contact__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* --- Global Image Styles (ensure minimum size and no filter) --- */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default object-fit */
  filter: none; /* Absolutely no filter */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__hero-section {
    padding-bottom: 40px;
  }
  .page-contact__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-contact__btn-secondary {
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  .page-contact__section {
    padding: 40px 15px;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-contact__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 30px;
  }
  .page-contact__hero-content {
    padding: 0 10px;
  }
  .page-contact__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  
  /* Images, Videos, Buttons responsive rules for mobile */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure content images take full width */
    height: auto !important;
    min-width: unset !important; /* Unset min-width for mobile flexibility */
    min-height: unset !important; /* Unset min-height for mobile flexibility */
  }

  /* Video related elements, if any, would follow similar max-width: 100% rules */
  /* For this page, there are no video elements, but the rule is generic */
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__video-section,
  .page-contact__video-container,
  .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: 10px !important;
  }
  
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons responsive rules for mobile */
  .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; /* Ensure buttons take full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Remove margin for stacking */
    margin-bottom: 10px;
  }
  
  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* General container padding */
  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .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;
  }
}

@media (max-width: 480px) {
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__main-title {
    font-size: clamp(1.2em, 7vw, 1.8em);
  }
}

/* Contrast Fixes based on dark body background */
/* All sections are dark, so text is light by default */
.page-contact__why-contact,
.page-contact__contact-channels,
.page-contact__effective-contact,
.page-contact__faq {
  background-color: #0d0d0d; /* Dark background */
  color: #f0f0f0; /* Light text */
}

.page-contact__grid-features .page-contact__feature-item,
.page-contact__channel-grid .page-contact__channel-item,
.page-contact__guide-list .page-contact__guide-item {
  background-color: #1a1a1a; /* Darker card background */
  color: #f0f0f0; /* Light text */
}

.page-contact__faq-item {
  background-color: #1a1a1a; /* Darker background for FAQ items */
  color: #f0f0f0; /* Light text */
}

.page-contact__faq-question {
  background-color: #26A9E0; /* Brand color for question header */
  color: #ffffff; /* White text for question */
}

.page-contact__faq-answer {
  background-color: #333333; /* Darker background for answer */
  color: #cccccc; /* Lighter text for answer */
}

/* Ensure all images meet min-width/height requirement */
.page-contact__hero-image {
  min-width: 200px;
  min-height: 200px;
}
/* Override for mobile to allow smaller display if needed, but not below 200px for actual content images in desktop */
@media (max-width: 768px) {
  .page-contact__hero-image,
  .page-contact__channel-icon,
  .page-contact__faq-image {
    min-width: unset !important;
    min-height: unset !important;
  }
}