/* style/register.css */
/* 
  BEM Naming Convention: .page-register__element-name
  CSS Scope: Limited to .page-register
  Color Contrast: Ensure WCAG AA standards are met.
  Body Background: #0a0a0a (dark) -> Use light text for main content.
  Custom Colors: Register/Login buttons: #C30808 background, #FFFF00 text.
                 Background: #FFFFFF (for specific sections/cards, not body).
*/

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-register__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Use custom font color for main title */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

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

/* General Section Styling */
.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFFF00; /* Highlight titles with custom font color */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

/* Dark Sections - for contrast with light sections */
.page-register__dark-section {
  background-color: #0d0d0d; /* Slightly lighter than body background for subtle variation */
  color: #ffffff;
}

/* Light Sections - using custom background color */
.page-register__light-section {
  background-color: #FFFFFF; /* Custom background color */
  color: #333333; /* Dark text for light background */
}

/* 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.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  box-sizing: border-box;
}

.page-register__btn-register {
  background-color: #C30808; /* Custom register button color */
  color: #FFFF00; /* Custom register button font color */
  border: 2px solid #FFFF00;
}

.page-register__btn-register:hover {
  background-color: #d81c1c;
  transform: translateY(-3px);
}

.page-register__btn-secondary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #ffffff;
  margin-left: 20px;
}

.page-register__btn-secondary:hover {
  background-color: #005a2d;
  transform: translateY(-3px);
}

.page-register__btn-download {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #ffffff;
  margin-left: 20px;
}

.page-register__btn-download:hover {
  background-color: #005a2d;
  transform: translateY(-3px);
}

/* Text Link Styling */
.page-register__text-link {
  color: #FFFF00; /* Highlight links with custom font color */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__text-link:hover {
  color: #FFD700;
}

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

.page-register__advantage-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-register__advantage-icon {
  width: 200px; /* Min size 200x200 */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px; /* Added for visual consistency */
}

.page-register__advantage-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight titles */
}

.page-register__advantage-text {
  font-size: 1em;
  line-height: 1.7;
}

/* How to Register Section */
.page-register__steps-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-register__step-card {
  background-color: #f8f8f8; /* Light background for steps */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-register__step-title {
  font-size: 1.5em;
  color: #017439; /* Brand primary color for step titles */
  margin-bottom: 15px;
}

.page-register__step-description {
  font-size: 0.95em;
  line-height: 1.6;
}

.page-register__steps-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

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

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
}

.page-register__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439; /* Brand primary color for question background */
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Plus to X for active state */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Important for JS functionality */
  padding: 15px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  color: #f0f0f0; /* Slightly off-white for body text on dark background */
}

/* Security and Privacy Section */
.page-register__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__security-item {
  background-color: #f8f8f8; /* Light background for security items */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-register__security-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-register__security-text {
  font-size: 0.95em;
  line-height: 1.6;
}

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

.page-register__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-register__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency, object-fit cover */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-register__promo-title {
  font-size: 1.5em;
  padding: 15px 20px 0;
  color: #FFFF00;
}

.page-register__promo-description {
  font-size: 0.95em;
  padding: 10px 20px 20px;
  line-height: 1.6;
}

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

.page-register__final-cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #333333;
}

.page-register__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px; /* Space between buttons */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__advantage-title {
    font-size: 1.5em;
  }
  .page-register__step-title {
    font-size: 1.3em;
  }
  .page-register__promo-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    height: auto;
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__container {
    padding: 20px 15px;
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  /* All content containers for mobile overflow */
  .page-register__hero-section,
  .page-register__advantages-section,
  .page-register__how-to-register-section,
  .page-register__faq-section,
  .page-register__security-privacy-section,
  .page-register__promotions-section,
  .page-register__final-cta-section,
  .page-register__container,
  .page-register__advantages-grid,
  .page-register__steps-wrapper,
  .page-register__faq-list,
  .page-register__security-grid,
  .page-register__promo-grid,
  .page-register__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-register__cta-button,
  .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;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__promo-image {
    height: 200px;
  }
}