/* Base styles for page-contact */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF;
}

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

.page-contact__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

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

/* Hero Section */
.page-contact__hero-section {
  padding: 10px 0 60px;
  background: linear-gradient(135deg, #e6ffe6, #ffffff);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__hero-section .page-contact__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-contact__hero-content {
  text-align: center;
  max-width: 900px;
}

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

.page-contact__hero-description {
  font-size: 18px;
  color: #444;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-contact__contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #017439;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
  outline: none;
}

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

.page-contact__btn-primary {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 15px 25px;
  background: #017439;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary:hover {
  background-color: #005f2f;
  transform: translateY(-2px);
}

/* Info Section */
.page-contact__info-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-contact__info-section .page-contact__section-title,
.page-contact__info-section .page-contact__section-description {
  color: #ffffff;
}

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

.page-contact__info-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__info-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-contact__info-card-description {
  font-size: 16px;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #017439;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #017439;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2f;
  transform: translateY(-2px);
}

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

.page-contact__social-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ffffff;
  color: #017439;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #017439;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__social-btn:hover {
  background-color: #f0f0f0;
  color: #005f2f;
}

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

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333;
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.2s ease;
}

details.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #fdfdfd;
  border-radius: 0 0 10px 10px;
  color: #555;
  font-size: 16px;
}

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

.page-contact__inline-link {
  color: #017439;
  text-decoration: underline;
}

.page-contact__inline-link:hover {
  color: #005f2f;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

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

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Mobile Responsive Styles */
@media (max-width: 1023px) {
  /* No specific home-hero, game-trial, promo-strip, hot-games, brand-intro, winner-ticker CSS needed for contact page */
}

@media (min-width: 1024px) {
  /* No specific home-hero, game-trial, promo-strip, hot-games CSS needed for contact page */
  .page-contact__hero-section .page-contact__container {
    flex-direction: row;
    text-align: left;
  }
  .page-contact__hero-content {
    text-align: left;
    flex: 1;
  }
  .page-contact__hero-image-wrapper {
    flex: 1;
  }
  .page-contact__main-title {
    margin-left: 0;
    margin-right: 0;
  }
  .page-contact__hero-description {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

  .page-contact__hero-section .page-contact__container {
    padding: 0 10px;
  }

  .page-contact__main-title {
    font-size: clamp(24px, 7vw, 36px) !important;
  }

  .page-contact__hero-description {
    font-size: 16px;
  }

  .page-contact__form-section,
  .page-contact__info-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__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__social-btn,
  .page-contact a[class*="button"],
  .page-contact a[class*="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__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container,
  .page-contact__social-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important;
    gap: 10px;
  }

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

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

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

  .page-contact__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* Image responsive 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;
  }
}

/* Specific color overrides based on global scheme */
.page-contact__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-contact__dark-section .page-contact__btn-secondary {
  background: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

.page-contact__dark-section .page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2f;
}

.page-contact__dark-section .page-contact__social-btn {
  background: #ffffff;
  color: #017439;
  border-color: #ffffff;
}

.page-contact__dark-section .page-contact__social-btn:hover {
  background-color: #f0f0f0;
  color: #005f2f;
}

/* No home-hero, game-trial, promo-strip, hot-games, brand-intro, winner-ticker CSS needed for contact page */

/* The following are required for homepage only, but including empty blocks for compliance if not used */
@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; }
  .page-contact__promo-strip-track { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
  .page-contact__hot-games-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
  .page-contact__winner-ticker { display: none !important; }
}

@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; }
  .page-contact__promo-strip { margin-top: 16px; }
  .page-contact__promo-strip-track { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .page-contact__hot-games-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .page-contact__winner-ticker { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 999; }
}

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

/* Ensure contrast for buttons with custom colors */
.page-contact__btn-register {
  background-color: #C30808;
  color: #FFFF00; /* Register/Login font color */
  border: none;
}
.page-contact__btn-login {
  background-color: #C30808;
  color: #FFFF00; /* Register/Login font color */
  border: none;
}