/* Base styles for page-contact */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light body background */
  background-color: #FFFFFF; /* Explicitly set for content area to ensure contrast */
}

.page-contact__section-padding {
  padding: 60px 0;
}

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

.page-contact__section-title {
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #017439;
  line-height: 1.2;
  font-size: clamp(24px, 4vw, 36px);
}

.page-contact__section-title--light {
  color: #FFFFFF;
}

.page-contact__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.7;
}

.page-contact__section-description--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Aligned to top to show image first */
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  padding-bottom: 40px;
  min-height: 400px;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  max-height: 810px;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #FFFFFF;
  max-width: 900px;
  padding: 60px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for readability */
  border-radius: 10px;
  margin-top: 100px; /* Push content down over image */
}

.page-contact__main-title {
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(28px, 5vw, 48px); /* Using clamp for responsive H1 */
}

.page-contact__hero-description {
  font-size: 18px;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Contact Form Section */
.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
  font-size: 15px;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

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

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

.page-contact__form-submit-btn {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #C30808;
  color: #FFFF00;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__form-submit-btn:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-contact__form-submit-btn:active {
  transform: translateY(0);
}

/* Alternative Contact Section */
.page-contact__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-contact__method-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-contact__method-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter is applied */
  max-width: 100%; /* Responsive image */
  height: auto; /* Responsive image */
  display: block; /* Ensure block display for margin auto */
  margin-left: auto; /* Center image */
  margin-right: auto; /* Center image */
}

.page-contact__method-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-contact__method-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-contact__live-chat-btn,
.page-contact__social-media-link,
.page-contact__phone-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__live-chat-btn {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-contact__live-chat-btn:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-contact__social-media-link,
.page-contact__phone-link {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #FFFFFF;
}

.page-contact__social-media-link:hover,
.page-contact__phone-link:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* FAQ Section */
.page-contact__faq-list {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: #f5f5f5;
}

.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

details.page-contact__faq-item .page-contact__faq-answer p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Why Choose Us Section */
.page-contact__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-contact__feature-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter is applied */
  max-width: 100%; /* Responsive image */
  height: auto; /* Responsive image */
  display: block; /* Ensure block display for margin auto */
  margin-left: auto; /* Center image */
  margin-right: auto; /* Center image */
}

.page-contact__feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #017439;
}

.page-contact__feature-text {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
}

.page-contact__final-cta-text {
  text-align: center;
  margin-top: 60px;
  font-size: 18px;
  font-weight: 600;
  color: #017439;
  line-height: 1.8;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    padding: 40px 20px;
    margin-top: 80px;
  }
  .page-contact__main-title {
    font-size: clamp(26px, 4.5vw, 42px);
  }
  .page-contact__hero-description {
    font-size: 17px;
  }
  .page-contact__contact-methods {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-contact__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  /* General padding and text size adjustments */
  .page-contact__section-padding {
    padding: 40px 0;
  }
  .page-contact__container {
    padding: 0 15px;
  }
  .page-contact__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .page-contact__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 30px;
    min-height: 300px;
  }
  .page-contact__hero-image {
    object-fit: contain; /* Ensure image fits well on smaller screens */
    max-height: 400px; /* Limit height for mobile */
  }
  .page-contact__hero-content {
    padding: 30px 15px;
    margin-top: 50px;
    max-width: calc(100% - 30px); /* Account for container padding */
  }
  .page-contact__main-title {
    font-size: 28px; /* Fixed size for mobile to avoid being too large */
    margin-bottom: 15px;
  }
  .page-contact__hero-description {
    font-size: 15px;
  }

  /* Contact Form Section */
  .page-contact__form {
    padding: 20px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-contact__form-label {
    font-size: 14px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-contact__form-submit-btn {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Alternative Contact Section */
  .page-contact__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__method-icon {
    width: 80px;
    height: 80px;
  }
  .page-contact__method-title {
    font-size: 20px;
  }
  .page-contact__method-text {
    font-size: 14px;
  }
  .page-contact__live-chat-btn,
  .page-contact__social-media-link,
  .page-contact__phone-link {
    padding: 10px 20px;
    font-size: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Section */
  .page-contact__faq-list {
    margin-top: 30px;
    max-width: 100%;
    box-sizing: border-box;
  }
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 15px;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }
  details.page-contact__faq-item .page-contact__faq-answer p {
    font-size: 14px;
  }

  /* Why Choose Us Section */
  .page-contact__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-contact__feature-card {
    padding: 25px;
  }
  .page-contact__feature-icon {
    width: 70px;
    height: 70px;
  }
  .page-contact__feature-title {
    font-size: 18px;
  }
  .page-contact__feature-text {
    font-size: 14px;
  }
  .page-contact__final-cta-text {
    margin-top: 40px;
    font-size: 16px;
  }

  /* Universal image and container responsiveness for mobile */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__contact-methods, .page-contact__features-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}