/* style/register.css */

/* --- Base Styles & Layout --- */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

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

.page-register__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-register__section-intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* --- Color Contrast & Backgrounds --- */
.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-register__dark-section {
  background-color: #26A9E0; /* Primary brand color as dark background */
  color: #ffffff; /* White text for contrast */
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__section-intro,
.page-register__dark-section h3 {
  color: #ffffff; /* Ensure white text on dark background */
}

/* --- Buttons --- */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-register__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid transparent;
}

.page-register__btn-primary:hover {
  background: #1e87c0; /* Slightly darker primary on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-register__btn-secondary:hover {
  background: #f0f8ff; /* Light background on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-register__btn-text-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-register__btn-text-link:hover {
  color: #1e87c0;
}

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #f0f8ff; /* Light background for hero section */
}

.page-register__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-register__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 30px;
  border-radius: 12px;
  background: rgba(38, 169, 224, 0.9); /* Semi-transparent brand color overlay */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-top: -80px; /* Overlap with image */
}

.page-register__main-title {
  font-size: 42px;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-register__main-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  margin-top: 30px;
}

/* --- Why Join Section --- */
.page-register__why-join-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-register__feature-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

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

.page-register__feature-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image behaves as a block element */
}

.page-register__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__feature-item p {
  font-size: 16px;
  color: #555555;
}

/* --- Registration Steps Section --- */
.page-register__steps-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-register__step-item {
  background: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #ffffff;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: #ffffff;
  color: #26A9E0;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__step-item p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-register__image-container {
  margin-top: 60px;
  text-align: center;
}

.page-register__image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

/* --- Verification Section --- */
.page-register__verification-section {
  padding: 80px 0;
  text-align: center;
}

.page-register__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-register__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-register__text-block {
  flex: 1;
}

.page-register__text-block p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #555555;
}

.page-register__image-block {
  flex: 1;
}

.page-register__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

/* --- Payment Section --- */
.page-register__payment-section {
  padding: 80px 0;
  text-align: center;
}

.page-register__payment-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__payment-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__payment-item img {
  
  
  object-fit: contain;
  margin-bottom: 15px;
  background-color: #ffffff; /* White background for icons */
  border-radius: 50%;
  padding: 10px;
}

.page-register__payment-method {
  font-size: 20px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-register__payment-item p {
  font-size: 15px;
  color: #f0f0f0;
}

.page-register__payment-banner {
  margin-top: 60px;
}

/* --- Responsible Gambling Section --- */
.page-register__responsible-gambling-section {
  padding: 80px 0;
  text-align: center;
}

/* --- FAQ Section --- */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #f9f9f9; /* Slightly different background for FAQ */
}

.page-register__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Use !important ensuring priority, value large enough */
  padding: 20px 15px !important;
  opacity: 1;
  background: #fcfcfc; /* Lighter background for answer */
  border-radius: 0 0 5px 5px;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-register__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-register__faq-question:active {
  background: #eeeeee;
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #333333;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #26A9E0; /* Brand color when active */
  transform: rotate(45deg); /* Plus sign rotates to X */
}

/* --- Final CTA Section --- */
.page-register__cta-final-section {
  padding: 80px 0;
  text-align: center;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 36px;
  }

  .page-register__main-description {
    font-size: 18px;
  }

  .page-register__section-title {
    font-size: 28px;
  }

  .page-register__section-intro {
    font-size: 16px;
  }

  .page-register__hero-content {
    margin-top: -60px;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-content {
    margin-top: -40px;
    padding: 20px;
    border-radius: 8px;
  }

  .page-register__main-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .page-register__main-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    margin: 8px 0; /* Stack buttons vertically */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__button-group {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

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

  .page-register__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

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

  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__verification-section,
  .page-register__payment-section,
  .page-register__responsible-gambling-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 50px 0;
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__payment-options-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__feature-item img {
    
  }

  .page-register__feature-title,
  .page-register__step-title,
  .page-register__payment-method {
    font-size: 20px;
  }

  .page-register__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-register__content-wrapper--reverse {
    flex-direction: column; /* Revert to column for mobile */
  }

  .page-register__image-container img,
  .page-register__image-block img,
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__content-wrapper,
  .page-register__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-register__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-register__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-register__faq-answer {
    padding: 0 15px;
  }
  
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }
}

/* Ensure no filter on images */
.page-register img {
  filter: none; /* Explicitly ensure no filters */
}