/* style/contact.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-contact {
  background-color: #140C0C; /* Custom background color */
  color: #FFF1E8; /* Custom main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
  padding-bottom: 40px; /* Space between image and content below */
}

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

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

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: bold;
  color: #F3C54D; /* Gold color for title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 1.1em;
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Info Section */
.page-contact__info-section {
  padding: 60px 0;
  background-color: #140C0C;
}

.page-contact__card {
  background-color: #2A1212; /* Card BG color */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #FFF1E8; /* Main text color */
}

.page-contact__card-title {
  font-size: 2.2em;
  color: #F3C54D; /* Gold color */
  margin-bottom: 20px;
}

.page-contact__card-text {
  font-size: 1.05em;
  margin-bottom: 30px;
}

.page-contact__contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.page-contact__method-item {
  flex: 1;
  min-width: 280px;
  max-width: 45%;
  background-color: #140C0C; /* Background color for method items */
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #6A1E1E; /* Border color */
  text-align: left;
}

.page-contact__method-title {
  font-size: 1.5em;
  color: #E53030; /* Accent color */
  margin-bottom: 10px;
}

.page-contact__method-description {
  font-size: 0.95em;
  color: #FFF1E8;
  margin-bottom: 20px;
}

/* Buttons */
.page-contact__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-contact__button--primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button gradient */
  color: #FFF1E8; /* Text Main color */
  border: none;
}

.page-contact__button--primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-contact__button--secondary {
  background-color: transparent;
  color: #FFB04A; /* Gold color for secondary button text */
  border: 2px solid #FFB04A; /* Gold border */
}

.page-contact__button--secondary:hover {
  background-color: #FFB04A;
  color: #140C0C; /* Dark background color for hover */
  transform: translateY(-2px);
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #140C0C;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #F3C54D; /* Gold color */
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #FFF1E8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-contact__contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #2A1212; /* Card BG color */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #6A1E1E; /* Border color */
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 5px;
  background-color: #140C0C; /* Background color */
  color: #FFF1E8; /* Text Main color */
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 241, 232, 0.6); /* Lighter placeholder text */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFB04A; /* Gold focus border */
  outline: none;
}

.page-contact__submit-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button gradient */
  color: #FFF1E8; /* Text Main color */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__submit-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: #2A1212; /* Card BG color */
  text-align: center;
}

.page-contact__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__cta-title {
  font-size: 2.5em;
  color: #F3C54D; /* Gold color */
  margin-bottom: 20px;
}

.page-contact__cta-description {
  font-size: 1.1em;
  color: #FFF1E8;
  margin-bottom: 40px;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* Responsive Styles */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

  .page-contact__hero-section {
    padding: 30px 15px;
    padding-top: 10px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-contact__description {
    font-size: 1em;
  }

  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__hero-image,
  .page-contact__card img,
  .page-contact__method-item img,
  .page-contact__form-section img,
  .page-contact__cta-section img,
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__cta-section,
  .page-contact__card,
  .page-contact__method-item,
  .page-contact__contact-form,
  .page-contact__cta-content,
  .page-contact__cta-buttons {
    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__card {
    padding: 25px;
  }

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

  .page-contact__contact-methods {
    flex-direction: column;
    align-items: center;
  }

  .page-contact__method-item {
    max-width: 100%;
    width: 100%;
    margin-bottom: 20px;
  }

  .page-contact__button,
  .page-contact__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;
  }

  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact__method-item {
    min-width: unset;
    max-width: 100%;
  }
}