.page-register__hero-section {
  background: #017439; /* Main brand color for dark section */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
}

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

.page-register__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for registration title font */
}

.page-register__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-register__btn-primary:hover {
  background: darken(#C30808, 10%);
  border-color: darken(#C30808, 10%);
}

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

.page-register__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-register__form-section,
.page-register__guide-section,
.page-register__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
  background: #ffffff; /* Light background for these sections */
  color: #333333; /* Dark text for light background */
}

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #017439;
}

.page-register__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-register__registration-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-register__form-group {
  margin-bottom: 20px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-register__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-register__captcha-input {
  flex-grow: 1;
}

.page-register__captcha-image {
  border: 1px solid #ddd;
  border-radius: 5px;
  max-width: 120px; /* Ensure captcha image size */
  height: auto; /* Maintain aspect ratio */
}

.page-register__form-checkbox {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-register__form-checkbox input[type="checkbox"] {
  transform: scale(1.2);
}

.page-register__form-checkbox a {
  color: #017439;
  text-decoration: none;
}

.page-register__form-checkbox a:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  background: #C30808; /* Custom color for submit button */
  color: #FFFF00; /* Custom color for submit button font */
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-register__submit-button:hover {
  background: darken(#C30808, 10%);
}

.page-register__login-prompt {
  margin-top: 20px;
  font-size: 1em;
  color: #555555;
}

.page-register__login-prompt a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-register__login-prompt a:hover {
  text-decoration: underline;
}

.page-register__benefits-section {
  background: #1a1a1a; /* Body background color */
  color: #ffffff; /* White text for dark background */
  padding: 60px 0;
  text-align: center;
}

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

.page-register__benefit-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark bg */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-register__benefit-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

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

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

.page-register__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-width: 400px; /* Limit image width to avoid overflow on larger screens */
}

.page-register__faq-section {
  background: #1a1a1a; /* Body background color */
  color: #ffffff; /* White text for dark background */
  padding: 60px 0;
  text-align: center;
}

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

.page-register__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for FAQ items */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-register__faq-question:hover {
  background: 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.5em;
  font-weight: bold;
  color: #FFFF00;
  transition: transform 0.3s ease;
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  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 20px;
}

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

.page-register__faq-answer p {
  margin: 0;
  padding-bottom: 15px;
  line-height: 1.6;
}

.page-register__cta-bottom-section .page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.5em;
  }

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

  .page-register__benefits-grid,
  .page-register__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

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

  .page-register__intro-text {
    font-size: 1em;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
  }

  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    padding: 40px 0;
  }

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

  .page-register__section-description {
    font-size: 0.95em;
  }

  .page-register__registration-form {
    padding: 20px;
  }

  .page-register__captcha-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-register__captcha-image {
    margin-top: 10px;
  }

  .page-register__benefits-grid,
  .page-register__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-register__benefit-icon,
  .page-register__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__container,
  .page-register__form-section .page-register__container,
  .page-register__benefits-section .page-register__container,
  .page-register__guide-section .page-register__container,
  .page-register__faq-section .page-register__container,
  .page-register__cta-bottom-section .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .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__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
  }
}