/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #ffffff); /* Use shared background variable, fallback to white */
}

/* Ensure text on brand primary color background is white */
.page-contact__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

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

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

/* Hero Section */
.page-contact__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; /* White text on dark background */
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for description */
}

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

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand primary color for titles on light backgrounds */
}

.page-contact__section-title--white {
  color: #ffffff; /* White title on dark backgrounds */
}

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

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-text {
  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;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
  background-color: #EA7C07; /* Login/CTA color */
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

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

.page-contact__btn-text {
  background: none;
  color: #26A9E0;
  border: 2px solid transparent;
  padding: 0;
  margin-top: 10px;
  text-decoration: underline;
}

.page-contact__btn-text:hover {
  color: #1e87bb;
  text-decoration: underline;
}

.page-contact__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Contact Info Section */
.page-contact__info-section {
  padding: 60px 20px;
}

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

.page-contact__contact-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-contact__contact-icon {
  width: 200px; /* Enforce minimum size for content images */
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-contact__card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-contact__link-text {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__link-text:hover {
  color: #1e87bb;
  text-decoration: underline;
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.page-contact__social-icon {
  color: #26A9E0;
  font-size: 1.2em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__social-icon:hover {
  color: #1e87bb;
  text-decoration: underline;
}

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #4a5c6b;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #888888;
}

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

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 20px;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #f0f0f0;
}

.page-contact__faq-title {
  font-size: 1.2em;
  color: #26A9E0;
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

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

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px 25px;
}

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

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

/* Call to Action Section */
.page-contact__cta-section {
  padding: 80px 20px;
  background-color: #26A9E0; /* Brand primary color */
}

.page-contact__cta-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  text-align: center; /* Default for mobile */
}

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

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

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

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

.page-contact__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 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;
  }

  /* Images responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-contact__hero-image-wrapper,
  .page-contact__cta-image-wrapper,
  .page-contact__contact-card,
  .page-contact__social-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent edge overflow */
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video responsive - not used in this page, but as per global rule */
  .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: var(--header-offset, 120px) !important;
  }

  /* Buttons responsive */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-text,
  .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;
  }

  /* Section padding adjustments */
  .page-contact__container {
    padding: 20px 15px;
  }

  .page-contact__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px); /* Ensure header offset is still applied */
  }

  .page-contact__hero-content {
    order: 2; /* Content below image */
    text-align: center;
  }
  
  .page-contact__hero-image-wrapper {
    order: 1; /* Image above content */
    margin-bottom: 30px;
  }

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

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

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

  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 40px 15px;
  }

  .page-contact__contact-form {
    padding: 25px 15px;
  }

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

  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-contact__cta-container {
    flex-direction: column;
  }

  .page-contact__cta-content {
    text-align: center;
  }

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

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

  .page-contact__faq-question {
    padding: 15px 20px;
  }

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

  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px 20px 20px;
  }
}

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