/* style/contact.css */

/* General styles for the contact page */
.page-contact {
  background-color: var(--background-color); /* #08160F */
  color: var(--text-main); /* #F2FFF6 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-contact__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--gold); /* #F2C14E */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary); /* #A7D9B8 */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of the image wrapper */
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 10px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-contact__hero-content {
  position: relative; /* Ensure content is above the image if any layering occurs */
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-contact__hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-contact__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.4);
}

.page-contact__btn-secondary {
  background: transparent;
  color: var(--text-main); /* #F2FFF6 */
  border: 2px solid var(--border); /* #2E7A4E */
}

.page-contact__btn-secondary:hover {
  background: var(--border); /* #2E7A4E */
  color: #ffffff;
  transform: translateY(-3px);
}

/* Contact Methods Section */
.page-contact__contact-methods {
  padding: 80px 0;
  background-color: var(--background-color); /* #08160F */
}

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

.page-contact__card {
  background-color: var(--card-bg); /* #11271B */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.page-contact__card-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 200px; /* Max size for icon-like images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__card-title {
  font-size: 1.6rem;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-text {
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to grow */
}

/* Contact Form Section */
.page-contact__contact-form {
  padding: 80px 0;
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--card-bg); /* #11271B */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  font-size: 1rem;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border); /* #2E7A4E */
  border-radius: 8px;
  background-color: #0d1e15; /* Slightly lighter than card-bg for input contrast */
  color: var(--text-main); /* #F2FFF6 */
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: var(--text-secondary); /* #A7D9B8 */
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--glow); /* #57E38D */
  outline: none;
}

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

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: var(--background-color); /* #08160F */
}

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

.page-contact__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  cursor: pointer;
  background-color: var(--card-bg); /* #11271B */
  border-bottom: 1px solid var(--divider); /* #1E3A2A */
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #1a3324; /* Slightly lighter hover for visibility */
}

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow); /* #57E38D */
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: "−";
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
  line-height: 1.7;
}

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

.page-contact__faq-answer a {
  color: var(--glow); /* #57E38D */
  text-decoration: none;
}

.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

/* Office Location Section */
.page-contact__office-location {
  padding: 80px 0;
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-contact__location-details {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
  justify-content: center;
}

.page-contact__address-info {
  flex: 1;
  min-width: 300px;
  background-color: var(--card-bg); /* #11271B */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__address-info p {
  font-size: 1rem;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 10px;
}

.page-contact__address-info strong {
  color: var(--text-main); /* #F2FFF6 */
}

.page-contact__address-info a {
  color: var(--glow); /* #57E38D */
  text-decoration: none;
}

.page-contact__address-info a:hover {
  text-decoration: underline;
}

.page-contact__map {
  flex: 2;
  min-width: 400px;
  max-width: 700px; /* Limit map size */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly darken map for integration */
}

/* Bottom CTA Section */
.page-contact__cta-bottom {
  padding: 80px 0;
  background-color: var(--background-color); /* #08160F */
  text-align: center;
}

.page-contact__cta-bottom .page-contact__section-description a {
  color: var(--glow); /* #57E38D */
  text-decoration: none;
  font-weight: bold;
}

.page-contact__cta-bottom .page-contact__section-description a:hover {
  text-decoration: underline;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-contact__hero-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-contact__main-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

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

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

  .page-contact__section-description {
    font-size: 1rem;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Image responsive */
  .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__form,
  .page-contact__map,
  .page-contact__location-details,
  .page-contact__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-contact__contact-methods,
  .page-contact__contact-form,
  .page-contact__faq-section,
  .page-contact__office-location,
  .page-contact__cta-bottom {
    padding: 50px 0;
  }

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

  .page-contact__map {
    min-width: unset; /* Remove min-width for mobile */
    max-width: 100%;
    margin-top: 30px;
  }

  .page-contact__address-info {
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .page-contact__section-title {
    font-size: 1.8rem;
  }
  .page-contact__card-title {
    font-size: 1.4rem;
  }
  .page-contact__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 0 20px 15px;
  }
  .page-contact__faq-toggle {
    font-size: 1.5rem;
  }
}

/* Hide details marker for better custom styling */
.page-contact__faq-item > summary {
  list-style: none;
}
.page-contact__faq-item > summary::-webkit-details-marker {
  display: none;
}