/* REQUIRED HOMEPAGE GAME TRIAL CSS (even for contact.css, as per prompt) */
/* 须含：1023px试玩重置、1024px三栏300px、overlay z-index、promo、hot-games、768px */
@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;
  }
}

@media (max-width: 768px) {
  /* Placeholder for homepage promo strip and hot games grid as per prompt */
  .page-contact__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
  }
  .page-contact__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Specific game trial and modal styles as per prompt */
.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;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-contact__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-contact__reward-modal-content {
  background: var(--page-contact-card-bg);
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  position: relative;
  border: 1px solid var(--page-contact-border-color);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}
.page-contact__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--page-contact-text-main);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.page-contact__reward-modal-close:hover {
  color: var(--page-contact-primary-color);
}
.page-contact__reward-modal-title {
  font-size: 28px;
  color: var(--page-contact-primary-color);
  margin-bottom: 15px;
}
.page-contact__reward-modal-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-contact-text-main);
  margin-bottom: 25px;
}
.page-contact__reward-modal-btn {
  background: var(--page-contact-button-gradient);
  color: var(--page-contact-light-text);
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s ease;
}
.page-contact__reward-modal-btn:hover {
  opacity: 0.9;
}
/* END REQUIRED HOMEPAGE GAME TRIAL CSS */

:root {
  --page-contact-primary-color: #F2C14E;
  --page-contact-secondary-color: #FFD36B;
  --page-contact-card-bg: #111111;
  --page-contact-background: #0A0A0A;
  --page-contact-text-main: #FFF6D6;
  --page-contact-border-color: #3A2A12;
  --page-contact-glow-color: #FFD36B;
  --page-contact-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --page-contact-dark-text: #333333; /* For light backgrounds */
  --page-contact-light-text: #ffffff; /* For dark backgrounds */
}

/* Base styles for the contact page content */
.page-contact {
  background-color: var(--page-contact-background); /* Dark background */
  color: var(--page-contact-text-main); /* Light text for readability */
  padding-bottom: 50px; /* Add some padding at the bottom */
}

.page-contact__section {
  padding: 40px 0;
  border-bottom: 1px solid var(--page-contact-border-color);
}

.page-contact__section:last-of-type {
  border-bottom: none;
}

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

.page-contact__main-title,
.page-contact__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Use clamp for H1 */
  font-weight: 700;
  text-align: center;
  color: var(--page-contact-primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__section-description,
.page-contact__hero-description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--page-contact-text-main);
}

.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: var(--page-contact-background);
  position: relative;
  overflow: hidden;
}

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

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly for visual effect, but text is below */
  background: var(--page-contact-card-bg); /* Darker background for text box */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-contact-border-color);
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-contact__btn-primary {
  background: var(--page-contact-button-gradient);
  color: var(--page-contact-light-text);
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.3);
}

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

.page-contact__btn-secondary {
  background: transparent;
  color: var(--page-contact-primary-color);
  border: 2px solid var(--page-contact-primary-color);
}

.page-contact__btn-secondary:hover {
  background: var(--page-contact-primary-color);
  color: var(--page-contact-dark-text); /* Ensure contrast */
  transform: translateY(-2px);
}

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

.page-contact__card {
  background: var(--page-contact-card-bg);
  border: 1px solid var(--page-contact-border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-contact-text-main);
}

.page-contact__card-title {
  font-size: 22px;
  color: var(--page-contact-primary-color);
  margin-bottom: 15px;
}

.page-contact__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-contact__card-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-contact__card-phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--page-contact-secondary-color);
  margin-bottom: 20px;
}

.page-contact__card-button {
  width: 100%; /* Make buttons full width in card */
  margin-top: auto; /* Push button to bottom */
}

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

.page-contact__social-btn {
  padding: 10px 20px;
  font-size: 15px;
  width: calc(50% - 10px); /* Two buttons per row */
}

/* Contact Form Section */
.page-contact__contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  background: var(--page-contact-card-bg);
  border: 1px solid var(--page-contact-border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--page-contact-border-color);
  border-radius: 5px;
  background-color: #222222; /* Slightly lighter dark for input */
  color: var(--page-contact-text-main);
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 246, 214, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--page-contact-primary-color);
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: 700;
}

/* FAQ Section */
.page-contact__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-contact-border-color);
  overflow: hidden;
  background: var(--page-contact-card-bg);
  color: var(--page-contact-text-main);
}
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: #1a1a1a; /* Slightly lighter dark on hover */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-contact-primary-color);
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-contact-secondary-color);
  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: #1a1a1a; /* Slightly lighter dark for answer area */
  border-radius: 0 0 5px 5px;
}
.page-contact__faq-answer p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--page-contact-text-main);
}
.page-contact__faq-answer .page-contact__btn-secondary {
  margin-top: 10px;
  display: inline-block;
  padding: 8px 15px;
  font-size: 14px;
}