/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

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

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

/* --- Color Contrast Classes --- */
.page-contact__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-contact__dark-bg {
  background-color: #26A9E0; /* Primary color as background */
  color: #FFFFFF; /* White text for contrast */
}

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description,
.page-contact__dark-bg .page-contact__method-title,
.page-contact__dark-bg .page-contact__method-text,
.page-contact__dark-bg .page-contact__form-label {
  color: #FFFFFF;
}

/* --- Button Styles --- */
.page-contact__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-social {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary {
  background-color: #26A9E0; /* Primary color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

.page-contact__btn-secondary:hover {
  background-color: #e0f2f7; /* Light background on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-social {
  background-color: #EA7C07; /* Login color for social buttons for distinction */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
  margin-right: 10px; /* Spacing for social buttons */
}

.page-contact__btn-social:last-child {
  margin-right: 0;
}

.page-contact__btn-social:hover {
  background-color: #c46406; /* Slightly darker login color */
  border-color: #c46406;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Hero Section --- */
.page-contact__hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  /* Fixed header spacing for desktop and mobile */
  padding-top: var(--header-offset, 120px);
}

.page-contact__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0; /* Primary color for main title */
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 20px;
  color: #555555;
  margin-bottom: 30px;
}

/* --- Methods Section --- */
.page-contact__methods-section {
  padding: 60px 0;
}

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

.page-contact__method-card {
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-contact__method-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block; /* Ensure it behaves as a block element */
}

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

.page-contact__method-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

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

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 16px;
  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__submit-button {
  width: 100%;
  padding: 18px;
  font-size: 20px;
  margin-top: 20px;
}

/* --- Issues Section --- */
.page-contact__issues-section {
  padding: 60px 0;
}

.page-contact__issues-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.page-contact__issue-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__issue-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__issue-title {
  font-size: 22px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

/* --- FAQ Section --- */
.page-contact__faq-section {
  padding: 60px 0;
}

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

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.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.4s ease;
  padding: 0 15px;
  opacity: 0;
}