/* General styles for Contact page */
.page-contact {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--bg-color, #08160F); /* Default background from custom palette */
  line-height: 1.6;
}

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

.page-contact__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--bg-color, #08160F);
  text-align: center;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

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

.page-contact__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 18px;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-contact__section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  text-align: center;
}

.page-contact__section-description {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  margin-right: 15px;
}

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

.page-contact__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--border, #2E7A4E);
}

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

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: var(--card-bg, #11271B);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--bg-color, #08160F);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 8px;
  background-color: #0A4B2C; /* Deep Green for input fields */
  color: var(--text-main, #F2FFF6);
  font-size: 16px;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: var(--text-secondary, #A7D9B8);
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--glow, #57E38D);
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

.page-contact__contact-form .page-contact__btn-primary {
  width: 100%;
  margin-right: 0;
}

.page-contact__form-image {
  display: none; /* Hidden on desktop, shown on mobile if needed */
}

/* Other Methods Section */
.page-contact__other-methods-section {
  padding: 60px 0;
  background-color: var(--bg-color, #08160F);
}

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

.page-contact__method-card {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-contact__method-icon {
  width: 100%; /* Ensure image is responsive */
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__method-title {
  font-size: 24px;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
}

.page-contact__method-text {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg, #11271B);
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border, #2E7A4E);
  overflow: hidden;
  background: var(--bg-color, #08160F);
}

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: rgba(46, 122, 78, 0.2); /* Darker shade of border for hover */
}

.page-contact__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #F2FFF6);
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow, #57E38D);
  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: #0A4B2C; /* Deep Green for answer background */
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary, #A7D9B8);
}

.page-contact__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
}

.page-contact__faq-answer a {
  color: var(--glow, #57E38D);
  text-decoration: underline;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 60px 0;
  background-color: var(--bg-color, #08160F);
  text-align: center;
}

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

.page-contact__cta-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* --- Global Image and Button Responsive Styles (Mandatory for all pages) --- */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Homepage Specific CSS (Mandatory for JSON output, even if not semantically for this 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;
  }
}

/* --- Mobile Responsive (max-width: 768px) for Contact Page Elements --- */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__container {
    padding: 15px;
  }

  .page-contact__hero-section {
    padding-bottom: 30px;
  }

  .page-contact__main-title {
    font-size: 30px;
  }

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

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

  .page-contact__section-description {
    font-size: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-right: 0 !important;
    margin-bottom: 15px;
  }

  .page-contact__hero-content .page-contact__btn-primary {
    margin-bottom: 15px;
  }

  .page-contact__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__form-section,
  .page-contact__other-methods-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 40px 0;
  }

  .page-contact__contact-form {
    padding: 20px;
  }

  .page-contact__form-label {
    font-size: 15px;
  }

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

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .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 Specific CSS (continued, for JSON output completeness) --- */
.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__promo-strip {
  margin-top: 16px;
}
.page-contact__promo-strip-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  overflow-x: hidden;
}
.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 {
  text-align: center;
}
.page-contact__reward-modal-close {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  position: absolute;
  top: 10px;
  right: 10px;
}
.page-contact--reward-open {
  overflow: hidden;
}