/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles header offset, this is for visual padding */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-contact__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 8px;
  margin-top: 100px; /* Push content down from top */
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__intro-text {
  font-size: 1.2rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: filter 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button:hover {
  filter: brightness(1.1);
}

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

.page-contact__section-title {
  font-size: 2.5rem;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-contact__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Methods Section */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.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 B G */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-contact__method-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block; /* Ensure it behaves as a block element for max-width */
}

.page-contact__card-title {
  font-size: 1.8rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-contact__card-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

.page-contact__card-email,
.page-contact__card-phone {
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: #2AD16F; /* A lighter green for secondary actions */
  border: 2px solid #2AD16F;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
  background-color: #2AD16F;
  color: #11271B; /* Darker text on hover */
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #11271B; /* Card B G */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: #08160F; /* Background */
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  color: #F2FFF6; /* Text Main */
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 5px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #A7D9B8; /* Text Secondary */
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #2AD16F; /* Lighter green for focus */
  box-shadow: 0 0 5px rgba(42, 209, 111, 0.5);
}

.page-contact__form-submit-btn {
  width: auto; /* Override max-width from general cta-button */
  margin-top: 20px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

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

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

.page-contact__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card B G */
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-contact__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

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

/* For <details> native behavior */
.page-contact__faq-item[open] .page-contact__faq-answer {
  padding-top: 15px;
}

.page-contact__faq-link {
  color: #2AD16F; /* Lighter green for links */
  text-decoration: underline;
  margin-top: 10px;
  display: inline-block;
}

.page-contact__faq-link:hover {
  color: #57E38D; /* Glow */
}

/* Why Choose Us Section */
.page-contact__why-choose-us-section {
  padding: 60px 0 80px 0;
  background-color: #11271B; /* Card B G */
}

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

.page-contact__feature-item {
  background-color: #08160F; /* Background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
}

.page-contact__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Adjust size as needed */
  margin: 0 auto 20px auto;
  display: block;
  object-fit: contain;
}

.page-contact__feature-title {
  font-size: 1.6rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-contact__feature-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  margin-bottom: 15px;
}

.page-contact__feature-link {
  color: #2AD16F; /* Lighter green for links */
  text-decoration: underline;
}

.page-contact__feature-link:hover {
  color: #57E38D; /* Glow */
}

.page-contact__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px dashed #2E7A4E; /* Divider */
}

.page-contact__cta-text {
  font-size: 1.3rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-contact__hero-content {
    margin-top: 50px;
    padding: 15px;
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-contact__intro-text {
    font-size: 1rem;
  }

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

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

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

  .page-contact__method-card,
  .page-contact__feature-item {
    padding: 20px;
  }

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

  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }

  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__why-choose-us-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsiveness */
  .page-contact__cta-button,
  .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;
  }

  .page-contact__form-submit-btn {
    width: 100% !important; /* Ensure submit button takes full width */
  }

  .page-contact__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-contact__hero-content {
      margin-left: 15px;
      margin-right: 15px;
  }
}

/* Dark background classes for contrast enforcement */
.page-contact__dark-bg {
  color: #F2FFF6; /* Text Main */
  background: #11271B; /* Card B G */
}

.page-contact__dark-section {
  background: #11271B; /* Card B G */
  color: #F2FFF6; /* Text Main */
}

/* Ensure form elements and links within dark backgrounds have correct contrast */
.page-contact__form-input,
.page-contact__form-textarea {
  color: #F2FFF6; /* Text Main */
}

.page-contact__faq-link,
.page-contact__feature-link {
  color: #2AD16F; /* Lighter green for links */
}
.page-contact__faq-link:hover,
.page-contact__feature-link:hover {
  color: #57E38D; /* Glow */
}