/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0d0d0d; /* Inherited from body via shared.css */
}

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

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

.page-register__dark-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-register__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-register__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-register__hero-image-container {
  width: 100%;
  position: relative;
  /* Ensure image is above content */
  order: 1;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 70vh; /* Limit height for hero image */
}

.page-register__hero-content {
  order: 2;
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content slightly over the image for visual flow, but not overlap */
  background: rgba(13, 13, 13, 0.85); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

/* Buttons */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-register__button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

/* Why Register Section */
.page-register__why-register-section .page-register__section-title {
  color: #26A9E0;
}

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

.page-register__feature-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

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

.page-register__feature-item p {
  color: #555555;
}

/* Registration Guide Section */
.page-register__registration-guide .page-register__section-title {
  color: #ffffff;
}

.page-register__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  position: relative;
  padding-left: 80px;
  color: #ffffff;
}

.page-register__step-number {
  position: absolute;
  left: 20px;
  top: 30px;
  background-color: #26A9E0;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

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

.page-register__guide-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Security & Privacy Section */
.page-register__security-privacy .page-register__section-title {
  color: #26A9E0;
}

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

.page-register__security-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  border: 1px solid #e0e0e0;
}

/* Promotions Section */
.page-register__promotions-new-members .page-register__section-title {
  color: #ffffff;
}

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

.page-register__card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-register__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-register__card p {
  color: #f0f0f0;
  flex-grow: 1;
}

/* FAQ Section */
.page-register__faq-section .page-register__section-title {
  color: #26A9E0;
}

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

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

.page-register__faq-item details > summary {
  list-style: none;
}

.page-register__faq-item details > summary::-webkit-details-marker {
  display: none;
}

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

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

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 10px;
}

.page-register__faq-answer {
  padding: 20px;
  padding-top: 0;
  font-size: 1.1em;
  line-height: 1.6;
  color: #555555;
}

/* Final CTA Section */
.page-register__final-cta-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
}

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

.page-register__final-cta-section .page-register__text-block {
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-content {
    margin-top: -50px;
    padding: 30px 20px;
  }

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

  .page-register__hero-description {
    font-size: 1.1em;
  }

  .page-register__guide-steps {
    gap: 30px;
  }

  .page-register__step-item {
    padding-left: 60px;
  }

  .page-register__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
    left: 15px;
    top: 25px;
  }
}

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

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

  .page-register__hero-content {
    margin-top: -30px;
    padding: 25px 15px;
  }

  .page-register__main-title {
    font-size: 2.2em;
  }

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

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

  .page-register__text-block {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 5px 0 !important;
  }

  .page-register__button-group {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-register__features-grid,
  .page-register__security-features,
  .page-register__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__card-image {
    height: 180px;
  }

  .page-register__guide-steps {
    gap: 20px;
  }

  .page-register__step-item {
    padding: 20px;
    padding-left: 50px;
  }

  .page-register__step-number {
    left: 15px;
    top: 20px;
    width: 30px;
    height: 30px;
    font-size: 1.1em;
  }

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

  .page-register__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }

  .page-register__faq-answer {
    padding: 15px;
    font-size: 1em;
  }

  .page-register__final-cta-section {
    padding: 50px 0;
  }

  /* 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,
  .page-register__hero-image-container,
  .page-register__hero-content,
  .page-register__guide-image,
  .page-register__security-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

@media (max-width: 480px) {
  .page-register__hero-section {
    min-height: 400px;
  }

  .page-register__hero-content {
    margin-top: -20px;
    padding: 20px 10px;
  }

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

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

  .page-register__cta-button {
    margin: 5px 0 !important;
  }
}