/* style/register.css */

/* Core styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #ffffff; /* Default body background is white */
}

/* Container for consistent spacing */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* White text for dark background */
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 800px;
}

.page-register__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  color: #f0f0f0;
}

.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* For mobile responsiveness */
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  overflow: hidden; /* For mobile responsiveness */
}

/* General button styles */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-large {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

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

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

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

.page-register__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

/* Content Sections */
.page-register__content-section,
.page-register__steps-section,
.page-register__app-download-section,
.page-register__faq-section,
.page-register__final-cta-section {
  padding: 60px 0;
}

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-register__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-register__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-register__paragraph {
  font-size: 1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-register__highlight {
  font-weight: bold;
  color: inherit; /* Inherit color from parent for contrast */
}

.page-register__sub-section-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #017439; /* Primary color for sub-titles on light bg */
  text-align: center;
}

.page-register__dark-bg .page-register__sub-section-title {
  color: #ffffff;
}

.page-register__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-register__feature-item {
  text-align: center;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__feature-icon {
  width: 100%; /* Ensure image fits card, min 200px */
  max-width: 250px; /* Adjust based on content */
  height: auto;
  min-height: 200px; /* Min size requirement */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-register__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__feature-description {
  font-size: 0.95em;
  color: #555555;
  text-align: justify;
}

/* Steps Section */
.page-register__steps-list {
  display: grid;
  grid-template-columns: 1fr; /* Single column for steps */
  gap: 40px;
  margin-top: 40px;
}

.page-register__step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for dark section */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00; /* Yellow for step numbers */
  margin-bottom: 15px;
  background-color: #C30808; /* Red circle for number */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.page-register__step-description {
  font-size: 1em;
  margin-bottom: 15px;
  text-align: justify;
}

.page-register__info-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 0.95em;
}

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

.page-register__step-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

/* App Download Section */
.page-register__app-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-register__app-image {
  flex: 1 1 400px;
  max-width: 500px;
  height: auto;
  min-height: 200px; /* Min size requirement */
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__app-details {
  flex: 1 1 400px;
}

.page-register__app-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #017439;
}

.page-register__app-description {
  font-size: 1em;
  margin-bottom: 25px;
  text-align: justify;
}

.page-register__benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-register__benefits-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1em;
}

.page-register__benefits-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #017439;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none;
}

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

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

.page-register__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  color: #f0f0f0;
  text-align: justify;
}

.page-register__faq-answer p {
  margin-bottom: 0;
}

/* Links */
.page-register__link {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__link:hover {
  color: #FFF;
}

.page-register__light-bg .page-register__link {
  color: #017439; /* Primary color for links on light background */
}

.page-register__light-bg .page-register__link:hover {
  color: #005f2b;
}

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

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

/* --- Responsive Design --- */

/* Mobile & Tablet specific styles */
@media (max-width: 1024px) {
  .page-register__container {
    padding: 15px;
  }

  .page-register__hero-section {
    padding-bottom: 40px;
  }

  .page-register__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }

  .page-register__intro-text {
    font-size: 1em;
  }

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

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-large {
    width: 100%;
    max-width: 300px; /* Limit width for larger screens in portrait mode */
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 1em;
  }

  .page-register__content-section,
  .page-register__steps-section,
  .page-register__app-download-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 40px 0;
  }

  .page-register__section-title {
    font-size: clamp(1.5em, 4.5vw, 2em);
    margin-bottom: 30px;
  }

  .page-register__sub-section-title {
    font-size: clamp(1.2em, 3.5vw, 1.5em);
    margin-top: 30px;
  }

  .page-register__features-grid {
    grid-template-columns: 1fr; /* Single column for features */
    gap: 20px;
  }

  .page-register__feature-item {
    padding: 20px;
  }

  .page-register__feature-icon {
    max-width: 200px;
  }

  .page-register__step-item {
    padding: 20px;
  }
}