/* style/contact.css */

/* Base styling for the contact page, ensuring text visibility on dark body background */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body or specific section */
}

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

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

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1; /* Place behind content */
  filter: brightness(0.6); /* Slightly darken image for text readability, not color change */
  min-height: 400px; /* Ensure hero image has a minimum height */
}

.page-contact__hero-content {
  position: relative; /* Bring content above the image (z-index -1) */
  z-index: 1;
  max-width: 800px;
  color: #ffffff; /* Ensure text is white on hero */
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-contact__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Section Titles & Descriptions */
.page-contact__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  text-align: center;
}

.page-contact__dark-bg {
  color: #ffffff; /* Force light text on explicitly dark backgrounds */
}

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

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
}

.page-contact__method-icon {
  width: 80px; /* Enlarge icon display size */
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 80px; /* Ensure display size is not too small */
  min-height: 80px;
}

.page-contact__method-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-contact__method-text {
  font-size: 1em;
  margin-bottom: 25px;
  color: #f0f0f0;
  flex-grow: 1; /* Push button to bottom */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-contact__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

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

.page-contact__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Explicitly dark for this section */
  color: #ffffff;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #26A9E0;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

.page-contact__contact-form .page-contact__btn-primary {
  width: auto; /* Override max-width for form submit button */
  margin-top: 10px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for contrast */
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.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;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-contact__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-contact__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.08);
}

/* Social Media Section */
.page-contact__social-media-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Explicitly dark for this section */
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-contact__social-link {
  display: block;
  width: 60px; /* Adjust display size for social icons */
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  min-width: 60px; /* Ensure min display size */
  min-height: 60px;
}

.page-contact__social-link:hover {
  background-color: #26A9E0;
}

.page-contact__social-icon {
  width: 40px; /* Icon image size within the circle */
  height: 40px;
  object-fit: contain;
  min-width: 40px; /* Ensure min display size */
  min-height: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-section {
    padding: 40px 20px;
  }
  .page-contact__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-contact__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-contact__container,
  .page-contact__section,
  .page-contact__card,
  .page-contact__form-section,
  .page-contact__info-section,
  .page-contact__faq-section,
  .page-contact__social-media-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  /* Images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__hero-image {
    min-height: 300px;
  }
  .page-contact__method-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
  }
  .page-contact__social-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }
  .page-contact__social-link {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }

  /* Buttons */
  .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__contact-methods {
    grid-template-columns: 1fr;
  }
  .page-contact__contact-form {
    padding: 30px;
  }
  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 15px 20px;
  }
  .page-contact__social-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-contact__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
  }
  .page-contact__hero-description,
  .page-contact__section-description,
  .page-contact__method-text,
  .page-contact__faq-answer {
    font-size: 0.95em;
  }
}

/* Ensure all content images meet the minimum size requirement */
.page-contact img {
    min-width: 200px; /* Base minimum for all images */
    min-height: 200px;
}
/* For icons, their source image will be large, but display size can be smaller, ensure min-width/height is still respected at the source level */
.page-contact__method-icon,
.page-contact__social-icon {
    min-width: 40px; /* Smallest display size, actual image from gallery will be >200px */
    min-height: 40px;
}