.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from body, ensuring contrast */
}

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

.page-register__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px; /* Adjusted padding for hero section */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  flex-direction: column;
}

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-register__hero-title {
  font-size: 3.2em;
  color: #FFFF00; /* Custom font color for register/login */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
}

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

.page-register__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

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

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
  line-height: 1.3;
}

.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__form-section {
  padding: 80px 20px;
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 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 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #ffffff;
}

.page-register__verification-input-group {
  display: flex;
  gap: 10px;
}

.page-register__verification-code-input {
  flex-grow: 1;
}

.page-register__btn-send-code {
  background-color: #017439;
  color: #ffffff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-register__btn-send-code:hover {
  background-color: #005f2e;
}

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

.page-register__checkbox-input {
  margin-right: 10px;
  margin-top: 4px; /* Align checkbox with text */
}

.page-register__checkbox-label {
  font-size: 0.95em;
  color: #555555;
}

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

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

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

.page-register__btn-submit:hover {
  background-color: #a00606;
}

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

.page-register__benefits-section {
  padding: 80px 20px;
}

.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: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-register__benefit-icon {
  width: 200px; /* Minimum size requirement */
  height: 150px; /* Adjusted to maintain aspect ratio and minimum size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

.page-register__promo-section {
  padding: 80px 20px;
}

.page-register__promo-card {
  display: flex;
  align-items: center;
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 50px auto 0;
}

.page-register__promo-image {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.page-register__promo-content {
  width: 50%;
  padding: 40px;
  color: #333333;
}

.page-register__promo-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__promo-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-register__faq-section {
  padding: 80px 20px;
}

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

.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.15em;
  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: #FFFF00; /* Custom font color for FAQ questions */
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-register__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-register__cta-content {
  max-width: 900px;
}

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

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

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

  .page-register__promo-card {
    flex-direction: column;
  }

  .page-register__promo-image,
  .page-register__promo-content {
    width: 100%;
  }

  .page-register__promo-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 80px 15px 40px; /* Adjust for mobile */
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-register__hero-title {
    font-size: 2em;
  }

  .page-register__hero-description {
    font-size: 1em;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    margin: 5px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

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

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

  .page-register__promo-title {
    font-size: 1.5em;
  }

  .page-register__promo-text {
    font-size: 0.95em;
  }

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

  .page-register__faq-answer p {
    font-size: 0.9em;
  }

  .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__registration-form,
  .page-register__promo-card,
  .page-register__faq-list,
  .page-register__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-register__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__btn-send-code {
    padding: 10px 15px;
    font-size: 0.9em;
  }

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

  .page-register__benefit-title {
    font-size: 1.3em;
  }

  .page-register__benefit-text {
    font-size: 0.95em;
  }

  .page-register__checkbox-label {
    font-size: 0.9em;
  }
}

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

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    font-size: 0.9em;
  }

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

  .page-register__promo-title {
    font-size: 1.3em;
  }

  .page-register__promo-content {
    padding: 20px;
  }
}