/* 智能颜色对比度保障系统 */
/* Body background is #0A0A0A (dark), so text should be light */
.page-contact {
  color: #FFF6D6; /* Text Main */
  background: #0A0A0A; /* Background */
}

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

.page-contact__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F2C14E; /* Main color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-contact__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: #FFF6D6;
}

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

.page-contact__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 500px;
  overflow: hidden;
}

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

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 15px;
}

.page-contact__main-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #FFD36B; /* Auxiliary color for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-contact__description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-contact__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Dark text for light button */
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-contact__btn-secondary {
  display: inline-block;
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main color for text */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid #F2C14E;
  cursor: pointer;
}

.page-contact__btn-secondary:hover {
  background: #F2C14E;
  color: #0A0A0A; /* Dark text for light button */
  transform: translateY(-1px);
}

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 60px 0;
  background: #0A0A0A;
}

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

.page-contact__method-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-contact__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-contact__method-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #FFF6D6;
  margin-bottom: 25px;
}

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

.page-contact__form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #111111;
  border-radius: 12px;
  padding: 40px;
  border: 1px solid #3A2A12;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  background: #0A0A0A; /* Dark background for input */
  color: #FFF6D6;
  font-size: 16px;
  box-sizing: border-box;
}

.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: #F2C14E;
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.3);
}

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

.page-contact__faq-list {
  margin-top: 40px;
  margin-bottom: 40px;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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: #F2C14E;
}

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(242, 193, 78, 0.1);
}

.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD36B; /* Auxiliary color for question text */
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 25px;
  background: #0A0A0A; /* Background */
  border-radius: 0 0 12px 12px;
  color: #FFF6D6;
  font-size: 16px;
  line-height: 1.7;
}

.page-contact__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

.page-contact__faq-illustration {
  text-align: center;
  margin-top: 40px;
}

.page-contact__faq-illustration img {
  max-width: 80%;
  height: auto;
  border-radius: 12px;
  display: inline-block;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 0;
  background: #0A0A0A;
}

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

.page-contact__commitment-item {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__item-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-contact__commitment-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #FFF6D6;
}

.page-contact__support-team-image {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

.page-contact__support-team-image img {
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  display: inline-block;
}

.page-contact__important-note {
  font-size: 16px;
  line-height: 1.6;
  color: #FFF6D6;
  background: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 20px;
  margin-top: 40px;
  text-align: center;
}

/* Global image responsiveness */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__section,
.page-contact__card,
.page-contact__container,
.page-contact__form-wrapper {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Homepage Trial Layout CSS (as per strict instruction, using page-contact prefix) */
@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;
  }
}

/* Mobile responsiveness (max-width: 768px) */
@media (max-width: 768px) {
  .page-contact__section-title {
    font-size: 28px;
  }

  .page-contact__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-contact__hero-section {
    padding-bottom: 40px;
  }

  .page-contact__hero-content {
    margin-top: 30px;
  }

  .page-contact__main-title {
    font-size: 2.5rem; /* Adjusted for mobile */
  }

  .page-contact__description {
    font-size: 1rem;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 16px;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__form-wrapper {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .page-contact__form-illustration {
    order: -1; /* Move image above form on mobile */
    margin-bottom: 20px;
  }

  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;
    margin-left: 15px;
  }

  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  .page-contact__faq-illustration img,
  .page-contact__support-team-image img {
    max-width: 100%;
  }

  .page-contact__commitment-points {
    grid-template-columns: 1fr;
  }

  /* General image and container responsiveness for mobile */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-wrapper,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__commitment-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button containers mobile adaptation */
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
}

/* Fixed header spacing (if shared.css doesn't handle body padding-top) */
/* The current setup assumes shared.css handles body padding-top, so only small top-padding for hero */

/* Homepage specific elements (as per strict instruction, even if not directly used on contact) */
.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;}.page-contact__reward-modal.is-hidden{display:none!important;}.page-contact__reward-modal-close{position:absolute;top:15px;right:15px;background:none;border:none;color:#FFF;font-size:30px;cursor:pointer;z-index:10;}