/* style/register.css */

/* Base styles for the page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared.css, explicitly set for clarity */
}

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

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

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

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

.page-register__main-heading {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

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

.page-register__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Buttons */
.page-register__btn {
  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;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn--primary {
  background-color: #C30808; /* Register button color */
  color: #FFFFFF; /* Adjusted for WCAG AA contrast */
  border: 2px solid #C30808;
  margin-right: 15px;
}

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

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

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

/* Form Section */
.page-register__form-section {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 60px 0;
}

.page-register__form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.5); /* Slightly darker for form */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__form-group {
  margin-bottom: 20px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffffff;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: #333333;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: #aaaaaa;
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.page-register__checkbox {
  margin-right: 10px;
  width: 20px;
  height: 20px;
}

.page-register__checkbox-label {
  color: #ffffff;
  font-size: 0.95em;
}

.page-register__checkbox-label a {
  color: #017439;
  text-decoration: none;
}

.page-register__checkbox-label a:hover {
  text-decoration: underline;
}

.page-register__btn--submit {
  width: 100%;
  background-color: #C30808; /* Register button color */
  color: #FFFFFF; /* Adjusted for WCAG AA contrast */
  border: none;
  padding: 15px;
  font-size: 1.2em;
  border-radius: 8px;
}

.page-register__btn--submit:hover {
  background-color: #ff3333;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 25px;
  color: #ffffff;
}

.page-register__login-prompt a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-register__login-prompt a:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-register__benefit-item {
  background-color: rgba(255, 255, 255, 0.08); /* Lighter card background on dark section */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-register__benefit-img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-register__benefit-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Video Section */
.page-register__video-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-register__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.page-register__video-cta {
  text-align: center;
  font-size: 1.1em;
  color: #f0f0f0;
  margin-top: 20px;
}

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

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  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.12);
  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.8em;
  line-height: 1;
  font-weight: bold;
  color: #017439;
  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: #f0f0f0;
}

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

.page-register__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-register__faq-answer a {
  color: #017439;
  text-decoration: none;
}

.page-register__faq-answer a:hover {
  text-decoration: underline;
}

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

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

.page-register__cta-button {
  margin-top: 30px;
  margin-right: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-heading {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-register__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__main-heading {
    font-size: 2.2em;
  }

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

  .page-register__btn {
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-register__btn--primary {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-register__form {
    padding: 25px;
  }

  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-register__benefit-img {
    height: 200px;
  }

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

  .page-register__section-subtitle {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile video responsiveness */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-register__btn,
  .page-register__btn--primary,
  .page-register__btn--secondary,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-content .page-register__btn--primary,
  .page-register__cta-section .page-register__btn--primary,
  .page-register__cta-section .page-register__btn--secondary {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
  }

  .page-register__cta-section .page-register__btn--primary {
    margin-top: 20px;
  }

  .page-register__cta-section .page-register__btn--secondary {
    margin-top: 0;
  }

  /* Container padding for mobile */
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__cta-section .page-register__btn--primary {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .page-register__main-heading {
    font-size: 1.8em;
  }
  .page-register__hero-section {
    height: 450px;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__btn {
    font-size: 0.9em;
    padding: 10px 15px;
  }
  .page-register__form {
    padding: 20px;
  }
  .page-register__faq-question h3 {
    font-size: 1em;
  }
}