/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #cccccc; /* Slightly lighter for description */
}

/* Hero Section */
.page-contact__hero-section {
  background-color: #1a1a1a; /* Dark background for hero */
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-contact__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-contact__hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #26A9E0; /* Brand color for main title */
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #e0e0e0;
}

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

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: flex-start;
  margin-top: 30px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

.page-contact__btn-primary:hover {
  background-color: #1e87b7; /* Darker shade on hover */
  border-color: #1e87b7;
}

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

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

/* Info Section */
.page-contact__info-section {
  background-color: #121212; /* Dark background */
  padding: 80px 0;
  color: #f0f0f0;
}

.page-contact__info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.page-contact__info-content {
  flex: 2;
  min-width: 300px;
}

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

.page-contact__detail-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__detail-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-contact__detail-link,
.page-contact__detail-address {
  display: block;
  font-size: 1.1em;
  color: #ffffff;
  text-decoration: none;
  word-wrap: break-word;
}

.page-contact__detail-link:hover {
  color: #26A9E0;
  text-decoration: underline;
}

.page-contact__info-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.page-contact__info-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #1a1a1a; /* Dark background */
  padding: 80px 0;
  color: #f0f0f0;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__faq-question:hover {
  background-color: 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-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #cccccc;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 1000px; /* Large enough to show content */
}

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

.page-contact__faq-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

/* For details/summary native behavior */
.page-contact__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-contact__faq-image-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.page-contact__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Social Section */
.page-contact__social-section {
  background-color: #121212; /* Dark background */
  padding: 80px 0;
  color: #f0f0f0;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.page-contact__social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 120px;
  box-sizing: border-box;
}

.page-contact__social-button:hover {
  background-color: #1e87b7;
}

.page-contact__social-image-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.page-contact__social-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* CTA Banner Section */
.page-contact__cta-banner {
  background-color: #26A9E0; /* Brand color background */
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-contact__cta-content {
  position: relative;
  z-index: 1;
}

.page-contact__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-contact__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-contact__cta-banner .page-contact__cta-buttons {
  justify-content: center;
}

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

.page-contact__cta-banner .page-contact__btn-primary:hover {
  background-color: #bf6606;
  border-color: #bf6606;
}

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

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

.page-contact__cta-image {
  max-width: 100%;
  height: auto;
  margin-top: 60px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__section-title {
    font-size: 2em;
    padding: 0 15px;
  }
  .page-contact__section-description {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-contact__hero-section {
    padding: 60px 0;
    text-align: center;
  }
  .page-contact__hero-content {
    text-align: center;
  }
  .page-contact__hero-title {
    font-size: 2.2em;
    padding: 0 15px;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
    padding: 0 15px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }
  .page-contact__info-section,
  .page-contact__faq-section,
  .page-contact__social-section,
  .page-contact__cta-banner {
    padding: 60px 0;
  }
  .page-contact__info-image-wrapper,
  .page-contact__faq-image-wrapper,
  .page-contact__social-image-wrapper,
  .page-contact__hero-image-wrapper {
    margin-top: 30px;
    padding: 0 15px; /* Add padding to prevent image overflow */
  }

  /* Image responsive rules */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__faq-section,
  .page-contact__social-section,
  .page-contact__cta-banner {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-contact__hero-image,
  .page-contact__info-image,
  .page-contact__faq-image,
  .page-contact__social-image,
  .page-contact__cta-image {
    min-width: 200px;
    min-height: 200px;
  }
  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 15px 20px;
  }
  .page-contact__social-links {
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
  }
  .page-contact__social-button {
    width: 100%;
    max-width: 300px; /* Max width for social buttons on mobile */
  }
  .page-contact__cta-title {
    font-size: 2em;
    padding: 0 15px;
  }
  .page-contact__cta-description {
    font-size: 1em;
    padding: 0 15px;
  }
}

/* Dark background color for sections, ensuring light text */
.page-contact__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Light background color for sections, ensuring dark text (though not used much here due to body color) */
.page-contact__light-bg {
  background-color: #121212; /* Using body background color for consistency */
  color: #f0f0f0;
}

/* Specific color for login button */
.page-contact__btn-login {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-contact__btn-login:hover {
  background-color: #bf6606;
  border-color: #bf6606;
}

/* General text color for readability on dark backgrounds */
.page-contact p,
.page-contact li,
.page-contact label,
.page-contact input::placeholder,
.page-contact textarea::placeholder {
  color: #cccccc;
}

.page-contact h1, .page-contact h2, .page-contact h3, .page-contact h4, .page-contact h5, .page-contact h6 {
  color: #ffffff; /* Default for headings */
}

/* Ensure all links are visible */
.page-contact a {
  color: #26A9E0;
  text-decoration: none;
}

.page-contact a:hover {
  text-decoration: underline;
}

/* Override for specific elements if needed for contrast */
.page-contact__detail-link {
  color: #ffffff; /* White on dark card background */
}
.page-contact__detail-link:hover {
  color: #26A9E0;
}