/* style/register.css */

/* Base styles for the page content */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background #f5f5f5 */
  background-color: #f5f5f5; /* Matching body background */
}

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #f0f8ff; /* Light background for hero */
  overflow: hidden;
}

.page-register__hero-content {
  max-width: 800px;
  z-index: 1;
  position: relative;
}

.page-register__hero-title {
  font-size: 2.8em;
  color: #26A9E0; /* Brand color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1; /* Subtle background image */
}

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

.page-register__section-title--white {
  color: #ffffff;
}

.page-register__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-register__section-description--white {
  color: #f0f0f0;
}

/* Buttons */
.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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
}

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

.page-register__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-register__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #26A9E0; /* Brand color for text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
}

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

/* General content padding */
.page-register__benefits-section,
.page-register__steps-section,
.page-register__security-section,
.page-register__bonus-section,
.page-register__faq-section,
.page-register__cta-final-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Light and Dark Backgrounds */
.page-register__light-bg {
  background-color: #ffffff; /* White background for light sections */
  color: #333333;
}

.page-register__dark-bg {
  background-color: #26A9E0; /* Brand color for dark sections */
  color: #ffffff;
}

/* Benefit Cards */
.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__benefit-card {
  background-color: #f0f8ff; /* Lighter background for cards */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-register__benefit-icon {
  width: 80%; /* Ensure images are not small icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 200px; /* Example, adjust as needed but keep >= 200px */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
  object-fit: cover;
}

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

.page-register__card-title--white {
  color: #ffffff;
}

.page-register__card-text {
  font-size: 1em;
  color: #555555;
}

.page-register__card-text--white {
  color: #f0f0f0;
}

/* Registration Steps */
.page-register__steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

/* Security Section */
.page-register__security-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
}

.page-register__security-content {
  flex: 1;
}

.page-register__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-register__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
  object-fit: cover;
}

.page-register__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-register__security-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.page-register__security-icon {
  font-size: 1.5em;
  color: #26A9E0;
  margin-right: 15px;
  flex-shrink: 0;
}

.page-register__security-text {
  font-size: 1.1em;
  color: #555555;
}

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

.page-register__bonus-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__bonus-icon {
  width: 80%; /* Ensure images are not small icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 200px; /* Example, adjust as needed but keep >= 200px */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
  object-fit: cover;
}

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

.page-register__faq-item {
  background-color: #f0f8ff; /* Lighter background for FAQ items */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  font-size: 1.2em;
  color: #26A9E0;
  margin: 0;
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

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

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

.page-register__faq-text {
  font-size: 1em;
  color: #555555;
  margin: 0;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__security-section {
    flex-direction: column;
  }
  .page-register__security-image-wrapper {
    margin-top: 40px;
  }
}

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

  .page-register__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

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

  .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;
    margin-bottom: 10px; /* Space between stacked buttons */
  }
  
  .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; /* Ensure gap for wrapped buttons */
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

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

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

  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__bonus-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__benefits-grid,
  .page-register__steps-container,
  .page-register__bonus-grid {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .page-register__benefit-icon,
  .page-register__bonus-icon,
  .page-register__security-image,
  .page-register img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of container */
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Maintain minimum size for content images */
    min-height: 200px !important;
  }

  /* Specific content containers for mobile padding */
  .page-register__security-content,
  .page-register__security-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0; /* Already handled by section padding */
    padding-right: 0;
  }

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

  .page-register__faq-answer {
    padding: 0 20px;
  }

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px;
  }
}