.page-register {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-register__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
}

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

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

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

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

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for Login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #FFFF00; /* Border with custom font color */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.page-register__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808; /* Text color changes to custom Register color on hover */
  transform: translateY(-2px);
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

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

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

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

.page-register__benefits-section {
  background-color: #1a1a2e; /* Body background color */
  color: #ffffff;
  padding: 80px 0;
}

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

.page-register__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: #ffffff;
}

.page-register__benefit-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom font color for titles */
}

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

.page-register__benefits-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  object-fit: cover;
}

.page-register__guide-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 80px 0;
}

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

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00;
}

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

.page-register__guide-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  object-fit: cover;
}

.page-register__form-section {
  background-color: #1a1a2e; /* Body background color */
  padding: 80px 0;
}

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

.page-register__form-label {
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #ffffff;
}

.page-register__form-input {
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
}

.page-register__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

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

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

.page-register__send-code-btn {
  background-color: #C30808;
  color: #FFFF00;
  padding: 12px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.page-register__send-code-btn:hover {
  background-color: #a00606;
}

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

.page-register__form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #017439;
}

.page-register__terms-link {
  color: #FFFF00;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__terms-link:hover {
  color: #f0f0f0;
}

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

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

.page-register__login-link {
  color: #FFFF00;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-register__login-link:hover {
  color: #f0f0f0;
}

.page-register__faq-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 80px 0;
}

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

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

.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;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

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

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

.page-register__faq-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  object-fit: cover;
}

.page-register__cta-final-section {
  background-color: #1a1a2e; /* Body background color */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

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

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

  .page-register__benefit-title, .page-register__step-title {
    font-size: 1.5em;
  }

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

@media (max-width: 768px) {
  .page-register__hero-section {
    flex-direction: column;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile spacing */
  }

  .page-register__hero-title {
    font-size: 2.5em;
  }

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

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

  .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__container {
    padding: 30px 15px;
  }

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

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

  .page-register__benefits-grid,
  .page-register__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__card, .page-register__step-item {
    padding: 20px;
  }

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

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

  .page-register__form-label {
    font-size: 1em;
  }

  .page-register__form-input {
    padding: 10px 12px;
  }

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

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

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

  /* Images responsiveness */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__hero-image-wrapper,
  .page-register__benefits-section .page-register__container,
  .page-register__guide-section .page-register__container,
  .page-register__form-section .page-register__container,
  .page-register__faq-section .page-register__container,
  .page-register__cta-final-section .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

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

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

  .page-register__faq-toggle {
    font-size: 1.2em;
  }
}