/* style/register.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --button-register-color: #C30808;
  --button-login-color: #C30808;
  --button-text-color: #FFFF00;
  --background-white: #FFFFFF;
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-muted: #cccccc;
}

.page-register {
  color: var(--text-light); /* Default text color for the page, as body background is dark */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* body background is handled by shared.css */
}

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

.page-register__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjust padding-top for header offset */
  text-align: center;
  background-color: var(--primary-color);
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

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

.page-register__main-title {
  font-size: 3.2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-register__description {
  font-size: 1.2em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-submit,
.page-register__video-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary,
.page-register__btn-submit,
.page-register__video-cta {
  background-color: var(--button-register-color); /* Custom register color */
  color: var(--button-text-color); /* Custom text color */
  border: 2px solid var(--button-register-color);
}

.page-register__btn-primary:hover,
.page-register__btn-submit:hover,
.page-register__video-cta:hover {
  background-color: #a00606; /* Slightly darker red */
  border-color: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-register__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: var(--secondary-color);
}

.page-register__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: -20px auto 60px;
  color: var(--text-muted);
}

.page-register__about-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
  color: var(--text-light);
}

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

.page-register__feature-card {
  background-color: #2a2a2a; /* Card background */
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-register__feature-card:hover {
  transform: translateY(-5px);
  background-color: #3a3a3a;
}

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

.page-register__card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__feature-card p {
  color: var(--text-muted);
}

.page-register__steps-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Brand color background */
  color: var(--text-light);
}

.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-register__step-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-register__step-item p {
  color: var(--text-light);
}

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

.page-register__form-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background */
  color: var(--text-light);
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #2a2a2a; /* Form background */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
  color: var(--secondary-color);
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #3a3a3a;
  color: var(--text-light);
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-register__captcha-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
}

.page-register__captcha-input {
  flex-grow: 1;
}

.page-register__captcha-image {
  border-radius: 8px;
  border: 1px solid #555;
  width: 100px; /* Specific size for captcha image */
  height: 40px; /* Specific size for captcha image */
  min-width: 100px;
  min-height: 40px;
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95em;
  color: var(--text-muted);
}

.page-register__form-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  accent-color: var(--primary-color);
}

.page-register__form-link {
  color: var(--primary-color);
  text-decoration: none;
}

.page-register__form-link:hover {
  text-decoration: underline;
}

.page-register__btn-submit {
  width: 100%;
  margin-top: 30px;
  font-size: 1.2em;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 25px;
  color: var(--text-muted);
}

.page-register__promo-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Brand color background */
  color: var(--text-light);
}

.page-register__promo-cards {
  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); /* Semi-transparent white */
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-register__promo-card p {
  color: var(--text-light);
}

.page-register__video-section {
  position: relative;
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background */
  text-align: center;
  color: var(--text-light);
}

.page-register__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px; /* Max width for video */
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-register__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Slightly darken video */
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 1;
}

.page-register__video-overlay:hover {
  background: rgba(0, 0, 0, 0.1);
}

.page-register__video-cta {
  margin-top: 30px;
  font-size: 1.1em;
}

.page-register__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background color */
  color: var(--text-light);
}

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

.page-register__faq-item {
  background-color: #1a1a1a; /* FAQ item background */
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #2a2a2a; /* Question background */
  border-bottom: 1px solid #3a3a3a;
}

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

.page-register__faq-title {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
  color: var(--button-register-color);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #1a1a1a; /* Answer background */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-register__faq-answer p {
  margin: 0;
  color: var(--text-muted);
}

.page-register__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color); /* Brand color background */
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__intro-text {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__hero-section {
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-register__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-register__intro-text {
    margin-bottom: 40px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-submit,
  .page-register__video-cta {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-left: auto;
    margin-right: auto;
    display: block;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__about-section,
  .page-register__steps-section,
  .page-register__form-section,
  .page-register__promo-section,
  .page-register__video-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 50px 0;
  }

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

  .page-register__grid-layout,
  .page-register__steps-grid,
  .page-register__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-register__feature-icon,
  .page-register__promo-image {
    max-width: 200px;
    margin-bottom: 15px;
  }

  .page-register__card-title {
    font-size: 1.3em;
  }

  .page-register__registration-form {
    padding: 30px 20px;
  }

  .page-register__captcha-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-register__captcha-image {
    width: 100px;
    height: 40px;
    min-width: 100px;
    min-height: 40px;
  }

  .page-register__video-wrapper {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-register__faq-question {
    padding: 18px 20px;
  }

  .page-register__faq-title {
    font-size: 1.1em;
  }

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