/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #1a1a1a, so text should be light */
  background-color: #1a1a1a; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

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

.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-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

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

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

/* General Section Styles */
.page-register__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color */
  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: #017439;
  border-radius: 2px;
}

.page-register__text-block {
  font-size: 1.1em;
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for register */
  color: #ffffff; /* Prioritizing WCAG AA contrast (4.5:1) over custom font color #FFFF00 */
  border-color: #C30808;
}

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color */
  border-color: #017439;
}

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

.page-register__btn-large {
  font-size: 1.1em;
  padding: 18px 35px;
  min-width: 200px;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Intro Section */
.page-register__intro-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background, matching body */
  color: #ffffff;
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__text-block {
  color: #ffffff;
}

.page-register__dark-section .page-register__section-title::after {
  background-color: #ffffff;
}

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

.page-register__feature-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-register__feature-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-register__feature-title {
  font-size: 1.5em;
  color: #017439; /* Brand primary color */
  margin-bottom: 15px;
}

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

/* Registration Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: #2a2a2a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-register__registration-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
  text-align: left;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 80px;
}

.page-register__step-number {
  position: absolute;
  left: 20px;
  top: 30px;
  width: 40px;
  height: 40px;
  background-color: #017439; /* Brand primary */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

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

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #f0f0f0; /* Light background for contrast */
  color: #333333; /* Dark text on light background */
}

.page-register__light-bg .page-register__section-title {
  color: #017439;
}

.page-register__light-bg .page-register__section-title::after {
  background-color: #017439;
}

.page-register__light-bg .page-register__text-block {
  color: #555555;
}

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

.page-register__benefit-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

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

.page-register__benefit-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

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

/* Video Section */
.page-register__video-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-register__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px; /* Limit video width */
  margin: 50px auto 30px auto;
  background-color: #000;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-register__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-register__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-register__video-caption {
  font-style: italic;
  color: #ccc;
  margin-top: 20px;
}

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

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

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

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

.page-register__faq-title {
  margin: 0;
  font-size: 1.1em; /* Smaller for H3 in FAQ question */
  color: #017439;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #017439;
}

.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-out, padding 0.3s ease-out;
  color: #555555;
}

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

.page-register__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  font-size: 1em;
  color: #555555;
}

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

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

.page-register__cta-section .page-register__section-title::after {
  background-color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
}