/* -------------------------------------------------------------------------- *
 *                          PAGE-CONTACT SPECIFIC STYLES                        *
 * -------------------------------------------------------------------------- */

/* Base styles for the contact page */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

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

.page-contact__section {
  padding: 60px 0;
}

.page-contact__dark-section {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
}

.page-contact__light-bg {
  background-color: #111111; /* Card BG, but used for section background here for contrast */
  color: #FFF6D6;
}

.page-contact__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Main Color */
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-contact__text-block {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #FFF6D6;
}

/* Hero Section */
.page-contact__hero-section {
  padding: 10px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

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

.page-contact__main-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow */
  line-height: 1.2;
}

.page-contact__description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #FFF6D6;
}

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

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E6B030 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #F2C14E; /* Main Color */
  border: 2px solid #F2C14E; /* Main Color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Contact Form Section */
.page-contact__contact-form-section {
  background-color: #0A0A0A; /* Background */
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #3A2A12; /* Border */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFF6D6;
  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: #F2C14E; /* Main Color */
  outline: none;
}

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

.page-contact__form .page-contact__btn-primary {
  width: 100%;
  padding: 18px;
  font-size: 20px;
}

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

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

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

.page-contact__channel-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__channel-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #F2C14E; /* Main Color */
}

.page-contact__channel-description {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 25px;
}

/* Support Hours Section */
.page-contact__support-hours-section {
  background-color: #0A0A0A; /* Background */
}

.page-contact__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-contact__content-text {
  flex: 1;
  text-align: left;
}

.page-contact__content-text .page-contact__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-contact__content-text .page-contact__btn-primary {
  margin-top: 20px;
}

.page-contact__content-image {
  flex: 1;
  text-align: center;
}

.page-contact__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #111111; /* Card BG */
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #0A0A0A; /* Background */
  box-shadow: 0 2px 10px 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: #FFD36B; /* Glow */
  font-size: 18px;
  font-weight: 600;
}

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;
  line-height: 1.5;
  text-align: left;
}

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

details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 20px;
  background: #111111; /* Card BG */
  border-radius: 0 0 8px 8px;
  color: #FFF6D6;
  font-size: 16px;
}

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

.page-contact__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-contact__conclusion-section {
  padding-bottom: 80px;
  background-color: #0A0A0A; /* Background */
}

.page-contact__conclusion-section .page-contact__btn-primary {
  margin-top: 20px;
}

/* -------------------------------------------------------------------------- *
 *                             RESPONSIVE STYLES                              *
 * -------------------------------------------------------------------------- */

/* Homepage specific CSS as per prompt's "返回格式" section - even if not used by contact.html HTML */
@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;
  }
  /* Promo strip for PC */
  .page-contact__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .page-contact__promo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 15px;
  }
  .page-contact__promo-icon {
    flex-shrink: 0;
    margin-right: 15px;
  }
  .page-contact__promo-content {
    flex-grow: 1;
  }
  /* Hot games for PC */
  .page-contact__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .page-contact__hot-games-item {
    text-align: center;
  }
  .page-contact__hot-games-name,
  .page-contact__hot-games-rtp,
  .page-contact__hot-games-desc {
    display: block;
  }
}

/* Mobile specific styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__section {
    padding: 40px 0;
  }

  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .page-contact__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Hero Section Mobile */
  .page-contact__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .page-contact__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-contact__description {
    font-size: 17px;
    margin-bottom: 25px;
  }

  /* Buttons Mobile */
  .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; /* Add margin between stacked buttons */
  }

  /* Button containers Mobile */
  .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; /* Stack buttons vertically */
  }

  /* Form Mobile */
  .page-contact__form {
    padding: 20px;
  }

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

  /* Channels Grid Mobile */
  .page-contact__channels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Support Hours Mobile */
  .page-contact__content-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-contact__content-text,
  .page-contact__content-image {
    flex: none;
    width: 100%;
  }

  .page-contact__content-text .page-contact__text-block {
    text-align: center;
  }

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

  .page-contact__faq-qtext {
    font-size: 16px;
  }

  .page-contact__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

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

  /* Promo strip for mobile */
  .page-contact__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-x: hidden;
    padding: 0 15px;
  }
  .page-contact__promo-card {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  .page-contact__promo-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .page-contact__promo-title {
    font-size: 16px;
  }
  .page-contact__promo-description {
    font-size: 14px;
  }

  /* Hot games for mobile */
  .page-contact__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-contact__hot-games-name,
  .page-contact__hot-games-rtp,
  .page-contact__hot-games-desc {
    display: none; /* Hide details on mobile for hot games */
  }
  .page-contact__hot-games-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Brand intro for mobile */
  .page-contact__brand-intro {
    padding: 30px 15px;
  }

  /* Winner ticker for mobile */
  .page-contact__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px 15px;
  }
  body {
    padding-bottom: 50px; /* Adjust if winner ticker height changes */
  }

  /* Universal image and container adaptation 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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Common game trial overlay styles (as per prompt's "返回格式" section) */
.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 {
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: #FFF6D6;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10001;
  border: none;
}
.page-contact__reward-modal-close:hover {
  background: rgba(0,0,0,0.7);
}