/* style/register.css */

/* Base Styles */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so text is light */
  background-color: transparent; /* Body background from shared.css */
}

.page-register__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-register__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.page-register__btn-secondary {
  display: inline-block;
  background-color: #FFFFFF;
  color: #26A9E0;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
  text-align: center;
}

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

.page-register__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 600px;
  color: #FFFFFF;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Slightly dim the background image for text readability */
}

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

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

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

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 20px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible on dark body */
  color: #FFFFFF;
  text-align: center;
}

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

.page-register__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease;
}

.page-register__feature-card:hover {
  transform: translateY(-10px);
}

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

.page-register__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* How To Register Section */
.page-register__how-to-register-section {
  padding: 80px 20px;
  background-color: #0a0a0a; /* Explicitly dark for contrast */
  color: #FFFFFF;
}

.page-register__steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-register__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #FFFFFF;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.5em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-register__step-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Important Notes Section */
.page-register__important-notes-section {
  padding: 80px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.page-register__notes-list {
  max-width: 900px;
  margin: 40px auto;
  list-style: none;
  padding: 0;
}

.page-register__notes-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-register__notes-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-register__notes-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
  color: #FFFFFF;
  text-align: center;
}

.page-register__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-register__promo-title {
  font-size: 1.7em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-register__promo-description {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 20px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.page-register__faq-container {
  max-width: 900px;
  margin: 40px auto;
}

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

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

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

.page-register__faq-question h3 {
  margin: 0;
  color: inherit;
}

.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 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

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

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

/* Final CTA Section */
.page-register__cta-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-register__cta-section .page-register__section-intro {
  margin-bottom: 30px;
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
}

.page-register__section-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  object-fit: cover;
}

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

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

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

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

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

  .page-register__hero-section {
    min-height: 450px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .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;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  .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-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

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

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

  .page-register__features-grid,
  .page-register__steps-container,
  .page-register__promo-grid {
    grid-template-columns: 1fr;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__feature-card,
  .page-register__step-item,
  .page-register__promo-card,
  .page-register__notes-item,
  .page-register__faq-item {
    padding: 20px;
    margin-bottom: 15px;
  }

  .page-register__feature-title,
  .page-register__step-title,
  .page-register__notes-title,
  .page-register__promo-title {
    font-size: 1.4em;
  }

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

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

  /* Ensure all images are responsive and do not overflow */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__why-join-section,
  .page-register__how-to-register-section,
  .page-register__important-notes-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Specific image containers */
  .page-register__hero-content {
    padding: 0;
  }

  .page-register__hero-image {
    filter: brightness(0.5) !important; /* Slightly more dim for mobile */
  }
}

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

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

  .page-register__btn-large {
    font-size: 1.1em;
    padding: 15px 25px;
  }

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

/* Image color filter restriction */
.page-register img {
  filter: none; /* Ensure no CSS filter is applied to change image color */
}