/* style/register.css */

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

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

/* 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;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  overflow: hidden;
}

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

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

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

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

/* CTA Buttons */
.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-register__cta-button {
  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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.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: #e02020;
  transform: translateY(-3px);
}

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

.page-register__btn-secondary:hover {
  background-color: #e02020;
  transform: translateY(-3px);
}

/* Section Titles and Descriptions */
.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

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

.page-register__feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
  color: #ffffff;
}

.page-register__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
  width: 100%; /* Take full width of parent */
  height: auto;
}

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

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

/* Guide Section */
.page-register__guide-section {
  padding: 80px 0;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

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

.page-register__step-item {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.2); /* Darker background for steps */
  padding: 30px;
  border-radius: 10px;
  position: relative;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background-color: #FFFF00;
  color: #017439;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 25px auto;
}

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

.page-register__step-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-register__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
  width: 100%; /* Take full width of parent */
}

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

/* Important Notes Section */
.page-register__important-notes-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

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

.page-register__note-item {
  background-color: rgba(255, 255, 255, 0.08); /* Card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-register__note-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* After Register Section */
.page-register__after-register-section {
  padding: 80px 0;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

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

.page-register__action-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(0, 0, 0, 0.2); /* Darker background for cards */
  color: #ffffff;
}

.page-register__action-image {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
  width: 100%; /* Take full width of parent */
  height: auto;
}

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

.page-register__action-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-register__action-button {
  display: inline-block;
  background-color: #FFFF00;
  color: #017439;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-register__action-button:hover {
  background-color: #e6e600;
}

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

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

.page-register__faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.08); /* Card background */
  color: #ffffff;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly different background for question */
  transition: background-color 0.3s ease;
  color: #ffffff;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  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; /* Sufficient height for content */
  padding: 15px 30px 20px 30px;
}

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

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

/* Responsive Design */
@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__hero-section {
    padding: 60px 15px;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__cta-button,
  .page-register__action-button {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-register__why-join-section,
  .page-register__guide-section,
  .page-register__important-notes-section,
  .page-register__after-register-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 50px 0;
  }

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

  .page-register__feature-item,
  .page-register__step-item,
  .page-register__note-item,
  .page-register__action-card,
  .page-register__faq-item {
    padding: 20px;
  }

  .page-register__feature-icon,
  .page-register__action-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__step-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all images are responsive */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all image containers are responsive */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__notes-list,
  .page-register__action-cards-grid,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

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

  /* Button responsive styles for mobile */
  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 15px;
  }

  .page-register__cta-button, 
  .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__faq-question,
  .page-register__faq-answer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__hero-description {
    font-size: 0.95em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__feature-title,
  .page-register__step-title,
  .page-register__note-title,
  .page-register__action-title {
    font-size: 1.3em;
  }
  .page-register__faq-question {
    font-size: 1em;
  }
}