/* Core styles for the contact page */
.page-contact {
  background: #0D0E12; /* Body background from shared.css is dark, so content text should be light */
  color: #FFF3E6; /* Text Main color for overall content */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 40px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px;
  max-height: 600px; /* Limit height for hero image */
}

.page-contact__hero-content {
  text-align: center;
  padding: 30px 15px;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Use clamp for H1 */
  color: #FFB04D; /* Glow color for main title */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 18px;
  color: #FFF3E6; /* Text Main color */
  margin-bottom: 30px;
}

.page-contact__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  color: #FFB04D; /* Glow color for section titles */
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__section-description {
  font-size: 16px;
  color: #FFF3E6; /* Text Main color */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Channels Section */
.page-contact__channels-section {
  padding: 40px 0;
  background: #0D0E12;
}

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

.page-contact__channel-card {
  background: #17191F; /* Card BG color */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__channel-icon {
  width: 100%; /* Max width 100%, height auto for images */
  max-width: 250px; /* Example max width for icons */
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-contact__channel-title {
  font-size: 22px;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-contact__channel-text {
  font-size: 15px;
  color: #FFF3E6; /* Text Main color */
  margin-bottom: 20px;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 40px 0;
  background: #0D0E12;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: #17191F; /* Card BG color */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  color: #FFB04D; /* Glow color for labels */
  margin-bottom: 8px;
  font-weight: 500;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for input fields */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 5px;
  color: #FFF3E6; /* 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: #FFA53A; /* Auxiliary color on focus */
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 165, 58, 0.3);
}

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

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

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

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

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #E87800 100%); /* Slightly lighter on hover */
  box-shadow: 0 6px 15px rgba(255, 130, 26, 0.6);
}

.page-contact__btn-secondary {
  background: transparent;
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A;
  box-shadow: 0 2px 8px rgba(255, 165, 58, 0.2);
}

.page-contact__btn-secondary:hover {
  background: rgba(255, 165, 58, 0.1); /* Slight background on hover */
  color: #FFB04D; /* Glow color */
  border-color: #FFB04D;
  box-shadow: 0 4px 10px rgba(255, 165, 58, 0.4);
}

.page-contact__submit-button {
  width: auto; /* Override max-width for submit button to be natural width */
  min-width: 180px;
  padding: 14px 30px;
  margin-top: 10px;
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG color */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
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;
  color: #FFB04D; /* Glow color for question text */
  font-weight: 600;
  font-size: 17px;
}
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, 165, 58, 0.05); /* Subtle hover effect */
}
.page-contact__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 20px;
  background: #17191F; /* Card BG color */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6; /* Text Main color for answer */
  font-size: 15px;
}
.page-contact__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 50px 0;
    text-align: center;
    background: #0D0E12;
}

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

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-contact__hero-section {
    padding-top: 10px; /* Small top padding for non-homepage hero */
  }
}

@media (min-width: 1024px) {
  /* No specific 1024px rules needed for this contact page, it's generally fluid */
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    margin-bottom: 30px;
  }
  .page-contact__hero-content {
    padding: 20px 15px;
  }
  .page-contact__main-title {
    font-size: 28px;
  }
  .page-contact__hero-description {
    font-size: 16px;
  }

  .page-contact__section-title {
    font-size: 24px;
  }
  .page-contact__section-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Images responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__channel-icon {
    max-width: 200px;
  }

  /* Containers responsiveness */
  .page-contact__container,
  .page-contact__channels-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Channel Grid */
  .page-contact__channel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__channel-card {
    padding: 20px;
  }
  .page-contact__channel-title {
    font-size: 20px;
  }
  .page-contact__channel-text {
    font-size: 14px;
  }

  /* Contact Form */
  .page-contact__contact-form {
    padding: 20px;
  }
  .page-contact__form-label {
    font-size: 15px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }

  /* Buttons responsiveness */
  .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-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-contact__submit-button {
    width: 100% !important;
    min-width: unset;
  }

  /* FAQ Section */
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-contact__faq-qtext {
    font-size: 15px;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }
}

/* Homepage specific rules (placeholder for full compliance, even if not directly used on contact page) */
/* A. @media (max-width: 1023px) must be present */
@media (max-width: 1023px) {
  .page-contact__home-hero { /* Using page-contact as prefix as per BEM for this page */
    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;
  }
}

