/* style/register.css */

/* Base styles for the register page, inheriting from shared.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-register__dark-bg {
  background-color: #0d0d0d; /* Dark background for sections */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

.page-register__section-title {
  font-size: clamp(2em, 4vw, 3em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
  line-height: 1.2;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  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: #1e87b6;
  border-color: #1e87b6;
}

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

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

.page-register__btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

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

/* 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, more bottom padding */
  overflow: hidden;
  box-sizing: border-box;
}

.page-register__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  order: 1; /* Image first in DOM */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.6); /* Darken image for text contrast */
}

.page-register__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  order: 2; /* Content after image in DOM */
  margin-top: 40px; /* Space between image and content */
}

.page-register__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
}

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

.page-register__feature-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  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__feature-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-width: 250px; /* Limit max size */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__feature-card p {
  color: #cccccc;
}

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-register__step-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
  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-number {
  font-size: 2.5em;
  font-weight: 900;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1;
}

.page-register__step-card p {
  color: #cccccc;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
}

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

.page-register__promo-card {
  background-color: #1a1a1a;
  padding-bottom: 20px; /* Adjust padding as image takes full width */
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.page-register__promo-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.page-register__promo-card .page-register__card-title {
  padding: 0 20px;
  color: #26A9E0;
}

.page-register__promo-card p {
  padding: 0 20px;
  color: #cccccc;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-register__security-text,
.page-register__security-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-register__security-text p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-register__security-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: #222;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  list-style: none; /* For details/summary */
}

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

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

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

.page-register__faq-item[open] .page-register__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-register__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #cccccc;
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

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

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 500px;
    padding-bottom: 40px;
  }

  .page-register__main-title {
    font-size: clamp(2em, 8vw, 3em);
  }

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

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  
  .page-register__btn-primary, 
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  .page-register__section-intro {
    font-size: 0.95em;
  }

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

  .page-register__security-content {
    flex-direction: column;
  }

  .page-register__security-text,
  .page-register__security-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  
  /* Mobile responsive image adaptation */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Containers for images */
  .page-register__hero-image-wrapper,
  .page-register__feature-card,
  .page-register__promo-card,
  .page-register__security-image-wrapper,
  .page-register__container,
  .page-register__hero-content,
  .page-register__cta-buttons,
  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__promo-grid,
  .page-register__security-content,
  .page-register__faq-list,
  .page-register__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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