.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 70vh;
  overflow: hidden;
  color: #ffffff;
  background-color: #26A9E0; /* Primary brand color for hero */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

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

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

.page-register__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-register__btn-primary:hover {
  background-color: #d46c06;
  transform: translateY(-2px);
}

.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Primary brand color for titles */
}

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

.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__section-description,
.page-register__light-bg .page-register__login-prompt,
.page-register__light-bg .page-register__form-label,
.page-register__light-bg .page-register__form-checkbox-label {
  color: #333333; /* Dark text for light background */
}

.page-register__light-bg .page-register__link {
  color: #26A9E0;
}

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

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

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

.page-register__form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.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: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-register__captcha-image {
  border-radius: 5px;
  border: 1px solid #ccc;
}

.page-register__form-checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

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

.page-register__form-checkbox-label {
  font-size: 0.95em;
  color: #333333;
}

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

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

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
}

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

.page-register__advantages-section {
  background-color: #1a1a1a; /* Dark background for advantages */
  padding: 80px 0;
  color: #ffffff;
}

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

.page-register__advantage-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-register__advantage-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-register__advantage-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__advantage-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__video-section {
  background-color: #ffffff;
  padding: 80px 0;
}

.page-register__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-register__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

.page-register__video-cta {
  text-align: center;
  margin-top: 30px;
}

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

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

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

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

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

.page-register__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.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; /* Use !important to ensure override */
  padding: 15px 25px 25px 25px;
}

.page-register__cta-section {
  background-color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-register__cta-container {
  max-width: 800px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__hero-description,
  .page-register__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 0.95em;
  }
  .page-register__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-register__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }
  .page-register__section-description {
    font-size: 0.9em;
    padding: 0 15px;
  }

  .page-register__container,
  .page-register__form-wrapper,
  .page-register__advantages-grid,
  .page-register__video-wrapper,
  .page-register__faq-list,
  .page-register__cta-container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of their container */
    height: auto !important;
    display: block !important;
  }
  .page-register__hero-image {
    filter: brightness(0.6) !important; /* Slightly less dark on mobile */
  }

  /* Video responsiveness */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Button responsiveness */
  .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__advantages-grid {
    grid-template-columns: 1fr;
  }

  .page-register__form-wrapper {
    padding: 25px;
  }

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

  .page-register__faq-title {
    font-size: 1.1em;
  }

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

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