/* B. @media (min-width: 1024px) must be present */
@media (min-width: 1024px) {
  .page-contact__home-hero { /* Using page-contact as prefix as per BEM for this page */
    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;
  }
}

/* Mobile @media (max-width: 768px) checklist for homepage modules (even if not directly on contact page, for full compliance) */
/* 1. 首屏试玩: Covered by 1023px rule above */

/* 2. 优惠 __promo-strip: Placeholder */
.page-contact__promo-strip {
  padding: 30px 0;
  background: #0D0E12;
}
.page-contact__promo-strip-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.page-contact__promo-card {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 15px;
}
.page-contact__promo-card-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  border-radius: 5px;
}
.page-contact__promo-card-title {
  font-size: 18px;
  color: #FFA53A;
  margin-bottom: 8px;
}
.page-contact__promo-card-text {
  font-size: 14px;
  color: #FFF3E6;
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  .page-contact__promo-strip-track {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }
  .page-contact__promo-card {
    padding: 15px;
  }
  .page-contact__promo-card-image {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-contact__promo-card-title {
    font-size: 16px;
  }
  .page-contact__promo-card-text {
    font-size: 13px;
  }
}

/* 3. 热门 __hot-games: Placeholder */
.page-contact__hot-games-section {
  padding: 50px 0;
  background: #0D0E12;
}
.page-contact__hot-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.page-contact__hot-game-card {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  overflow: hidden;
  padding: 15px;
  text-align: center;
}
.page-contact__hot-game-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  border-radius: 5px;
}
.page-contact__hot-games-name {
  font-size: 16px;
  color: #FFB04D;
  margin-bottom: 5px;
  display: block;
}
.page-contact__hot-games-rtp,
.page-contact__hot-games-desc {
  font-size: 13px;
  color: #FFF3E6;
  display: block;
}
@media (max-width: 768px) {
  .page-contact__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-contact__hot-game-image {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-contact__hot-games-name,
  .page-contact__hot-games-rtp,
  .page-contact__hot-games-desc {
    display: none;
  }
}

/* 4. 品牌 __brand-intro: Placeholder */
.page-contact__brand-intro {
  padding: 40px 0;
  background: #0D0E12;
  text-align: center;
}
.page-contact__brand-title {
  font-size: 32px;
  color: #FFB04D;
  margin-bottom: 20px;
}
.page-contact__brand-text {
  font-size: 16px;
  color: #FFF3E6;
  max-width: 800px;
  margin: 0 auto 30px;
}
@media (max-width: 768px) {
  .page-contact__brand-intro {
    padding: 20px 0;
  }
  .page-contact__brand-title {
    font-size: 26px;
  }
  .page-contact__brand-text {
    font-size: 15px;
  }
}

/* 5. 中奖条 __winner-ticker: Placeholder */
.page-contact__winner-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(25, 27, 34, 0.9); /* Semi-transparent dark background */
  color: #FFB04D;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  display: none;
}
@media (max-width: 768px) {
  .page-contact__winner-ticker {
    font-size: 13px;
    padding: 8px 0;
  }
}

/* 6. 通用图片与容器: Already handled in main responsive section */

/* 7. 按钮与按钮容器: Already handled in main responsive section */

/* 8. 其他模块 (FAQ): Already handled in main responsive section */

/* Global image styles to prevent small icons (already in main contact block) */
.page-contact img {
  min-width: 200px;
  min-height: 200px;
}

/* Overlay and modal styles for game trial (even if not on this page, for compliance) */
.page-contact__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5; /* Important for compliance */
  pointer-events: auto; /* Important for compliance */
  transition: opacity 0.3s ease;
}
.page-contact__game-trial-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important; /* Critical for compliance */
}
.page-contact__game-trial-start {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 6; /* Important for compliance */
  pointer-events: auto; /* Important for compliance */
  touch-action: manipulation; /* Important for compliance */
  border: none;
  box-shadow: 0 5px 15px rgba(255, 130, 26, 0.5);
}
.page-contact__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.page-contact__reward-modal:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
.page-contact__reward-modal-content {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.page-contact__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #FFF3E6;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.page-contact__reward-modal-title {
  color: #FFB04D;
  font-size: 28px;
  margin-bottom: 15px;
}
.page-contact__reward-modal-text {
  color: #FFF3E6;
  font-size: 16px;
  margin-bottom: 25px;
}
.page-contact--reward-open {
  overflow: hidden;
}