/* Base Styles */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #333333);
  background: var(--bg-color, #F5F7FA);
}

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

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

.page-contact__section-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #E53935;
}

.page-contact__section-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact a[class*="button"],
.page-contact a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.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: #E53935;
  color: #ffffff;
}

/* Hero Section */
.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background: #F5F7FA;
}

.page-contact__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.page-contact__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for responsive font size */
  font-weight: 800;
  line-height: 1.2;
  color: #E53935;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.page-contact__description {
  font-size: 19px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 30px;
}

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

.page-contact__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-contact__channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-contact__channel-card {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__channel-icon {
  width: 100%;
  max-width: 200px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
}

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

.page-contact__channel-text {
  font-size: 16px;
  color: #333333;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background: #E53935;
  color: #ffffff;
}

.page-contact__form-section .page-contact__section-title {
  color: #ffffff;
}

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

.page-contact__contact-form {
  max-width: 600px;
  margin: 0 auto 30px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: left;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}

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

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

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

.page-contact__form-submit {
  width: auto;
  min-width: 180px;
  padding: 12px 30px;
  font-size: 18px;
  background: linear-gradient(180deg, #FF5A4F 0%, #FF5A4F 100%); /* Adjusted for contrast */
  color: #ffffff;
  border: none;
}

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

.page-contact__form-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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;
  text-align: left;
  color: #333333;
}

.page-contact__faq-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Safety Section */
.page-contact__safety-section {
  padding: 60px 0;
  background: #E53935;
  color: #ffffff;
}

.page-contact__safety-section .page-contact__section-title {
  color: #ffffff;
}

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

.page-contact__safety-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.page-contact__feature-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.page-contact__feature-item p {
  font-size: 16px;
  color: #f0f0f0;
}

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

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

.page-contact__social-button {
  background: #FF5A4F;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__social-button:hover {
  background: #E53935;
}

/* About Section */
.page-contact__about-section {
  padding: 60px 0;
  background: #333333; /* Darker background for contrast with white text */
  color: #ffffff;
}

.page-contact__about-section .page-contact__section-title {
  color: #FF5A4F;
}

.page-contact__about-section .page-contact__section-description {
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

.page-contact__about-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  text-align: left;
  padding: 0 15px;
}

.page-contact__about-list li {
  background: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 16px;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-contact__about-list li a {
  color: #FF5A4F;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__about-list li a:hover {
  text-decoration: underline;
}

/* --- Homepage Specific CSS Blocks (as required by prompt) --- */
/* This section contains CSS that might typically belong to index.css or shared.css
   but is included here due to strict output requirements for the 'css' field. */

@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 */
  .page-contact__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 15px;
  }
  .page-contact__promo-card {
    display: flex;
    flex-direction: row;
    text-align: left;
  }
  .page-contact__promo-card-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    margin-right: 15px;
  }
  .page-contact__promo-card-content {
    flex-grow: 1;
  }

  /* Hot Games */
  .page-contact__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 15px;
  }
  .page-contact__hot-game-card-image-wrapper {
    margin-bottom: 10px;
  }
  .page-contact__hot-game-card-name,
  .page-contact__hot-game-card-rtp,
  .page-contact__hot-game-card-desc {
    display: block;
    text-align: center;
  }
}

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

  .page-contact__section-title {
    font-size: 26px;
  }

  .page-contact__section-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-contact__hero-content {
    padding: 0 15px;
  }

  .page-contact__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-contact__description {
    font-size: 16px;
  }

  /* General Images and Containers */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__channels-grid,
  .page-contact__safety-features,
  .page-contact__social-links,
  .page-contact__about-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 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,
  .page-contact__social-links {
    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;
  }

  /* Promo Strip */
  .page-contact__promo-strip-track {
    grid-template-columns: 1fr; /* Single column for mobile */
    overflow-x: hidden;
    padding: 0 15px;
  }
  .page-contact__promo-card {
    flex-direction: column; /* Stack image and text */
    text-align: center;
  }
  .page-contact__promo-card-image {
    margin: 0 auto 15px auto;
  }

  /* Hot Games */
  .page-contact__hot-games-grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns for mobile */
    gap: 15px;
    padding: 0 15px;
  }
  .page-contact__hot-game-card-name,
  .page-contact__hot-game-card-rtp,
  .page-contact__hot-game-card-desc {
    display: none; /* Hide for mobile to save space */
  }
  .page-contact__hot-game-card-image-wrapper {
    margin-bottom: 0;
  }

  /* Brand Intro (if visible on mobile) */
  .page-contact__brand-intro-content {
    padding: 0 15px;
  }
  .page-contact__brand-intro-features {
    flex-direction: column;
    gap: 15px;
  }

  /* Winner Ticker (if present) */
  .page-contact__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 60px; /* Adjust body padding for fixed ticker */
  }

  /* FAQ specific mobile styles */
  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  .page-contact__faq-qtext { font-size: 15px; }
  details.page-contact__faq-item .page-contact__faq-answer { padding: 0 15px 15px; }
}

/* Overlay for Game Trial (Homepage specific) */
.page-contact__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 5;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.page-contact__game-trial-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important; /* Ensure it's hidden */
}

.page-contact__game-trial-start {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 15px 30px;
  font-size: 20px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  border: none;
}

.page-contact__game-trial-start:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Reward Modal (Homepage specific) */
.page-contact__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
  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: #ffffff;
  color: #333333;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-contact__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}

.page-contact__reward-modal-close:hover {
  color: #E53935;
}

.page-contact__reward-modal-title {
  font-size: 28px;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 20px;
}

.page-contact__reward-modal-text {
  font-size: 18px;
  margin-bottom: 30px;
}

.page-contact__reward-modal-button {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  border: none;
}

.page-contact__reward-modal-button:hover {
  opacity: 0.9;
}

/* Body overflow control for modal */
body.page-contact--reward-open {
  overflow: hidden;
}