/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Darken image slightly to improve text contrast */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff; /* Ensure text is white on dark green background */
}

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

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

.page-register__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General button styles */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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;
  min-width: 200px; /* Ensure minimum button size */
  text-align: center;
  box-sizing: border-box; /* Include padding in width calculation */
}

.page-register__btn-primary {
  background-color: #C30808; /* Red for primary action */
  color: #FFFF00; /* Yellow font for primary button */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
  background-color: #e02020;
  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);
}

/* General Section Styles */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-register__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #f0f0f0; /* Slightly off-white for readability */
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast with body */
  color: #ffffff;
}

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

.page-register__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__feature-icon {
  width: 200px; /* Min size 200px */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Ensure it respects max-width: 100% */
}

.page-register__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #ffffff; /* Ensure white text on dark card background */
}

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

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

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

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

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00; /* Yellow for numbers */
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

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

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

.page-register__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-register__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-register__security-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-register__security-subtitle {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

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

.page-register__security-description a {
  color: #FFFF00; /* Yellow for links */
  text-decoration: underline;
}

.page-register__security-description a:hover {
  color: #e0e0e0;
}

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

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

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

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

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

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

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

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Change + to X-like */
}

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

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

.page-register__faq-description {
  margin: 0;
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand color */
  text-align: center;
  color: #ffffff;
}

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

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

@media (max-width: 768px) {
  /* Ensure header offset for mobile */
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    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;
    min-width: unset; /* Allow to shrink with 100% width */
  }

  .page-register__hero-cta,
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

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

  .page-register__feature-card,
  .page-register__step-item,
  .page-register__security-item {
    padding: 20px;
  }

  .page-register__feature-title,
  .page-register__step-title,
  .page-register__security-subtitle {
    font-size: 1.3em;
  }

  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-title {
    font-size: 1.1em;
  }
  .page-register__faq-answer {
    padding: 0 20px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons should also be responsive */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

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

/* Image styles - NO filter allowed to change color */
.page-register__feature-icon {
  border-radius: 8px; /* Example allowed style */
}

/* Ensure content area images respect minimum size and no small icons */
.page-register__feature-icon,
.page-register__hero-image {
  min-width: 200px;
  min-height: 150px; /* Adjust height for aspect ratio */
}

/* CSS for color contrast on dark background */
.page-register__why-join-section,
.page-register__steps-section,
.page-register__security-section,
.page-register__faq-section {
  background-color: #0a0a0a; /* Ensure consistency with body background */
  color: #ffffff;
}

.page-register__feature-card,
.page-register__step-item,
.page-register__security-item,
.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Dark background with subtle card */
  color: #ffffff;
}

.page-register__hero-section,
.page-register__final-cta-section {
  background-color: #017439; /* Brand color background */
  color: #ffffff;
}

.page-register__section-title,
.page-register__hero-title,
.page-register__feature-title,
.page-register__step-title,
.page-register__security-subtitle,
.page-register__faq-title {
  color: #ffffff; /* All titles are white on dark backgrounds */
}

.page-register__feature-title {
  color: #ffffff; /* Changed from #017439 to #ffffff for better contrast on dark card background */
}
.page-register__step-number {
  color: #FFFF00; /* Yellow for numbers on dark background */
}