/* 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: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-register__text-center {
  text-align: center;
}

/* Color contrast enforcement */
.page-register__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

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

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

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

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

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

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

.page-register__btn-tertiary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-register__btn-tertiary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
  text-align: center;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-register__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

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

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


/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
}

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

.page-register__benefit-card {
  background-color: #ffffff; /* White background for cards on light section */
  color: #333333; /* Dark text for light background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

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

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

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

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

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__step-number {
  background-color: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register font color */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: -55px auto 20px auto; /* Position above card */
  border: 3px solid #0a0a0a; /* To stand out from background */
}

.page-register__step-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__image-center {
  text-align: center;
  margin-top: 60px;
}

.page-register__process-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-register__security-list {
  list-style: none;
  padding: 0;
}

.page-register__list-item {
  margin-bottom: 25px;
  padding-left: 30px;
  position: relative;
}

.page-register__list-item::before {
  content: '✔';
  color: #017439; /* Brand primary color for checkmark */
  font-size: 1.2em;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-register__list-title {
  font-size: 1.3em;
  color: #017439; /* Brand primary color for titles */
  margin-bottom: 5px;
  font-weight: bold;
}

.page-register__list-description {
  font-size: 1em;
  color: #555555;
}

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

.page-register__security-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.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: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for light background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-register__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
}

.page-register__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__promo-content .page-register__card-title {
  color: #017439;
  margin-top: 0;
}

.page-register__promo-content .page-register__card-text {
  color: #555555;
  margin-bottom: 20px;
}

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

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

.page-register__faq-item {
  background-color: #f9f9f9; /* Light background for FAQ items */
  color: #333333;
  margin-bottom: 15px;
  border-radius: 8px;
  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: 20px 25px;
  background-color: #ffffff;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  font-size: 1.2em;
  color: #017439; /* Brand primary color for FAQ questions */
  margin: 0;
  font-weight: bold;
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
}

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

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

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

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
}

.page-register__cta-final-section .page-register__section-description {
  margin-bottom: 50px;
}

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

.page-register__cta-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

  .page-register__security-image-wrapper {
    margin-top: 40px;
  }
}

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

  /* Fixed header offset for mobile */
  .page-register__hero-section,
  .page-register__video-section { /* If video section were present */
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__container,
  .page-register__hero-content,
  .page-register__cta-buttons,
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__security-content,
  .page-register__promotions-grid,
  .page-register__faq-list,
  .page-register__cta-final-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll for containers */
  }

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

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

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

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-tertiary,
  .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__section-title {
    font-size: 1.8em;
  }

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

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

  .page-register__step-number {
    margin-top: -30px; /* Adjust for mobile */
  }

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

  .page-register__security-image-wrapper {
    margin-top: 30px;
  }

  .page-register__list-item {
    padding-left: 25px;
  }
  .page-register__list-item::before {
    left: -5px; /* Adjust checkmark position */
  }

  .page-register__promo-image {
    height: 200px; /* Smaller height for mobile promo images */
  }

  .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;
  }

  /* Image responsiveness for mobile */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__image-center,
  .page-register__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-register__process-image,
  .page-register__security-image,
  .page-register__promo-image,
  .page-register__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* No CSS filters allowed for images */
.page-register img {
  filter: none;
}