/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow: hidden;
  background-color: #017439; /* Brand primary color for hero background */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.8;
}

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  z-index: 2;
}

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

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

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

.page-register__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom color for register button font */
  border: none;
}

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

/* General Section Styles */
.page-register__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-register__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #C30808; /* Custom accent color */
  border-radius: 2px;
}

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

.page-register__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #333333;
}

/* Intro Section */
.page-register__intro-section {
  background-color: #ffffff;
  padding: 60px 0;
}

/* Steps Section */
.page-register__steps-section {
  background-color: #f5f5f5;
  padding: 60px 0;
}

.page-register__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-register__step-item:hover {
  transform: translateY(-5px);
}

.page-register__step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 3px solid #C30808; /* Custom accent color */
}

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

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

.page-register__step-list {
  text-align: left;
  margin: 20px auto;
  padding-left: 20px;
  list-style: disc;
  max-width: 600px;
  color: #555555;
}

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

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

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

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

.page-register__benefits-section .page-register__section-title::after {
  background-color: #FFFF00; /* Custom accent color for dark background */
}

.page-register__benefits-section .page-register__text-block {
  color: #f0f0f0;
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__benefit-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.page-register__card-title {
  font-size: 1.5em;
  color: #FFFF00; /* Custom accent color for titles on dark background */
  margin-bottom: 15px;
}

.page-register__card-description {
  font-size: 1em;
  color: #e0e0e0;
}

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

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

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

.page-register__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  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: 20px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

.page-register__faq-toggle {
  font-size: 1.5em;
  color: #017439;
  font-weight: bold;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

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

/* Why Choose Section */
.page-register__why-choose-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  padding: 60px 0;
}

.page-register__why-choose-section .page-register__section-title {
  color: #ffffff;
}

.page-register__why-choose-section .page-register__section-title::after {
  background-color: #FFFF00; /* Custom accent color for dark background */
}

.page-register__why-choose-section .page-register__text-block {
  color: #f0f0f0;
}

.page-register__why-choose-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-register__why-choose-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #e0e0e0;
  border-left: 5px solid #FFFF00; /* Custom accent color */
  transition: background-color 0.3s ease;
}

.page-register__why-choose-list li:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-register__why-choose-list li strong {
  color: #FFFF00;
}

.page-register__why-choose-cta {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom color for register button font */
  border: none;
  margin-top: 30px;
}

.page-register__why-choose-cta:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* CTA Section */
.page-register__cta-section {
  position: relative;
  text-align: center;
  padding: 80px 0;
  background-color: #f5f5f5;
  overflow: hidden;
}

.page-register__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7;
}

.page-register__cta-content {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.page-register__cta-title {
  font-size: 2.8em;
  color: #017439;
  margin-bottom: 20px;
}

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

.page-register__final-cta {
  display: inline-block;
  padding: 18px 40px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom color for register button font */
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-register__final-cta:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

/* Dark background text color override */
.page-register__dark-bg {
  color: #ffffff;
}

.page-register__dark-bg h1, .page-register__dark-bg h2, .page-register__dark-bg h3, .page-register__dark-bg h4, .page-register__dark-bg h5, .page-register__dark-bg h6 {
  color: #ffffff;
}

.page-register__dark-bg p, .page-register__dark-bg li {
  color: #f0f0f0;
}

/* Light background text color override */
.page-register__light-bg {
  color: #333333;
}

.page-register__light-bg h1, .page-register__light-bg h2, .page-register__light-bg h3, .page-register__light-bg h4, .page-register__light-bg h5, .page-register__light-bg h6 {
  color: #017439;
}

.page-register__light-bg p, .page-register__light-bg li {
  color: #555555;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-register__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
  }
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__hero-cta {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-register__container {
    padding: 30px 15px;
  }
  .page-register__text-block {
    font-size: 1em;
  }
  .page-register__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
  .page-register__step-title {
    font-size: 1.5em;
  }
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-register__card-title {
    font-size: 1.3em;
  }
  .page-register__faq-question {
    padding: 15px;
  }
  .page-register__faq-title {
    font-size: 1.1em;
  }
  .page-register__cta-title {
    font-size: 1.8em;
  }
  .page-register__cta-description {
    font-size: 1em;
  }
  .page-register__final-cta {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__steps-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__why-choose-section,
  .page-register__cta-section,
  .page-register__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-register__hero-cta,
  .page-register__why-choose-cta,
  .page-register__final-cta,
  .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;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-register__cta-buttons {
    flex-direction: column !important;
  }
}

/* Dark/Light background overrides for text color */
.page-register__dark-bg {
  color: #ffffff; /* Deep text color for dark backgrounds */
}

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

.page-register__dark-bg .page-register__text-block, 
.page-register__dark-bg .page-register__card-description, 
.page-register__dark-bg .page-register__why-choose-list li {
  color: #f0f0f0;
}

.page-register__light-bg .page-register__text-block, 
.page-register__light-bg .page-register__step-description, 
.page-register__light-bg .page-register__step-list li, 
.page-register__light-bg .page-register__faq-answer p {
  color: #555555;
}

.page-register__dark-bg .page-register__card-title, 
.page-register__dark-bg .page-register__why-choose-list li strong {
  color: #FFFF00;
}

.page-register__light-bg .page-register__section-title, 
.page-register__light-bg .page-register__step-title, 
.page-register__light-bg .page-register__faq-title, 
.page-register__light-bg .page-register__cta-title {
  color: #017439;
}

.page-register__light-bg .page-register__faq-toggle {
  color: #017439;
}