/* 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 background */
  background-color: #f5f5f5;
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #333333;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-contact__section-title--light {
  color: #ffffff;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background-color: #CC0000; /* Primary brand color */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-contact__hero-section .page-contact__container {
  z-index: 1;
}

.page-contact__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #333333; /* Secondary brand color for contrast */
  color: #ffffff;
  border: 2px solid #333333;
}

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

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #CC0000; /* Primary brand color for text */
  border: 2px solid #CC0000;
}

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #a00000;
}

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

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

.page-contact__info-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-height: 200px; /* Ensure cards are not too small */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__info-card-title {
  font-size: 1.6em;
  color: #CC0000; /* Primary brand color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__info-card-text,
.page-contact__info-card-address {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-contact__info-card-link {
  color: #333333;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-contact__info-card-link:hover {
  color: #CC0000;
}

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

.page-contact__form-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-contact__form-content {
  flex: 1;
}

.page-contact__form-image {
  flex: 1;
  min-width: 300px; /* Minimum width for the image */
}

.page-contact__form-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.page-contact__form-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

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

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  color: #333333;
  background-color: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #CC0000;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
  outline: none;
}

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

.page-contact__form-submit-btn {
  align-self: flex-start;
  margin-top: 10px;
}

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

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

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

.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;
  color: #ffffff;
  background-color: #CC0000; /* Primary brand color for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  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, padding 0.3s ease;
  color: #f0f0f0;
  background-color: #444444;
}

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

.page-contact__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

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

.page-contact__faq-answer a:hover {
  color: #ff3333;
}

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

.page-contact__map-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
}

.page-contact__map-embed {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__map-embed img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px; /* Ensure map image is not too small */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 2.8em;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
  }
  .page-contact__form-container {
    flex-direction: column;
  }
  .page-contact__form-image {
    order: -1; /* Move image above form on smaller screens */
  }
  .page-contact__form-submit-btn {
    align-self: stretch;
  }
}

@media (max-width: 768px) {
  .page-contact__main-title {
    font-size: 2.2em;
  }
  .page-contact__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure padding top is applied on mobile */
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__info-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__container {
    padding: 0 15px !important;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px;
  }
  .page-contact__cta-group {
    flex-direction: column;
  }
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__map-section {
    padding: 40px 0;
  }

  /* Force image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__form-image, .page-contact__map-embed {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Form elements responsive */
  .page-contact__form-input, .page-contact__form-textarea {
    width: 100%;
    box-sizing: border-box;
  }

  /* FAQ specific mobile adjustments */
  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-contact__faq-answer {
    padding: 15px 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 1.8em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-contact__info-card {
    padding: 20px;
  }
  .page-contact__faq-question {
    font-size: 1em;
  }
}