/* Base styles for the contact page */
.page-contact {
  background-color: var(--background-color, #0D0E12); /* Default dark background */
  color: var(--text-main-color, #FFF3E6); /* Default light text color */
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  padding-top: 10px; /* Small top padding for hero section */
}

.page-contact__hero-image-container {
  width: 100%;
  max-height: 500px; /* Limit height */
  overflow: hidden;
  position: relative;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-contact__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 90%;
  max-width: 800px;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #FFF3E6;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-contact__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #FFF3E6;
}

/* Method Grid Section */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

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

.page-contact__method-card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border */
}

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

.page-contact__method-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-contact__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFA53A; /* Auxiliary color */
}

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

.page-contact__card-button {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 6px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__card-button:hover {
  background: #FFA53A;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background-color: #17191F; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border */
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: #FFF3E6;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #A84F0C; /* Border */
  border-radius: 6px;
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
  font-size: 1rem;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #FFA53A;
  box-shadow: 0 0 0 3px rgba(255, 165, 58, 0.3);
}

.page-contact__submit-button {
  padding: 14px 25px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start; /* Align to left */
}

.page-contact__submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Why Us Section */
.page-contact__why-us-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

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

.page-contact__why-us-item {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border */
}

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

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
}
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;
  color: #FFF3E6; /* Text Main */
}
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: #252830; /* Slightly lighter dark background on hover */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6; /* Text Main */
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  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: #0D0E12; /* Background */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6; /* Text Main */
}
.page-contact__faq-answer p {
  margin: 0;
  line-height: 1.6;
}


/* Responsive Design */
@media (max-width: 1023px) {
  .page-contact__hero-section {
    margin-bottom: 30px;
  }
  .page-contact__hero-content {
    width: 95%;
  }
  .page-contact__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-contact__hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }
  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* General mobile settings for images and containers */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__container,
  .page-contact__hero-section,
  .page-contact__methods-section,
  .page-contact__form-section,
  .page-contact__why-us-section,
  .page-contact__faq-section,
  .page-contact__method-card,
  .page-contact__form-wrapper,
  .page-contact__why-us-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-contact__hero-content {
    position: static;
    transform: none;
    padding: 20px 0;
    width: 100%;
  }

  .page-contact__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }

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

  .page-contact__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

  .page-contact__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
  }

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

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

  .page-contact__method-card,
  .page-contact__why-us-item {
    padding: 25px;
  }

  .page-contact__form-wrapper {
    padding: 30px;
  }

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

  .page-contact__submit-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

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

/* Button responsive styles */
.page-contact__cta-button,
.page-contact__card-button,
.page-contact__submit-button {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-contact__cta-buttons, /* If there were button groups */
.page-contact__button-group,
.page-contact__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Dark/Light BG classes for explicit contrast control */
.page-contact__dark-section {
  background-color: #0D0E12;
  color: #FFF3E6;
}

.page-contact__light-bg {
  background-color: #17191F; /* Card BG */
  color: #FFF3E6;
}

/* Text color on brand primary/secondary background */
.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
}

.page-contact__btn-secondary {
  background: #ffffff;
  color: #FF8C1A;
  border: 2px solid #FF8C1A;
}

/* --- START: Homepage-specific CSS from template (REQUIRED TO BE PRESENT) --- */
/* This section is for homepage and not directly used by contact.html, but included as per strict prompt instruction. */
@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__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;}
/* --- END: Homepage-specific CSS --- */