.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff);
}

.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: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-register__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px);
  box-sizing: border-box;
}

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

.page-register__hero-section .page-register__container {
  position: relative;
  z-index: 2;
}

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

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-register__form-wrapper {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
  color: #333333;
  background-size: cover;
  background-position: center;
}

.page-register__form-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
}

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

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

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

.page-register__input-with-button {
  display: flex;
  gap: 10px;
}

.page-register__input-with-button .page-register__form-input {
  flex-grow: 1;
}

.page-register__send-code-btn {
  background-color: #EA7C07;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

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

.page-register__checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
}

.page-register__checkbox {
  margin-top: 5px;
}

.page-register__checkbox-label {
  font-size: 0.9em;
  color: #555555;
}

.page-register__link {
  color: #26A9E0;
  text-decoration: none;
}

.page-register__link:hover {
  text-decoration: underline;
}

.page-register__submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.page-register__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: none;
}

.page-register__btn-primary:hover {
  background: #1e87bb;
}

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

.page-register__login-link {
  font-weight: bold;
}

.page-register__benefits-section,
.page-register__steps-section,
.page-register__promotions-section,
.page-register__responsible-gambling-section,
.page-register__faq-section,
.page-register__cta-section {
  padding: 80px 0;
}

.page-register__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

.page-register__medium-bg {
  background-color: #eceff1;
  color: #333333;
}

.page-register__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__promo-text,
.page-register__dark-bg .page-register__cta-text {
  color: #ffffff;
}

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

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

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

.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: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-register__step-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  color: #333333;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-register__step-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 0.95em;
  color: #555555;
}

.page-register__guide-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__promo-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-register__promo-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__promo-btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-register__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #ffffff;
}

.page-register__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87bb;
}

.page-register__text-block {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: center;
  color: #555555;
}

.page-register__responsible-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-weight: bold;
  padding: 10px 0;
  border-bottom: 2px solid #26A9E0;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #26A9E0;
  background-color: #f0f8ff;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  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; /* Sufficiently large to show all content */
  padding: 15px 25px 25px 25px;
}

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

.page-register__cta-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

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

.page-register__cta-button {
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__form-wrapper {
    padding: 30px 20px;
  }
  .page-register__form-title {
    font-size: 1.8em;
  }
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__promotions-section,
  .page-register__responsible-gambling-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 60px 0;
  }
  .page-register__benefits-grid,
  .page-register__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-register__benefit-image {
    height: 180px;
  }
  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-register__faq-answer {
    padding: 0 20px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 20px 20px 20px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__cta-button {
    width: 100%;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-register__video-section {
    padding-top: var(--header-offset, 120px) !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;
    overflow: hidden !important;
  }
  .page-register__send-code-btn {
    padding: 12px 15px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__form-title {
    font-size: 1.5em;
  }
  .page-register__faq-question {
    font-size: 0.95em;
  }
}

/* Color contrast rules for specific sections */
.page-register__dark-bg {
  color: #ffffff;
  background-color: #26A9E0;
}

.page-register__light-bg {
  color: #333333;
  background-color: #f8f9fa;
}

.page-register__medium-bg {
  color: #333333;
  background-color: #eceff1;
}

.page-register__benefits-section .page-register__section-title {
  color: #26A9E0;
}

.page-register__promotions-section .page-register__section-title {
  color: #ffffff;
}

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

.page-register__responsible-gambling-section .page-register__text-block {
  color: #555555;
}

.page-register__responsible-gambling-section .page-register__responsible-link {
  color: #26A9E0;
}

.page-register__faq-section .page-register__section-title {
  color: #26A9E0;
}

.page-register__faq-item {
  background-color: #ffffff;
}

.page-register__faq-question {
  color: #26A9E0;
  background-color: #f0f8ff;
}

.page-register__faq-answer {
  color: #555555;
}

.page-register__send-code-btn {
  background-color: #EA7C07;
  color: #ffffff;
}

.page-register__login-link {
  color: #26A9E0;
}

.page-register__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-register__form-wrapper {
  color: #333333;
}

.page-register__form-label {
  color: #333333;
}

.page-register__checkbox-label {
  color: #555555;
}

.page-register__login-text {
  color: #555555;
}

.page-register__benefit-card {
  color: #333333;
  background-color: #ffffff;
}

.page-register__benefit-title {
  color: #26A9E0;
}

.page-register__benefit-text {
  color: #555555;
}

.page-register__step-item {
  color: #333333;
  background-color: #ffffff;
}

.page-register__step-number {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__step-title {
  color: #26A9E0;
}

.page-register__step-text {
  color: #555555;
}