/* style/contact.css */

/* Base styles for the contact page, assuming a dark body background from shared.css */
.page-contact {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body or shared.css */
  line-height: 1.6;
}

/* Container for consistent content width */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles and descriptions */
.page-contact__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Responsive font size for H2 */
  color: #26A9E0; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__faq-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding/border included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

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

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

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

/* Special button color for Login (if applicable, though not a login page) */
.page-contact__btn-login {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}
.page-contact__btn-login:hover {
  background-color: #c96706;
  border-color: #c96706;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding for the first section */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-contact__hero-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Image above text for desktop and mobile */
  align-items: center;
  gap: 30px;
}

.page-contact__hero-image {
  width: 100%;
  max-width: 1200px; /* Actual display width */
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-contact__hero-text-container {
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
}

.page-contact__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Responsive H1 font size */
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-contact__hero-text-container .page-contact__btn-primary {
  margin-top: 20px;
  min-width: 200px;
}

/* Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.03); /* Subtle dark background */
}

.page-contact__support-image-wrapper {
  max-width: 800px;
  margin: 0 auto 50px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__support-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-contact__info-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__info-card-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-contact__info-card-text {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-contact__info-card-contact {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-contact__info-card .page-contact__btn-secondary {
  width: auto;
  min-width: 150px;
}

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

.page-contact__form-container {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 50px;
  align-items: center;
}

.page-contact__form-content {
  flex: 1;
  min-width: 300px;
}

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

.page-contact__form-image {
  width: 100%;
  max-width: 600px; /* Max width for the image */
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-contact__contact-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #26A9E0;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

.page-contact__form-submit-btn {
  align-self: flex-start;
  min-width: 180px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.03); /* Subtle dark background */
}

.page-contact__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-contact__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

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

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

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

.page-contact__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff; /* Contrast with blue question text */
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
}

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

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

.page-contact__faq-link:hover {
  color: #1e87c2;
}

/* Map Section */
.page-contact__map-section {
  padding: 80px 0;
}

.page-contact__map-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 20px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-contact__address-text {
  text-align: center;
  font-size: 18px;
  color: #f0f0f0;
  margin-top: 20px;
  font-weight: bold;
}

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

.page-contact__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__cta-section .page-contact__section-title {
  color: #ffffff; /* White title on brand color background */
}

.page-contact__cta-section .page-contact__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 450px; /* Limit width of button group */
}

.page-contact__cta-buttons .page-contact__btn-primary,
.page-contact__cta-buttons .page-contact__btn-secondary {
  flex: 1;
  min-width: 180px; /* Minimum width for buttons */
}

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

.page-contact__cta-buttons .page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c2;
  border-color: #f0f0f0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-contact__container {
    padding: 0 15px; /* Smaller padding for mobile */
  }

  .page-contact__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-contact__hero-content-wrapper {
    gap: 20px;
  }

  .page-contact__main-title {
    font-size: clamp(28px, 8vw, 40px); /* Adjust H1 for smaller screens */
  }

  .page-contact__hero-description {
    font-size: clamp(16px, 4vw, 18px);
  }

  .page-contact__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-contact__section-description {
    margin-bottom: 30px;
  }

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__map-section,
  .page-contact__cta-section {
    padding: 50px 0;
  }

  .page-contact__info-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
    gap: 20px;
  }

  .page-contact__form-container {
    flex-direction: column; /* Stack form and image */
    gap: 30px;
  }

  .page-contact__form-content,
  .page-contact__form-image-wrapper {
    width: 100%;
    min-width: unset;
  }

  .page-contact__contact-form {
    margin-top: 20px;
  }

  .page-contact__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 15px;
  }

  .page-contact__cta-buttons {
    flex-direction: column; /* Stack CTA buttons */
    gap: 15px;
    max-width: 300px; /* Adjust max-width for stacked buttons */
  }
  .page-contact__cta-buttons .page-contact__btn-primary,
  .page-contact__cta-buttons .page-contact__btn-secondary {
    width: 100%; /* Full width for stacked buttons */
    max-width: 100% !important;
  }

  .page-contact__support-image-wrapper {
    margin-bottom: 30px;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Mobile responsive overrides with !important */
  .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__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__map-section,
  .page-contact__cta-section,
  .page-contact__form-container,
  .page-contact__info-card,
  .page-contact__faq-item,
  .page-contact__map-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__map-section,
  .page-contact__cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Specific elements that are buttons or act like buttons */
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"],
  .page-contact__form-submit-btn,
  .page-contact__faq-link {
    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;
  }

  /* Button groups, allow wrapping */
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no filter on images */
.page-contact img {
  filter: none !important;
}

/* Contrast fix if needed (though already handled by dark body / light text) */
.page-contact__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-contact__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Form elements for dark background */
.page-contact__form-input,
.page-contact__form-textarea {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible on dark body */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #26A9E0;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

/* Adjustments for link contrast on dark backgrounds */
.page-contact a {
  color: #26A9E0; /* Default link color */
  text-decoration: none;
}
.page-contact a:hover {
  text-decoration: underline;
  color: #1e87c2;
}

/* Specific contrast for general paragraphs in dark mode */
.page-contact p {
  color: #e0e0e0;
}

.page-contact__faq-answer p {
  color: #e0e0e0;
}

/* Ensure H1 font-size adheres to clamp rule and avoids fixed large values */
.page-contact__main-title {
  /* Using clamp already, ensuring responsive and capped size */
}