/* Global styles from shared.css define body background as var(--deep-navy) which is #08162B (dark) */

/* Ensure light text on dark background for main content */
.page-contact {
  color: var(--Text-Main, #F3F8FF);
  background-color: var(--Deep-Navy, #08162B);
}

/* --- MANDATORY HOMEPAGE CSS BLOCKS (as per instructions, even for non-homepage) --- */
@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;
  }
  /* Promo Strip PC */
  .page-contact__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px;
  }
  .page-contact__promo-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--Card-B-G, #10233F);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  .page-contact__promo-card:hover { transform: translateY(-5px); }
  .page-contact__promo-image-wrapper { flex-shrink: 0; width: 100px; height: 100px; }
  .page-contact__promo-image { width: 100%; height: 100%; object-fit: cover; }
  .page-contact__promo-content { padding: 15px; flex-grow: 1; }
  .page-contact__promo-title { font-size: 18px; font-weight: 700; color: var(--Text-Main, #F3F8FF); margin-bottom: 5px; }
  .page-contact__promo-description { font-size: 14px; color: var(--Text-Secondary, #AFC4E8); line-height: 1.4; }

  /* Hot Games PC */
  .page-contact__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px;
  }
  .page-contact__game-card {
    background: var(--Card-B-G, #10233F);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
  }
  .page-contact__game-card:hover { transform: translateY(-5px); }
  .page-contact__game-image-wrapper { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
  .page-contact__game-image { width: 100%; height: 100%; object-fit: cover; }
  .page-contact__game-content { padding: 15px; }
  .page-contact__game-name { font-size: 16px; font-weight: 700; color: var(--Text-Main, #F3F8FF); margin-bottom: 5px; }
  .page-contact__game-rtp { font-size: 14px; color: var(--Text-Secondary, #AFC4E8); }
  .page-contact__game-desc { font-size: 13px; color: var(--Text-Secondary, #AFC4E8); margin-top: 10px; }

  /* Brand Intro PC */
  .page-contact__brand-intro-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 16px;
    display: block;
  }
  .page-contact__brand-intro-content {
    display: flex;
    gap: 30px;
    align-items: center;
  }
  .page-contact__brand-intro-text { flex: 1; }
  .page-contact__brand-intro-image { flex-shrink: 0; width: 400px; height: 300px; object-fit: cover; border-radius: 8px; }

  /* Winner Ticker PC */
  .page-contact__winner-ticker-section {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px;
  }
  .page-contact__winner-ticker-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--Card-B-G, #10233F);
    border-radius: 5px;
    padding: 10px 15px;
    margin-bottom: 10px;
  }
  .page-contact__winner-name { color: var(--Gold, #F2C14E); font-weight: 600; }
  .page-contact__winner-game { color: var(--Text-Main, #F3F8FF); }
  .page-contact__winner-amount { color: var(--Glow, #4FA8FF); font-weight: 700; }
}

/* --- END MANDATORY HOMEPAGE CSS BLOCKS --- */


.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 30px;
}

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

.page-contact__hero-content {
  max-width: 900px;
  padding: 0 15px;
}

.page-contact__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--Text-Main, #F3F8FF);
}

.page-contact__intro-text {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--Text-Secondary, #AFC4E8);
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #FFFFFF;
  border: none;
}

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

.page-contact__btn-secondary {
  background: transparent;
  color: var(--Text-Main, #F3F8FF);
  border: 2px solid var(--Border, #244D84);
}

.page-contact__btn-secondary:hover {
  background: var(--Border, #244D84);
  transform: translateY(-2px);
}

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

.page-contact__contact-methods,
.page-contact__contact-form-section,
.page-contact__faq-section,
.page-contact__call-to-action {
  padding: 60px 0;
}

.page-contact__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--Text-Main, #F3F8FF);
}

.page-contact__section-description {
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--Text-Secondary, #AFC4E8);
}

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

.page-contact__method-card {
  background: var(--Card-B-G, #10233F);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--Text-Main, #F3F8FF);
  border: 1px solid var(--Border, #244D84);
}

.page-contact__method-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
}

.page-contact__method-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--Gold, #F2C14E);
}

.page-contact__method-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
  color: var(--Text-Secondary, #AFC4E8);
}

.page-contact__method-card .page-contact__btn-primary {
  width: 100%;
  max-width: 250px;
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.page-contact__social-btn {
  width: 100%;
  max-width: 120px;
  padding: 10px 15px;
  font-size: 15px;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--Card-B-G, #10233F);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--Border, #244D84);
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--Text-Main, #F3F8FF);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--Border, #244D84);
  background-color: var(--Deep-Navy, #08162B);
  color: var(--Text-Main, #F3F8FF);
  font-size: 15px;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: var(--Text-Secondary, #AFC4E8);
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--Glow, #4FA8FF);
  box-shadow: 0 0 0 3px rgba(79, 168, 255, 0.3);
}

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  min-width: 180px;
  margin-top: 15px;
}

/* FAQ styles */
details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--Border, #244D84);
  overflow: hidden;
  background: var(--Card-B-G, #10233F);
  color: var(--Text-Main, #F3F8FF);
  box-shadow: 0 4px 15px 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(--Gold, #F2C14E);
}
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(--Border, #244D84), 0.5);
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--Glow, #4FA8FF);
  flex-shrink: 0;
  margin-left: 20px;
  width: 32px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 25px;
  background: var(--Deep-Navy, #08162B);
  border-top: 1px solid var(--Divider, #1B3357);
  border-radius: 0 0 10px 10px;
  color: var(--Text-Secondary, #AFC4E8);
  font-size: 15px;
  line-height: 1.6;
}
details.page-contact__faq-item .page-contact__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Call to action section */
.page-contact__call-to-action {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-contact__call-to-action .page-contact__cta-buttons {
  margin-top: 40px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-bottom: 30px;
  }
  .page-contact__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-contact__intro-text {
    font-size: 15px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__social-btn {
    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__contact-methods,
  .page-contact__contact-form-section,
  .page-contact__faq-section,
  .page-contact__call-to-action {
    padding: 40px 0;
  }
  .page-contact__section-title {
    font-size: clamp(20px, 5vw, 32px);
  }
  .page-contact__section-description {
    font-size: 14px;
    margin-bottom: 30px;
  }
  .page-contact__methods-grid {
    gap: 20px;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__method-title {
    font-size: 20px;
  }
  .page-contact__method-text {
    font-size: 14px;
  }
  .page-contact__social-links {
    gap: 10px;
  }
  .page-contact__contact-form {
    padding: 30px;
  }
  .page-contact__form-label {
    font-size: 15px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px 15px;
    font-size: 14px;
  }
  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: 24px;
    width: 28px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
    font-size: 14px;
  }

  /* General image and container responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__container,
  .page-contact__section,
  .page-contact__card,
  .page-contact__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Promo Strip Mobile */
  .page-contact__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    overflow-x: hidden;
  }
  .page-contact__promo-card {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  .page-contact__promo-image-wrapper { width: 80px; height: 80px; margin-bottom: 10px; }
  .page-contact__promo-content { padding: 0; }
  .page-contact__promo-title { font-size: 16px; margin-bottom: 3px; }
  .page-contact__promo-description { font-size: 12px; }

  /* Hot Games Mobile */
  .page-contact__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
  }
  .page-contact__game-card { padding: 10px; }
  .page-contact__game-name { font-size: 14px; }
  .page-contact__game-rtp, .page-contact__game-desc { display: none; }

  /* Brand Intro Mobile */
  .page-contact__brand-intro-section {
    padding: 30px 15px;
  }
  .page-contact__brand-intro-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-contact__brand-intro-image { width: 100%; height: auto; }

  /* Winner Ticker Mobile (example, assuming fixed bottom) */
  .page-contact__winner-ticker-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--Deep-Navy, #08162B);
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 100;
  }
  .page-contact__winner-ticker-item {
    padding: 8px 10px;
    font-size: 13px;
  }
  body {
    padding-bottom: 60px; /* Adjust if ticker is fixed at bottom */
  }
}

/* Game Trial Overlay & Start Button CSS (MANDATORY as per instructions) */
.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;
}
.page-contact__reward-modal.is-hidden {
  display: none !important;
}
.page-contact__reward-modal-content {
  background: var(--Card-B-G, #10233F);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  color: var(--Text-Main, #F3F8FF);
}
.page-contact__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--Text-Main, #F3F8FF);
  cursor: pointer;
}
.page-contact__reward-modal-title {
  font-size: 28px;
  color: var(--Gold, #F2C14E);
  margin-bottom: 15px;
}
.page-contact__reward-modal-text {
  font-size: 16px;
  margin-bottom: 25px;
}
.page-contact__reward-modal .page-contact__btn-primary {
  width: 100%;
}

/* Divider */
.page-contact__divider {
  width: 80%;
  height: 1px;
  background-color: var(--Divider, #1B3357);
  margin: 40px auto;
}