/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0d1117, so light text */
  background-color: transparent; /* Inherit from body or shared */
  padding-top: 0; /* Assuming shared.css handles body padding for header offset */
}

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

.page-register__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffc107; /* Highlight with auxiliary color */
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.page-register__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
  background: linear-gradient(135deg, #007bff, #0056b3);
  padding: 80px 0;
  text-align: center;
  margin-top: 0; /* Ensure no extra padding if shared handles it */
}

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

.page-register__hero-description {
  font-size: 20px;
  color: #f8f9fa;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

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

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-text,
.page-register a[class*="button"],
.page-register a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-register__btn-secondary:hover {
  background-color: #ffffff;
  color: #007bff;
  transform: translateY(-2px);
}

.page-register__btn-text {
  color: #ffc107;
  text-decoration: underline;
  font-size: 16px;
  padding: 0;
  border: none;
  background: none;
}

.page-register__btn-text:hover {
  color: #e0a800;
}

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

/* Why Join Section */
.page-register__why-join-section {
  background-color: #1a202c;
  padding: 60px 0;
}

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

.page-register__feature-card {
  background-color: #2d3748;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-register__feature-image {
  width: 100%;
  height: auto;
  max-width: 300px; /* Example max-width, ensure >= 200x200 */
  margin: 0 auto 20px auto;
  border-radius: 4px;
  display: block;
}

.page-register__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffc107;
  margin-bottom: 15px;
}

.page-register__feature-description {
  font-size: 16px;
  color: #e2e8f0;
}

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

.page-register__step-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
}

.page-register__step-item:last-child {
  margin-bottom: 0;
}

.page-register__step-item--reverse {
  flex-direction: row-reverse;
}

.page-register__step-content {
  flex: 1;
  padding: 20px;
  background-color: rgba(0, 123, 255, 0.1);
  border-radius: 8px;
}

.page-register__step-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Ensure images are large enough */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.page-register__step-title {
  font-size: 28px;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 15px;
}

.page-register__step-content p {
  font-size: 17px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Benefits Section */
.page-register__benefits-section {
  background-color: #1a202c;
  padding: 60px 0;
  text-align: center;
}

.page-register__benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 700px;
  text-align: left;
}

.page-register__benefit-list li {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.page-register__benefit-icon {
  color: #ffc107;
  font-size: 22px;
  margin-right: 15px;
  line-height: 1;
}

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

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

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #2d3748;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #007bff;
  border: 1px solid #0056b3;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-register__faq-question:hover {
  background: #0056b3;
  border-color: #004085;
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'X' or '-' */
  color: #ffc107;
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #e2e8f0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Use !important and large value */
  padding: 20px !important;
  opacity: 1;
  background: #2d3748;
  border-radius: 0 0 5px 5px;
}

/* Call to Action Section */
.page-register__cta-section {
  background-color: #007bff;
  padding: 60px 0;
  text-align: center;
}

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

.page-register__cta-section .page-register__section-description {
  color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 40px;
  }
  .page-register__section-title {
    font-size: 30px;
  }
  .page-register__hero-description {
    font-size: 18px;
  }
  .page-register__step-item {
    flex-direction: column;
    gap: 20px;
  }
  .page-register__step-item--reverse {
    flex-direction: column;
  }
  .page-register__step-content {
    order: 2;
  }
  .page-register__step-image-wrapper {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__hero-section {
    padding: 60px 0;
  }

  .page-register__hero-title {
    font-size: 32px;
  }

  .page-register__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-register__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-register__btn-primary, 
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__btn-large {
    padding: 15px 30px;
    font-size: 18px;
  }

  .page-register__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-register__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-register__feature-card {
    padding: 20px;
  }

  .page-register__feature-title {
    font-size: 20px;
  }

  .page-register__feature-description {
    font-size: 15px;
  }

  .page-register__step-item {
    margin-bottom: 40px;
  }

  .page-register__step-content {
    padding: 15px;
  }

  .page-register__step-title {
    font-size: 24px;
  }

  .page-register__step-content p {
    font-size: 15px;
  }

  .page-register__benefit-list li {
    font-size: 16px;
  }

  .page-register__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-register__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  
  .page-register__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-register__faq-answer {
    padding: 0 15px;
  }
  
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }

  /* 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__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-section,
  .page-register__hero-buttons,
  .page-register__features-grid,
  .page-register__step-item,
  .page-register__step-content,
  .page-register__step-image-wrapper,
  .page-register__benefit-list,
  .page-register__faq-list,
  .page-register__faq-item,
  .page-register__faq-question,
  .page-register__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}