.page-register {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  overflow: hidden;
}

.page-register__hero-content {
  z-index: 1;
  max-width: 800px;
}

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__hero-cta-button {
  display: inline-block;
  background-color: #C30808; /* Custom color for register */
  color: #ffffff; /* Ensuring WCAG AA contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__hero-cta-button:hover {
  background-color: #a00606;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

.page-register__form-section {
  background-color: #1a1a1a; /* Darker background for form section */
  color: #ffffff;
  padding: 60px 0;
}

.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-register__registration-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card-like background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: #2a2a2a;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

.page-register__captcha-code {
  background-color: #017439;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1em;
  user-select: none;
}

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

.page-register__form-checkbox {
  margin-right: 10px;
}

.page-register__form-link {
  color: #017439; /* Brand color for links */
  text-decoration: none;
}

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

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Custom color for register */
  color: #ffffff; /* Ensuring WCAG AA contrast */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-register__submit-button:hover {
  background-color: #a00606;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 20px;
  color: #f0f0f0;
}

.page-register__benefits-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #017439; /* Brand color for titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__benefit-text {
  color: #f0f0f0;
}

.page-register__section-image {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__security-section {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-register__security-text {
  flex: 1;
  min-width: 300px;
}

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

.page-register__security-paragraph {
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-register__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__security-footer {
  margin-top: 40px;
  text-align: center;
  font-style: italic;
  color: #cccccc;
}

.page-register__how-to-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-top: 60px;
}

.page-register__step-number {
  position: absolute;
  top: 15px;
  left: 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

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

.page-register__step-text {
  color: #f0f0f0;
}

.page-register__faq-section {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 0;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: #017439; /* Brand color for FAQ questions */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
  list-style: none;
}

.page-register__faq-question::-webkit-details-marker {
  display: none;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1.1em;
  color: #f0f0f0;
  background-color: #2a2a2a;
}

.page-register__cta-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-register__cta-content {
  z-index: 1;
  position: relative;
}

.page-register__cta-button {
  display: inline-block;
  background-color: #C30808; /* Custom color for register */
  color: #ffffff; /* Ensuring WCAG AA contrast */
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 30px;
  border: none;
  cursor: pointer;
}

.page-register__cta-button:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

.page-register__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; /* Subtle background image */
  z-index: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2.2em;
  }
  .page-register__security-subtitle {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-register__container {
    padding: 20px 15px;
  }
  .page-register__registration-form,
  .page-register__faq-list {
    padding: 20px 15px;
  }
  .page-register__benefits-grid,
  .page-register__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-register__security-content {
    flex-direction: column;
  }
  .page-register__security-image {
    width: 100% !important;
    height: auto !important;
  }
  .page-register__benefit-card, .page-register__step-card {
    padding: 20px;
    padding-top: 50px;
  }
  .page-register__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }
  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-register__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 1em;
  }
  /* Mobile image, video, and button responsive adaptations */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-image-wrapper,
  .page-register__security-content,
  .page-register__steps-grid,
  .page-register__benefits-grid,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-register__hero-cta-button,
  .page-register__submit-button,
  .page-register__cta-button,
  .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;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }
  .page-register__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}