/* style/contact.css */
.page-contact {
  background-color: #08160F; /* Background color */
  color: #F2FFF6; /* Main text color */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 40px 0;
  background-color: #0A4B2C;
  position: relative;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
}

.page-contact__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Adjust to bring content up slightly, but not overlap image itself */
  position: relative; /* Ensure it's above other elements if any */
  z-index: 2; /* Ensure text is on top of hero-section background */
  background-color: #08160F; /* Match body background */
  padding-top: 120px; /* Add padding to compensate for negative margin */
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-contact__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1em;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 30px;
}

/* Section Titles */
.page-contact__section-title {
  font-size: 2.2em;
  color: #F2C14E; /* Gold color for section titles */
  text-align: center;
  margin: 60px 0 40px 0;
  position: relative;
}

.page-contact__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #11A84E; /* Main color */
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

/* Contact Methods */
.page-contact__contact-methods {
  padding: 40px 0;
  background-color: #08160F;
}

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

.page-contact__method-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px #57E38D; /* Glow */
}

.page-contact__method-icon {
  width: 100%; /* Ensure image fills card */
  height: auto;
  max-height: 250px; /* Limit height */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-contact__method-title {
  font-size: 1.6em;
  color: #F2C14E; /* Gold color */
  margin-bottom: 15px;
}

.page-contact__method-description {
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 25px;
  font-size: 0.95em;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Main text color for button */
  border: none;
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 10px #57E38D; /* Glow */
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #11A84E; /* Main color */
  border: 2px solid #11A84E; /* Main color border */
}

.page-contact__btn-secondary:hover {
  background-color: #11A84E;
  color: #F2FFF6;
  box-shadow: 0 0 10px #57E38D; /* Glow */
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 0;
}

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

.page-contact__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-contact__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #F2FFF6; /* Main text color */
  list-style: none;
  position: relative;
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-contact__faq-question .page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #11A84E; /* Main color */
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-question .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  color: #A7D9B8; /* Secondary text color */
  font-size: 1em;
  line-height: 1.7;
}

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

/* Contact Form */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #08160F;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #11271B; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-contact__form-label {
  display: block;
  font-size: 1.1em;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 24px); /* Account for padding */
  padding: 12px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 6px;
  background-color: #0A4B2C; /* Deep Green for input background */
  color: #F2FFF6; /* Main text color */
  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: #57E38D; /* Glow on focus */
  outline: none;
}

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

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

/* Office Section */
.page-contact__office-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 0;
  text-align: center;
}

.page-contact__office-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-contact__office-address {
  font-style: normal;
  color: #A7D9B8; /* Secondary text color */
  font-size: 1.1em;
  line-height: 1.8;
}

.page-contact__office-address p {
  margin-bottom: 10px;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 0;
  background-color: #08160F;
  text-align: center;
}

.page-contact__commitment-text {
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: #A7D9B8; /* Secondary text color */
  font-size: 1.05em;
  line-height: 1.7;
}

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

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

  .page-contact__hero-content {
    margin-top: -80px;
    padding-top: 100px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-content {
    margin-top: -60px;
    padding-top: 80px;
    padding: 30px 15px;
  }

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

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

  .page-contact__section-title {
    font-size: 1.8em;
    margin: 40px 0 30px 0;
  }

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

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-contact__faq-item summary {
    padding: 18px 20px;
    font-size: 1.05em;
  }

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

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

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

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px;
  }

  .page-contact__form-submit-btn {
    font-size: 1.1em;
  }

  .page-contact__office-image {
    max-width: 100%;
  }

  .page-contact__office-address,
  .page-contact__commitment-text {
    font-size: 0.95em;
  }

  /* Mobile specific overrides for images and buttons */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__hero-section,
  .page-contact__contact-methods,
  .page-contact__faq-section,
  .page-contact__form-section,
  .page-contact__office-section,
  .page-contact__commitment-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .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;
  }
  
  .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; 
  }
  
  /* Ensure content area images are not smaller than 200px */
  .page-contact img {
    min-width: 200px;
    min-height: 200px;
  }

  .page-contact__method-icon {
    max-height: none !important; /* Remove max-height for mobile if it restricts below 200px */
    min-height: 200px !important;
  }
  .page-contact__office-image {
    min-height: 200px !important;
  }

}

/* Ensure all content area images have a minimum display size of 200px */
.page-contact__hero-image,
.page-contact__method-icon,
.page-contact__office-image {
  min-width: 200px;
  min-height: 200px;
}