.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared, ensuring consistency */
}

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

.page-register__dark-bg {
  background-color: #017439; /* Primary brand color for dark sections */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light backgrounds */
}

.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
  font-weight: bold;
}

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

.page-register__link {
  color: #FFFF00; /* Register/Login font color for links */
  text-decoration: none;
  font-weight: bold;
}

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

/* Buttons */
.page-register__btn-primary,
.page-register__btn-submit {
  display: inline-block;
  background-color: #C30808; /* Custom color for Register/Login buttons */
  color: #FFFF00; /* Custom font color for Register/Login buttons */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-register__btn-primary:hover,
.page-register__btn-submit:hover {
  background-color: #9c0606; /* Slightly darker red on hover */
}

.page-register__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-register__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  min-height: 600px;
  gap: 40px;
}

.page-register__hero-content {
  max-width: 600px;
  text-align: left;
}

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

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

.page-register__hero-image-wrapper {
  flex-shrink: 0;
}

.page-register__hero-image {
  width: 800px;
  height: 450px;
  border-radius: 12px;
  object-fit: cover;
}

/* Registration Form Section */
.page-register__form-section {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

.page-register__form-wrapper {
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-register__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-register__form-input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  color: #333333;
}

.page-register__form-input::placeholder {
  color: #999;
}

.page-register__checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.page-register__form-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.page-register__btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  margin-top: 20px;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95em;
  color: #555555;
}

.page-register__form-image {
  width: 600px;
  height: 450px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-register__benefit-icon {
  width: 200px; /* Minimum size */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-register__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFF00; /* Highlight title with custom font color */
}

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

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

/* Security Section */
.page-register__security-section {
  padding: 80px 20px;
}

.page-register__security-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-register__security-text-block {
  flex: 1;
}

.page-register__security-subtitle {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439; /* Brand color for subtitles */
  font-weight: bold;
}

.page-register__security-paragraph {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
}

.page-register__security-image {
  width: 800px;
  height: 600px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

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

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

.page-register__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Custom font color for toggle icon */
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Plus sign to X */
}

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

/* CTA Bottom Section */
.page-register__cta-bottom-section {
  padding: 80px 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-section {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-register__hero-content {
    text-align: center;
    max-width: 100%;
  }

  .page-register__hero-image {
    width: 100%;
    height: auto;
    max-width: 800px;
  }

  .page-register__form-section {
    flex-direction: column;
    align-items: center;
  }

  .page-register__form-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin-top: 40px;
  }

  .page-register__security-content {
    flex-direction: column;
  }

  .page-register__security-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin-top: 40px;
  }
}

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

  .page-register__hero-description,
  .page-register__section-description,
  .page-register__benefit-text,
  .page-register__security-paragraph {
    font-size: 1em;
  }

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

  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    padding: 40px 15px;
  }

  /* Image responsiveness for mobile */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Container responsiveness for mobile */
  .page-register__container,
  .page-register__hero-image-wrapper,
  .page-register__form-wrapper,
  .page-register__security-content,
  .page-register__benefits-grid,
  .page-register__faq-list,
  .page-register__form-section,
  .page-register__security-text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header */
  }

  /* Button responsiveness for mobile */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-submit,
  .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;
  }

  /* If multiple buttons horizontally, allow wrapping */
  .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;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-register__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-register__faq-answer {
    padding: 0 15px;
  }

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

  .page-register__form-wrapper {
    padding: 30px 20px;
  }

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

  .page-register__benefit-icon {
    width: 150px;
    height: 100px;
  }
}