/* style/contact.css */

.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text on light background */
  background-color: var(--background-color, #ffffff);
  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__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

/* Hero Section */
.page-contact__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
}

.page-contact__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
}

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

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

.page-contact__hero-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px 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: inherit;
}

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

/* Buttons */
.page-contact__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

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

.page-contact__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #26A9E0;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #26A9E0;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  font-size: 0.95em;
}

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

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

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

.page-contact__method-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 380px;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-contact__method-icon {
  width: 150px; /* Min size 200px enforced by image processing, but display can be smaller for icons */
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
  border-radius: 5px;
}

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

.page-contact__method-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__contact-info {
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  margin-top: 15px;
}

.page-contact__text-link {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__text-link:hover {
  color: #1a7fb0;
  text-decoration: underline;
}

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

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

.page-contact__social-icon-link:hover {
  background-color: #1a7fb0;
  transform: translateY(-2px);
}

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

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

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #26A9E0;
  outline: none;
}

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

.page-contact__form-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
}

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

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.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;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-contact__faq-answer p {
  margin-bottom: 1em;
  color: #555555;
  font-size: 1em;
}

/* Office Section */
.page-contact__office-section {
  padding: 80px 0;
  text-align: center;
}

.page-contact__office-info {
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-contact__address,
.page-contact__hours {
  margin-bottom: 10px;
}

.page-contact__office-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

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

  .page-contact__method-card {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__hero-section {
    flex-direction: column;
    padding: 60px 0;
  }

  .page-contact__hero-content {
    margin-bottom: 30px;
  }

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

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

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

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

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

  .page-contact__method-card {
    padding: 25px;
    min-height: auto;
  }

  .page-contact__method-icon {
    width: 120px; /* Still respecting min 200px for generation, but displaying smaller */
    height: auto;
  }

  .page-contact__method-title {
    font-size: 1.4em;
  }

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

  .page-contact__form-label {
    font-size: 0.95em;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  .page-contact__form-submit {
    padding: 12px;
    font-size: 1em;
  }

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

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

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

  .page-contact__office-image {
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile responsive image handling */
  .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__contact-form,
  .page-contact__faq-list,
  .page-contact__office-info {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile responsive button handling */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .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;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }

  .page-contact__social-links {
    flex-wrap: wrap !important;
    justify-content: center;
  }
}