/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Section padding and container */
.page-register__section-title {
  font-size: 2.5rem;
  color: #FFFFFF; /* White for dark background */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: var(--header-offset, 120px) 20px 60px;
  background-color: #017439; /* Brand color for hero background */
  overflow: hidden;
  box-sizing: border-box;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  color: #FFFFFF;
}

.page-register__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for title */
}

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

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3; /* Slightly transparent overlay */
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for better text contrast */
}

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

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

.page-register__cta-button--primary:hover {
  background-color: #e02020;
  transform: translateY(-3px);
}

.page-register__cta-button--secondary {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  border: 2px solid #C30808;
}

.page-register__cta-button--secondary:hover {
  background-color: #e02020;
  transform: translateY(-3px);
}

.page-register__cta-button--tertiary {
  background-color: #FFFFFF;
  color: #017439; /* Brand color text on white background */
  border: 2px solid #017439;
  margin: 10px 5px;
}

.page-register__cta-button--tertiary:hover {
  background-color: #017439;
  color: #FFFFFF;
  transform: translateY(-3px);
}

/* Dark Section styling */
.page-register__dark-section {
  background-color: #017439; /* Brand color */
  color: #ffffff;
}
.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__section-intro {
  color: #ffffff;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* White background for this section */
  color: #333333; /* Dark text for white background */
}

.page-register__benefits-section .page-register__section-title {
  color: #017439; /* Brand color for title on white background */
}
.page-register__benefits-section .page-register__section-intro {
  color: #555555;
}

.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: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for light card background */
}

.page-register__benefit-card:hover {
  transform: translateY(-10px);
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-register__benefit-description {
  font-size: 1rem;
  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: 40px;
}

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__step-number {
  font-size: 3rem;
  font-weight: bold;
  color: #FFFF00; /* Custom yellow for step numbers */
  margin-bottom: 15px;
}

.page-register__step-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-register__step-description {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-register__steps-image-wrapper {
  margin-top: 60px;
  text-align: center;
}

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

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

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-register__security-section .page-register__section-title {
  color: #017439;
}
.page-register__security-section .page-register__section-intro {
  color: #555555;
}

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

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

.page-register__security-subtitle {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__security-description {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #555555;
}

.page-register__security-image-wrapper {
  flex: 0 0 500px; /* Fixed width for image on desktop */
  text-align: center;
}

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

.page-register__link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-register__link:hover {
  color: #004d2a;
}

/* Explore Section */
.page-register__explore-section {
  padding: 80px 0;
}

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

.page-register__explore-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__explore-subtitle {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for subtitles */
}

.page-register__explore-description {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

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

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

.page-register__faq-list {
  max-width: 900px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-register__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.page-register__faq-item:last-child {
  border-bottom: none;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #fefefe;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333333;
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #017439;
  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 25px;
  background-color: #ffffff;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-register__faq-answer p {
  margin: 0;
  color: #555555;
  font-size: 1rem;
}

.page-register__faq-image-wrapper {
  text-align: center;
  margin-top: 60px;
}

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

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

.page-register__cta-final-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Mobile Floating CTA Buttons */
.page-register__mobile-cta-fixed {
  display: none; /* Hidden by default, shown on mobile */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1a1a1a; /* Dark background */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 10px 0;
  justify-content: space-around;
  align-items: center;
  box-sizing: border-box;
}

.page-register__mobile-cta-button {
  display: block;
  flex: 1;
  margin: 0 5px;
  padding: 12px 0;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: calc(50% - 10px); /* Adjust for margin */
  white-space: normal;
  word-wrap: break-word;
}

.page-register__mobile-cta-button--register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-register__mobile-cta-button--register:hover {
  background-color: #e02020;
}

.page-register__mobile-cta-button--login {
  background-color: #017439; /* Brand green for login */
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-register__mobile-cta-button--login:hover {
  background-color: #004d2a;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3rem;
  }
  .page-register__hero-description {
    font-size: 1.1rem;
  }
  .page-register__section-title {
    font-size: 2rem;
  }
  .page-register__security-content {
    flex-direction: column;
  }
  .page-register__security-image-wrapper {
    flex: none;
    max-width: 600px;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__hero-title {
    font-size: 2.2rem;
  }
  .page-register__hero-description {
    font-size: 1rem;
  }
  .page-register__container {
    padding: 20px 15px;
  }
  .page-register__section-title {
    font-size: 1.8rem;
  }
  .page-register__section-intro {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__explore-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__benefit-card,
  .page-register__step-card,
.page-register__explore-item {
    padding: 25px;
  }
  .page-register__security-subtitle {
    font-size: 1.5rem;
  }
  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-title {
    font-size: 1.1rem;
  }
  .page-register__faq-answer {
    padding: 0 20px;
  }
}