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

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

.page-contact__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

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

.page-contact__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #333333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__description--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

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

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px 15px;
  background: rgba(255, 255, 255, 0.95); /* Slightly opaque background for readability */
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.page-contact__main-title {
  font-size: 42px;
  font-weight: 800;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Info Section */
.page-contact__info-section {
  padding: 60px 0;
}

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

.page-contact__info-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__info-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

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

.page-contact__social-links {
  display: flex;
  gap: 15px;
  margin-top: auto; /* Push buttons to bottom */
  flex-wrap: wrap;
  justify-content: center;
}

.page-contact__social-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__social-btn:hover {
  transform: translateY(-2px);
}

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

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

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

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

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

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

.page-contact__form-submit-btn {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #ffffff;
}

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;
}

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

/* CTA Section */
.page-contact__cta-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

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

.page-contact__cta-section .page-contact__description {
  color: #f0f0f0;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.page-contact__btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}

/* --- Global Image/Button/Container Responsive Styles (MUST BE INCLUDED) --- */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact a[class*="btn"],
.page-contact button[type="submit"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-buttons,
.page-contact__social-links,
.page-contact__info-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Homepage-specific media queries (REQUIRED VERBATIM for CSS field, even if not directly used by this page's content) --- */
@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;
  }
  /* Placeholder for .page-contact__promo-strip for 1024px+ */
  .page-contact__promo-strip {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 15px;
    box-sizing: border-box;
  }
  .page-contact__promo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  .page-contact__promo-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
  .page-contact__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 15px;
    text-align: center;
  }
  .page-contact__hot-games-item-name,
  .page-contact__hot-games-item-rtp,
  .page-contact__hot-games-item-desc {
    display: block;
  }
  .page-contact__winner-ticker {
    position: static;
    padding: 10px 0;
  }
}

/* --- Mobile Responsive Styles (REQUIRED for 768px and below) --- */
@media (max-width: 768px) {
  .page-contact {
    font-size: 15px;
    line-height: 1.5;
  }
  .page-contact__container {
    padding: 0 10px;
  }
  .page-contact__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-contact__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .page-contact__hero-section {
    margin-bottom: 20px;
  }
  .page-contact__hero-image {
    max-height: 300px;
  }
  .page-contact__hero-content {
    margin-top: -50px;
    padding: 20px 10px;
  }
  .page-contact__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  /* Info Section */
  .page-contact__info-section {
    padding: 40px 0;
  }
  .page-contact__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__info-card {
    padding: 20px;
  }
  .page-contact__card-title {
    font-size: 20px;
  }
  .page-contact__card-text {
    font-size: 15px;
  }
  .page-contact__social-links {
    flex-direction: column;
    gap: 10px;
  }
  .page-contact__social-btn {
    width: 100%;
  }

  /* Form Section */
  .page-contact__form-section {
    padding: 40px 0;
  }
  .page-contact__contact-form {
    padding: 20px;
  }
  .page-contact__form-group {
    margin-bottom: 20px;
  }
  .page-contact__form-label {
    font-size: 15px;
    margin-bottom: 8px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
    font-size: 15px;
  }
  .page-contact__form-submit-btn {
    padding: 12px 20px;
    font-size: 16px;
  }

  /* FAQ Section */
  .page-contact__faq-section {
    padding: 40px 0;
  }
  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;
  }

  /* CTA Section */
  .page-contact__cta-section {
    padding: 40px 0;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    width: 100%; /* Ensure buttons are full width */
  }

  /* Universal Image/Container/Button Adaptaion 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__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"],
  .page-contact button[type="submit"] {
    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;
  }

  /* Homepage specific elements for 768px (REQUIRED VERBATIM) */
  .page-contact__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Example for promo strip */
    overflow-x: hidden;
  }
  .page-contact__promo-card {
    flex-direction: column !important;
    text-align: center;
  }
  .page-contact__promo-icon {
    margin-bottom: 10px;
  }
  .page-contact__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-contact__hot-games-item-name,
  .page-contact__hot-games-item-rtp,
  .page-contact__hot-games-item-desc {
    display: none !important;
  }
  .page-contact__brand-intro {
    display: block;
    padding: 20px 15px;
  }
  .page-contact__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 8px 15px;
  }
}

/* Default styles for game trial overlay/modal (REQUIRED VERBATIM for CSS field) */
.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;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  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;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
}
.page-contact__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}