/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

/* 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 */
  background-color: #f5f5f5; /* Light background for contrast */
}

.page-contact__hero-image {
  width: 100%;
  max-width: 1200px; /* Display width */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  display: block; /* Ensures no extra space below image */
}

.page-contact__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

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

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

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

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

.page-contact__section-description {
  font-size: 1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* CTA Buttons */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

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

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

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

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bb0;
  border-color: #1a7bb0;
}

/* Contact Info Section */
.page-contact__contact-info-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-contact__info-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-text {
  color: #666666;
  margin-bottom: 20px;
}

.page-contact__card-email,
.page-contact__card-phone {
  font-weight: bold;
  color: #333333;
  margin-bottom: 15px;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color as dark background */
  color: #FFFFFF;
}

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

.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 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  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.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFFFFF;
  outline: none;
  background-color: rgba(255, 255, 255, 0.1);
}

.page-contact__contact-form .page-contact__cta-button {
  width: auto;
  margin-top: 20px;
  background-color: #EA7C07; /* Login color for submit */
  border-color: #EA7C07;
}

.page-contact__contact-form .page-contact__cta-button:hover {
  background-color: #c96a06;
  border-color: #c96a06;
}

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

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

.page-contact__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  user-select: none;
  list-style: none; /* For details/summary */
}

/* Hide default marker for <summary> */
.page-contact__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-contact__faq-item summary::marker {
  display: none;
}

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

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

.page-contact__faq-answer {
  padding: 0 25px 20px;
  color: #666666;
  font-size: 0.95em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
  padding-top: 0;
}

/* For details tag, we let browser handle expansion, but hide for div structure */
.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 15px;
}

/* For div-based accordion, controlled by JS */
.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 15px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  content: '−';
}

.page-contact__faq-item.active .page-contact__faq-question {
  color: #26A9E0;
}

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

.page-contact__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-contact__cta-block {
  text-align: center;
  margin-top: 50px;
}

.page-contact__cta-block p {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 25px;
}

/* Social Media Section */
.page-contact__social-media-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

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

.page-contact__social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 0.95em;
  transition: color 0.3s ease;
  min-width: 200px; /* Ensure the icon container itself respects min size */
  min-height: 200px; /* Ensure the icon container itself respects min size */
  justify-content: center; /* Center content vertically */
}

.page-contact__social-icon:hover {
  color: #f0f0f0;
}

.page-contact__social-icon img {
  width: 200px; /* HTML width/height is 200, so CSS matches for desktop */
  height: 200px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  display: block;
}

/* Keywords highlighting */
.page-contact__keyword {
  color: #EA7C07; /* Use Login color for keyword emphasis */
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-section {
    padding: 40px 15px;
  }
  .page-contact__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-contact__section-title {
    font-size: clamp(1.6em, 4.5vw, 2.5em);
  }
  .page-contact__info-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__container,
  .page-contact__hero-content,
  .page-contact__contact-form {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Buttons responsive */
  .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; /* Add padding for buttons that might not have it */
    padding-right: 15px;
  }

  /* Button containers responsive */
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container,
  .page-contact__hero-content { /* Hero content can also contain buttons */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* For multiple buttons */
    gap: 10px;
  }

  .page-contact__hero-section {
    padding: 30px 0;
    padding-top: 10px !important;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__contact-info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__social-media-section {
    padding: 50px 0;
  }
  .page-contact__info-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__contact-form {
    padding: 30px 20px;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-contact__faq-answer {
    padding: 0 20px 15px;
  }
  .page-contact__social-links {
    gap: 20px;
  }
  .page-contact__social-icon {
    min-width: unset; /* Allow container to shrink on mobile */
    min-height: unset;
    width: 100%; /* Take full width to accommodate large images */
    max-width: 250px; /* Max width to prevent them from being too wide if container is larger */
  }
  .page-contact__social-icon img {
    max-width: 100% !important; /* Scale down to container width */
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Ensure content area images are not too small */
.page-contact__content-area img,
.page-contact__info-card img {
  min-width: 200px;
  min-height: 200px;
}

.page-contact__hero-image {
  min-width: 200px;
  min-height: 200px;
}

/* Color Contrast Enforcement - Example */
.page-contact__dark-bg {
  background-color: #26A9E0; /* Brand main color */
  color: #FFFFFF; /* White text for contrast */
}

.page-contact__light-bg {
  background-color: #FFFFFF; /* Auxiliary color */
  color: #333333; /* Dark text for contrast */
}

/* For form inputs in dark sections */
.page-contact__form-input,
.page-contact__form-textarea {
  color: #FFFFFF;
}

/* Ensure links in dark sections are visible */
.page-contact__dark-bg a {
  color: #f0f0f0; /* Lighter link color */
}
.page-contact__dark-bg a:hover {
  color: #FFFFFF;
}

/* Keyword color in light sections */
.page-contact__light-bg .page-contact__keyword {
  color: #EA7C07; /* Login color for emphasis */
}

/* Keyword color in dark sections (if any, use lighter contrast) */
.page-contact__dark-section .page-contact__keyword {
  color: #f0f0f0; /* Lighter color for emphasis on dark background */
}