/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark backgrounds */
  background-color: #0A0A0A; /* Page background */
}

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

.page-register__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-register__section--dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-register__section--light-bg {
  background-color: #111111; /* Card BG for contrast */
  color: #FFF6D6;
}

.page-register__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow color for titles */
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  color: #FFF6D6;
}

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-register__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD36B;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-register__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF6D6;
}

/* CTA Button */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #FFF6D6;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #FFD36B;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-register__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.6);
  background: linear-gradient(180deg, #FFE082 0%, #E6B02E 100%);
}

.page-register__cta-button--bottom {
  margin-top: 40px;
}

.page-register__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-register__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* Feature Grid */
.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: #111111;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3A2A12;
}

.page-register__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.2);
}

.page-register__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Ensure images are not too small */
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-register__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD36B;
}

.page-register__feature-text {
  font-size: 1em;
  color: #FFF6D6;
}

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

.page-register__step-card {
  background-color: #111111;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #3A2A12;
}

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD36B;
}

.page-register__step-text {
  font-size: 0.95em;
  color: #FFF6D6;
}

.page-register__registration-form-wrapper {
  margin-top: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-register__registration-form-image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Specific max-width for this image */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

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

.page-register__bonus-card {
  background-color: #111111;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #3A2A12;
}

.page-register__bonus-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Adjust max-width as needed */
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-register__bonus-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD36B;
}

.page-register__bonus-text {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 25px;
}

/* Game Categories */
.page-register__game-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-register__category-card {
  background-color: #111111;
  padding: 15px 25px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #FFF6D6;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid #3A2A12;
}

.page-register__category-card:hover {
  background-color: #3A2A12;
  transform: translateY(-3px);
}

.page-register__category-icon {
  width: 30px; /* Small icon size allowed */
  height: 30px;
  margin-right: 10px;
}

.page-register__category-name {
  font-size: 1.1em;
}

.page-register__games-showcase-image {
  width: 100%;
  height: auto;
  max-width: 1000px; /* Specific max-width for this image */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-top: 30px;
}

/* Mobile App Section */
.page-register__mobile-app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  text-align: left;
}

.page-register__mobile-app-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.page-register__mobile-app-details {
  flex: 1;
  max-width: 600px;
}

.page-register__mobile-app-subtitle {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD36B;
}

.page-register__mobile-app-text {
  font-size: 1.05em;
  margin-bottom: 25px;
  color: #FFF6D6;
}

/* Responsible Gaming */
.page-register__responsible-gaming-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__responsible-feature {
  background-color: #111111;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #3A2A12;
}

.page-register__responsible-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD36B;
}

.page-register__responsible-text {
  font-size: 1em;
  color: #FFF6D6;
}

/* FAQ Section */
.page-register__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-register__faq-item {
  background-color: #111111;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #3A2A12;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD36B;
  cursor: pointer;
  background-color: #1A1A1A;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: #2A2A2A;
}

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

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
  background-color: #111111;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px;
}

.page-register__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-register__container {
    padding: 20px 15px;
  }

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

  .page-register__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    letter-spacing: 0.05em;
  }

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

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

  .page-register__intro-text {
    font-size: 1em;
  }

  .page-register__cta-button {
    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-register__cta-button--large {
    padding: 15px 25px;
    font-size: 1.1em;
  }

  .page-register__hero-content {
    padding: 10px;
  }

  .page-register__mobile-app-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-register__mobile-app-details {
    max-width: 100%;
  }

  .page-register__mobile-app-subtitle {
    text-align: center;
  }

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

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .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;
  }
  
  /* Ensure buttons wrap */
  .page-register__cta-buttons {
    display: flex;
    flex-direction: column; /* Stacks buttons vertically */
    gap: 10px;
  }

  /* Small icon size remains */
  .page-register__category-icon {
    width: 30px;
    height: 30px;
  }

  .page-register__hero-section {
    padding-bottom: 40px;
  }
  
  .page-register__faq-question {
    font-size: 1.1em;
  }
}