/* style/register.css */

/* Root variables for colors */
:root {
  --ph22-primary-color: #F2C14E;
  --ph22-secondary-color: #FFD36B;
  --ph22-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --ph22-card-bg: #111111;
  --ph22-background: #0A0A0A;
  --ph22-text-main: #FFF6D6;
  --ph22-border-color: #3A2A12;
  --ph22-glow-color: #FFD36B;
}

.page-register {
  color: var(--ph22-text-main); /* Ensure text is visible on dark background */
  background-color: var(--ph22-background); /* Dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* HERO Section */
.page-register__hero-section {
  background: var(--ph22-background);
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-register__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--ph22-secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-register__hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--ph22-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 211, 107, 0.3);
}

/* CTA Button Styles */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: var(--ph22-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-register__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
  opacity: 0.9;
}

.page-register__btn-secondary {
  background: transparent;
  color: var(--ph22-secondary-color);
  border: 2px solid var(--ph22-secondary-color);
  margin-left: 20px;
}

.page-register__btn-secondary:hover {
  background: var(--ph22-secondary-color);
  color: var(--ph22-background);
  transform: translateY(-3px);
}

/* General Section Styles */
.page-register__section {
  padding: 60px 0;
  background-color: var(--ph22-background);
}

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

.page-register__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ph22-primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-intro {
  font-size: 1.1rem;
  color: var(--ph22-text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Card Styles */
.page-register__card {
  background-color: var(--ph22-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--ph22-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Why Join Section */
.page-register__why-join-section {
  background: linear-gradient(to bottom, #0A0A0A, #1a1a1a);
}

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

.page-register__feature-card {
  text-align: center;
}

.page-register__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-register__feature-title {
  font-size: 1.5rem;
  color: var(--ph22-secondary-color);
  margin-bottom: 10px;
}

.page-register__feature-description {
  font-size: 1rem;
  color: var(--ph22-text-main);
}

/* Registration Guide Section */
.page-register__registration-guide-section {
  background-color: var(--ph22-background);
}

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

.page-register__step-card {
  text-align: center;
  position: relative;
  padding-top: 50px;
}

.page-register__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ph22-button-gradient);
  color: #ffffff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  border: 3px solid var(--ph22-border-color);
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

.page-register__step-title {
  font-size: 1.4rem;
  color: var(--ph22-primary-color);
  margin-bottom: 10px;
}

.page-register__step-description {
  font-size: 1rem;
  color: var(--ph22-text-main);
}

.page-register__cta-container {
  text-align: center;
  margin-top: 50px;
}

/* Security Section */
.page-register__security-section {
  background: linear-gradient(to top, #0A0A0A, #1a1a1a);
}

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

.page-register__security-item {
  text-align: center;
}

.page-register__security-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-register__security-title {
  font-size: 1.5rem;
  color: var(--ph22-secondary-color);
  margin-bottom: 10px;
}

.page-register__security-description {
  font-size: 1rem;
  color: var(--ph22-text-main);
}

/* Bonuses Section */
.page-register__bonuses-section {
  background-color: var(--ph22-background);
}

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

.page-register__bonus-card {
  text-align: center;
  padding-bottom: 20px;
}

.page-register__bonus-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-register__bonus-title {
  font-size: 1.4rem;
  color: var(--ph22-primary-color);
  margin-bottom: 10px;
}

.page-register__bonus-description {
  font-size: 1rem;
  color: var(--ph22-text-main);
  margin-bottom: 20px;
}

.page-register__disclaimer {
  font-size: 0.9rem;
  color: rgba(255, 246, 214, 0.7);
  text-align: center;
  margin-top: 40px;
}

/* Games Showcase Section */
.page-register__games-showcase-section {
  background: linear-gradient(to bottom, #1a1a1a, #0A0A0A);
}

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

.page-register__game-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-register__game-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-register__game-title {
  font-size: 1.3rem;
  color: var(--ph22-secondary-color);
  margin-bottom: 8px;
}

.page-register__game-description {
  font-size: 0.95rem;
  color: var(--ph22-text-main);
}

/* App Section */
.page-register__app-section {
  background-color: var(--ph22-background);
}

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

.page-register__app-text {
  flex: 1;
  min-width: 300px;
}

.page-register__app-subtitle {
  font-size: 1.8rem;
  color: var(--ph22-primary-color);
  margin-bottom: 20px;
}

.page-register__app-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-register__app-list li {
  color: var(--ph22-text-main);
  font-size: 1.1rem;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-register__app-list li::before {
  content: '✓';
  color: var(--ph22-secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-register__app-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-register__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-register__app-image {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-register__app-note {
  font-size: 0.9rem;
  color: rgba(255, 246, 214, 0.7);
  text-align: center;
  margin-top: 30px;
}

/* FAQ Section */
.page-register__faq-section {
  background: linear-gradient(to top, #0A0A0A, #1a1a1a);
}

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

.page-register__faq-item {
  background-color: var(--ph22-card-bg);
  border: 1px solid var(--ph22-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-register__faq-item.active {
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.3);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--ph22-primary-color);
  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.8rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--ph22-secondary-color);
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg); /* Explicitly set for '-' */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--ph22-text-main);
  font-size: 1rem;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px 25px 25px;
}

.page-register__faq-answer p {
  margin-bottom: 0;
  color: var(--ph22-text-main);
}

/* Final CTA Section */
.page-register__cta-final-section {
  background-color: var(--ph22-background);
  text-align: center;
  padding-bottom: 80px;
}

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

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

  .page-register__hero-description {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
  }

  .page-register__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-register__section-intro {
    font-size: 1rem;
  }

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

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: var(--header-offset, 100px) !important;
    padding-bottom: 40px;
  }

  .page-register__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-register__hero-description {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }

  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }

  .page-register__app-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-register__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-register__section-intro {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

  /* Ensure all containers are responsive */
  .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;
  }
  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__security-features,
  .page-register__bonus-offers,
  .page-register__games-grid {
    grid-template-columns: 1fr;
  }
  .page-register__app-text, .page-register__app-image-wrapper {
    min-width: unset;
  }
}

/* Color Contrast Fixes (if needed) */
.page-register__dark-bg {
  color: #ffffff; /* Deep dark background requires light text */
}

.page-register__light-bg {
  color: #333333; /* Light background requires dark text */
}

/* Ensuring contrast for default elements */
.page-register h1, .page-register h2, .page-register h3, .page-register h4, .page-register h5, .page-register h6 {
  color: var(--ph22-primary-color); /* Ensure headings use primary or secondary color */
}

.page-register p, .page-register li {
  color: var(--ph22-text-main); /* Main text color */
}

.page-register a {
  color: var(--ph22-secondary-color);
}

.page-register a:hover {
  color: var(--ph22-primary-color);
}