/* General styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background: #140C0C; /* Background */
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}

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

.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  display: flex; /* Ensure content is below image */
  flex-direction: column; /* Image then content */
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.page-contact__hero-content {
  padding: 20px 16px;
  max-width: 900px;
}

.page-contact__main-title {
  font-size: clamp(28px, 3.5vw, 48px); /* H1 clamp as per rules */
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* For mobile */
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-contact__btn-secondary {
  background: #2A1212; /* Card BG */
  color: #FFB04A; /* Gold-like */
  border: 2px solid #FFB04A; /* Gold-like border */
}

.page-contact__btn-secondary:hover {
  background: #FFB04A;
  color: #2A1212;
}

.page-contact__info-section,
.page-contact__faq-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background: #140C0C; /* Background */
  color: #FFF1E8; /* Text Main */
}

.page-contact__dark-section {
  background: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
  padding: 60px 0;
  margin-bottom: 40px;
}

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

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

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

.page-contact__method-card {
  background: #2A1212; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #6A1E1E; /* Border */
  color: #FFF1E8; /* Text Main */
}

.page-contact__method-icon {
  width: 100%; /* Ensure image is responsive */
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.page-contact__method-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #F3C54D; /* Gold */
}

.page-contact__method-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: #FFF1E8; /* Text Main */
}

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

.page-contact__social-btn {
  background: #6A1E1E; /* Deep Red */
  color: #FFF1E8; /* Text Main */
  border: none;
  padding: 10px 20px;
}

.page-contact__social-btn:hover {
  background: #7E0D0D; /* Deep Red darker */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: #140C0C; /* Background */
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #6A1E1E; /* Border */
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #FFF1E8; /* Text Main */
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 8px;
  background: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
  font-size: 16px;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #F3C54D; /* Gold */
  box-shadow: 0 0 0 3px rgba(243, 197, 77, 0.3);
}

.page-contact__contact-form .page-contact__btn-primary {
  width: 100%;
  padding: 15px;
  font-size: 20px;
}

/* FAQ Section */
details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
}
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: rgba(106, 30, 30, 0.4); /* Border with transparency */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF1E8; /* Text Main */
}
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: rgba(20, 12, 12, 0.8); /* Background with transparency */
  border-radius: 0 0 8px 8px;
  color: #FFF1E8; /* Text Main */
}
details.page-contact__faq-item .page-contact__faq-answer p {
  margin-bottom: 0;
}

/* ==================================================================== */
/* === Mandatory Homepage CSS Blocks (as per prompt, apply to .page-contact) === */
/* ==================================================================== */

/* A. @media (max-width: 1023px) - Must be exactly as written */
@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;
  }
}

/* B. @media (min-width: 1024px) - Must be exactly as written */
@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;
  }
}

/* C. @media (max-width: 768px) - Must include all categories */
@media (max-width: 768px) {
  /* General responsive image styles */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General container styles for mobile */
  .page-contact__container,
  .page-contact__section,
  .page-contact__card,
  .page-contact__contact-form,
  .page-contact__method-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons and button containers */
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__social-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;
  }
  .page-contact__social-links {
    flex-direction: column;
  }

  /* Specific contact page elements */
  .page-contact__hero-content {
    padding: 15px;
  }
  .page-contact__main-title {
    font-size: 26px;
  }
  .page-contact__description {
    font-size: 16px;
  }
  .page-contact__section-title {
    font-size: 28px;
  }
  .page-contact__section-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-contact__contact-methods {
    grid-template-columns: 1fr;
  }
  .page-contact__method-card {
    padding: 20px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    font-size: 15px;
  }
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }

  /* Placeholder for homepage specific blocks if they were on contact page */
  /* 1. 首屏试玩: Already covered by 1023px block, no need to repeat here. */
  /* 2. 优惠 __promo-strip: If this contact page had a promo strip, it would be styled here */
  .page-contact__promo-strip-track { /* Example if promo strip was here */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-x: hidden;
  }
  /* 3. 热门 __hot-games: If this contact page had hot games, it would be styled here */
  .page-contact__hot-games-grid { /* Example if hot games were here */
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-x: hidden;
  }
  /* 4. 品牌 __brand-intro: If this contact page had brand intro, it would be styled here */
  .page-contact__brand-intro { /* Example if brand intro was here */
    padding: 20px 15px;
    text-align: center;
  }
  /* 5. 中奖条 __winner-ticker: If this contact page had winner ticker, it would be styled here */
  .page-contact__winner-ticker { /* Example if winner ticker was here */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #FFF1E8;
    padding: 10px 15px;
    z-index: 999;
  }
  body { /* Adjust body padding for fixed ticker */
    padding-bottom: 50px; /* Example height of ticker */
  }
}

/* Other mandatory styles from prompt or common sense */
.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;}
/* Reward Modal Specific Styles (as per JS requirement) */
.page-contact__reward-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-contact__reward-modal[hidden] {
    display: none; /* For actual hidden attribute */
}

.page-contact__reward-modal:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.page-contact__reward-modal-content {
    background: #2A1212; /* Card BG */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 2px solid #F3C54D; /* Gold border */
}

.page-contact__reward-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #F3C54D; /* Gold */
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.3s ease;
}

.page-contact__reward-modal-close:hover {
    color: #FFB04A; /* Lighter Gold */
}

.page-contact__reward-modal-title {
    font-size: 30px;
    color: #F3C54D; /* Gold */
    margin-bottom: 20px;
}

.page-contact__reward-modal-text {
    font-size: 18px;
    color: #FFF1E8; /* Text Main */
    margin-bottom: 30px;
}

.page-contact__reward-modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color */
    color: #FFF1E8; /* Text Main */
    border: none;
    transition: all 0.3s ease;
}

.page-contact__reward-modal-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}