.page-register {
  color: #ffffff; /* Body background is #1a1a2e (dark), so text should be light */
}

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: #017439; /* Brand color for hero background */
  overflow: hidden;
  min-height: 500px;
}

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

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: 50px;
}

.page-register__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

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

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

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

.page-register__form-section, .page-register__payment-section, .page-register__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background for content blocks */
  color: #333333; /* Dark text on light background */
}

.page-register__dark-section {
  background-color: #017439; /* Brand color for dark sections */
  color: #ffffff; /* Light text on dark background */
}

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

.page-register__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: inherit;
}

.page-register__section-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

.page-register__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-register__form-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-register__form-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-register__registration-form {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  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: 600;
  color: #333333;
}

.page-register__form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

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

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

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

.page-register__form-checkbox + label a {
  color: #017439;
  text-decoration: none;
}

.page-register__form-checkbox + label a:hover {
  text-decoration: underline;
}

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

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

.page-register__benefit-card, .page-register__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-register__benefit-icon, .page-register__promotion-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-register__benefit-title, .page-register__promotion-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit;
}

.page-register__benefit-text, .page-register__promotion-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-register__payment-methods-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-register__payment-method-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__payment-icon {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.page-register__payment-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333333;
}

.page-register__payment-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555555;
}

.page-register__cta-container {
  text-align: center;
  margin-top: 50px;
}

.page-register__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #eee;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-item[open] > .page-register__faq-question {
  background-color: #e0e0e0;
  border-bottom-color: transparent;
}

.page-register__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-register__faq-answer p {
  margin-bottom: 0;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-register__form-grid {
    grid-template-columns: 1fr;
  }
  .page-register__form-column:first-child {
    order: 2;
  }
  .page-register__form-column:last-child {
    order: 1;
  }
  .page-register__hero-content {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 10px 15px 40px;
  }
  .page-register__hero-content {
    padding: 15px;
  }
  .page-register__main-title {
    font-size: 2rem;
  }
  .page-register__hero-description {
    font-size: 0.95rem;
  }
  .page-register__section-title {
    font-size: 1.8rem;
  }
  .page-register__section-description {
    font-size: 0.9rem;
  }
  .page-register__form-section, .page-register__payment-section, .page-register__faq-section, .page-register__benefits-section, .page-register__promotions-section, .page-register__cta-final-section {
    padding: 40px 0;
  }
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__registration-form {
    padding: 20px;
  }
  .page-register__cta-button {
    font-size: 1rem;
    padding: 12px 25px;
  }
  .page-register__benefits-grid, .page-register__promotions-grid, .page-register__payment-methods-list {
    gap: 20px;
  }
  .page-register__benefit-card, .page-register__promotion-card, .page-register__payment-method-item {
    padding: 20px;
  }
  .page-register__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 15px 20px;
  }
  
  /* Mobile responsive image, video, button adaptations */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register video,
  .page-register__video {
    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-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__payment-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-final-section,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper,
  .page-register__cta-button,
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"],
  .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;
    overflow: hidden !important;
  }
  .page-register__cta-button,
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
  .page-register__video-section {
    padding-top: 10px !important;
  }
}

/* Ensure contrast for specific elements on dark background */
.page-register__dark-section h2, .page-register__dark-section p, .page-register__dark-section h3 {
  color: #ffffff;
}

/* Contrast issue: #C30808 background with #FFFF00 text has a contrast ratio of 3.5:1, which fails WCAG AA (4.5:1). This is implemented as per strict instruction, but noted for accessibility. */