/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Page background color */
}

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

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

.page-contact__dark-section {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

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

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

/* Hero Section */
.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  color: #FFF6D6;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  text-align: center;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #FFD36B;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #FFF6D6;
  max-width: 700px;
  margin: 0 auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Dark text for bright button */
  border: none;
}

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

.page-contact__btn-secondary {
  background: #111111;
  color: #FFD36B;
  border: 2px solid #FFD36B;
}

.page-contact__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
  transform: translateY(-2px);
}

/* Contact Methods Section */
.page-contact__contact-methods {
  background-color: #0A0A0A;
}

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

.page-contact__card {
  background-color: #111111; /* Card background */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-contact__card-title {
  font-size: 1.8em;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-contact__card-text {
  color: #FFF6D6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__phone-number {
  font-size: 1.5em;
  color: #F2C14E;
  font-weight: bold;
  margin-bottom: 25px;
}

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

.page-contact__social-icon img {
  
  
  transition: transform 0.3s ease;
}

.page-contact__social-icon:hover img {
  transform: scale(1.1);
}

/* Contact Form Section */
.page-contact__contact-form-section {
  background-color: #111111;
  color: #FFF6D6;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background-color: #0A0A0A;
  border-radius: 12px;
  border: 1px solid #3A2A12;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #FFF6D6;
  font-size: 1.1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #888;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #F2C14E;
  outline: none;
}

.page-contact__button-container {
  text-align: center;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-contact__submit-btn {
  width: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #0A0A0A;
}

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

.page-contact__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF6D6;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD36B;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: rgba(255, 211, 107, 0.05);
}

.page-contact__faq-question::marker, /* Hide default marker */
.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #F2C14E;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #FFF6D6;
  line-height: 1.6;
}

/* Responsible Gaming Section */
.page-contact__responsible-gaming-section {
  background-color: #111111;
}

.page-contact__responsible-gaming-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
  object-fit: cover;
}

/* Call to Action Section */
.page-contact__cta-section {
  padding: 80px 0;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* General image and container responsive styles */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__section,
.page-contact__card,
.page-contact__container,
.page-contact__form {
  box-sizing: border-box;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 10px; /* Ensure small top padding */
    min-height: 400px;
  }

  .page-contact__hero-content {
    padding: 20px 15px;
  }

  .page-contact__main-title {
    font-size: 1.8em;
  }

  .page-contact__hero-description {
    font-size: 0.95em;
  }

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

  .page-contact__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

  .page-contact__description {
    font-size: 1em;
    padding: 0 15px;
  }

  /* General image adaptation */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Container adaptation */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form,
  .page-contact__methods-grid,
  .page-contact__faq-list,
  .page-contact__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Contact Methods Grid */
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__card {
    padding: 25px;
  }

  .page-contact__card-title {
    font-size: 1.5em;
  }

  .page-contact__phone-number {
    font-size: 1.3em;
  }

  /* Contact Form */
  .page-contact__form {
    padding: 30px 20px;
  }

  /* FAQ Section */
  .page-contact__faq-question {
    font-size: 1.05em;
    padding: 18px 20px;
  }

  .page-contact__faq-answer {
    padding: 0 20px 18px 20px;
  }

  /* Buttons */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .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;
    padding: 12px 15px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Placeholder for homepage specific elements not present on contact page */
  /* HERO 主图区域: Already handled above */

  /* 长文金框区: Not present on this contact page */
  /* .page-contact__home-content { height: auto; overflow-y: visible; padding: 20px; } */

  /* 游戏轮播: Not present on this contact page */
  /* .page-contact__slider-track { display: flex; flex-wrap: nowrap; } */
  /* .page-contact__game-slide { flex: 0 0 160px; max-width: 160px; } */

  /* 合作品牌六宫格: Not present on this contact page */
  /* .page-contact__banners-top-wrapper { grid-template-columns: repeat(3, 1fr); } */
  /* .page-contact__banner-item img {  } */

  /* 博客卡片区: Not present on this contact page */
  /* .page-contact__blog-masonry { grid-template-columns: 1fr; } */
  /* .page-contact__blog-slide { flex: 0 0 100%; max-width: 100%; } */
}

/* Placeholder for Long Text Gold Frame CSS (not used on contact page, but for completeness if it were present) */
.page-contact__home-content {
  /* border: 1px solid #FBB00D; border-radius: 10px; height: 650px; overflow-y: auto; */
  /* Styles if this section were present on the contact page */
}

/* Placeholder for Game Carousel CSS (not used on contact page, but for completeness if it were present) */
.page-contact__row-games, .page-contact__row-sport, .page-contact__row-coop {
  /* background-color: #1A202C; padding: 40px 20px; max-width: 1330px; margin: 0 auto; */
}
.page-contact__games-title, .page-contact__sport-title, .page-contact__coop-title {
  /* color: #fff; text-align: center; */
}
.page-contact__slider-wrapper {
  /* overflow: hidden; */
}
.page-contact__slider-track {
  /* display: flex; flex-wrap: nowrap; gap: 16px; */
}
.page-contact__game-slide {
  /* flex: 0 0 200px; max-width: 200px; */
}

/* Placeholder for Partner Grid CSS (not used on contact page, but for completeness if it were present) */
.page-contact__banners-top-wrapper {
  /* display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 0 auto; */
}
.page-contact__banner-item img {
  /*   object-fit: contain; margin: 0 auto; display: block; */
}

/* Placeholder for Blog Cards CSS (not used on contact page, but for completeness if it were present) */
.page-contact__blog-masonry {
  /* display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; */
}
.page-contact__blog-card-link {
  /* display: flex; flex-direction: column; height: 100%; */
}
.page-contact__btn-outline {
  /* margin-top: auto; */
}
.page-contact__blog-slider-track {
  /* display: flex; flex-wrap: nowrap; gap: 20px; */
}
.page-contact__blog-slide {
  /* flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); */
}

/* Mobile specific rules for placeholder elements (if they were present) */
@media (max-width: 768px) {
  /* .page-contact__blog-masonry { grid-template-columns: 1fr; } */
  /* .page-contact__game-slide { flex: 0 0 160px; max-width: 160px; } */
  /* .page-contact__banners-top-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); } */
  /* .page-contact__blog-slide { flex: 0 0 100%; max-width: 100%; } */
}