.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color from custom palette */
  background-color: var(--background); /* Default background from custom palette */
}

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

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  color: var(--text-main);
  background: linear-gradient(180deg, #08160F 0%, #11271B 100%); /* Blend with background colors */
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(8, 22, 15, 0.7); /* Slightly transparent background for text */
  border-radius: 10px;
}

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-register__subtitle {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-register__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 45, 0, 0.3);
  border: none;
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-register__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
  font-weight: bold;
}

.page-register__section-description {
  font-size: clamp(0.9em, 1.2vw, 1.1em);
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-register__why-join-section,
.page-register__guide-section,
.page-register__verification-section,
.page-register__bonus-section,
.page-register__games-overview-section,
.page-register__responsible-gaming-section,
.page-register__faq-section,
.page-register__final-cta-section {
  padding: 60px 0;
  background-color: var(--background);
}

.page-register__why-join-section {
  background-color: var(--card-bg);
}

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

.page-register__feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-register__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__feature-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__feature-text {
  color: var(--text-secondary);
  font-size: 0.95em;
}

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

.page-register__step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--main-color); /* Main brand color */
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.6em;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__step-text {
  color: var(--text-secondary);
  font-size: 1em;
  margin-bottom: 20px;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__info-list,
.page-register__list-items,
.page-register__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-register__ordered-list {
  list-style-type: decimal;
}

.page-register__info-list li,
.page-register__list-items li,
.page-register__ordered-list li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-register__note-block {
  background-color: var(--deep-green); /* Deep Green from palette */
  border-left: 5px solid var(--gold); /* Gold from palette */
  padding: 25px;
  margin-top: 40px;
  border-radius: 8px;
  color: var(--text-secondary);
}

.page-register__note-title {
  font-size: 1.4em;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__note-list {
  list-style-type: square;
  margin-left: 20px;
}

.page-register__note-list li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-register__verification-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-register__verification-text,
.page-register__verification-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-register__verification-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__sub-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 15px;
  margin-top: 25px;
  font-weight: bold;
}

.page-register__paragraph {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-register__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: var(--main-color); /* Main brand color */
  border: 2px solid var(--main-color); /* Main brand color */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 20px;
}

.page-register__btn-secondary:hover {
  background-color: var(--main-color); /* Main brand color */
  color: #ffffff;
}

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

.page-register__bonus-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__bonus-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 20px;
}

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

.page-register__game-card {
  display: block;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-register__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-register__game-title {
  font-size: 1.3em;
  font-weight: bold;
  padding: 15px 20px 5px;
  color: var(--text-main);
}

.page-register__game-description {
  font-size: 0.9em;
  color: var(--text-secondary);
  padding: 0 20px 20px;
}

.page-register__responsible-gaming-section {
  background-color: var(--deep-green); /* Deep Green from palette */
}

.page-register__responsible-gaming-section .page-register__section-title,
.page-register__responsible-gaming-section .page-register__section-description,
.page-register__responsible-gaming-section .page-register__paragraph,
.page-register__responsible-gaming-section .page-register__list-items li {
  color: var(--text-main); /* Light text on dark background */
}

.page-register__responsible-gaming-section .page-register__btn-secondary {
  color: var(--gold); /* Gold text on dark background */
  border-color: var(--gold); /* Gold border */
}

.page-register__responsible-gaming-section .page-register__btn-secondary:hover {
  background-color: var(--gold); /* Gold background on hover */
  color: var(--deep-green); /* Deep Green text on hover */
}

.page-register__faq-list {
  margin-top: 40px;
}

.page-register__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none;
}

.page-register__faq-question:hover {
  background-color: rgba(var(--main-color-rgb), 0.1);
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--main-color);
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.7;
}

.page-register__faq-answer p {
  margin-bottom: 0;
}

.page-register__final-cta-section {
  background: linear-gradient(180deg, #11271B 0%, #08160F 100%);
  padding-bottom: 80px;
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 15px;
  }

  .page-register__main-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }

  .page-register__subtitle {
    font-size: clamp(0.9em, 1.8vw, 1.1em);
  }

  .page-register__features-grid,
  .page-register__step-by-step,
  .page-register__bonus-content,
  .page-register__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .page-register__verification-content {
    flex-direction: column;
  }

  .page-register__verification-text,
  .page-register__verification-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

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

  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is small visual padding */
  }

  .page-register__main-title {
    font-size: 2.2em;
  }

  .page-register__subtitle {
    font-size: 1em;
  }

  .page-register__section-title {
    font-size: 2em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-register__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-register__why-join-section,
  .page-register__guide-section,
  .page-register__verification-section,
  .page-register__bonus-section,
  .page-register__games-overview-section,
  .page-register__responsible-gaming-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 40px 0;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__hero-image-wrapper,
  .page-register__step-image,
  .page-register__feature-icon,
  .page-register__verification-image-wrapper,
  .page-register__bonus-image,
  .page-register__game-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register 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;
    text-align: center;
  }

  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__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;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-register__feature-card,
  .page-register__step-card,
  .page-register__bonus-card,
  .page-register__game-card {
    padding: 20px;
  }

  .page-register__game-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 1.8em;
  }

  .page-register__section-title {
    font-size: 1.6em;
  }

  .page-register__feature-title,
  .page-register__step-title,
  .page-register__sub-title {
    font-size: 1.3em;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .page-register__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-register__faq-answer {
    padding: 0 15px 15px;
  }
}

/* Custom Colors from Palette */
:root {
  --main-color: #11A84E;
  --auxiliary-color: #22C768;
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
  --main-color-rgb: 17, 168, 78; /* RGB for main color for rgba usage */
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main);
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-register__feature-card,
.page-register__step-card,
.page-register__bonus-card,
.page-register__game-card,
.page-register__faq-item {
  background-color: var(--card-bg);
  border-color: var(--border);
}

.page-register__note-block {
  background-color: var(--deep-green);
  border-left-color: var(--gold);
}

.page-register__responsible-gaming-section {
  background-color: var(--deep-green);
}

.page-register__responsible-gaming-section .page-register__section-title,
.page-register__responsible-gaming-section .page-register__section-description,
.page-register__responsible-gaming-section .page-register__paragraph,
.page-register__responsible-gaming-section .page-register__list-items li {
  color: var(--text-main);
}

.page-register__responsible-gaming-section .page-register__btn-secondary {
  color: var(--gold);
  border-color: var(--gold);
}

.page-register__responsible-gaming-section .page-register__btn-secondary:hover {
  background-color: var(--gold);
  color: var(--deep-green);
}

.page-register__final-cta-section {
  background: linear-gradient(180deg, var(--card-bg) 0%, var(--background) 100%);
}

/* Ensure contrast for all text elements */
.page-register h1, .page-register h2, .page-register h3, .page-register h4, .page-register h5, .page-register h6 {
  color: var(--text-main);
}

.page-register p,
.page-register li,
.page-register__section-description,
.page-register__feature-text,
.page-register__step-text,
.page-register__paragraph,
.page-register__game-description {
  color: var(--text-secondary);
}

.page-register__hero-content .page-register__main-title,
.page-register__hero-content .page-register__subtitle {
  color: var(--text-main);
}

.page-register__faq-question .page-register__faq-qtext {
  color: var(--text-main);
}

.page-register__faq-answer p {
  color: var(--text-secondary);
}

/* Ensure images do not use filter */
.page-register img {
  filter: none; /* Explicitly remove any potential filter */
}