/* style/contact.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-contact {
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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; /* Enforce top-image, bottom-text */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #7A0E0E; /* Deep Red for hero background */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-content {
  max-width: 800px;
  margin-top: 20px;
  color: #FFF5E1; /* Text Main */
}

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

.page-contact__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main */
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red for contrast on gold button */
  border: none;
}

.page-contact__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F4D34D; /* Gold for section titles */
}

/* Contact Methods Section */
.page-contact__contact-methods {
  padding: 80px 0;
  background-color: #B71C1C; /* Background */
}

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

.page-contact__method-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF5E1; /* Text Main */
  box-sizing: border-box;
}

.page-contact__method-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-contact__method-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFCC66; /* Glow */
}

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

.page-contact__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  background-color: #F2B544; /* Border for secondary button */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F2B544;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
  background-color: #7A0E0E; /* Deep Red on hover */
  color: #F2B544; /* Gold text on hover */
}

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

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

.page-contact__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #FFF5E1; /* Text Main */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: #C91F17; /* Main color */
  color: #FFF5E1; /* Text Main */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__faq-question:hover {
  background-color: #E53935; /* Auxiliary color on hover */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFCC66; /* Glow */
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #FFF5E1; /* Text Main */
  /* display: none;  Controlled by JS for non-details elements */
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  display: block; /* For details element */
}

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

.page-contact__faq-answer a {
  color: #F4D34D; /* Gold for links in FAQ answer */
  text-decoration: underline;
}

.page-contact__btn-text {
  color: #F4D34D; /* Gold */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-contact__btn-text:hover {
  color: #FFCC66; /* Glow */
}

/* Location Info Section */
.page-contact__location-info {
  padding: 80px 0;
  background-color: #B71C1C; /* Background */
}

.page-contact__location-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-contact__map-wrapper {
  flex: 1 1 500px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.page-contact__location-map {
  width: 100%;
  height: auto;
  display: block;
}

.page-contact__address-details {
  flex: 1 1 400px;
  color: #FFF5E1; /* Text Main */
}

.page-contact__address-text {
  font-size: 1.1em;
  margin-bottom: 15px;
}

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

@media (max-width: 768px) {
  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-contact__hero-image {
    margin-bottom: 20px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-contact__description {
    font-size: 1em;
  }

  .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;
    padding-right: 15px; /* Add padding for full-width buttons */
  }
  
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-contact__contact-methods,
  .page-contact__faq-section,
  .page-contact__location-info {
    padding: 40px 0;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__method-card,
  .page-contact__faq-item {
    margin-bottom: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__method-icon {
    max-width: 200px; /* Adjust for mobile, but keep >= 200px */
  }

  .page-contact__location-content {
    flex-direction: column;
  }
  .page-contact__map-wrapper,
  .page-contact__address-details {
    flex: 1 1 100%;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  /* Images responsive */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-image-wrapper,
  .page-contact__map-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
}