/* CSS for Contact Page (contact.css) */

/* Global styles within page-contact scope */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
  background-color: var(--page-contact-background-color); /* Fallback to Background */
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

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

.page-contact__section {
  padding: 40px 0;
}

.page-contact__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__section-description {
  font-size: 18px;
  color: var(--page-contact-text-secondary-color); /* Fallback to Text Secondary */
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__hero-section {
  background: linear-gradient(135deg, #0A4B2C 0%, #08160F 100%); /* Deep Green to Background */
  padding: 60px 0 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-contact__hero-content {
  max-width: 900px;
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
  padding: 0 15px;
}

.page-contact__main-title {
  font-size: 48px;
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 20px;
  color: var(--page-contact-text-secondary-color); /* Fallback to Text Secondary */
  margin-bottom: 30px;
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  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%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

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

.page-contact__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Brighter green */
  border: 2px solid #2AD16F;
}

.page-contact__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

/* Introduction Section */
.page-contact__introduction-section {
  background-color: var(--page-contact-background-color); /* Fallback to Background */
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
}

.page-contact__introduction-section p {
  color: var(--page-contact-text-secondary-color); /* Fallback to Text Secondary */
  margin-bottom: 15px;
  text-align: justify;
}

/* Contact Channels Section */
.page-contact__contact-channels {
  background-color: var(--page-contact-card-bg-color); /* Fallback to Card BG */
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
}

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

.page-contact__channel-card {
  background-color: var(--page-contact-deep-green-color); /* Fallback to Deep Green */
  border: 1px solid var(--page-contact-border-color); /* Fallback to Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  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.2);
}

.page-contact__channel-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-contact__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
  margin-bottom: 15px;
}

.page-contact__card-text {
  font-size: 16px;
  color: var(--page-contact-text-secondary-color); /* Fallback to Text Secondary */
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Contact Form Section */
.page-contact__contact-form-section {
  background-color: var(--page-contact-background-color); /* Fallback to Background */
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--page-contact-card-bg-color); /* Fallback to Card BG */
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--page-contact-border-color); /* Fallback to Border */
}

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

.page-contact__form-label {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
  margin-bottom: 8px;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--page-contact-border-color); /* Fallback to Border */
  border-radius: 5px;
  background-color: var(--page-contact-deep-green-color); /* Fallback to Deep Green */
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
  font-size: 16px;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: var(--page-contact-text-secondary-color); /* Fallback to Text Secondary */
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #2AD16F; /* Brighter green */
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.2);
}

.page-contact__form-submit {
  width: auto;
  cursor: pointer;
  margin-top: 10px;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: var(--page-contact-card-bg-color); /* Fallback to Card BG */
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
}

.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 var(--page-contact-border-color); /* Fallback to Border */
  overflow: hidden;
  background: var(--page-contact-deep-green-color); /* Fallback to Deep Green */
}

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

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.5); /* Lighter Border color */
}

.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--page-contact-glow-color); /* Fallback to Glow */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 25px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with opacity */
  border-radius: 0 0 10px 10px;
  color: var(--page-contact-text-secondary-color); /* Fallback to Text Secondary */
}

.page-contact__faq-answer p {
  margin: 0;
  padding-top: 15px;
  text-align: justify;
}

.page-contact__faq-answer a {
  color: #2AD16F; /* Brighter green for links */
  text-decoration: underline;
}

.page-contact__faq-answer a:hover {
  color: #57E38D; /* Glow color on hover */
}

/* Commitment Section */
.page-contact__commitment-section {
  background-color: var(--page-contact-background-color); /* Fallback to Background */
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
}

.page-contact__commitment-section p {
  color: var(--page-contact-text-secondary-color); /* Fallback to Text Secondary */
  margin-bottom: 15px;
  text-align: justify;
}

.page-contact__commitment-section ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-contact__commitment-section li {
  background-color: var(--page-contact-deep-green-color); /* Fallback to Deep Green */
  border-left: 5px solid #2AD16F; /* Brighter green */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
  font-weight: 600;
}

/* Tips Section */
.page-contact__tips-section {
  background-color: var(--page-contact-card-bg-color); /* Fallback to Card BG */
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
}

.page-contact__tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-contact__tip-item {
  background-color: var(--page-contact-deep-green-color); /* Fallback to Deep Green */
  border: 1px solid var(--page-contact-border-color); /* Fallback to Border */
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  color: var(--page-contact-text-secondary-color); /* Fallback to Text Secondary */
}

.page-contact__tip-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--page-contact-text-main-color); /* Fallback to Text Main */
  margin-bottom: 10px;
}

.page-contact__tip-item p {
  margin-bottom: 0;
  text-align: justify;
}

.page-contact__link {
  color: #2AD16F;
  text-decoration: underline;
}

.page-contact__link:hover {
  color: #57E38D;
}

/* Custom Color Variables */
:root {
  --page-contact-primary-color: #11A84E;
  --page-contact-secondary-color: #22C768;
  --page-contact-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-contact-card-bg-color: #11271B;
  --page-contact-background-color: #08160F;
  --page-contact-text-main-color: #F2FFF6;
  --page-contact-text-secondary-color: #A7D9B8;
  --page-contact-border-color: #2E7A4E;
  --page-contact-glow-color: #57E38D;
  --page-contact-gold-color: #F2C14E;
  --page-contact-divider-color: #1E3A2A;
  --page-contact-deep-green-color: #0A4B2C;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .page-contact__hero-section {
    padding: 40px 0 20px;
  }
  .page-contact__main-title {
    font-size: 40px;
  }
  .page-contact__hero-description {
    font-size: 18px;
  }
  .page-contact__section-title {
    font-size: 28px;
  }
  .page-contact__channels-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__hero-section {
    padding: 30px 0 15px;
  }
  .page-contact__main-title {
    font-size: 32px;
  }
  .page-contact__hero-description {
    font-size: 16px;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__section-title {
    font-size: 24px;
  }
  .page-contact__section-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-contact__channel-card,
  .page-contact__tip-item {
    padding: 20px;
  }
  .page-contact__card-title,
  .page-contact__tip-title {
    font-size: 20px;
  }
  .page-contact__form {
    padding: 25px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
  }
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-qtext {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 24px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
  }
  .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;
  }
  .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;
  }
  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* Hardcoded CSS for homepage trial (as per global instructions for 'css' field) */
@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;
  }
}

@media (max-width: 768px) {
  .page-contact__promo-strip-track{
    grid-template-columns:repeat(4,1fr);
    overflow-x:hidden;
  }
  .page-contact__hot-games-grid{
    grid-template-columns:repeat(2,1fr);
  }
  .page-contact__brand-intro {
    display: block;
  }
  .page-contact__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  body {
    padding-bottom: 50px; /* Adjust based on ticker height */
  }
  main.page-content {
    padding-bottom: 50px; /* Ensure content clears ticker */
  }
}

.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-close {
  /* Styles for the close button */
  position: absolute;
  top: 10px;
  right: 10px;
  background: #c62828;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
}