:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --background-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
  --header-offset: 122px; /* Default value, will be overridden by shared.css */
}

.page-contact {
  background-color: var(--background-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body will handle --header-offset */
}

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

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

.page-contact__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.5);
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-contact__hero-content {
  padding: 30px 15px;
  max-width: 800px;
  margin-top: 20px;
}

.page-contact__hero-title {
  font-size: 44px;
  font-weight: 800;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 140, 26, 0.7);
}

.page-contact__hero-description {
  font-size: 18px;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

.page-contact__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

/* Form Section */
.page-contact__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-contact__form-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__form-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  min-height: 200px; /* Ensure minimum size */
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main-color);
  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: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 140, 26, 0.3);
}

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

.page-contact__submit-button {
  display: inline-block;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  padding: 14px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
  align-self: flex-start; /* Align to start for forms */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

/* Other Methods Section */
.page-contact__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-contact__method-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

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

.page-contact__method-description {
  font-size: 16px;
  color: var(--text-main-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__hotline {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

.page-contact__method-button {
  display: inline-block;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 165, 58, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__method-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.5);
}

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

.page-contact__social-icon-link {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-contact__social-icon-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.5);
}

.page-contact__social-icon-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  /* min-width and min-height for display should match container, not 200px */
  max-width: 100%; /* Ensure responsiveness */
  height: auto;
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  color: var(--text-main-color);
}
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: rgba(255, 140, 26, 0.1);
  border-color: var(--primary-color);
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  color: var(--text-main-color);
}
.page-contact__faq-answer p {
  margin-bottom: 15px;
}
.page-contact__faq-button {
  display: inline-block;
  background: var(--primary-color);
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-contact__faq-button:hover {
  background: var(--deep-orange-color);
}

/* --- Responsive Design --- */

/* Universal image responsiveness for all images within .page-contact */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default object-fit for content images */
}

/* Universal button responsiveness */
.page-contact__cta-button,
.page-contact__submit-button,
.page-contact__method-button,
.page-contact__faq-button,
.page-contact a[class*="button"],
.page-contact a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__button-group,
.page-contact__cta-buttons,
.page-contact__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 15px;
    line-height: 1.5;
    padding-top: 8px; /* Slightly less padding on mobile */
  }

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

  .page-contact__hero-title {
    font-size: 32px;
  }

  .page-contact__hero-description {
    font-size: 16px;
  }

  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-contact__form-grid {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .page-contact__form-image-wrapper {
    order: -1; /* Image above form on mobile */
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }

  .page-contact__submit-button {
    padding: 12px 20px;
    font-size: 16px;
    align-self: stretch; /* Full width on mobile */
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-title {
    font-size: 20px;
  }

  .page-contact__method-description {
    font-size: 15px;
  }

  .page-contact__hotline {
    font-size: 24px;
  }

  .page-contact__method-button {
    padding: 10px 20px;
    font-size: 15px;
  }

  .page-contact__social-links {
    gap: 10px;
  }

  .page-contact__social-icon-link {
    width: 50px;
    height: 50px;
  }

  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-qtext {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 15px;
  }
  .page-contact__faq-button {
    font-size: 13px;
    padding: 7px 12px;
  }

  /* Force image and container responsiveness */
  .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-grid,
  .page-contact__methods-grid,
  .page-contact__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Force button responsiveness */
  .page-contact__cta-button,
  .page-contact__submit-button,
  .page-contact__method-button,
  .page-contact__faq-button,
  .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;
  }
  
  .page-contact__button-group,
  .page-contact__cta-buttons,
  .page-contact__btn-container,
  .page-contact__social-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
    justify-content: center;
  }
  .page-contact__social-links {
    flex-direction: row;
  }
  .page-contact__faq-answer .page-contact__faq-button {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* Placeholder for .is-hidden to work with JS (not directly used by this page's content, but good practice) */
.is-hidden {
  display: none !important;
}

/* Minimal modal styles for potential future use or shared components interaction */
.page-contact__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.page-contact__reward-modal[hidden] {
  display: none;
}

.page-contact__reward-modal-content {
  background-color: var(--card-bg);
  color: var(--text-main-color);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  max-width: 500px;
  text-align: center;
  position: relative;
}

.page-contact__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-main-color);
  cursor: pointer;
  padding: 5px;
}

.page-contact__reward-modal-close:hover {
  color: var(--primary-color);
}