/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #FFFFFF; /* Explicitly set for clarity */
}

/* Section common styles */
.page-contact__section-title {
  font-size: 36px;
  color: #26A9E0; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjust as needed, top padding from shared */
  background: linear-gradient(135deg, #26A9E0 0%, #FFFFFF 100%); /* 淡蓝色配色方案 */
  color: #ffffff; /* White text for the hero section */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row; /* Desktop: image and content side-by-side */
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-contact__hero-content {
  flex: 1;
  text-align: left;
  z-index: 2;
  color: #ffffff;
}

.page-contact__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
  text-align: left; /* Align title left */
}

.page-contact__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
  text-align: left; /* Align description left */
}

.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start; /* Align buttons left */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-contact__btn-primary {
  background: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  background: #d66b06;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
  background: #ffffff;
  color: #26A9E0; /* Primary color for secondary action */
  border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-contact__hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 600px; /* Constrain image width */
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: #f9f9f9; /* Light background */
}

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

.page-contact__method-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

.page-contact__card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

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

.page-contact__card-email a,
.page-contact__card-phone a {
  color: #26A9E0;
  text-decoration: none;
}

.page-contact__card-email a:hover,
.page-contact__card-phone a:hover {
  text-decoration: underline;
}

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

.page-contact__social-icon {
  display: inline-block;
  width: 200px; /* Must be at least 200px */
  height: 200px; /* Must be at least 200px */
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  overflow: hidden;
}

.page-contact__social-icon:hover {
  background: #e0e0e0;
}

.page-contact__social-icon img {
  width: 100%; /* Image fills the container */
  height: 100%; /* Image fills the container */
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensures image covers the area without distortion */
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary color background */
  color: #ffffff; /* White text */
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
  color: #ffffff;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-contact__form-label {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #f0f0f0;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #cccccc;
}

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

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

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  padding: 15px 40px;
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__contact-form .page-contact__btn-primary:hover {
  background: #d66b06;
  transform: translateY(-2px);
}

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

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-item.active .page-contact__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #26A9E0;
  background: #eaf7ff; /* Light blue background when active */
}

.page-contact__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-contact__faq-question:active {
  background: #eeeeee;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click */
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #26A9E0; /* Primary color when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  background: #fdfdfd;
  border-color: #e0e0e0;
}

.page-contact__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #555555;
}

.page-contact__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

/* Location Section */
.page-contact__location-section {
  padding: 80px 0;
  background-color: #2297d2; /* Slightly darker primary color */
  color: #ffffff;
}

.page-contact__location-section .page-contact__section-title,
.page-contact__location-section .page-contact__section-description {
  color: #ffffff;
}

.page-contact__location-details {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  align-items: flex-start;
}

.page-contact__address-block {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__address-block .page-contact__card-title {
  color: #ffffff;
  text-align: left;
  margin-bottom: 20px;
}

.page-contact__address-block p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 10px;
  text-align: left;
}

.page-contact__map-block {
  flex: 2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__map-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

/* Bottom CTA Section */
.page-contact__cta-bottom-section {
  padding: 80px 0;
  background-color: #f9f9f9; /* Light background */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 40px;
  }
  .page-contact__section-title {
    font-size: 30px;
  }
  .page-contact__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-contact__hero-content {
    text-align: center;
    margin-bottom: 40px;
  }
  .page-contact__hero-title,
  .page-contact__hero-description {
    text-align: center;
  }
  .page-contact__cta-buttons {
    justify-content: center;
  }
  .page-contact__location-details {
    flex-direction: column;
  }
  .page-contact__address-block,
  .page-contact__map-block {
    width: 100%;
    text-align: center;
  }
  .page-contact__address-block .page-contact__card-title,
  .page-contact__address-block p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Mobile general */
  .page-contact__container {
    padding: 20px 15px;
  }
  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Hero Section Mobile */
  .page-contact__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }
  .page-contact__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }
  .page-contact__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-contact__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }
  .page-contact__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-contact__hero-image img {
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Contact Methods Mobile */
  .page-contact__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__card-title {
    font-size: 20px;
  }
  .page-contact__social-icon {
    width: 200px; /* Must be at least 200px */
    height: 200px; /* Must be at least 200px */
  }
  .page-contact__social-icon img {
    width: 100%;
    height: 100%;
  }

  /* Contact Form Mobile */
  .page-contact__contact-form {
    padding: 30px 20px;
  }
  .page-contact__form-label {
    font-size: 16px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
    font-size: 15px;
  }
  .page-contact__contact-form .page-contact__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* FAQ Section Mobile */
  .page-contact__faq-item {
    border-radius: 8px;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-question h3 {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }

  /* Location Section Mobile */
  .page-contact__address-block {
    padding: 25px;
  }
  .page-contact__map-block img {
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all content areas are constrained */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__location-section,
  .page-contact__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Removed specific padding here to avoid double padding if container already has it */
  }
  /* Explicitly add padding to sections that need it if their containers don't */
  .page-contact__info-section .page-contact__container,
  .page-contact__form-section .page-contact__container,
  .page-contact__faq-section .page-contact__container,
  .page-contact__location-section .page-contact__container,
  .page-contact__cta-bottom-section .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Image specific CSS to prevent filter usage - GLOBAL CHECK */
.page-contact img {
  filter: none !important; /* Ensure no filters are applied */
}