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

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden; /* Ensure no overflow */
}

.page-contact__hero-container {
  width: 100%;
  max-width: 1400px; /* Adjust max-width as needed */
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  text-align: center;
}

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

.page-contact__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 15px;
  /* No fixed font-size, rely on responsive clamps if needed in shared */
}

.page-contact__intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* --- Contact Info Section --- */
.page-contact__info-section {
  padding: 60px 20px;
  background-color: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
}

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

.page-contact__section-title {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
}

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

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

.page-contact__method-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF5E1; /* Text Main */
  border: 1px solid #F2B544; /* Border */
}

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

.page-contact__method-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFD86A; /* Gold-like for emphasis */
}

.page-contact__method-description {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for text on light gold button */
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 216, 106, 0.4);
}

/* --- Contact Form Section --- */
.page-contact__form-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for form */
  color: #333333; /* Dark text for light background */
}

.page-contact__contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333; /* Dark text */
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  background-color: #ffffff;
  color: #333333;
}

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

.page-contact__form-textarea {
  resize: vertical;
}

/* --- FAQ Section --- */
.page-contact__faq-section {
  padding: 60px 20px;
  background-color: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
}

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

.page-contact__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: #FFF5E1; /* Text Main */
  border: 1px solid #F2B544; /* Border */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #FFF5E1; /* Text Main */
  background-color: #D32F2F; /* Card BG */
}

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

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

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-contact__link {
  color: #FFD86A; /* Gold for links */
  text-decoration: underline;
}

.page-contact__link:hover {
  color: #E6B800; /* Darker gold on hover */
}

.page-contact__cta-faq {
  text-align: center;
  margin-top: 40px;
}

.page-contact__cta-text {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #FFF5E1; /* Text Main */
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  background-color: #ffffff; /* White background */
  color: #C91F17; /* Main color for text */
  border: 2px solid #C91F17; /* Main color border */
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-contact__btn-secondary:hover {
  background-color: #C91F17; /* Main color on hover */
  color: #ffffff; /* White text on hover */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-bottom: 40px;
  }

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

  .page-contact__main-title {
    /* font-size handled by shared or browser defaults */
  }

  .page-contact__intro-text {
    font-size: 1em;
  }

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

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

  .page-contact__contact-methods {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }

  .page-contact__method-card {
    padding: 25px;
  }

  .page-contact__method-title {
    font-size: 1.3em;
  }

  .page-contact__method-icon {
    max-width: 200px;
  }

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

  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  /* Force responsive for images, videos, buttons, and containers */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact video,
  .page-contact__video { /* If any video were present */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__contact-methods,
  .page-contact__video-section, /* If video present */
  .page-contact__video-container, /* If video present */
  .page-contact__video-wrapper /* If video present */ {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-contact__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is just small decor padding */
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"],
  .page-contact button[type="submit"] { /* Also target submit button */
    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;
    margin-bottom: 10px; /* Stack buttons if multiple */
  }

  .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;
    display: flex; /* Ensure flex behavior for wrapping */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

/* Contrast Fixes for light background sections */
.page-contact__text-contrast-fix {
  color: #333333 !important; /* Ensure dark text on light backgrounds */
}

.page-contact__dark-bg {
  background-color: #D32F2F; /* Card BG, dark */
  color: #FFF5E1; /* Text Main, light */
}

.page-contact__light-bg {
  background-color: #ffffff; /* White, light */
  color: #333333; /* Dark text */
}

.page-contact__dark-section {
  background-color: #B71C1C; /* Background, dark */
  color: #FFF5E1; /* Text Main, light */
}