/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  padding-top: var(--header-offset, 120px);
}

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

.page-register__hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0;
  background: linear-gradient(135deg, #26A9E0, #1a8cc7);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-register__hero-content {
  flex: 1;
  min-width: 300px;
  padding: 0 20px;
  box-sizing: border-box;
  max-width: 600px;
}

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

.page-register__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-register__form-container {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-register__form-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  text-align: center;
  color: #ffffff;
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  box-sizing: border-box;
}

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

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

.page-register__captcha-input {
  flex-grow: 1;
}

.page-register__captcha-image {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 1.2em;
  color: #26A9E0;
  user-select: none;
}

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

.page-register__form-checkbox {
  margin-right: 10px;
  transform: scale(1.2);
}

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

.page-register__form-link {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: bold;
}

.page-register__form-link:hover {
  color: #e0e0e0;
}

.page-register__cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: block;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-register__btn-primary:hover {
  background: #d46f06;
  border-color: #d46f06;
}

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

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

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

.page-register__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}

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

.page-register__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 25px;
  color: #26A9E0;
  font-weight: bold;
}

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

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0; /* Default for dark background */
}

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

.page-register__why-register-section,
.page-register__steps-section,
.page-register__security-section,
.page-register__promotions-section,
.page-register__faq-section,
.page-register__final-cta-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1); /* Inherit from shared */
  color: #ffffff;
}

.page-register__why-register-section .page-register__section-title,
.page-register__steps-section .page-register__section-title,
.page-register__security-section .page-register__section-title,
.page-register__promotions-section .page-register__section-title,
.page-register__faq-section .page-register__section-title {
  color: #26A9E0;
}

.page-register__why-register-section .page-register__section-description,
.page-register__steps-section .page-register__section-description,
.page-register__security-section .page-register__section-description,
.page-register__promotions-section .page-register__section-description,
.page-register__faq-section .page-register__section-description {
  color: #cccccc;
}

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

.page-register__benefit-card,
.page-register__security-item,
.page-register__promo-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.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover,
.page-register__security-item:hover,
.page-register__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-register__benefit-title,
.page-register__security-item-title,
.page-register__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__benefit-text,
.page-register__security-item-text,
.page-register__promo-text {
  font-size: 1em;
  color: #cccccc;
}

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

.page-register__step-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.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__step-icon {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

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

.page-register__step-text {
  font-size: 1em;
  color: #cccccc;
}

.page-register__steps-image-wrapper {
  margin-top: 60px;
  text-align: center;
}

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

.page-register__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-register__security-item-text {
  color: #cccccc;
}

.page-register__security-image-wrapper {
  margin-top: 60px;
  text-align: center;
}

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

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-register__faq-question-text {
  font-size: 1.2em;
  color: #26A9E0;
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  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;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-register__faq-answer-text {
  color: #cccccc;
  padding-bottom: 10px;
}

.page-register__final-cta-section {
  background: linear-gradient(135deg, #26A9E0, #1a8cc7);
  text-align: center;
  padding: 60px 0;
}

.page-register__dark-bg {
  background: linear-gradient(135deg, #26A9E0, #1a8cc7);
  color: #ffffff;
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.5em;
  }

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

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-register__hero-section {
    flex-direction: column;
    padding: 40px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__hero-content,
  .page-register__hero-image-wrapper {
    padding: 0 15px;
    max-width: 100%;
  }

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

  .page-register__hero-description {
    font-size: 1em;
    text-align: center;
    margin-bottom: 20px;
  }

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

  .page-register__form-title {
    font-size: 1.5em;
  }

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

  .page-register__captcha-image {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

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

  .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--center {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-register__section-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-register__benefits-grid,
  .page-register__security-grid,
  .page-register__promo-grid,
  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-register__why-register-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 50px 0;
  }

  .page-register__benefit-card,
  .page-register__security-item,
  .page-register__promo-card,
  .page-register__step-card {
    padding: 25px;
  }

  .page-register__benefit-title,
  .page-register__security-item-title,
  .page-register__promo-title,
  .page-register__step-title {
    font-size: 1.3em;
  }

  .page-register__steps-image-wrapper,
  .page-register__security-image-wrapper {
    margin-top: 40px;
    padding: 0 15px;
  }

  .page-register img,
  .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__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__faq-question {
    padding: 15px 20px;
  }

  .page-register__faq-question-text {
    font-size: 1.1em;
  }

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

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 20px;
  }

  .page-register__dark-bg {
    padding: 30px 15px;
  }
}

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

  .page-register__form-title {
    font-size: 1.3em;
  }

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

  .page-register__benefit-title,
  .page-register__security-item-title,
  .page-register__promo-title,
  .page-register__step-title {
    font-size: 1.2em;
  }
}