/* style/register.css */

/* Base styles for the page content */
.page-register {
  color: #ffffff; /* Light text for dark body background */
  background-color: #1a1a2e; /* Inherited from shared, but explicit for clarity */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-register__section-title {
  font-size: 3em;
  color: #ffffff; /* Light color for titles on dark backgrounds */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Slightly off-white for body text */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

.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 */
  z-index: 1;
}

.page-register__hero-section .page-register__container {
  position: relative;
  z-index: 2;
  padding-top: 50px; /* Additional spacing for hero content */
  padding-bottom: 50px;
}

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

.page-register__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

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

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

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

/* Process Section */
.page-register__process-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-register__process-section .page-register__section-title,
.page-register__process-section .page-register__section-description {
  color: #333333;
}

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

.page-register__step-item {
  text-align: center;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure equal height cards */
}

.page-register__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

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

.page-register__step-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1; /* Allow text to grow and fill space */
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color as background */
  color: #ffffff; /* White text for brand color background */
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-description {
  color: #ffffff;
}

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

.page-register__benefit-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for benefit titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__benefit-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Terms Section */
.page-register__terms-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-register__terms-section .page-register__section-title,
.page-register__terms-section .page-register__section-description {
  color: #333333;
}

.page-register__terms-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
}

.page-register__terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 300px; /* Allow list to take up space */
}

.page-register__terms-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-register__terms-icon {
  color: #017439; /* Brand color for icons */
  font-size: 1.5em;
  margin-right: 15px;
  line-height: 1;
}

.page-register__terms-text {
  margin: 0;
  color: #555555;
}

.page-register__terms-image {
  flex: 1;
  max-width: 500px; /* Max width for the image */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
}

.page-register__faq-section .page-register__section-title,
.page-register__faq-section .page-register__section-description {
  color: #ffffff;
}

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

.page-register__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00; /* Yellow for FAQ questions */
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(0deg); /* Reset rotation, JS will handle +/- */
}

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-register__faq-item[open] .page-register__faq-answer {
  max-height: 500px; /* Sufficient height for answer content */
}

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

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

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

.page-register__cta-final-section .page-register__cta-buttons {
  margin-top: 40px;
}

/* Global image styles to prevent small icons */
.page-register img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure images cover their area without distortion */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.2em;
  }
  .page-register__section-title {
    font-size: 2.5em;
  }
  .page-register__terms-content {
    flex-direction: column;
  }
  .page-register__terms-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* Ensure header offset for mobile */
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__container {
    padding: 0 15px !important; /* Smaller padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__section-description {
    font-size: 0.95em;
  }

  .page-register__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

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

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

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