.page-register {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#000000) */
}

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

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

.page-register__section-subtitle {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-register__link {
  color: #FFFF00; /* Custom color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__link:hover {
  color: #017439;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  box-sizing: border-box;
}

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

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

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

.page-register__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-register__hero-button {
  display: inline-block;
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom font color for register button */
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #C30808;
}

.page-register__hero-button:hover {
  background-color: #017439;
  border-color: #017439;
  color: #ffffff;
}

/* Form Section */
.page-register__form-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for contrast */
  padding: 80px 0;
  margin-top: -100px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 2;
  border-radius: 15px;
}

.page-register__form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

.page-register__checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.page-register__form-checkbox {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid #017439;
  background-color: rgba(255, 255, 255, 0.1);
  appearance: none;
  cursor: pointer;
  position: relative;
  top: 2px;
}

.page-register__form-checkbox:checked {
  background-color: #017439;
  border-color: #017439;
}

.page-register__form-checkbox:checked::before {
  content: '✔';
  color: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
}

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

.page-register__submit-button {
  width: 100%;
  padding: 18px;
  background-color: #C30808; /* Custom color for submit button */
  color: #FFFF00; /* Custom font color for submit button */
  border: none;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.02);
}

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

.page-register__benefit-card {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #017439;
}

.page-register__benefit-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-register__benefit-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-register__step-card {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #017439;
  position: relative;
  padding-top: 80px;
}

.page-register__step-number {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  font-weight: bold;
  border: 4px solid #FFFF00;
  box-shadow: 0 0 0 5px rgba(1, 116, 57, 0.3);
}

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

.page-register__step-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

.page-register__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

/* Responsible Gaming Section */
.page-register__responsible-gaming-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.02);
}

.page-register__responsible-gaming-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-register__responsible-gaming-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px;
}

.page-register__responsible-gaming-text {
  flex: 1;
  min-width: 300px;
}

.page-register__text-title {
  font-size: 2em;
  color: #FFFF00;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__responsible-gaming-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-register__responsible-gaming-text li {
  margin-bottom: 15px;
  color: #cccccc;
  font-size: 1em;
  line-height: 1.6;
}

.page-register__responsible-gaming-text li strong {
  color: #ffffff;
}

.page-register__description-text {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-register__responsible-gaming-button {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #017439;
}

.page-register__responsible-gaming-button:hover {
  background-color: #FFFF00;
  color: #017439;
  border-color: #FFFF00;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: rgba(0, 0, 0, 0.6);
}

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #017439;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
  font-weight: bold;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  color: #FFFF00;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
  color: #017439;
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

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

/* Call to Action Section */
.page-register__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-register__cta-button {
  display: inline-block;
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom font color for register button */
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #C30808;
  margin-bottom: 20px;
}

.page-register__cta-button:hover {
  background-color: #017439;
  border-color: #017439;
  color: #ffffff;
}

.page-register__cta-secondary-text {
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.2em;
  }
  .page-register__hero-button {
    font-size: 1.2em;
    padding: 15px 30px;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__responsible-gaming-content {
    flex-direction: column;
  }
  .page-register__responsible-gaming-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    height: auto;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header */
  }
  .page-register__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-register__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-register__hero-button {
    font-size: 1.1em;
    padding: 12px 25px;
  }
  .page-register__form-section {
    margin-top: -60px;
    padding: 60px 0;
  }
  .page-register__form {
    padding: 20px;
  }
  .page-register__form-label {
    font-size: 1em;
  }
  .page-register__form-input {
    padding: 12px;
    font-size: 0.9em;
  }
  .page-register__submit-button {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__responsible-gaming-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 60px 0;
  }
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-register__section-subtitle {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-register__benefit-card,
  .page-register__step-card {
    padding: 25px;
  }
  .page-register__step-card {
    padding-top: 70px;
  }
  .page-register__step-number {
    width: 50px;
    height: 50px;
    font-size: 2em;
    top: -25px;
  }
  .page-register__benefit-title,
  .page-register__step-title {
    font-size: 1.3em;
  }
  .page-register__responsible-gaming-image {
    min-width: unset;
    max-width: 100%;
  }
  .page-register__text-title {
    font-size: 1.6em;
  }
  .page-register__responsible-gaming-button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-register__faq-question h3 {
    font-size: 1em;
  }
  .page-register__faq-toggle {
    font-size: 1.3em;
  }
  .page-register__cta-button {
    font-size: 1.2em;
    padding: 15px 30px;
  }

  /* Mobile responsive for images, videos, buttons and their containers */
  .page-register img {
    max-width: 100% !important;
    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__form,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper,
  .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"] {
    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 {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__hero-description {
    font-size: 0.9em;
  }
  .page-register__hero-button {
    font-size: 1em;
    padding: 10px 20px;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__benefit-title,
  .page-register__step-title {
    font-size: 1.2em;
  }
  .page-register__form {
    padding: 15px;
  }
  .page-register__form-input {
    font-size: 0.85em;
  }
  .page-register__submit-button {
    font-size: 1em;
  }
  .page-register__responsible-gaming-text ul {
    padding-left: 20px;
  }
}