/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches body background from shared.css */
}

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

/* Sections */
.page-register__hero-section,
.page-register__why-join-section,
.page-register__steps-section,
.page-register__benefits-section,
.page-register__security-section,
.page-register__promotions-section,
.page-register__final-cta-section {
  padding: 80px 0;
}

.page-register__hero-section {
  background: linear-gradient(135deg, #017439, #004d26); /* Darker gradient for contrast */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-register__hero-image {
  display: block;
  margin: 40px auto 0;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-register__main-title {
  font-size: 3.2em;
  color: #FFFF00; /* Custom font color for register/login */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__subtitle {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__section-title {
  font-size: 2.5em;
  color: #FFFF00; /* Custom font color for register/login */
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-register__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-register__btn-secondary {
  background-color: #FFFFFF; /* Auxiliary color */
  color: #017439; /* Primary color */
  border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #004d26;
  border-color: #004d26;
}

/* Dark/Light Background Colors for Sections */
.page-register__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast, but still dark */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #FFFFFF; /* Custom background color */
  color: #333333; /* Dark text for light background */
}

.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__card-title {
  color: #017439; /* Primary color for titles on light background */
}

.page-register__light-bg .page-register__section-description {
  color: #555555;
}

/* Feature Grid */
.page-register__features-grid,
.page-register__steps-grid,
.page-register__benefits-list,
.page-register__security-features,
.page-register__promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__feature-card,
.page-register__step-card,
.page-register__benefit-item,
.page-register__security-item,
.page-register__promo-card {
  background-color: #2a2a2a; /* Card background for dark sections */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-register__light-bg .page-register__feature-card,
.page-register__light-bg .page-register__promo-card,
.page-register__light-bg .page-register__benefit-item {
  background-color: #f8f8f8; /* Card background for light sections */
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__feature-card:hover,
.page-register__step-card:hover,
.page-register__benefit-item:hover,
.page-register__security-item:hover,
.page-register__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__feature-icon,
.page-register__step-image,
.page-register__benefit-icon,
.page-register__security-icon,
.page-register__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Adjust feature icon to meet min size while retaining circular shape */
.page-register__feature-icon {
  width: 200px; /* Adjust to meet minimum size */
  height: 200px; /* Adjust to meet minimum size */
  border-radius: 50%; /* Keep circular shape */
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FFFF00; /* Default title color for dark cards */
}

.page-register__light-bg .page-register__card-title {
  color: #017439; /* Primary color for titles on light cards */
}

.page-register__card-text {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
  color: #e0e0e0; /* Light text for dark cards */
}

.page-register__light-bg .page-register__card-text {
  color: #555555; /* Dark text for light cards */
}

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #017439; /* Primary color */
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__important-notes {
  background-color: #004d26; /* Darker primary for emphasis */
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  margin-top: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__important-notes .page-register__card-title {
  color: #FFFF00; /* Custom font color */
  margin-bottom: 15px;
}

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

.page-register__important-notes li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-register__important-notes li strong {
  color: #FFFF00; /* Custom font color */
}

.page-register__important-notes a {
  color: #FFFF00; /* Custom font color for links */
  text-decoration: underline;
}

.page-register__important-notes a:hover {
  color: #ffffff;
}

/* Final CTA */
.page-register__final-cta-section {
  text-align: center;
  background-color: #017439; /* Primary color for strong CTA */
  color: #ffffff;
}

.page-register__final-cta-section .page-register__section-title {
  color: #FFFF00; /* Custom font color */
}

.page-register__final-cta-section .page-register__section-description {
  color: #f0f0f0;
}

.page-register__cta-final-btn {
  margin-top: 40px;
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__benefits-section,
  .page-register__security-section,
  .page-register__promotions-section,
  .page-register__final-cta-section {
    padding: 60px 0;
  }

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

  .page-register__subtitle {
    font-size: 1.1em;
  }

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

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

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__benefits-list,
  .page-register__security-features,
  .page-register__promos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__feature-card,
  .page-register__step-card,
  .page-register__benefit-item,
  .page-register__security-item,
  .page-register__promo-card {
    padding: 20px;
  }

  .page-register__card-title {
    font-size: 1.2em;
  }

  .page-register__card-text {
    font-size: 0.95em;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* With !important for mobile */
  }

  /* Button containers for mobile */
  .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;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }
}

/* Ensure content images are not small icons */
/* The min-width/height is for the actual image file, not display size. Display size is handled by width/height attributes and max-width:100% */
.page-register__feature-icon, 
.page-register__step-image, 
.page-register__benefit-icon, 
.page-register__security-icon, 
.page-register__promo-image {
  min-width: 200px; /* Enforce minimum size for the image content itself */
  min-height: 200px; /* Enforce minimum size for the image content itself */
}

/* Override specific small icon width/height for feature icons for visual style, but ensure min-width/height is met */
.page-register__feature-icon {
  width: 200px; /* Display size, meeting minimum */
  height: 200px; /* Display size, meeting minimum */
  border-radius: 50%; /* Keep circular shape */
  object-fit: cover;
}

/* Links inside text */
.page-register p a, .page-register li a {
  color: #FFFF00; /* Custom font color for links in text */
  text-decoration: underline;
}

.page-register p a:hover, .page-register li a:hover {
  color: #ffffff;
}