/* style/register.css */

:root {
  --page-register-primary-color: #26A9E0;
  --page-register-secondary-color: #FFFFFF;
  --page-register-login-color: #EA7C07;
  --page-register-background-color: #FFFFFF;
  --page-register-dark-text-color: #333333;
  --page-register-light-text-color: #ffffff;
  --page-register-dark-bg-color: #0a0a0a;
}

/* Base styles for the page, adapting to body's dark background */
.page-register {
  font-family: 'Arial', sans-serif;
  color: var(--page-register-light-text-color); /* Body is dark, so text is light */
  line-height: 1.6;
  background-color: var(--page-register-dark-bg-color);
}

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

.page-register__section {
  padding: 60px 0;
}

.page-register__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-register-light-text-color);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-register__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.8);
}

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--page-register-primary-color);
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-register__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
  color: var(--page-register-light-text-color);
}

.page-register__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--page-register-light-text-color);
}

.page-register__hero-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s 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: var(--page-register-primary-color);
  color: var(--page-register-light-text-color);
  border: 2px solid var(--page-register-primary-color);
  margin: 0 10px;
}

.page-register__btn-primary:hover {
  background-color: darken(var(--page-register-primary-color), 10%);
  border-color: darken(var(--page-register-primary-color), 10%);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: var(--page-register-primary-color);
  border: 2px solid var(--page-register-primary-color);
  margin: 0 10px;
}

.page-register__btn-secondary:hover {
  background-color: var(--page-register-primary-color);
  color: var(--page-register-light-text-color);
}

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

/* Benefits Section */
.page-register__benefits-section {
  background-color: var(--page-register-dark-bg-color);
  color: var(--page-register-light-text-color);
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-register-light-text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--page-register-primary-color);
}

.page-register__card-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* How-to-Register Section */
.page-register__how-to-register-section {
  background-color: var(--page-register-dark-bg-color);
  color: var(--page-register-light-text-color);
}

.page-register__steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 50px;
}

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-register-light-text-color);
}

.page-register__step-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-register-primary-color);
}

.page-register__step-text {
  font-size: 1rem;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.page-register__step-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.page-register__step-list li {
  margin-bottom: 8px;
}

.page-register__step-list strong {
  color: var(--page-register-light-text-color);
}

.page-register__step-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 20px auto 0;
  border-radius: 8px;
}

/* Requirements Section */
.page-register__requirements-section {
  background-color: var(--page-register-dark-bg-color);
  color: var(--page-register-light-text-color);
}

.page-register__requirements-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-register__requirements-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding-left: 45px;
}

.page-register__requirements-list li::before {
  content: '✓';
  color: var(--page-register-primary-color);
  font-weight: 700;
  font-size: 1.2rem;
  position: absolute;
  left: 15px;
  top: 20px;
}

.page-register__requirements-list strong {
  color: var(--page-register-light-text-color);
}

/* FAQ Section */
.page-register__faq-section {
  background-color: var(--page-register-dark-bg-color);
  color: var(--page-register-light-text-color);
}

.page-register__faq-list {
  margin-top: 40px;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  color: var(--page-register-light-text-color);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--page-register-light-text-color);
}

.page-register__faq-question::-webkit-details-marker {
  display: none;
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-register-primary-color);
}

.page-register__faq-item[open] .page-register__faq-toggle {
  content: '−';
}

.page-register__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

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

/* CTA Bottom Section */
.page-register__cta-bottom {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--page-register-primary-color);
  color: var(--page-register-light-text-color);
  text-align: center;
}

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

.page-register__cta-bottom .page-register__section-title {
  color: var(--page-register-light-text-color);
  margin-bottom: 25px;
}

.page-register__cta-bottom .page-register__section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

/* Links within text */
.page-register a {
  color: var(--page-register-primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register a:hover {
  color: darken(var(--page-register-primary-color), 15%);
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-image-wrapper {
    max-height: 500px;
  }
  .page-register__section-title {
    font-size: 2rem;
  }
  .page-register__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__section {
    padding: 40px 0;
  }

  .page-register__hero-section {
    padding-bottom: 40px;
  }

  .page-register__hero-image-wrapper {
    max-height: 400px;
  }

  .page-register__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

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

  .page-register__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-register__benefits-grid,
  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  /* All images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers responsive */
  .page-register__hero-image-wrapper,
  .page-register__benefits-grid,
  .page-register__step-card,
  .page-register__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-register__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Ensure padding for content containers on mobile */
  .page-register__section,
  .page-register__card,
  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__section-title {
    font-size: 1.5rem;
  }
  .page-register__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-register__hero-image-wrapper {
    max-height: 300px;
  }
  .page-register__step-title {
    font-size: 1.5rem;
  }
}