/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: #121212; /* Ensure consistency with body background */
}

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

.page-contact__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-contact__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background-color: #017439; /* Use brand color for hero background */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

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

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-contact__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for primary button */
  color: #FFFF00; /* Custom color for button font */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 50px;
  margin-top: 60px;
}

.page-contact__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-contact__info-section {
  padding: 80px 0;
  background-color: #121212;
}

.page-contact__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-contact__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for card background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-contact__card-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for card titles */
  margin-bottom: 20px;
}

.page-contact__contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  width: 100%;
}

.page-contact__list-item {
  margin-bottom: 15px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
}

.page-contact__list-item strong {
  color: #017439;
  margin-right: 10px;
}

.page-contact__link {
  color: #017439; /* Brand color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__link:hover {
  color: #00a04a;
  text-decoration: underline;
}

.page-contact__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
}

.page-contact__contact-form {
  width: 100%;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #017439;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #00a04a;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

.page-contact__form-submit-btn {
  width: auto;
  min-width: 150px;
  text-align: center;
}

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

.page-contact__faq-list {
  margin-top: 40px;
}

.page-contact__faq-item {
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-contact__faq-title {
  font-size: 1.3em;
  color: #ffffff;
  margin: 0;
}

.page-contact__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  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: rgba(255, 255, 255, 0.03);
}

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

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

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

.page-contact__map-placeholder {
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
}

.page-contact__map-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-contact__card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .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__card-title {
    font-size: 1.5em;
  }
  .page-contact__list-item,
  .page-contact__text-block,
  .page-contact__form-label,
  .page-contact__form-input,
  .page-contact__form-textarea {
    font-size: 0.95em;
  }
  .page-contact__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }
  .page-contact__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__map-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Container responsiveness */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-section .page-contact__container,
  .page-contact__info-section .page-contact__container,
  .page-contact__faq-section .page-contact__container,
  .page-contact__map-section .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__card-title {
    font-size: 1.3em;
  }
  .page-contact__faq-title {
    font-size: 1.1em;
  }
}