/* style/contact.css */

/* Base Styles for page-contact */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--page-bg, #F4F7FB); /* Using custom background color from shared.css or default */
}

/* Ensure text color is appropriate for the body background */
/* Assuming --page-bg is light, so default text color is dark */
.page-contact__dark-bg {
  background-color: #2F6BFF; /* Main brand color */
  color: #ffffff; /* White text for dark background */
}

.page-contact__light-bg {
  background-color: #F4F7FB; /* Lighter background */
  color: #333333; /* Dark text for light background */
}

.page-contact__medium-bg {
  background-color: #6FA3FF; /* Auxiliary brand color */
  color: #1F2D3D; /* Dark text for medium background, ensuring contrast */
}

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

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure width is 100% for flex item */
}

.page-contact__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  filter: none; /* Ensure no filter is applied */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.page-contact__hero-content h1 {
  font-size: clamp(2em, 5vw, 2.8em); /* Clamp for H1 */
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff; /* White text for dark hero background */
  line-height: 1.2;
}

.page-contact__hero-content p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for body text */
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Ensure button is not too small */
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-contact__section {
  padding: 60px 20px;
  text-align: center;
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure container takes full width of its parent */
  box-sizing: border-box; /* Include padding in width */
}

.page-contact__section-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #1F2D3D; /* Use custom text color or default */
}

.page-contact__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #1F2D3D;
}

/* Contact Methods Section */
.page-contact__contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-contact__method-card {
  flex: 1;
  min-width: 300px;
  max-width: 380px;
  background-color: #FFFFFF; /* Card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  border: 1px solid #D6E2FF; /* Border color */
}

.page-contact__card-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #1F2D3D;
}

.page-contact__method-card p {
  font-size: 1em;
  margin-bottom: 15px;
  color: #555555;
}

.page-contact__social-icons {
  margin-top: 20px;
  text-align: center;
}

.page-contact__social-icons img {
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  border-radius: 8px;
  object-fit: cover;
  display: block; /* Ensure it behaves as a block for max-width */
  margin: 0 auto 15px auto;
  filter: none; /* Ensure no filter is applied */
}

/* Contact Form Section */
.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
  color: #ffffff; /* White text for dark background */
}

.page-contact__form-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start; /* Align items at the top */
  margin-top: 40px;
}

.page-contact__form-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-height: 200px;
  filter: none; /* Ensure no filter is applied */
}

.page-contact__contact-form {
  flex: 2;
  min-width: 300px;
  max-width: 700px; /* Adjusted max-width */
  background-color: #FFFFFF; /* Form background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid #D6E2FF;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #1F2D3D;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px); /* Adjust for padding */
  padding: 12px 10px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #1F2D3D;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #2F6BFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
}

.page-contact__form-submit-btn {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__form-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-contact__faq-section .page-contact__faq-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 0 auto 40px auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  filter: none; /* Ensure no filter is applied */
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}
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;
  color: #1F2D3D;
}
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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.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 8px 8px;
  color: #555555;
}
details.page-contact__faq-item .page-contact__faq-answer p {
  margin: 0;
  padding-top: 10px;
}
.page-contact__faq-list {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 40px;
}

/* Location Section */
.page-contact__location-section .page-contact__section-title,
.page-contact__location-section .page-contact__section-description {
  color: #1F2D3D; /* Dark text for medium background, ensuring contrast */
}

.page-contact__location-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-contact__info-card {
  flex: 1;
  min-width: 300px;
  max-width: 480px;
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  border: 1px solid #D6E2FF;
}

.page-contact__info-card h3 {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #1F2D3D;
}

.page-contact__info-card p {
  font-size: 1em;
  margin-bottom: 10px;
  color: #555555;
}

.page-contact__info-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 20px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  filter: none; /* Ensure no filter is applied */
}

/* CTA Banner Section */
.page-contact__cta-banner {
  padding: 80px 20px;
  background-color: #2F6BFF; /* Main brand color */
  color: #ffffff;
}

.page-contact__cta-banner .page-contact__section-title,
.page-contact__cta-banner .page-contact__section-description {
  color: #ffffff;
}

.page-contact__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__text-link {
  color: #A5C4FF; /* Glow color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-contact__text-link:hover {
  color: #ffffff;
}

.page-contact__button-group {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  width: 100%; /* Ensure button group takes full width */
  max-width: 500px; /* Limit width of button group */
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 160px; /* Ensure buttons are not too small */
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Use brand color for text */
  border: 2px solid #2F6BFF;
}

.page-contact__btn-secondary:hover {
  background: #f0f0f0;
  color: #2F6BFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Link Styling */
.page-contact a {
  color: #2F6BFF; /* Default link color */
  text-decoration: none;
}

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

/* Images styles (global to page-contact) */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* Enforce minimum size for all content images */
  min-width: 200px;
  min-height: 200px;
  filter: none; /* Ensure no filter is applied */
}

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

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__hero-content h1 {
    font-size: 2em;
  }
  .page-contact__hero-content p {
    font-size: 1em;
  }
  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-contact__section {
    padding: 40px 15px;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-contact__contact-methods,
  .page-contact__location-info {
    flex-direction: column;
    gap: 20px;
  }

  .page-contact__method-card,
  .page-contact__info-card {
    min-width: unset;
    max-width: 100%;
    padding: 25px;
  }

  .page-contact__form-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .page-contact__form-image {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .page-contact__contact-form {
    max-width: 100%;
    padding: 30px 20px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    width: 100%; /* Full width on mobile */
    padding: 10px;
  }

  .page-contact__form-submit-btn {
    padding: 12px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* FAQ */
  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  .page-contact__faq-qtext {
    font-size: 1em;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }

  /* Button group */
  .page-contact__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to button group */
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
  }

  /* Image responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    filter: none; /* Ensure no filter is applied */
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-methods,
  .page-contact__location-info,
  .page-contact__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}