/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #ffffff; /* Default body background */
}

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

.page-contact__section-title {
  font-size: 2.5rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-contact__hero-section > .page-contact__container {
  position: relative;
  z-index: 2;
}

.page-contact__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-contact__hero-description {
  font-size: 1.3rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-contact__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

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

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__form-submit {
  width: auto;
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-contact__info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.page-contact__info-title {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #ffffff;
  font-weight: bold;
}

.page-contact__info-text {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.page-contact__info-label {
  font-weight: bold;
  color: #ffffff;
}

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

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  color: #26A9E0;
  border-radius: 50%;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;
}

.page-contact__social-icon:hover {
  background-color: #e0e0e0;
  color: #1a7bb0;
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #fcfcfc;
}

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

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

.page-contact__faq-title {
  font-size: 1.2rem;
  color: #26A9E0;
  margin: 0;
  font-weight: bold;
}

.page-contact__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.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, padding 0.3s ease;
  color: #555555;
}

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

.page-contact__faq-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__cta-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3rem;
  }
  .page-contact__section-title {
    font-size: 2rem;
  }
  .page-contact__cta-title {
    font-size: 2.2rem;
  }
  .page-contact__info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-contact__hero-title {
    font-size: 2.2rem;
  }
  .page-contact__hero-description,
  .page-contact__section-description,
  .page-contact__info-text,
  .page-contact__faq-answer p {
    font-size: 1rem;
  }
  .page-contact__section-title {
    font-size: 1.8rem;
  }
  .page-contact__form {
    padding: 20px;
  }
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 50px 0;
  }
  .page-contact__info-title {
    font-size: 1.6rem;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-title {
    font-size: 1.1rem;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-contact__cta-title {
    font-size: 1.8rem;
  }
  .page-contact__btn-primary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  /* Mobile image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__info-grid,
  .page-contact__social-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-contact__social-links {
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 10px;
  }
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .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; 
  }
}

/* Color contrast enforcement */
.page-contact__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

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

/* Ensure text in hero section is white */
.page-contact__hero-section .page-contact__hero-title,
.page-contact__hero-section .page-contact__hero-description {
  color: #ffffff;
}

/* Specific color for login button if present, using brand guidelines */
/* If a login button were present, it would use #EA7C07 */
/* .page-contact__btn-login { background-color: #EA7C07; color: #ffffff; } */