/* Base styles for payment methods page */
.page-payment-methods {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* Light background for the page */
}

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

.page-payment-methods__section {
  padding: 60px 0;
}

.page-payment-methods__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand color for titles */
}

.page-payment-methods__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* Hero Section */
.page-payment-methods__hero-section {
  padding: 10px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-payment-methods__dark-section {
  background: #017439; /* Brand main color */
  color: #ffffff;
}

.page-payment-methods__dark-section .page-payment-methods__section-title,
.page-payment-methods__dark-section .page-payment-methods__main-title {
  color: #ffffff;
}

.page-payment-methods__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-payment-methods__hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
  padding: 0 20px;
}

.page-payment-methods__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-payment-methods__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  z-index: 1;
}

.page-payment-methods__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* CTA Buttons */
.page-payment-methods__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-payment-methods__cta-buttons--center {
  margin-top: 50px;
}

.page-payment-methods__btn-primary,
.page-payment-methods__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-payment-methods__btn-primary {
  background: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-payment-methods__btn-primary:hover {
  background: #e00e0e;
  border-color: #e00e0e;
  transform: translateY(-2px);
}

.page-payment-methods__btn-secondary {
  background: #ffffff;
  color: #017439; /* Brand main color */
  border: 2px solid #017439;
}

.page-payment-methods__btn-secondary:hover {
  background: #f0f0f0;
  border-color: #017439;
  transform: translateY(-2px);
}

/* Methods Grid */
.page-payment-methods__methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-payment-methods__method-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-payment-methods__method-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-payment-methods__card-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-payment-methods__card-dark .page-payment-methods__method-title {
  color: #ffffff;
}

.page-payment-methods__method-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__method-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-payment-methods__method-description {
  font-size: 16px;
  line-height: 1.7;
}

/* Guide Section */
.page-payment-methods__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-payment-methods__step-item {
  text-align: center;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-payment-methods__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-payment-methods__step-title {
  font-size: 26px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-payment-methods__step-description {
  font-size: 17px;
  line-height: 1.7;
}

/* Notes Section */
.page-payment-methods__notes-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 900px;
}

.page-payment-methods__note-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-payment-methods__note-title {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-payment-methods__note-description {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.7;
}

/* FAQ Section */
.page-payment-methods__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-payment-methods__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

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

details.page-payment-methods__faq-item summary.page-payment-methods__faq-question:hover {
  background: #f5f5f5;
}

.page-payment-methods__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-payment-methods__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-payment-methods__faq-item .page-payment-methods__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Universal Image & Button Responsiveness */
.page-payment-methods img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-payment-methods__section,
.page-payment-methods__container,
.page-payment-methods__method-card,
.page-payment-methods__step-item,
.page-payment-methods__note-item,
.page-payment-methods__faq-item {
  box-sizing: border-box;
}

/* Homepage trial template CSS - REQUIRED */
@media (max-width: 1023px) {
  .page-payment-methods__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-payment-methods__hero-brand,
  .page-payment-methods__hero-jackpot {
    display: none !important;
  }
  .page-payment-methods__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-payment-methods__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial-topbar,
  .page-payment-methods__game-trial-bottombar {
    display: none !important;
  }
  .page-payment-methods__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-payment-methods__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-payment-methods__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-payment-methods__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-payment-methods__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-payment-methods__hero-brand,
  .page-payment-methods__hero-jackpot,
  .page-payment-methods__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-payment-methods__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-payment-methods__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-payment-methods__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-payment-methods__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  .page-payment-methods__promo-strip {
    margin-top: 16px;
  }
  .page-payment-methods__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-payment-methods__promo-card {
    display: flex;
    flex-direction: row;
    text-align: left;
  }
  .page-payment-methods__promo-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 15px;
  }
  .page-payment-methods__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .page-payment-methods__hot-game-card {
    text-align: center;
  }
  .page-payment-methods__hot-game-name,
  .page-payment-methods__hot-game-rtp,
  .page-payment-methods__hot-game-description {
    display: block;
  }
}

/* Mobile responsiveness (max-width: 768px) */
@media (max-width: 768px) {
  .page-payment-methods {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-payment-methods__container {
    padding: 15px;
  }

  .page-payment-methods__section {
    padding: 30px 0;
  }

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

  .page-payment-methods__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-payment-methods__hero-section {
    padding: 10px 0 30px;
  }

  .page-payment-methods__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-payment-methods__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-payment-methods__hero-image-wrapper {
    margin-top: 20px;
  }

  .page-payment-methods__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-payment-methods__btn-primary,
  .page-payment-methods__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-payment-methods__cta-buttons--center {
    margin-top: 30px;
    padding: 0 15px;
  }

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

  .page-payment-methods__method-card {
    padding: 20px;
  }

  .page-payment-methods__method-title {
    font-size: 20px;
  }

  .page-payment-methods__method-description {
    font-size: 15px;
  }

  .page-payment-methods__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-payment-methods__step-item {
    padding: 20px;
  }

  .page-payment-methods__step-title {
    font-size: 22px;
  }

  .page-payment-methods__step-description {
    font-size: 15px;
  }

  .page-payment-methods__notes-list {
    margin-top: 25px;
  }

  .page-payment-methods__note-item {
    padding: 20px;
  }

  .page-payment-methods__note-title {
    font-size: 20px;
  }

  .page-payment-methods__note-description {
    font-size: 15px;
  }

  .page-payment-methods__faq-list {
    margin-top: 25px;
  }

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

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

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

  /* Mobile specific image adaptation */
  .page-payment-methods img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-payment-methods__section,
  .page-payment-methods__card,
  .page-payment-methods__container,
  .page-payment-methods__method-card,
  .page-payment-methods__step-item,
  .page-payment-methods__note-item,
  .page-payment-methods__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Homepage specific media queries (required to be present) */
  .page-payment-methods__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
    gap: 15px;
  }
  .page-payment-methods__promo-card {
    flex-direction: column;
    text-align: center;
  }
  .page-payment-methods__promo-image {
    margin: 0 auto 10px;
  }
  .page-payment-methods__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-payment-methods__hot-game-name,
  .page-payment-methods__hot-game-rtp,
  .page-payment-methods__hot-game-description {
    display: none;
  }
  .page-payment-methods__brand-intro {
    display: block; /* Ensure it's visible if it exists */
  }
  .page-payment-methods__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 0;
  }
  body {
    padding-bottom: 50px; /* Adjust based on ticker height */
  }
  .page-payment-methods__game-trial-overlay.is-hidden {
    display: none !important;
  }
}

/* Default overlay for game trial (required by template) */
.page-payment-methods__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #fff;
  font-size: 1.5em;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.page-payment-methods__game-trial-overlay.is-hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}
.page-payment-methods__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  background: #C30808;
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.page-payment-methods__game-trial-start:hover {
  background: #e00e0e;
}

/* Reward Modal styles (required by template) */
.page-payment-methods__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease;
}
.page-payment-methods__reward-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}
.page-payment-methods__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  position: relative;
  color: #333;
}
.page-payment-methods__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}
.page-payment-methods__reward-modal-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 15px;
}
.page-payment-methods__reward-modal-text {
  font-size: 1.1em;
  margin-bottom: 25px;
}
.page-payment-methods__reward-modal-btn {
  background: #017439;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}
.page-payment-methods__reward-modal-btn:hover {
  background: #005f2f;
}