.page-register {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #121212; /* Inherited from body, ensuring consistency */
}

.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;
  height: 600px; /* Adjust height as needed */
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-register__hero-section .page-register__container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

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

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

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

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

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

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

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

.page-register__form-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Light background for form */
  color: #333333; /* Dark text for light background */
}

.page-register__registration-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  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: bold;
  color: #333333;
}

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

.page-register__form-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

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

.page-register__form-checkbox {
  margin-top: 5px;
}

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

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

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  border: none;
  cursor: pointer;
  background-color: #007bff;
  color: #ffffff;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-register__submit-button:hover {
  background-color: #0056b3;
}

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

.page-register__advantages-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-register__advantage-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-register__advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.page-register__advantage-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

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

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

.page-register__security-section {
  padding: 80px 0;
  background-color: #f8f9fa;
  color: #333333;
}

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-register__security-text {
  flex: 1;
}

.page-register__security-subtitle {
  font-size: 1.8em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-register__security-text p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-register__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-register__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-register__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #007bff; /* Brand color for question */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffc107;
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

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

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

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

.page-register__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.3em;
  margin-top: 30px;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-register__security-content {
    flex-direction: column;
  }
  .page-register__security-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100%;
    padding: 12px 20px;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 0.95em;
  }
  .page-register__form-section, 
  .page-register__advantages-section, 
  .page-register__security-section, 
  .page-register__faq-section, 
  .page-register__cta-final-section {
    padding: 40px 0;
  }
  .page-register__registration-form {
    padding: 20px;
  }
  .page-register__advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-register__advantage-icon {
    width: 80px;
    height: 80px;
  }
  .page-register__advantage-title {
    font-size: 1.3em;
  }
  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-title {
    font-size: 1.1em;
  }
  .page-register__faq-answer {
    padding: 15px 20px;
  }
  
  /* Mobile responsive images/videos/buttons - forced */
  .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__hero-cta-buttons,
  .page-register__button-group,
  .page-register__btn-container,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    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;
  }
  .page-register__hero-cta-buttons {
    flex-direction: column !important; /* Ensure buttons stack */
    gap: 10px !important;
  }
}