/* style/contact.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #202020; /* Example if body was dark */
  --button-login: #EA7C07;
}

.page-contact {
  color: var(--text-color-dark); /* Body is light, so use dark text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

/* 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;
  background: var(--background-light); /* Light background for hero */
  overflow: hidden; /* Ensure content doesn't spill */
}

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

.page-contact__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.page-contact__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease-in-out;
}

.page-contact__hero-image img:hover {
  transform: scale(1.03);
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9); /* Slightly transparent white background for text */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image */
}

.page-contact__main-title {
  font-size: 38px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__intro-text {
  font-size: 18px;
  color: var(--text-color-dark);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-login); /* Use login color for CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: none;
}

.page-contact__cta-button:hover {
  background: #d46b06; /* Darken #EA7C07 */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* General Section Styling */
.page-contact__section {
  padding: 80px 20px;
  text-align: center;
}

.page-contact__section:nth-of-type(even) {
  background: var(--background-light);
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure container takes full width on mobile */
  box-sizing: border-box;
}

.page-contact__section-title {
  font-size: 34px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-contact__section-description {
  font-size: 18px;
  color: var(--text-color-dark);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Info Section */
.page-contact__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__info-card {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e0e0e0;
}

.page-contact__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__info-card p {
  font-size: 16px;
  color: var(--text-color-dark);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-contact__contact-detail {
  font-weight: bold;
  color: var(--text-color-dark);
  margin-top: 10px;
  margin-bottom: 20px;
}

.page-contact__contact-detail a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-contact__contact-detail a:hover {
  text-decoration: underline;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 15px;
  border: 2px solid transparent;
}

.page-contact__btn-primary {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-contact__btn-primary:hover {
  background: #208cb3; /* Darken #26A9E0 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-contact__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contact Form Section */
.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--secondary-color);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  border: 1px solid #e0e0e0;
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  color: var(--text-color-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 16px;
  color: var(--text-color-dark);
  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: var(--primary-color);
  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 {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--button-login);
  color: var(--text-color-light);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__form-submit-btn:hover {
  background: #d46b06; /* Darken #EA7C07 */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* FAQ Section */
.page-contact__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

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

/* 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 25px;
  opacity: 0;
  color: var(--text-color-dark);
  background: var(--background-light);
}