/* CSS Reset & Base Styles for .page-contact */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
}

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

.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #2A1212; /* Card BG */
  margin-bottom: 40px;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

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

.page-contact__hero-content {
  padding-top: 30px;
  max-width: 800px;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-contact__intro-description,
.page-contact__intro-text {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #FFF1E8;
}

.page-contact__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-contact__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

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

.page-contact__channels-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__other-support-section {
  padding: 40px 0;
  margin-bottom: 40px;
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
}

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

.page-contact__channel-card {
  background-color: #140C0C; /* Background */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.page-contact__channel-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(243, 197, 77, 0.5));
}

.page-contact__channel-title {
  font-size: 1.6em;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-contact__channel-text {
  font-size: 1em;
  color: #FFF1E8;
}

.page-contact__contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: #140C0C; /* Background */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  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: 1.1em;
  color: #F3C54D; /* Gold */
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 5px;
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #F3C54D; /* Gold */
  box-shadow: 0 0 8px rgba(243, 197, 77, 0.4);
}

.page-contact__form-submit-btn {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  padding: 15px 25px;
  border-radius: 8px;
  border: none;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-contact__form-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.page-contact__faq-list {
  margin-top: 30px;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #140C0C; /* Background */
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
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;
  color: #F3C54D; /* Gold */
}
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: #2A1212; /* Card BG */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  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: #2A1212; /* Card BG */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8; /* Text Main */
}
.page-contact__faq-answer p {
  margin-bottom: 10px;
}
.page-contact__inline-link {
  color: #FFB04A;
  text-decoration: none;
  font-weight: bold;
}
.page-contact__inline-link:hover {
  text-decoration: underline;
}
.page-contact__faq-cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  margin-top: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-contact__faq-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

.page-contact__info-card {
  background-color: #140C0C; /* Background */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-contact__info-title {
  font-size: 1.6em;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-contact__info-text {
  font-size: 1em;
  color: #FFF1E8;
}

.page-contact__social-icons {
  width: 150px; /* Adjusted size for social icons */
  height: auto;
  margin-top: 20px;
  filter: drop-shadow(0 0 5px rgba(243, 197, 77, 0.5));
}

.page-contact__copyright-section {
  text-align: center;
  padding: 30px 20px;
  background-color: #0d0707; /* Slightly darker for footer-like feel */
  color: rgba(255, 241, 232, 0.7);
  font-size: 0.9em;
  margin-top: 40px;
  border-top: 1px solid #6A1E1E;
}

/* --- Responsive Styles --- */

/* Mobile/Tablet specific for homepage elements (as per strict instruction, 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;
  }
}

/* Desktop specific for homepage elements (as per strict instruction) */
@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 other homepage modules if they existed */
  .page-contact__promo-strip {
    margin-top: 16px;
  }
  .page-contact__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .page-contact__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  .page-contact__hot-games-name,
  .page-contact__hot-games-rtp,
  .page-contact__hot-games-desc {
    display: block;
  }
}

/* Mobile specific styles for all page-contact elements */
@media (max-width: 768px) {
  .page-contact {
    font-size: 15px;
    line-height: 1.5;
  }
  
  .page-contact__container {
    padding: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Section titles */
  .page-contact__main-title {
    font-size: 2em;
  }
  .page-contact__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .page-contact__section-description {
    margin-bottom: 20px;
  }

  /* Hero Section */
  .page-contact__hero-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .page-contact__hero-content {
    padding-top: 20px;
  }
  .page-contact__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* CTA Button */
  .page-contact__cta-button {
    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;
  }

  /* Channels Grid */
  .page-contact__channels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Channel Card */
  .page-contact__channel-card {
    padding: 20px;
  }
  .page-contact__channel-title {
    font-size: 1.4em;
  }
  .page-contact__channel-icon {
    width: 80px;
  }

  /* Contact Form */
  .page-contact__contact-form {
    padding: 20px;
  }
  .page-contact__form-label {
    font-size: 1em;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
  }
  .page-contact__form-submit-btn {
    font-size: 1.1em;
    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;
  }

  /* FAQ Section */
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 1em;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }
  .page-contact__faq-cta-button {
    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;
  }

  /* Other Support Section */
  .page-contact__other-support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__info-card {
    padding: 20px;
  }
  .page-contact__info-title {
    font-size: 1.4em;
  }
  .page-contact__social-icons {
    max-width: 100% !important;
    width: 150px !important; /* Keep original width for small icon groups */
    height: auto !important;
  }

  /* Generic 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;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Homepage related mobile styles as per instruction (even if not used by contact page) */
  .page-contact__promo-strip-track {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for promo strip */
    gap: 10px;
    overflow-x: hidden;
  }
  .page-contact__hot-games-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for hot games */
    gap: 10px;
  }
  .page-contact__hot-games-name,
  .page-contact__hot-games-rtp,
  .page-contact__hot-games-desc {
    display: none;
  }
  .page-contact__brand-intro { /* Assuming this is a mobile-only brand section */
    display: block;
  }
  .page-contact__winner-ticker { /* Assuming this is a fixed bottom bar */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
  }
  /* Adjust body/main padding for fixed ticker if it existed */
  /* body { padding-bottom: 50px; } */
}

/* Default overlay and modal styles for homepage game trial (as per instruction) */
.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;
}
.page-contact__reward-modal.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-contact__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #C61F1F;
  color: #FFF1E8;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 10001;
}