/* style/register.css */

/* Base styles for the register page */
.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 handled by shared.css */
}

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

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

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

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

.page-register__section-description--light {
  color: #ffffff;
}

/* Hero Section with Video */
.page-register__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px; /* Minimum height for hero section */
  overflow: hidden;
}

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

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

.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 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.page-register__hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
}

.page-register__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Call to Action Button */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom red for register/login */
  color: #000000; /* Black text for contrast on red */
  border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Primary brand color for text */
  border: 2px solid #017439;
}

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

/* Guide Section */
.page-register__guide-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* White background for guide content */
  color: #333333; /* Dark text for light background */
}

.page-register__guide-section .page-register__section-title {
  color: #017439;
}

.page-register__guide-section .page-register__section-description {
  color: #333333;
}

.page-register__step-item {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-register__step-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  text-align: left;
}

.page-register__step-description {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: left;
  color: #333333;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block; /* Ensures image is block-level */
  min-width: 200px;
  min-height: 200px;
}

.page-register__info-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-register__info-list li {
  margin-bottom: 10px;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
}

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

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

.page-register__benefit-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-register__link-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* White background */
  color: #333333; /* Dark text */
}

.page-register__faq-section .page-register__section-title {
  color: #017439;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  font-size: 1.1em;
  margin: 0;
  color: #ffffff;
}

.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 / Minus */
}

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

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px;
}

.page-register__faq-answer p {
  margin: 0;
  color: #333333;
}

/* App Download Section */
.page-register__app-download-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-register__app-flex-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-register__app-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-register__app-content .page-register__section-title,
.page-register__app-content .page-register__section-description {
  text-align: left;
}

.page-register__app-image-wrapper {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__app-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* White background */
  color: #333333; /* Dark text */
  text-align: center;
}

.page-register__cta-final-section .page-register__section-title {
  color: #017439;
}

.page-register__cta-final-section .page-register__section-description {
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.8em;
  }
  .page-register__intro-text {
    font-size: 1.1em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__step-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    min-height: 450px;
  }
  .page-register__main-title {
    font-size: 2em;
  }
  .page-register__intro-text {
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__step-title {
    font-size: 1.3em;
  }
  .page-register__cta-button,
  .page-register__link-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-register__app-flex-container {
    flex-direction: column;
    text-align: center;
  }
  .page-register__app-content {
    text-align: center;
  }
  .page-register__app-content .page-register__section-title,
  .page-register__app-content .page-register__section-description {
    text-align: center;
  }

  /* Mobile responsive for images, videos, and buttons */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure content area images fill width */
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-register video,
  .page-register__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__section,
  .page-register__container,
  .page-register__card,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper,
  .page-register__app-flex-container,
  .page-register__app-content,
  .page-register__app-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Ensure hero section padding top is correctly applied for mobile */
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add some 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-direction: column !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 1.8em;
  }
  .page-register__intro-text {
    font-size: 0.9em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__step-title {
    font-size: 1.2em;
  }
  .page-register__cta-button,
  .page-register__link-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}