.page-register {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: var(--background-color, #FFFFFF);
}

.page-register__section {
  padding: 60px 20px;
  text-align: center;
}

.page-register__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-register__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  background: linear-gradient(135deg, #26A9E0 0%, #4db7e8 100%); /* Lighter blue for gradient */
  color: #ffffff;
  overflow: hidden;
}

.page-register__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin-bottom: 40px;
}

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

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

.page-register__hero-image {
  width: 100%;
  max-width: 900px;
  margin-top: 30px;
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-register__cta-button {
  display: inline-block;
  padding: 16px 45px;
  background: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-register__cta-button:hover {
  background: #d46c06;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Why Join Section */
.page-register__why-join {
  background-color: #f9f9f9;
  color: #333333;
}

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

.page-register__feature-item {
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.page-register__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-register__feature-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

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

/* Guide Steps Section */
.page-register__guide-steps {
  background-color: #ffffff;
}

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

.page-register__step-item {
  background: #f0f8ff;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-register__step-title {
  font-size: 1.4em;
  color: #333333;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 1em;
  color: #666666;
}

.page-register__link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-register__link:hover {
  text-decoration: underline;
}

.page-register__cta-container {
    margin-top: 50px;
}

.page-register__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border: none;
}

.page-register__btn-primary:hover {
    background: #1e87bb;
}

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

.page-register__btn-secondary:hover {
    background: #e0f2ff;
    color: #1e87bb;
}

/* Security Tips Section */
.page-register__security-tips {
  background-color: #f0f0f0;
  color: #333333;
}

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

.page-register__security-list li {
  background: #ffffff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1em;
  color: #555555;
  position: relative;
  padding-left: 40px;
}

.page-register__security-list li::before {
  content: '✔️';
  position: absolute;
  left: 15px;
  color: #26A9E0;
  font-weight: bold;
}

/* FAQ Section */
.page-register__faq-section {
  background-color: #ffffff;
}

.page-register__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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.3s ease;
  padding: 0 20px;
  opacity: 0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
  background: #e9f6ff;
  border-radius: 0 0 8px 8px;
  text-align: left;
  color: #444444;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #26A9E0;
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
  text-align: left;
}

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

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #ffffff;
}

/* Final CTA Section */
.page-register__final-cta {
  background: linear-gradient(135deg, #26A9E0 0%, #1a7bb5 100%);
  color: #ffffff;
  padding: 80px 20px;
  border-radius: 12px;
  margin: 60px auto;
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-register__cta-content .page-register__section-description {
    color: #f0f0f0;
}

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

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

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-register__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__section {
    padding: 40px 15px;
  }

  .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;
    gap: 20px;
  }

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

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

  .page-register__security-list li {
    padding: 12px 15px 12px 40px;
    font-size: 0.95em;
  }

  .page-register__faq-question {
    padding: 15px;
  }

  .page-register__faq-question h3 {
    font-size: 1em;
  }

  .page-register__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }

  .page-register__final-cta {
    padding: 60px 15px;
    margin: 40px auto;
  }

  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

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

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

  .page-register__hero-image img {
    border-radius: 8px;
  }
}

/* Color Contrast Fixes for dark/light sections */
.page-register__dark-section {
    color: #ffffff;
}

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

.page-register__light-bg {
    color: #333333;
}

.page-register__light-bg .page-register__section-description {
    color: #555555;
}