.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Body background */
}

.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 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: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #017439, #FFFFFF);
  color: #ffffff;
}

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

.page-register__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-register__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__cta-button--register, .page-register__submit-button {
  background: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register/login */
}

.page-register__cta-button--login {
  background: #C30808; /* Custom color for login */
  color: #FFFF00; /* Custom font color for register/login */
}

.page-register__cta-button--view-all {
  background: #017439;
  color: #FFFFFF;
}

.page-register__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-register__section-description {
  font-size: 16px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

.page-register__form-section .page-register__section-title {
  color: #FFFF00; /* Custom font color for register/login */
}

.page-register__form-section .page-register__section-description {
  color: #f0f0f0;
}

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

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

.page-register__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 16px;
  color: #ffffff;
}

.page-register__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #017439;
  border-radius: 5px;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  box-sizing: border-box;
}

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

.page-register__form-group--checkbox {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.page-register__form-checkbox {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  accent-color: #C30808;
}

.page-register__form-group--checkbox .page-register__form-label {
  margin-bottom: 0;
  color: #ffffff;
}

.page-register__text-link {
  color: #FFFF00; /* Custom font color for register/login */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__text-link:hover {
  color: #ffcc00;
}

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

.page-register__submit-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #ffffff;
}

.page-register__benefits-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.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: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__benefit-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-register__benefit-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__benefit-text {
  font-size: 15px;
  color: #555555;
}

.page-register__how-to-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

.page-register__how-to-section .page-register__section-title {
  color: #FFFF00; /* Custom font color for register/login */
}

.page-register__how-to-section .page-register__section-description {
  color: #f0f0f0;
}

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

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

.page-register__step-number {
  width: 60px;
  height: 60px;
  background: #FFFF00; /* Custom font color for register/login */
  color: #017439;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-register__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__step-text {
  font-size: 15px;
  color: #f0f0f0;
}

.page-register__how-to-image {
  margin-top: 50px;
  text-align: center;
}

.page-register__how-to-image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.page-register__promotions-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-register__promotion-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-register__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-register__promotion-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__promotion-text {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
}

.page-register__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-secondary:hover {
  background: #017439;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-register__faq-section .page-register__section-title {
  color: #FFFF00; /* Custom font color for register/login */
}

.page-register__faq-section .page-register__section-description {
  color: #f0f0f0;
}

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

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Use!important ensure priority, value large enough to accommodate any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-register__faq-question:active {
  background: rgba(255, 255, 255, 0.35);
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFFF00; /* Custom font color for register/login */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #FFFF00;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

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

.page-register__cta-section .page-register__section-title {
  color: #017439;
}

.page-register__cta-section .page-register__section-description {
  color: #555555;
}

.page-register__cta-button--final {
  background: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register/login */
  margin-top: 40px;
}

.page-register__cta-button--login {
  background: #017439;
  color: #FFFFFF;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-title {
    font-size: 32px;
  }

  .page-register__hero-description {
    font-size: 16px;
  }

  .page-register__hero-image img {
    border-radius: 4px;
  }

  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0;
  }

  .page-register__section-title {
    font-size: 28px;
  }

  .page-register__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-register__form-section, .page-register__benefits-section, .page-register__how-to-section, .page-register__promotions-section, .page-register__faq-section, .page-register__cta-section {
    padding: 50px 0;
  }

  .page-register__form {
    padding: 25px;
  }

  .page-register__form-input, .page-register__submit-button {
    padding: 12px;
    font-size: 15px;
  }

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

  .page-register__benefit-title, .page-register__step-title, .page-register__promotion-title {
    font-size: 20px;
  }

  .page-register__benefit-image, .page-register__promotion-image {
    height: 180px;
  }

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

  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-register__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

  .page-register__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

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

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

  .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;
    display: flex;
    flex-direction: column;
  }

  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
  }
}