@media (max-width: 1023px) {
  .page-contact__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-contact__hero-brand,
  .page-contact__hero-jackpot {
    display: none !important;
  }
  .page-contact__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-contact__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-contact__game-trial-topbar,
  .page-contact__game-trial-bottombar {
    display: none !important;
  }
  .page-contact__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-contact__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-contact__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-contact__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-contact__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-contact__hero-brand,
  .page-contact__hero-jackpot,
  .page-contact__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-contact__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-contact__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-contact__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-contact__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-contact__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* Common styles for game trial overlay/modal - for homepage, but required in CSS output */
.page-contact__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-contact__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-contact__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-contact__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-contact__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-contact__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
}
.page-contact__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}
.page-contact--reward-open {
  overflow: hidden;
}

/* Page specific styles for Contact Us */
.page-contact {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #F4F7FB; /* Body background color */
}

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

/* Hero Section */
.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background-color: #F4F7FB;
  text-align: center;
}

.page-contact__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-contact__main-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__lead-text {
  font-size: 18px;
  color: #333333;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Section Titles & Descriptions */
.page-contact__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__description {
  font-size: 16px;
  color: #333333;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

.page-contact__form-section .page-contact__container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-contact__form-wrapper {
  flex: 2;
  min-width: 300px;
  background: #FFFFFF;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #D6E2FF;
}

.page-contact__form-image-aside {
  flex: 1;
  min-width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__aside-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-contact__form-label {
  display: block;
  font-size: 15px;
  color: #1F2D3D;
  margin-bottom: 8px;
  font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF;
  border-radius: 5px;
  font-size: 16px;
  color: #333333;
  background-color: #F8FCFF;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #6FA3FF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(111, 163, 255, 0.2);
}

.page-contact__submit-button {
  display: inline-block;
  width: 100%; /* For mobile responsiveness */
  padding: 14px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  max-width: 300px; /* Limit width on desktop */
}

.page-contact__submit-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 5px 20px rgba(47, 107, 255, 0.4);
}

/* Support Channels Section */
.page-contact__channels-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-contact__channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-contact__channel-card {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #D6E2FF;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-contact__channel-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact__channel-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-contact__channel-text {
  font-size: 15px;
  color: #333333;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__channel-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
}

.page-contact__channel-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 3px 10px rgba(47, 107, 255, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #F8FCFF;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #F8FCFF;
  border-radius: 0 0 8px 8px;
  color: #333333;
  line-height: 1.7;
  font-size: 15px;
}
.page-contact__faq-answer p {
  margin-top: 0;
  margin-bottom: 15px;
}
.page-contact__faq-link {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.page-contact__faq-link:hover {
  color: #4A8BFF;
  text-decoration: underline;
}

/* About Section */
.page-contact__about-section {
  padding: 60px 0;
  background-color: #F4F7FB;
  text-align: center;
}

.page-contact__about-button {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  margin-top: 20px;
  box-sizing: border-box;
  max-width: 300px;
}

.page-contact__about-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 5px 20px rgba(47, 107, 255, 0.4);
}

/* Responsive styles */
@media (max-width: 1023px) {
  .page-contact__form-section .page-contact__container {
    flex-direction: column;
    align-items: center;
  }
  .page-contact__form-wrapper,
  .page-contact__form-image-aside {
    width: 100%;
    max-width: 600px;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__container {
    padding: 0 10px;
  }
  .page-contact__hero-section {
    padding-bottom: 20px;
  }
  .page-contact__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 10px;
  }
  .page-contact__lead-text {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-contact__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-contact__description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__hero-image-wrapper,
  .page-contact__form-image-aside,
  .page-contact__channel-card,
  .page-contact__form-wrapper,
  .page-contact__about-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Buttons */
  .page-contact__submit-button,
  .page-contact__channel-button,
  .page-contact__about-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__form-wrapper {
    padding: 25px;
  }
  .page-contact__submit-button {
    margin: 0 auto; /* Center button if it's not full width */
  }

  .page-contact__channels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__channel-card {
    padding: 20px;
  }
  .page-contact__channel-icon {
    width: 80px;
  }
  .page-contact__channel-title {
    font-size: 20px;
  }
  .page-contact__channel-text {
    font-size: 14px;
  }

  /* FAQ */
  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  .page-contact__faq-qtext { font-size: 15px; }
  details.page-contact__faq-item .page-contact__faq-answer { padding: 0 15px 15px; }

  /* Additional rules for homepage elements - included as per 768px checklist */
  /* 2. 优惠 `__promo-strip` */
  .page-contact__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* Changed from 4 to 2 for mobile */
    gap: 15px;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
  }
  .page-contact__promo-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  .page-contact__promo-card-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-bottom: 10px;
  }
  .page-contact__promo-card-title {
    font-size: 16px;
    line-height: 1.3;
  }
  .page-contact__promo-card-button {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    font-size: 14px;
    padding: 10px;
  }

  /* 3. 热门 `__hot-games` */
  .page-contact__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
    gap: 15px;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
  }
  .page-contact__hot-games-card {
    text-align: center;
    padding: 10px;
  }
  .page-contact__hot-games-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-bottom: 5px;
  }
  .page-contact__hot-games-name,
  .page-contact__hot-games-rtp,
  .page-contact__hot-games-desc {
    display: none !important; /* Hide on mobile */
  }

  /* 4. 品牌 `__brand-intro` (if present) */
  .page-contact__brand-intro {
    padding: 20px 10px;
    text-align: center;
  }
  .page-contact__brand-intro-content {
    font-size: 15px;
    line-height: 1.6;
  }

  /* 5. 中奖条 `__winner-ticker` (if present) */
  .page-contact__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 0;
    z-index: 999;
  }
  /* Adjust body/main padding-bottom if winner ticker is fixed */
  body {
    padding-bottom: 40px;
  }
  .page-content {
    margin-bottom: 40px;
  }
}