/* style/register.css */

/* Base styles for the page-register scope */
.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 is #121212 from shared.css */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-register__btn-primary {
  display: inline-block;
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box;
}

.page-register__btn-primary:hover {
  background-color: #1a7aab; /* Darker shade for hover */
  transform: translateY(-2px);
}

.page-register__btn-primary--large {
  padding: 18px 35px;
  font-size: 1.2em;
  min-width: 250px;
}

.page-register__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #26A9E0;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box;
}

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

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-register__cta-buttons--center {
  margin-top: 50px;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background: linear-gradient(135deg, #121212, #2a2a2a); /* Dark gradient background */
  color: #ffffff;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden;
}

.page-register__hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
  position: relative;
  padding: 20px;
}

.page-register__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff; /* White for main title on dark background */
  font-weight: bold;
}

.page-register__intro-text {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  opacity: 0.3; /* Subtle background image */
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly to improve text contrast */
  /* NO filter: sepia() or other color changing filters */
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for this section */
}

.page-register__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-register__benefit-card {
  background-color: #2a2a2a; /* Slightly lighter dark for card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-card:hover {
  transform: translateY(-10px);
  background-color: #3a3a3a;
}

.page-register__benefit-icon {
  /* Removed fixed width/height to rely on HTML attributes and max-width/height:auto for responsiveness */
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure responsiveness */
  height: auto;
}

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

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

/* How-To-Register Section */
.page-register__how-to-register-section {
  padding: 80px 0;
  background-color: #121212; /* Body background color */
  color: #ffffff;
}

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

.page-register__step-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.page-register__step-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images are not too wide in card */
  border-radius: 8px;
  object-fit: cover;
  margin-top: auto; /* Push image to bottom if text content varies */
}

.page-register__important-notes {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__notes-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.page-register__important-notes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-register__important-notes li {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #cccccc;
  padding-left: 25px;
  position: relative;
}

.page-register__important-notes li:last-child {
  margin-bottom: 0;
}

.page-register__important-notes li::before {
  content: "⚠️"; /* Unicode warning sign */
  position: absolute;
  left: 0;
  color: #EA7C07; /* Login orange color for warning */
  font-size: 1.2em;
  line-height: 1.6;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-register__promo-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__promo-card:hover {
  transform: translateY(-10px);
  background-color: #3a3a3a;
}

.page-register__promo-image {
  width: 100%;
  height: auto; /* Let it scale proportionally based on HTML attributes and max-width */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #121212;
  color: #ffffff;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #2a2a2a;
  border-bottom: 1px solid #3a3a3a;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question h3 {
  font-size: 1.3em;
  color: #ffffff;
  margin: 0;
  font-weight: normal;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  color: #26A9E0;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
  color: #EA7C07; /* Orange for active toggle */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #1a1a1a;
}

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

.page-register__faq-answer p {
  margin: 0;
  color: #cccccc;
  font-size: 1em;
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-register__cta-content {
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 3em;
  }
  .page-register__intro-text {
    font-size: 1.2em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    flex-direction: column;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    min-height: unset;
  }

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

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

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

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

  .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,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  .page-register__hero-image-container {
    position: relative;
    height: 250px; /* Adjust height for mobile */
    opacity: 0.5;
  }

  .page-register__benefits-section,
  .page-register__how-to-register-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 50px 0;
  }

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

  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  /* All content images must be responsive and not cause overflow */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content must be responsive */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-image-container,
  .page-register__step-card,
  .page-register__promo-card,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .page-register__faq-question,
  .page-register__faq-answer {
    padding: 15px 20px;
  }

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

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px;
  }
  
  .page-register__important-notes {
    padding: 20px;
  }
  .page-register__notes-title {
    font-size: 1.5em;
  }
  .page-register__important-notes li {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 2em;
  }
  .page-register__intro-text {
    font-size: 1em;
  }
  .page-register__btn-primary--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }
  .page-register__faq-question h3 {
    font-size: 1em;
  }
}

/* Color contrast enforcement - based on body background #121212 (dark) */
/* All text should be light, all backgrounds should provide enough contrast */

/* General text color for the page, assuming dark body background */
.page-register {
  color: #ffffff; /* Light text for dark body background */
}

/* Specific elements on potentially varying backgrounds */
.page-register__hero-content,
.page-register__main-title,
.page-register__intro-text {
  color: #ffffff; /* White text on dark hero background */
}

.page-register__section-title {
  color: #26A9E0; /* Brand color, ensures contrast on dark backgrounds */
}

.page-register__section-description,
.page-register__benefit-text,
.page-register__step-text,
.page-register__promo-text,
.page-register__important-notes li p,
.page-register__faq-answer p {
  color: #cccccc; /* Slightly softer white for body text */
}

.page-register__benefit-card,
.page-register__step-card,
.page-register__promo-card,
.page-register__faq-item {
  background-color: #2a2a2a; /* Darker card background */
}

.page-register__faq-answer {
  background-color: #1a1a1a; /* Even darker for collapsed answers */
}

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

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

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

.page-register__faq-toggle {
  color: #26A9E0;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #EA7C07; /* Orange for active toggle */
}