/* Homepage trial layout CSS - MUST BE INCLUDED VERBATIM as per prompt, even for contact page */
@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;
  }
}

/* General page styles for contact.html */
.page-contact {
  --background-color: #0D0E12;
  --card-bg: #17191F;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;

  color: var(--text-main);
  background: var(--background-color);
  padding-bottom: 50px;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 450px;
  filter: brightness(0.7);
}

.page-contact__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  background: var(--card-bg);
  width: 100%;
  max-width: 800px;
  margin-top: -80px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 2;
  box-sizing: border-box;
}

.page-contact__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-contact__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--primary-color), 0.4);
}

.page-contact__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-contact__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(var(--primary-color), 0.4);
}

/* General Section Styles */
.page-contact__methods-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__community-section,
.page-contact__why-choose-us-section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__dark-section {
  background: var(--card-bg);
}

.page-contact__light-bg {
    background: #ffffff;
    color: #333333;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    margin-top: 40px;
}

.page-contact__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-contact__section-description {
  font-size: 1.1rem;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Contact Methods Grid */
.page-contact__method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  color: var(--text-main);
}

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

.page-contact__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-contact__card-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__card-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-contact__social-icon,
.page-contact__social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.page-contact__social-button {
    width: auto;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
}


.page-contact__social-icon:hover,
.page-contact__social-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

/* Contact Form */
.page-contact__contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: left;
}

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

.page-contact__form-label {
  display: block;
  font-size: 1rem;
  color: var(--deep-orange);
  margin-bottom: 8px;
  font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.3);
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Why Choose Us Section */
.page-contact__why-choose-us-section {
    padding-top: 60px;
    padding-bottom: 60px;
}
.page-contact__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.page-contact__card--feature {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}
.page-contact__card--feature .page-contact__card-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.page-contact__card--feature .page-contact__card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* FAQ Section */
.page-contact__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  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;
  color: var(--primary-color);
}
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(var(--primary-color), 0.1);
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 25px;
  background: var(--card-bg);
  border-radius: 0 0 10px 10px;
  color: var(--text-main);
}
.page-contact__faq-answer p {
    margin-bottom: 15px;
    line-height: 1.6;
}
.page-contact__faq-answer .page-contact__btn-secondary {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Community Section */
.page-contact__social-links--large {
    gap: 20px;
}
.page-contact__social-button {
    min-width: 150px;
    height: 50px;
    font-size: 1.1rem;
    padding: 0 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Reward Modal (from homepage JS, assuming it might be triggered) */
.page-contact__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease;
}
.page-contact__reward-modal:not([hidden]) {
    visibility: visible;
    opacity: 1;
}
.page-contact__reward-modal-content {
  background: var(--card-bg);
  color: var(--text-main);
  padding: 40px;
  border-radius: 15px;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 30px rgba(var(--glow-color), 0.5);
  border: 2px solid var(--primary-color);
}
.page-contact__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
}
.page-contact__reward-modal-close:hover {
  color: var(--primary-color);
}
.page-contact__reward-modal h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
}
.page-contact__reward-modal p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1023px) {
    /* Homepage specific elements are handled by the verbatim block above. */
    /* For contact page, elements like hero-content might need minor tweaks. */
}

@media (max-width: 768px) {
  /* General responsive adjustments */
  .page-contact__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__hero-image {
    max-height: 300px;
  }

  .page-contact__hero-content {
    padding: 30px 15px;
    margin-top: -60px;
  }

  .page-contact__main-title {
    font-size: 2rem;
  }

  .page-contact__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-contact__cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-contact__section-title {
    font-size: 1.8rem;
  }

  .page-contact__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-contact__method-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__card {
    padding: 25px;
  }

  .page-contact__card-title {
    font-size: 1.3rem;
  }

  .page-contact__card-text {
    font-size: 0.95rem;
  }

  .page-contact__social-links {
    gap: 10px;
  }

  .page-contact__social-icon,
  .page-contact__social-button {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  .page-contact__social-button {
    min-width: 120px;
    padding: 8px 15px;
    font-size: 0.95rem;
  }

  .page-contact__form-section {
    padding: 40px 0;
  }

  .page-contact__contact-form {
    margin-top: 20px;
  }

  .page-contact__form-label {
    font-size: 0.95rem;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  /* Why Choose Us Section */
  .page-contact__feature-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  .page-contact__card--feature {
      padding: 20px;
  }
  .page-contact__card--feature .page-contact__card-title {
      font-size: 1.2rem;
  }
  .page-contact__card--feature .page-contact__card-text {
      font-size: 0.9rem;
  }

  /* FAQ specific mobile styles */
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-qtext {
    font-size: 1rem;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
  }
  .page-contact__faq-answer p {
    font-size: 0.95rem;
  }

  /* Image responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Remove specific padding for container which is already handled above */
  .page-contact__container {
      padding-left: 0;
      padding-right: 0;
  }
  /* Re-add padding for content inside container if needed */
  .page-contact__light-bg {
      padding: 30px 15px;
  }
  /* Ensure no padding-top for elements relying on body padding */
  .page-contact__hero-section {
      padding-top: 0;
  }

  /* Button container mobile adaptation */
  .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;
    display: flex;
    flex-direction: column;
  }
  /* Placeholder for required 768px blocks, even if empty for this page */
  /* .page-contact__promo-strip-track { grid-template-columns: repeat(1, 1fr) !important; overflow-x: hidden !important; } */
  /* .page-contact__hot-games-grid { grid-template-columns: repeat(1, 1fr) !important; } */
  /* No specific styles needed for brand-intro, winner-ticker as they are not present or handled by other media queries. */
}

/* Common utility classes */
.page-contact__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}