.page-contact {
  background: var(--background-color, #0D0E12);
  color: var(--text-main-color, #FFF3E6);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-contact__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
  box-sizing: border-box;
}

.page-contact__hero-section {
  padding-top: 10px; /* Rely on body padding-top from shared.css */
  padding-bottom: 40px;
  text-align: center;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
  position: relative;
  overflow: hidden;
}

.page-contact__hero-content {
  max-width: 800px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 2;
}

.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;
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.5);
}

.page-contact__hero-description {
  font-size: 18px;
  color: #FFF3E6;
  margin-bottom: 30px;
}

.page-contact__hero-image-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

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

.page-contact__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  text-shadow: 0 0 5px rgba(255, 140, 26, 0.3);
}

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

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

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

.page-contact__method-card {
  background: #17191F;
  border: 1px solid #A84F0C;
  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;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__method-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  border: 3px solid #FF8C1A;
  padding: 10px;
}

.page-contact__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFA53A;
  margin-bottom: 15px;
}

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

.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
}

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

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F;
  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, 140, 26, 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: 26px;
  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: rgba(255, 140, 26, 0.05);
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
  font-size: 15px;
}

.page-contact__faq-answer p {
  margin: 0;
  padding: 0;
  color: #FFF3E6;
}

.page-contact__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-contact__btn-large {
  padding: 15px 35px;
  font-size: 18px;
}

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

/* General button container responsiveness */
.page-contact__cta-buttons,
.page-contact__button-group,
.page-contact__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- START OF HOMEPAGE SPECIFIC CSS (REQUIRED VERBATIM) --- */
@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;
  }
}
/* --- END OF HOMEPAGE SPECIFIC CSS --- */

/* Mobile responsiveness for contact page elements */
@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-bottom: 20px;
  }

  .page-contact__main-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .page-contact__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-contact__section-title {
    font-size: 24px;
    padding-top: 30px;
  }

  .page-contact__section-description {
    font-size: 15px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-contact__method-card {
    padding: 25px;
  }

  .page-contact__method-icon {
    width: 100px;
    height: 100px;
  }

  .page-contact__card-title {
    font-size: 20px;
  }

  .page-contact__card-text {
    font-size: 14px;
  }

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

  .page-contact__faq-list {
    padding: 0 15px;
  }

  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px 20px;
  }

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

  .page-contact__faq-toggle {
    font-size: 22px;
    width: 25px;
  }

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

  .page-contact__cta-wrapper {
    padding: 0 15px;
  }

  .page-contact__btn-large {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Universal image and container rules for mobile */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

/* Generic styles for components not specific to homepage */
.page-contact__game-trial-overlay.is-hidden { display: none !important; pointer-events: none !important; }
.page-contact__reward-modal { position: fixed; inset: 0; z-index: 10000; display: none; background: rgba(0,0,0,0.7); align-items: center; justify-content: center; }
.page-contact__reward-modal[aria-hidden="false"] { display: flex; }
.page-contact__reward-modal-content { background: #17191F; padding: 30px; border-radius: 10px; text-align: center; max-width: 400px; width: 90%; position: relative; box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.page-contact__reward-modal-close { position: absolute; top: 10px; right: 10px; background: none; border: none; color: #FFF3E6; font-size: 24px; cursor: pointer; }
.page-contact__reward-modal h3 { color: #FFA53A; margin-bottom: 15px; }
.page-contact__reward-modal p { color: #FFF3E6; margin-bottom: 25px; }
.page-contact__reward-modal .page-contact__btn-primary { width: auto; padding: 10px 20px; }