/* Base styles for the support page */
.page-support {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--deep-navy-color);
  line-height: 1.6;
}

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

.page-support__section-title {
  font-size: clamp(1.8em, 2.5vw, 2.5em);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-support__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

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

.page-support__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-support__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border);
  box-shadow: none;
}

.page-support__btn-secondary:hover {
  background: rgba(29, 95, 209, 0.2);
  color: #FFFFFF;
  border-color: #1D5FD1;
  transform: translateY(-2px);
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  padding-top: 10px; /* Small top padding as body padding-top is handled by shared */
}

.page-support__hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.page-support__hero-text-area {
  text-align: center;
  padding: 0 20px;
}

.page-support__hero-title {
  font-size: clamp(2.5em, 4vw, 3.5em);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 15px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 900px;
  line-height: 1.7;
}

.page-support__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Intro Section */
.page-support__intro-section {
  padding: 60px 0;
  background-color: var(--card-b-g);
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-support__intro-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Channels Section */
.page-support__channels-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-support__channel-card {
  background-color: var(--card-b-g);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-support__card-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-support__card-description {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 60px 0;
  background-color: var(--deep-navy-color);
  margin-bottom: 40px;
}

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

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--card-b-g);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

details.page-support__faq-item summary.page-support__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-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
  display: none;
}

details.page-support__faq-item summary.page-support__faq-question:hover {
  background: rgba(29, 95, 209, 0.1);
}

.page-support__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: rgba(16, 35, 63, 0.7);
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* Contact Form Section */
.page-support__contact-form-section {
  padding: 60px 0;
  background-color: var(--card-b-g);
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-support__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

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

.page-support__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main);
  font-size: 1em;
}

.page-support__form-input,
.page-support__form-textarea {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.08);
  color: #F3F8FF;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-support__form-input:focus,
.page-support__form-textarea:focus {
  border-color: #1D5FD1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.3);
}

.page-support__form-textarea {
  resize: vertical;
}

.page-support__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

/* Safety Section */
.page-support__safety-section {
  padding: 60px 0;
  background-color: var(--deep-navy-color);
  margin-bottom: 40px;
}

.page-support__safety-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Bottom Section */
.page-support__cta-bottom-section {
  padding: 60px 0;
  background-color: var(--card-b-g);
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-support__cta-bottom-section .page-support__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General Image Styling */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1023px) {
  /* These are homepage specific trial layout rules, included as per strict instruction */
  .page-support__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-support__hero-brand,
  .page-support__hero-jackpot {
    display: none !important;
  }
  .page-support__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-support__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-support__game-trial-topbar,
  .page-support__game-trial-bottombar {
    display: none !important;
  }
  .page-support__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-support__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-support__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-support__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  /* These are homepage specific trial layout rules, included as per strict instruction */
  .page-support__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-support__hero-brand,
  .page-support__hero-jackpot,
  .page-support__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-support__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-support__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-support__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-support__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-support__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
  .page-support__hero-title {
    font-size: 2em;
  }

  .page-support__hero-description {
    font-size: 1em;
  }

  .page-support__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support a[class*="button"],
  .page-support 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-support__hero-section,
  .page-support__intro-section,
  .page-support__channels-section,
  .page-support__faq-section,
  .page-support__contact-form-section,
  .page-support__safety-section,
  .page-support__cta-bottom-section {
    padding: 30px 0;
  }

  .page-support__container {
    padding: 0 15px;
  }

  .page-support__section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .page-support__section-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-support__channel-card {
    padding: 20px;
  }

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

  .page-support__faq-qtext {
    font-size: 1em;
  }

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

  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
  }

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

  /* Mobile image adaptation */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-support__section,
  .page-support__card,
  .page-support__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button container mobile adaptation */
  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-support__cta-buttons {
    flex-direction: column;
  }
}