/* style/register.css */

/* Base styles for the register page content */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: transparent; /* Inherit from body or shared.css */
}

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

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

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

.page-register__section-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Light text for intros on dark backgrounds */
}

.page-register__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #26A9E0;
  color: #ffffff;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Prevent image overflow */
}

.page-register__hero-content {
  flex: 1;
  text-align: left;
  padding-right: 40px;
  max-width: 600px;
  z-index: 1;
}

.page-register__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

.page-register__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

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

.page-register__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element */
}

/* Why Join Section */
.page-register__why-join {
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

.page-register__why-join .page-register__section-title {
  color: #26A9E0;
}

.page-register__why-join .page-register__section-intro {
  color: #f0f0f0;
}

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

.page-register__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-register__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__feature-item p {
  color: #f0f0f0;
}

.page-register__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* How to Register Section */
.page-register__how-to-register {
  background-color: #ffffff;
  color: #333333;
}

.page-register__how-to-register .page-register__section-title {
  color: #26A9E0;
}

.page-register__how-to-register .page-register__section-intro {
  color: #555555;
}

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

.page-register__step-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-register__step-number {
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  position: absolute;
  top: -20px;
  left: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
  font-size: 1.4em;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-register__step-item p {
  color: #555555;
}

.page-register__cta-block {
  margin-top: 50px;
  padding: 40px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.page-register__cta-block p {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

/* Member Benefits Section */
.page-register__member-benefits {
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

.page-register__member-benefits .page-register__section-title {
  color: #26A9E0;
}

.page-register__member-benefits .page-register__section-intro {
  color: #f0f0f0;
}

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
}

.page-register__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__benefit-card p {
  color: #f0f0f0;
  flex-grow: 1;
}

/* Security & Safety Section */
.page-register__security-safety {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__security-safety .page-register__section-title {
  color: #ffffff;
}

.page-register__security-safety .page-register__section-intro {
  color: #f0f0f0;
}

.page-register__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-register__security-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-register__security-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__security-item p {
  color: #f0f0f0;
  flex-grow: 1;
}

/* FAQ Section */
.page-register__faq {
  background-color: #ffffff;
  color: #333333;
}

.page-register__faq .page-register__section-title {
  color: #26A9E0;
}

.page-register__faq .page-register__section-intro {
  color: #555555;
}

.page-register__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-register__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #26A9E0;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  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;
  background-color: #ffffff;
  color: #555555;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important;
  padding: 15px 20px;
}

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

/* Video Section */
.page-register__video-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
  padding-bottom: 80px;
}

.page-register__video-section .page-register__section-title {
  color: #26A9E0;
}

.page-register__video-section .page-register__section-intro {
  color: #f0f0f0;
}

.page-register__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0 auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-register__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

/* Responsible Gambling Section */
.page-register__responsible-gambling {
  background-color: #ffffff;
  color: #333333;
}

.page-register__responsible-gambling .page-register__section-title {
  color: #26A9E0;
}

.page-register__responsible-gambling .page-register__section-intro {
  color: #555555;
}

.page-register__rg-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  margin-top: 30px;
  color: #555555;
}

.page-register__rg-content a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-register__rg-content a:hover {
  color: #1a7bb0;
}

/* Final CTA Section */
.page-register__cta-final {
  background-color: #26A9E0;
  color: #ffffff;
  padding-bottom: 80px;
}

.page-register__cta-final .page-register__section-title {
  color: #ffffff;
}

.page-register__cta-final .page-register__section-intro {
  color: #f0f0f0;
}

.page-register__final-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

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

/* Image wrapper for general content images */
.page-register__image-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  box-sizing: border-box;
  overflow: hidden;
}

/* Ensure all images are responsive */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding-right: 20px;
  }
  .page-register__main-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-register__section {
    padding: 40px 0;
  }

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

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

  .page-register__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-register__hero-content {
    padding-right: 0;
    margin-bottom: 30px;
    max-width: 100%;
  }

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

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

  .page-register__hero-actions {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
  }

  .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;
  }

  .page-register__hero-image-wrapper {
    max-width: 100%;
  }

  .page-register__features-grid,
  .page-register__registration-steps,
  .page-register__benefits-grid,
  .page-register__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__step-number {
    position: static;
    margin: 0 auto 15px auto;
  }

  .page-register__step-item {
    align-items: center;
    text-align: center;
    padding-top: 20px;
  }

  .page-register__step-title {
    margin-top: 0;
  }

  .page-register__cta-block {
    padding: 30px 20px;
  }

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

  .page-register__video-wrapper {
    margin-top: 30px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
  }

  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  /* All containers with images/videos must be responsive */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__image-wrapper,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Add horizontal padding to main content containers */
  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__final-actions {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__btn-large {
    padding: 15px 25px;
    font-size: 1em;
  }
}