/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default 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;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #26A9E0; /* Primary color for hero background */
  color: #FFFFFF; /* White text for primary 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 dim the background image for readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

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

/* General Section Styles */
h2.page-contact__section-title, h3.page-contact__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles in light sections */
}

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

/* Why Contact Section */
.page-contact__why-contact-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-contact__why-contact-section .page-contact__section-title {
  color: #26A9E0;
}

.page-contact__why-contact-section .page-contact__section-description {
  color: #666666;
}

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

.page-contact__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-contact__feature-text {
  color: #555555;
}

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #FFFFFF; /* White text for dark background */
}

.page-contact__methods-section .page-contact__section-title {
  color: #26A9E0; /* Brand color for titles */
}

.page-contact__methods-section .page-contact__section-description {
  color: #f0f0f0;
}

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

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

.page-contact__contact-icon {
  width: 100%; /* Make images responsive within card */
  height: auto;
  max-width: 250px; /* Limit max size for icons */
  margin-bottom: 20px;
  border-radius: 5px;
  display: block;
}

.page-contact__contact-method-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-contact__contact-method-text {
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1; /* Push buttons to bottom */
}

.page-contact__contact-card .page-contact__btn-primary,
.page-contact__contact-card .page-contact__btn-secondary {
  margin-top: 10px; /* Space between multiple buttons */
  width: 100%; /* Make buttons full width in card */
  max-width: 250px; /* Limit max width for consistency */
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-contact__faq-section .page-contact__section-title {
  color: #26A9E0;
}

.page-contact__faq-section .page-contact__section-description {
  color: #666666;
}

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

.page-contact__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden; /* For smooth transition */
}

.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: #f0f0f0;
  color: #333333;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for <summary> */
}

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

.page-contact__faq-item[open] .page-contact__faq-question {
  background-color: #e6e6e6;
  color: #26A9E0;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

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

/* Call to Action Section */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  text-align: center;
}

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

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

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

/* Buttons */
.page-contact__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #EA7C07; /* Login/Register color for primary action */
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: transparent;
  color: #FFFFFF;
  text-decoration: none;
  border: 2px solid #FFFFFF;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
  transform: translateY(-2px);
}

/* Floating Buttons */
.page-contact__floating-buttons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  z-index: 1000;
}

.page-contact__floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.2; /* Adjust line height for multi-line text if needed */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  flex-shrink: 0;
}

.page-contact__floating-btn--register {
  background-color: #EA7C07; /* Login/Register color */
}

.page-contact__floating-btn--register:hover {
  background-color: #d16e06;
  transform: scale(1.05);
}

.page-contact__floating-btn--login {
  background-color: #26A9E0; /* Primary color */
}

.page-contact__floating-btn--login:hover {
  background-color: #1f8ec4;
  transform: scale(1.05);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }
  h2.page-contact__section-title, h3.page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  /* Ensure padding-top for header offset on mobile if shared doesn't do it */
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-contact__hero-content {
    padding: 20px;
  }

  .page-contact__hero-title {
    font-size: 2.2em;
  }

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

  h2.page-contact__section-title, h3.page-contact__section-title {
    font-size: 1.8em;
  }

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

  .page-contact__features-grid,
  .page-contact__contact-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__contact-icon {
    max-width: 180px; /* Adjust for smaller screens */
  }

  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-contact__faq-answer {
    padding: 10px 20px 20px 20px;
  }

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

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

  .page-contact__hero-buttons,
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Floating buttons for mobile - stack them vertically or adjust size */
  .page-contact__floating-buttons {
    bottom: 15px;
    left: 15px;
    right: 15px;
    gap: 10px;
  }
  
  .page-contact__floating-btn {
    width: 45% !important; /* Make them roughly half width on mobile */
    height: 50px !important;
    font-size: 0.8em !important;
    flex-grow: 1 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image responsiveness */
  .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__hero-section,
  .page-contact__why-contact-section,
  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__cta-section,
  .page-contact__contact-card {
    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 */
  }
  /* Specific padding for sections to avoid double padding if container also has it */
  .page-contact__why-contact-section,
  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-contact__why-contact-section > .page-contact__container,
  .page-contact__methods-section > .page-contact__container,
  .page-contact__faq-section > .page-contact__container,
  .page-contact__cta-section > .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensure images maintain their aspect ratio and don't overflow */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* No CSS filter on images */
.page-contact img {
  filter: none;
}