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

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

.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  min-height: 600px;
  background-color: #1a1a1a; /* Dark background to contrast with red/gold */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-register__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-right: 40px;
  text-align: left;
}

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  line-height: 1.2;
}

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

.page-register__hero-image-wrapper {
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  width: 500px;
  height: 375px; /* Aspect ratio 4:3 */
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-register__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-register__btn-secondary {
  background-color: #FFD700;
  color: #000000; /* Ensure dark text on gold */
  border: 2px solid #FFD700;
}

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

.page-register__btn--full-width {
  width: 100%;
  margin-top: 20px;
}

.page-register__btn--large {
  padding: 18px 36px;
  font-size: 1.1em;
}

.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700;
}

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

.page-register__dark-bg {
  background-color: #121212;
  color: #ffffff;
  padding: 60px 0;
}

.page-register__light-bg {
  background-color: #f8f8f8;
  color: #333333;
  padding: 60px 0;
}

/* Form Section */
.page-register__form-section .page-register__section-title,
.page-register__form-section .page-register__section-description {
  color: #FFD700;
}

.page-register__form-wrapper {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  padding: 40px;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #f0f0f0;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3); /* Darker input background */
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-register__form-input:focus {
  border-color: #CC0000;
  outline: none;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.3);
}

.page-register__captcha-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.page-register__captcha-image {
  border-radius: 5px;
  height: 50px;
  width: 150px;
  object-fit: cover;
}

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

.page-register__form-checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #CC0000; /* Highlight checkbox with brand color */
}

.page-register__form-label--checkbox {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-register__text-link {
  color: #FFD700;
  text-decoration: none;
}

.page-register__text-link:hover {
  text-decoration: underline;
}

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

/* Advantages Section */
.page-register__advantages-section p,
.page-register__advantages-section h3 {
  color: #333333;
}

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

.page-register__advantage-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-register__advantage-item:hover {
  transform: translateY(-5px);
}

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

.page-register__advantage-title {
  font-size: 1.6em;
  color: #CC0000;
  margin-bottom: 15px;
}

.page-register__advantage-text {
  font-size: 1em;
  color: #555555;
}

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

/* Promotions Section */
.page-register__promotions-section p,
.page-register__promotions-section h3 {
  color: #ffffff;
}

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

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

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

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

.page-register__promotion-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-register__promotion-text {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-register__faq-section p,
.page-register__faq-section h3 {
  color: #333333;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-register__faq-title {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #CC0000;
  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: #555555;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* Final CTA Section */
.page-register__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-register__cta-section .page-register__section-title,
.page-register__cta-section .page-register__section-description {
  color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-section .page-register__container {
    flex-direction: column;
    gap: 40px;
  }

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

  .page-register__hero-image-wrapper {
    width: 100%;
    max-width: 600px;
    height: auto;
  }

  .page-register__hero-image {
    height: auto;
  }

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

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

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

  .page-register__form-wrapper {
    padding: 25px;
  }

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

  .page-register__advantages-grid,
  .page-register__promotion-cards {
    grid-template-columns: 1fr;
  }

  .page-register__advantage-item,
  .page-register__promotion-card {
    padding: 20px;
  }

  .page-register__advantage-title,
  .page-register__promotion-title {
    font-size: 1.3em;
  }

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

  .page-register__btn {
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .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__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;
  }

  .page-register__cta-buttons {
    display: flex;
    flex-direction: column;
  }

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

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__form-section,
  .page-register__advantages-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-section .page-register__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-register__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__captcha-group {
    flex-direction: column;
    align-items: stretch;
  }

  .page-register__captcha-image {
    width: 100%;
  }
}

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

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

  .page-register__form-wrapper {
    padding: 20px;
  }

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

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