/* style/contact.css */
.page-contact {
  font-family: Arial, sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
}

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

.page-contact__container--narrow {
  max-width: 800px;
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #FF8C1A; /* Main color */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* 1. 顶区标题 + 双 CTA */
.page-contact__top-section {
  padding-top: 10px; /* As per fixed header padding rule */
  padding-bottom: 60px;
  background-color: #0D0E12; /* Background */
}

.page-contact__main-title {
  font-size: clamp(2em, 3.5vw, 3.5em); /* Using clamp for H1 as required */
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__intro-text {
  font-size: 1.2em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-contact__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For button responsive rule */
  box-sizing: border-box; /* For button responsive rule */
  white-space: normal; /* For button responsive rule */
  word-wrap: break-word; /* For button responsive rule */
  text-align: center;
}

.page-contact__btn--primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-contact__btn--primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-contact__btn--secondary {
  background: transparent;
  color: #FF8C1A; /* Main color */
  border: 2px solid #A84F0C; /* Border color */
}

.page-contact__btn--secondary:hover {
  background-color: rgba(255, 140, 26, 0.1);
  color: #FFB04D; /* Glow */
  border-color: #FFB04D;
}

/* Why Contact Section */
.page-contact__section--why-contact {
  background-color: #0D0E12; /* Background */
}

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

.page-contact__card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6; /* Text Main */
  border: 1px solid #A84F0C; /* Border color */
}

.page-contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.5);
}

.page-contact__feature-title {
  font-size: 1.5em;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__feature-item p {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
}

/* Contact Form Section */
.page-contact__section--contact-form {
  background-color: #0D0E12; /* Background */
}

.page-contact__form-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
}

.page-contact__form-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #A84F0C; /* Border color */
}

.page-contact__form {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
  background-color: #17191F; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border color */
}

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

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

.page-contact__input,
.page-contact__textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border color */
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFF3E6; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__input::placeholder,
.page-contact__textarea::placeholder {
  color: rgba(255, 243, 230, 0.7); /* Lighter placeholder text */
}

.page-contact__input:focus,
.page-contact__textarea:focus {
  outline: none;
  border-color: #FF8C1A; /* Main color */
  box-shadow: 0 0 0 3px rgba(255, 140, 26, 0.3);
}

.page-contact__submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  border-radius: 8px;
}

/* Channels Section */
.page-contact__section--channels {
  background-color: #0D0E12; /* Background */
}

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

.page-contact__channel-item {
  text-align: center;
  padding: 30px;
}

.page-contact__channel-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-width: 400px; /* Limit max width for smaller images */
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #A84F0C; /* Border color */
}

.page-contact__channel-title {
  font-size: 1.6em;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__channel-item p {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 25px;
}

/* FAQ Section */
.page-contact__section--faq {
  background-color: #0D0E12; /* Background */
}

.page-contact__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-contact__faq-item {
  margin-bottom: 20px;
  padding: 25px;
  cursor: default; /* No JS accordion, so no pointer */
}

.page-contact__faq-question {
  font-size: 1.3em;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__faq-answer p {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  padding-left: 15px;
  border-left: 3px solid #FF8C1A; /* Main color */
}

.page-contact__faq-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #A84F0C; /* Border color */
  display: block; /* Center image */
}

/* Detailed Services Section */
.page-contact__section--detailed-services {
  background-color: #0D0E12; /* Background */
}

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

.page-contact__service-card {
  text-align: left;
  padding: 30px;
}

.page-contact__service-title {
  font-size: 1.6em;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__service-card p {
  font-size: 1em;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
}

.page-contact__service-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  margin-top: 20px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #A84F0C; /* Border color */
}

/* General image styling */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensures proper centering and prevents inline issues */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__section {
    padding: 40px 0;
  }

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

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

  /* 1. 顶区标题 + 双 CTA */
  .page-contact__top-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-contact__main-title {
    font-size: 2.2em;
    line-height: 1.3;
  }

  .page-contact__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Why Contact Section */
  .page-contact__grid-features {
    gap: 20px;
  }

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

  .page-contact__card {
    padding: 25px;
  }

  /* Contact Form Section */
  .page-contact__form-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-contact__form-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__form {
    padding: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__form-label {
    font-size: 0.95em;
  }

  .page-contact__input,
  .page-contact__textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  .page-contact__submit-btn {
    font-size: 1.1em;
    padding: 12px;
  }

  /* Channels Section */
  .page-contact__grid-channels {
    gap: 20px;
  }

  .page-contact__channel-title {
    font-size: 1.4em;
  }

  .page-contact__channel-item p {
    font-size: 0.95em;
  }

  /* FAQ Section */
  .page-contact__faq-question {
    font-size: 1.2em;
  }

  .page-contact__faq-answer p {
    font-size: 0.95em;
    padding-left: 10px;
  }

  .page-contact__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Detailed Services Section */
  .page-contact__service-grid {
    gap: 20px;
  }

  .page-contact__service-title {
    font-size: 1.4em;
  }

  .page-contact__service-card p {
    font-size: 0.95em;
  }

  .page-contact__service-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General image and container responsive rules for mobile */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-wrapper,
  .page-contact__form,
  .page-contact__grid-features,
  .page-contact__grid-channels,
  .page-contact__service-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-contact__content-area,
  .page-contact__text-block,
  .page-contact p,
  .page-contact li {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}