/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  background-color: #08160F; /* Background color from custom palette */
  color: #F2FFF6; /* Main text color from custom palette */
  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;
}

.page-contact__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem); /* H1 font size with clamp */
  color: #F2FFF6; /* Main text color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-contact__hero-content {
  text-align: center;
  max-width: 900px;
  margin-top: 20px;
}

.page-contact__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* H1 font size with clamp */
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

/* Buttons */
.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.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-contact__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
}

.page-contact__btn-small {
  padding: 10px 20px;
  font-size: 1rem;
}

/* Contact Methods Section */
.page-contact__contact-methods {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green from palette */
}

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

.page-contact__method-card {
  background-color: #11271B; /* Card BG from custom palette */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border from custom palette */
}

.page-contact__method-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 5px;
}

.page-contact__method-title {
  font-size: 1.5rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__method-text {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__email-link,
.page-contact__phone-link {
  color: #2AD16F;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
  text-decoration: underline;
}

.page-contact__social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.page-contact__social-btn {
  padding: 8px 15px;
  font-size: 0.9rem;
}

/* Office Section */
.page-contact__office-section {
  padding: 80px 0;
  background-color: #08160F; /* Background color */
}

.page-contact__office-details {
  text-align: center;
  margin-bottom: 40px;
}

.page-contact__office-address {
  font-size: 1.2rem;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-contact__office-note {
  font-size: 0.95rem;
  color: #A7D9B8;
  font-style: italic;
}

.page-contact__map-placeholder {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #11271B;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-contact__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-contact__faq-question:hover {
  background-color: #1E3A2A; /* Slightly darker on hover */
}

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

.page-contact__faq-question::marker {
  display: none;
}

.page-contact__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent clicks on text from interfering with summary toggle */
}

.page-contact__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #2AD16F;
  margin-left: 15px;
  pointer-events: none; /* Prevent clicks on toggle from interfering with summary toggle */
}

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

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

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0 auto;
  background-color: #11271B; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  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.1rem;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 8px;
  font-weight: bold;
}

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #2AD16F;
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.3);
}

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

.page-contact__form-submit {
  width: 100%;
  cursor: pointer;
  margin-top: 20px;
}

/* Why Choose Section */
.page-contact__why-choose-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-contact__why-choose-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-contact__why-choose-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
}

.page-contact__why-choose-heading {
  font-size: 1.4rem;
  color: #2AD16F; /* Highlight color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__why-choose-item p {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
}

/* Conclusion Section */
.page-contact__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: #08160F; /* Background color */
}

.page-contact__conclusion-section .page-contact__section-title {
  margin-bottom: 20px;
}

.page-contact__conclusion-section .page-contact__section-description {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-contact__container {
    padding: 0 15px; /* Adjust padding for mobile */
  }

  .page-contact__hero-section,
  .page-contact__contact-methods,
  .page-contact__office-section,
  .page-contact__faq-section,
  .page-contact__form-section,
  .page-contact__why-choose-section,
  .page-contact__conclusion-section {
    padding: 40px 0;
  }
  
  .page-contact__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-contact__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

  .page-contact__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-contact__method-title {
    font-size: 1.3rem;
  }

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

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

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

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

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

  .page-contact__why-choose-heading {
    font-size: 1.2rem;
  }

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

  .page-contact__hero-image-wrapper,
  .page-contact__map-placeholder,
  .page-contact__methods-grid,
  .page-contact__why-choose-list,
  .page-contact__faq-list,
  .page-contact__contact-form,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  
  .page-contact__social-links {
    flex-direction: column;
  }
}

/* Contrast Fixes (if needed, based on background analysis) */
/* The current palette has good contrast between text and background, 
   so explicit contrast-fix classes are not needed for main elements. */
/* Example if a dark background was used with dark text: */
/* .page-contact__dark-bg { color: #ffffff !important; } */