/* style/contact.css */

/* --- General Styles --- */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background-color: #f9f9f9; /* Light background for content sections */
}

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

.page-contact__section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__section-title {
  font-size: 36px;
  color: #26A9E0; /* Primary color for titles */
  margin-bottom: 20px;
  font-weight: 700;
}

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

.page-contact__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: #26A9E0; /* Primary color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding is included in width */
}

.page-contact__btn-primary:hover {
  background: #1e87c0; /* Slightly darker primary */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: #26A9E0; /* Primary color as text */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding is included in width */
}

.page-contact__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__email-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__email-link:hover {
  text-decoration: underline;
}

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* 页头由 shared 的 body { padding-top: var(--header-offset); } 承担；此处仅用小额顶距，禁止 var(--header-offset) 以免双倍空白 */
  padding-top: 10px;
  background-color: #ffffff;
}

.page-contact__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* Using clamp for responsive H1 */
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.page-contact__hero-description {
  font-size: 1.1rem;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login color for prominent CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

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

/* --- Contact Methods Section --- */
.page-contact__contact-methods {
  background-color: #f0f8ff; /* Light blue background */
}

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

.page-contact__method-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.page-contact__method-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-contact__method-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-contact__social-icon {
  color: #26A9E0;
  font-size: 24px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-icon:hover {
  color: #1e87c0;
  transform: translateY(-2px);
}

.page-contact__section-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 40px auto 0 auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  object-fit: cover;
}

/* --- Contact Form Section --- */
.page-contact__contact-form-section {
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: left;
  position: relative;
  z-index: 1;
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  color: #333333;
  margin-bottom: 8px;
  font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 16px;
  color: #333333;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #26A9E0;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
  outline: none;
}

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

.page-contact__form-submit-btn {
  width: auto;
  padding: 15px 40px;
  margin-top: 20px;
}

.page-contact__form-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1; /* Subtle background */
  z-index: 0;
  border-radius: 0;
  box-shadow: none;
}

/* --- Why Contact Us Section --- */
.page-contact__why-contact-us {
  background-color: #f0f8ff;
}

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

.page-contact__benefit-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.page-contact__benefit-title {
  font-size: 20px;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-contact__benefit-text {
  font-size: 16px;
  color: #555555;
}

/* --- FAQ Section --- */
.page-contact__faq-section {
  background-color: #ffffff;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  text-align: left;
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: #f5f5f5;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item[open] .page-contact__faq-question {
  background-color: #f5f5f5;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
.page-contact__faq-answer p {
  margin: 0;
}

/* --- Images Responsive Styles --- */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Mobile Responsive Design --- */
@media (max-width: 768px) {
  .page-contact__section {
    padding: 40px 0;
  }

  .page-contact__section-title {
    font-size: 28px;
  }

  .page-contact__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .page-contact__hero-section {
    padding-top: 10px !important; /* Keep small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-contact__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .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 text inside button */
    padding-right: 15px;
    font-size: 16px;
  }
  
  /* Button containers mobile adaptation */
  .page-contact__social-links,
  .page-contact__methods-grid,
  .page-contact__benefits-grid {
    flex-direction: column; /* Stack cards/buttons vertically */
    gap: 20px;
  }
  
  .page-contact__methods-grid,
  .page-contact__benefits-grid {
    grid-template-columns: 1fr; /* Single column for grids */
  }

  .page-contact__method-card,
  .page-contact__benefit-card {
    padding: 20px;
    text-align: center; /* Center text in cards on mobile */
  }
  .page-contact__method-card .page-contact__method-title,
  .page-contact__benefit-card .page-contact__benefit-title {
    text-align: center;
  }
  .page-contact__method-card .page-contact__method-text,
  .page-contact__benefit-card .page-contact__benefit-text {
    text-align: center;
  }
  .page-contact__method-card .page-contact__btn-primary,
  .page-contact__method-card .page-contact__btn-secondary {
    margin-top: 15px;
  }
  .page-contact__social-links {
    justify-content: center;
  }

  /* Contact Form */
  .page-contact__contact-form {
    padding: 20px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-contact__form-submit-btn {
    width: 100%;
  }

  /* FAQ */
  details.page-contact__faq-item summary.page-contact__faq-question { 
    padding: 15px; 
  }
  .page-contact__faq-qtext { 
    font-size: 15px; 
  }
  .page-contact__faq-answer {
    padding: 0 15px 15px;
  }

  /* Force responsive images and containers */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form-section,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}