/* Base Styles for page-register */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

.page-register__section {
  padding: 60px 0;
}

.page-register__section-title {
  font-size: 36px;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-register__description--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-register__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px; /* Adjust as needed */
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for text */
  border-radius: 10px;
  margin-top: -80px; /* Pull content up slightly over the image */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.page-register__main-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #2F6BFF;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-register__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #1F2D3D;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-register__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-register__cta-button--large {
  padding: 18px 35px;
  font-size: 22px;
}

.page-register__cta-button--light {
  background: #ffffff;
  color: #2F6BFF;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.page-register__cta-button--light:hover {
  background: #f0f0f0;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

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

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

.page-register__feature-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

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

.page-register__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-register__feature-title {
  font-size: 24px;
  color: #2F6BFF;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__feature-text {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
}

/* Registration Guide Section */
.page-register__registration-guide {
  background-color: #ffffff;
}

.page-register__step-by-step {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}

.page-register__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.page-register__step-title {
  font-size: 28px;
  color: #2F6BFF;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 17px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 25px;
}

.page-register__step-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

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

/* Terms and Conditions Section */
.page-register__terms-conditions {
  background-color: #F4F7FB; /* Background */
}

.page-register__terms-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-register__terms-item {
  font-size: 17px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  text-align: left;
}

.page-register__terms-item::before {
  content: '✓';
  color: #2F6BFF;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

.page-register__inline-link {
  color: #2F6BFF;
  text-decoration: underline;
}

.page-register__inline-link:hover {
  color: #6FA3FF;
}

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

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

.page-register__faq-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  background-color: #F4F7FB;
  border-bottom: 1px solid #D6E2FF;
}

.page-register__faq-item[open] .page-register__faq-question {
  border-bottom: 1px solid #D6E2FF;
}

.page-register__faq-question::marker, /* Hide default marker for details tag */
.page-register__faq-question::-webkit-details-marker {
  display: none;
  content: '';
}

.page-register__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-register__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #2F6BFF;
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  text-align: left;
  background-color: #FFFFFF;
}

/* Conclusion Section */
.page-register__conclusion {
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%); /* Primary brand color gradient */
  color: #ffffff;
  text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-content {
    margin-top: -60px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    min-height: 400px;
  }

  .page-register__hero-content {
    padding: 30px 15px;
    margin-top: -40px;
  }

  .page-register__main-title {
    font-size: clamp(24px, 6vw, 40px);
  }

  .page-register__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-register__cta-button,
  .page-register__cta-button--large,
  .page-register__cta-button--light {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 18px;
  }

  .page-register__cta-container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  .page-register__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-register__feature-icon {
    width: 80px;
    height: 80px;
  }

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

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

  .page-register__step-item {
    padding: 0 15px;
  }

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

  .page-register__step-text {
    font-size: 16px;
  }

  .page-register__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-register__terms-item {
    font-size: 16px;
    padding-left: 25px;
  }

  .page-register__terms-item::before {
    font-size: 18px;
  }

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 17px;
  }

  .page-register__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }

  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-register__container,
  .page-register__faq-list,
  .page-register__terms-list {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-register__hero-content {
    margin-top: -30px;
  }

  .page-register__main-title {
    font-size: clamp(22px, 7vw, 36px);
  }

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

  .page-register__cta-button {
    font-size: 16px;
    padding: 10px 15px;
  }

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

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

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

  .page-register__faq-question {
    font-size: 16px;
  }

  .page-register__faq-answer {
    font-size: 14px;
  }
}