/* style/contact.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

/* Base Styles for page-contact */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Rely on shared.css body background */
}

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

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

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  overflow: hidden; /* Ensure content does not overflow */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%; /* Ensure image is responsive */
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and text */
  min-width: 200px;
  min-height: 200px;
}

.page-contact__hero-content {
  text-align: center;
  position: relative; /* Ensure text is in normal flow */
  z-index: 2;
  max-width: 900px;
}

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

.page-contact__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-contact__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff; /* Light text for dark card background */
}

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

.page-contact__method-icon {
  width: 100%; /* Ensure image fills card width */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-contact__method-text {
  font-size: 1em;
  margin-bottom: 20px;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  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 15px;
  border: 1px solid #26A9E0;
  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: #cccccc;
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #EA7C07; /* Login color for focus */
  box-shadow: 0 0 8px rgba(234, 124, 7, 0.5);
}

.page-contact__submit-button {
  width: auto;
  padding: 12px 30px;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #26A9E0;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: block; /* Ensure it takes full width on small screens if needed */
  margin: 0 auto; /* Center button */
}

.page-contact__submit-button:hover {
  background-color: #1a8cc7; /* Darker shade of primary color */
  transform: translateY(-2px);
}

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

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

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

.page-contact__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-contact__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

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

.page-contact__faq-qtext {
  flex-grow: 1;
  color: #26A9E0; /* Primary color for question text */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #EA7C07; /* Login color for toggle icon */
}

.page-contact__faq-answer {
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary brand color background */
  text-align: center;
  color: #ffffff; /* White text for primary background */
}

.page-contact__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__cta-section .page-contact__section-title {
  color: #ffffff; /* White title on primary background */
  margin-bottom: 20px;
}

.page-contact__cta-section .page-contact__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-contact__cta-button {
  background-color: #EA7C07; /* Login color for CTA button */
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block; /* Ensure button styling */
}

.page-contact__cta-button:hover {
  background-color: #c76707; /* Darker shade of login color */
  transform: translateY(-3px);
}

/* Common Button Styles */
.page-contact__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block; /* Ensure button styling */
}

.page-contact__btn-primary:hover {
  background-color: #1a8cc7;
  transform: translateY(-2px);
}

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

  .page-contact__hero-description {
    font-size: 1.1em;
  }
  
  .page-contact__methods-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Smaller H1 for mobile */
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__section-title {
    font-size: 1.8em;
  }

  .page-contact__section-description {
    font-size: 0.95em;
  }

  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 50px 0;
  }

  .page-contact__contact-form {
    padding: 30px 20px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    font-size: 0.95em;
  }

  .page-contact__submit-button,
  .page-contact__cta-button {
    font-size: 1em;
    padding: 12px 25px;
    width: 100%; /* Full width buttons on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-contact__faq-answer {
    padding: 15px 20px;
  }

  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness (if any) */
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers for images/videos/buttons */
  .page-contact__hero-section,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section,
  .page-contact__container,
  .page-contact__card,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__cta-content,
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container,
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Multiple buttons in a row */
  .page-contact__methods-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-contact__btn-primary {
    width: 100%;
    margin-top: 10px; /* Space between stacked buttons */
  }
}

/* Color Contrast Enforcement based on body background #0a0a0a (dark) */
.page-contact {
  color: #ffffff; /* Base text color for dark body */
}

.page-contact__section-title {
  color: #26A9E0; /* Primary color for titles, good contrast on dark bg */
}

.page-contact__section-description {
  color: #f0f0f0; /* Slightly off-white for body text */
}

.page-contact__method-card,
.page-contact__contact-form,
.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  color: #ffffff; /* Light text on card background */
}

.page-contact__method-card .page-contact__method-title {
  color: #26A9E0; /* Primary color for card titles */
}

.page-contact__form-label,
.page-contact__form-input,
.page-contact__form-textarea {
  color: #ffffff; /* Light text for form elements */
}

.page-contact__form-input,
.page-contact__form-textarea {
  background-color: rgba(0, 0, 0, 0.3); /* Darker input background */
}

.page-contact__faq-item summary {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__faq-qtext {
  color: #26A9E0; /* Primary color for FAQ questions */
}

.page-contact__faq-toggle {
  color: #EA7C07; /* Login color for toggle icon */
}

.page-contact__faq-answer {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-contact__faq-answer p {
  color: #f0f0f0;
}

.page-contact__btn-primary,
.page-contact__submit-button {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-contact__btn-primary:hover,
.page-contact__submit-button:hover {
  background-color: #1a8cc7;
}

.page-contact__cta-section {
  background-color: #26A9E0; /* Primary brand color background */
  color: #ffffff;
}

.page-contact__cta-section .page-contact__section-title {
  color: #ffffff;
}

.page-contact__cta-button {
  background-color: #EA7C07; /* Login color for CTA */
  color: #ffffff;
}

.page-contact__cta-button:hover {
  background-color: #c76707;
}