/* style/register.css */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Inherited from body, but explicitly set for clarity */
}

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

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
  padding: 0 15px;
  box-sizing: border-box;
}

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

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

.page-register__hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-register__hero-cta,
.page-register__hero-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

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

.page-register__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle overlay */
}

/* General Section Styling */
.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff; /* Default for dark body */
}

.page-register__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0; /* Default for dark body */
}

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

/* Why Join Section */
.page-register__why-join-section {
  background-color: #1a1a1a; /* Dark background from body */
  color: #ffffff;
  padding: 60px 0;
}

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

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

.page-register__feature-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-register__feature-icon {
  width: 200px; /* Enforce minimum size */
  height: 200px; /* Enforce minimum size */
  margin: 0 auto 20px;
  object-fit: contain;
}

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

.page-register__feature-text {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Steps Section */
.page-register__steps-section {
  background-color: #017439; /* Brand color */
  color: #ffffff;
  padding: 60px 0;
}

.page-register__steps-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-register__step-item {
  flex: 1 1 300px;
  max-width: 350px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00; /* Custom yellow for numbers */
  margin-bottom: 15px;
}

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

.page-register__step-text {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-register__steps-image-wrapper {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-register__steps-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-register__steps-cta {
  display: block;
  margin: 40px auto 0;
  max-width: 300px;
  text-align: center;
}

/* Promotions Section */
.page-register__promotions-section {
  background-color: #1a1a1a; /* Dark background from body */
  color: #ffffff;
  padding: 60px 0;
}

.page-register__promo-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
}

.page-register__promo-image {
  width: 100%;
  height: 300px;
  min-height: 200px; /* Ensure minimum size */
  object-fit: cover;
}

.page-register__promo-content {
  padding: 30px;
}

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

.page-register__promo-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-register__promo-cta {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  background-color: transparent;
  color: #017439; /* Brand color for text */
  border: 2px solid #017439;
}

.page-register__promo-cta:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-register__all-promos-cta {
  display: block;
  margin: 0 auto;
  max-width: 300px;
  text-align: center;
}

/* FAQ Section */
.page-register__faq-section {
  background-color: #017439; /* Brand color */
  color: #ffffff;
  padding: 60px 0;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-register__faq-title {
  font-size: 1.3em;
  margin: 0;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFFF00; /* Custom yellow for toggle */
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* For '-' symbol */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-register__faq-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-register__final-cta-section {
  background-color: #1a1a1a; /* Dark background from body */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-register__final-cta-section .page-register__section-title {
  color: #ffffff;
}

.page-register__final-cta-section .page-register__section-description {
  color: #f0f0f0;
}

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

.page-register__final-register-btn,
.page-register__final-support-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

  /* Fixed header spacing for mobile */
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-register__hero-cta,
  .page-register__hero-login {
    width: 100%;
    max-width: 300px;
    margin: 0 auto; /* Center buttons */
  }

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

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

  .page-register__features-grid,
  .page-register__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-register__promo-card {
    flex-direction: column;
  }

  .page-register__promo-image {
    height: 200px;
  }

  .page-register__promo-content {
    padding: 20px;
  }

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

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

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

  .page-register__final-register-btn,
  .page-register__final-support-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* All images must be responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons responsive */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-content,
  .page-register__promo-card,
  .page-register__cta-buttons,
  .page-register__steps-image-wrapper,
  .page-register__faq-list,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ specific */
  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-title {
    font-size: 1.1em;
  }
  .page-register__faq-toggle {
    font-size: 1.5em;
  }
  .page-register__faq-answer {
    padding: 15px 20px;
  }
}

/* Image specific rules to ensure minimum size and no filters */
.page-register img {
  min-width: 200px;
  min-height: 200px;
  filter: none; /* Absolutely no filters */
}

/* Card layout images must be large */
.page-register__promo-image {
  width: 100%;
  height: auto; /* Allow auto height to maintain aspect ratio */
  min-height: 200px; /* Ensure it's not a small icon */
  object-fit: cover;
}

/* Ensure no content area image width/height is below 200px */
.page-register__feature-icon,
.page-register__steps-image {
  width: auto;
  height: auto;
  min-width: 200px;
  min-height: 200px;
}