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

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

/* Color contrast management based on body background (#0a0a0a) */
.page-register__dark-bg {
  background-color: #017439; /* Primary brand color for dark sections */
  color: #ffffff; /* White text for dark backgrounds */
}

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

.page-register__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-register__hero-content {
  max-width: 700px;
  margin-right: 40px;
  text-align: left;
}

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

.page-register__hero-image {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-register__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

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

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

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom color for register/login font */
  border: 2px solid #FFFF00;
}

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

.page-register__form-section {
  padding: 60px 0;
  text-align: center;
}

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit; /* Inherits from section, will be dark for light-bg, light for dark-bg */
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: inherit;
}

.page-register__registration-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  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: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-register__get-code-button {
  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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__get-code-button:hover {
  background-color: #005a2e;
}

.page-register__form-checkbox {
  margin-top: 25px;
  margin-bottom: 30px;
  font-size: 0.95em;
  color: #555555;
}

.page-register__form-checkbox input[type="checkbox"] {
  margin-right: 10px;
}

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

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

.page-register__submit-button {
  width: 100%;
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom color for register/login font */
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-register__link--login {
  color: #C30808; /* Custom color for login */
}

.page-register__why-us-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-register__feature-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  height: 100%; /* Ensure uniform height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-register__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
  width: 200px; /* Display size */
  height: 200px; /* Display size */
}

.page-register__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for titles in dark sections */
}

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

.page-register__benefits-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-register__benefit-card {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #333333;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-register__benefit-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

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

.page-register__faq-section {
  padding: 80px 0;
  text-align: center;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439; /* Primary brand color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: #005a2e;
}

.page-register__faq-title {
  margin: 0;
  color: inherit;
  font-size: 1em;
}

.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;
  background-color: rgba(255, 255, 255, 0.02); /* Lighter background for answer */
  color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-register__faq-text {
  margin: 0;
  font-size: 0.95em;
  color: #f0f0f0;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .page-register__hero-section .page-register__container {
    flex-direction: column;
  }

  .page-register__hero-content {
    margin-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }

  .page-register__cta-buttons {
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  .page-register__hero-section,
  .page-register__form-section,
  .page-register__why-us-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    padding: 40px 0;
  }

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

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

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

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

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

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__submit-button,
  .page-register__get-code-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

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

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

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

  .page-register__feature-icon {
    min-width: 150px; /* Adjust min size for mobile */
    min-height: 150px; /* Adjust min size for mobile */
    width: 150px; /* Adjust display size for mobile */
    height: 150px; /* Adjust display size for mobile */
  }
}

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

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

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__submit-button {
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-register__form-input,
  .page-register__get-code-button {
    padding: 10px 12px;
    font-size: 0.9em;
  }
}