/* Homepage Trial CSS (Verbatim from prompt, even if not directly relevant to contact page) */
@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;
  }
}

/* 768px media queries for homepage-specific modules (as per prompt, even if not present on contact page) */
@media (max-width: 768px) {
  /* 2. Ưu đãi __promo-strip */
  .page-contact__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-x: hidden;
  }
  .page-contact__promo-card {
    flex-direction: column;
    text-align: center;
  }
  .page-contact__promo-card-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .page-contact__promo-card-title {
    font-size: 18px;
  }
  .page-contact__promo-card-text {
    font-size: 14px;
  }
  .page-contact__promo-card-button {
    width: 100%;
    margin-top: 10px;
  }

  /* 3. Hot games __hot-games */
  .page-contact__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-contact__hot-games-item {
    text-align: center;
  }
  .page-contact__hot-games-item img {
    width: 100%;
    height: auto;
    margin-bottom: 5px;
  }
  .page-contact__hot-games-name,
  .page-contact__hot-games-rtp,
  .page-contact__hot-games-desc {
    display: none; /* Hide for mobile as per prompt */
  }

  /* 4. Thương hiệu __brand-intro (if it were present and needed display on mobile) */
  .page-contact__brand-intro {
    padding: 20px 15px;
  }
  .page-contact__brand-intro-content {
    flex-direction: column;
    text-align: center;
  }

  /* 5. Dòng người thắng __winner-ticker */
  .page-contact__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    font-size: 13px;
    z-index: 999;
  }
  body {
    padding-bottom: 40px; /* Adjust body padding for fixed ticker */
  }

  /* 6. General images and containers */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__container,
  .page-contact__section,
  .page-contact__method-card,
  .page-contact__form-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 7. Buttons and button containers */
  .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;
  }
  .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;
    flex-direction: column; /* Ensure buttons stack vertically */
  }
  
  /* 8. Other modules (Contact page specific: FAQ, Forms) */
  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  .page-contact__faq-qtext { font-size: 15px; }
  .page-contact__faq-toggle { font-size: 24px; width: 24px; }
  details.page-contact__faq-item .page-contact__faq-answer { padding: 0 15px 15px; }
  .page-contact__faq-answer p { font-size: 14px; }
}

/* Contact Page Specific Styles */
body {
  background-color: #0D0E12; /* Custom background color */
  color: #FFF3E6; /* Custom text color */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 0); /* Rely on shared for body padding, add 0 as fallback */
}

.page-contact {
  padding: 10px 0 40px;
}

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

.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0 60px;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
  margin-bottom: 40px;
}

.page-contact__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

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

.page-contact__hero-description {
  font-size: 18px;
  color: #FFF3E6;
  line-height: 1.6;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Adjust max-width for image */
  margin-top: 20px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

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

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

.page-contact__contact-methods {
  padding: 40px 0;
  background-color: #0D0E12;
}

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

.page-contact__method-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-icon {
  width: 100%; /* Ensure image fills card area responsively */
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__method-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFB04D;
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 15px;
  color: #FFF3E6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
}

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

.page-contact__form-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #A84F0C;
  border-radius: 5px;
  background-color: #0D0E12;
  color: #FFF3E6;
  font-size: 16px;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #777;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FFA53A;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 165, 58, 0.3);
}

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

.page-contact__submit-button {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  margin-top: 10px;
}

.page-contact__faq-section {
  padding: 60px 0 80px;
  background-color: #0D0E12;
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* 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;
}
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.1);
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A;
  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: #0D0E12; /* Background */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6;
}
.page-contact__faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #FFF3E6;
}

/* Mobile specific adjustments for contact page */
@media (max-width: 768px) {
  .page-contact__main-title {
    font-size: clamp(24px, 6vw, 36px);
    padding: 0 15px;
  }
  .page-contact__hero-description,
  .page-contact__section-description {
    font-size: 15px;
    padding: 0 15px;
  }
  .page-contact__section-title {
    font-size: 28px;
    padding: 0 15px;
  }
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__method-icon {
    max-width: 200px;
  }
  .page-contact__method-title {
    font-size: 20px;
  }
  .page-contact__method-text {
    font-size: 14px;
  }
  .page-contact__form {
    padding: 25px;
  }
  .page-contact__form-label,
  .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: 15px; }
  .page-contact__faq-toggle { font-size: 24px; width: 24px; }
  details.page-contact__faq-item .page-contact__faq-answer { padding: 0 15px 15px; }
  .page-contact__faq-answer p { font-size: 14px; }
}