/* Homepage-specific CSS blocks (REQUIRED by prompt for output JSON, even if not directly used by this inner page) */
@media (max-width: 1023px) {
  .page-contact__home-hero { /* Note: This class is not used on 'contact.html' but required in output CSS */
    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 { /* Note: This class is not used on 'contact.html' but required in output CSS */
    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;
  }
}

/* General styles for .page-contact */
.page-contact {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient background for the section */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width of the image itself */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px; /* Space between image and text */
}

.page-contact__hero-content {
  text-align: center;
  padding: 0 20px 40px;
  max-width: 800px;
  color: #ffffff; /* White text on dark/gradient background */
}

.page-contact__main-title {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Section titles and descriptions */
.page-contact__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: #E53935; /* Brand color for titles */
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Important for button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

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

.page-contact__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-contact__btn-secondary:hover {
  background: #f5f5f5;
  color: #E53935;
  transform: translateY(-2px);
}

/* Channels Section */
.page-contact__channels-section {
  padding: 60px 0;
  background: #F5F7FA; /* Background color */
}

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

.page-contact__channel-card {
  background: #FFFFFF; /* Card background */
  border: 1px solid #E0E0E0; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333; /* Text color */
}

.page-contact__channel-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-contact__channel-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-contact__channel-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1; /* Pushes button to bottom */
}

.page-contact__contact-form {
  width: 100%;
  text-align: left;
  margin-top: 20px;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #E0E0E0;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #FFFFFF;
}

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

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

.page-contact__contact-form .page-contact__btn-primary {
  width: 100%;
  margin-top: 15px;
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  width: 100%;
}

.page-contact__social-btn {
  flex: 1;
  min-width: 120px; /* Ensure buttons don't get too small */
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #FFFFFF; /* Card background */
  color: #333333; /* Text color */
}
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: #f5f5f5;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 0;
  background: #E53935; /* Dark background */
  color: #ffffff; /* White text on dark background */
  text-align: center;
}

.page-contact__commitment-section .page-contact__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-contact__commitment-section .page-contact__section-description {
  color: #f0f0f0;
}

.page-contact__commitment-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 600px;
  text-align: left;
}

.page-contact__commitment-item {
  font-size: 1.1em;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
}

.page-contact__commitment-item:last-child {
  border-bottom: none;
}

.page-contact__commitment-item::before {
  content: '✔';
  color: #FF5A4F; /* Auxiliary color for checkmark */
  margin-right: 10px;
  font-weight: bold;
}

/* Address Section */
.page-contact__address-section {
  padding: 60px 0;
  background: #F5F7FA;
  color: #333333;
}

.page-contact__address-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__address-details p,
.page-contact__address-details address {
  margin-bottom: 10px;
  font-style: normal;
}

.page-contact__notes-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-contact__notes-list {
  list-style: disc;
  padding-left: 20px;
}

.page-contact__notes-list li {
  margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .page-contact__main-title {
    font-size: 2.5em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
}

/* REQUIRED @media (max-width: 768px) blocks for homepage elements (even if not present on this page) */
@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-top: 10px; /* Small top padding */
  }
  .page-contact__main-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__section-description {
    font-size: 1em;
  }
  
  /* Buttons */
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__social-btn,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* ensure height adjusts */
    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; /* Stack social buttons */
    gap: 10px;
  }
  .page-contact__social-btn {
    min-width: unset; /* Remove min-width to allow full width */
  }
  
  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__container,
  .page-contact__channel-card,
  .page-contact__contact-form,
  .page-contact__social-links,
  .page-contact__faq-list,
  .page-contact__commitment-list,
  .page-contact__address-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific contact page section adjustments */
  .page-contact__channels-grid {
    grid-template-columns: 1fr; /* Stack cards */
  }
  .page-contact__channel-card {
    padding: 20px;
  }
  .page-contact__faq-qtext { font-size: 15px; }
  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  
  /* Placeholder for homepage modules (REQUIRED for output, even if not on this page) */
  /* 2. Ưu đãi __promo-strip */
  .page-contact__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Example: 2 columns on mobile */
    overflow-x: hidden !important;
    gap: 15px;
  }
  .page-contact__promo-strip-item img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 10px;
  }
  .page-contact__promo-strip-item-content {
    flex-direction: column !important;
    text-align: center;
  }

  /* 3. Trò chơi nổi bật __hot-games */
  .page-contact__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns on mobile */
    gap: 15px;
  }
  .page-contact__hot-games-item-name,
  .page-contact__hot-games-item-rtp,
  .page-contact__hot-games-item-desc {
    display: none !important; /* Hide details on mobile */
  }
  .page-contact__hot-games-item img {
    width: 100% !important;
    height: auto !important;
  }

  /* 4. Giới thiệu thương hiệu __brand-intro */
  .page-contact__brand-intro-section {
    padding: 20px 15px !important;
  }
  .page-contact__brand-intro-content {
    flex-direction: column !important;
    text-align: center;
  }

  /* 5. Dòng thông báo người thắng __winner-ticker */
  .page-contact__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    padding: 10px 15px !important;
    box-sizing: border-box !important;
    background-color: rgba(0,0,0,0.8); /* Example background */
    color: #fff; /* Example text color */
  }
  body.page-contact {
    padding-bottom: 50px !important; /* Example height for ticker */
  }
}