/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background from shared.css */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px;
}

.page-register__dark-section {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #ffffff; /* White background for specific sections */
  color: #333333;
}

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

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

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

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

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

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login buttons */
  color: #FFFF00; /* Custom font color for Register/Login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

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

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #017439;
  box-sizing: border-box;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2b;
  border-color: #005a2b;
}

/* Why Choose Section */
.page-register__why-choose-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for this section */
}

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

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

.page-register__feature-card:hover {
  transform: translateY(-5px);
}

.page-register__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-register__feature-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Registration Steps Section */
.page-register__steps-section {
  padding: 80px 0;
}

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

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

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

.page-register__step-number {
  font-size: 2.5em;
  color: #017439;
  font-weight: bold;
  margin-bottom: 15px;
}

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

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

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

/* Video Section */
.page-register__video-section {
  padding: 80px 0;
  text-align: center;
}

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

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

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for this section */
}

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

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

.page-register__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-register__promo-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__promo-text {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-register__btn-text {
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-register__btn-text:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
}

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

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

.page-register__security-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-register__security-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__security-text {
  font-size: 1em;
  color: #555555;
}

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

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

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  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;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px;
  padding-top: 0;
}

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

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

.page-register__cta-content {
  max-width: 900px;
}

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

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

/* Responsive Styles */
@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: 2em;
  }
}

@media (max-width: 768px) {
  .page-register {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__container {
    padding: 0 15px;
  }

  .page-register__hero-section {
    padding: 60px 0;
    min-height: 500px;
  }

  .page-register__hero-title {
    font-size: 2.5em;
  }

  .page-register__hero-description {
    font-size: 1em;
  }

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-register__section-title {
    font-size: 1.8em;
  }

  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__promos-grid,
  .page-register__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__feature-card,
  .page-register__step-item,
  .page-register__promo-card,
  .page-register__security-item {
    padding: 20px;
  }

  .page-register__feature-title,
  .page-register__promo-title,
  .page-register__security-title,
  .page-register__step-title {
    font-size: 1.4em;
  }

  .page-register__hero-image,
  .page-register__feature-image,
  .page-register__steps-image,
  .page-register__promo-image,
  .page-register__security-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__video-wrapper {
    margin: 30px auto 0 auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__faq-question h3 {
    font-size: 1em;
  }

  .page-register__faq-question,
  .page-register__faq-answer {
    padding: 15px;
  }

  .page-register__faq-answer {
    padding-top: 0;
  }

  .page-register__final-cta-section {
    padding: 60px 0;
  }

  .page-register__cta-title {
    font-size: 2em;
  }

  .page-register__cta-description {
    font-size: 1em;
  }

  .page-register__video-section,
  .page-register__why-choose-section,
  .page-register__steps-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    max-width: 100% !important;
    width: 100% !important;
  }
}