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

.page-register__hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 120px 20px 80px; /* Adjusted padding-top for header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-register__hero-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(10, 36, 99, 0.7); /* Semi-transparent brand color */
  padding: 40px;
  border-radius: 10px;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #E3B505; /* Auxiliary color for emphasis */
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.page-register__btn-primary {
  background-color: #E3B505;
  color: #0A2463;
  border: 2px solid #E3B505;
}

.page-register__btn-primary:hover {
  background-color: #ffc926;
  transform: translateY(-3px);
}

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

.page-register__btn-secondary:hover {
  background-color: #E3B505;
  color: #0A2463;
  transform: translateY(-3px);
}

.page-register__section-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.page-register__section-title {
  font-size: 2.8em;
  color: #E3B505;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-register__section-description {
  font-size: 1.1em;
  color: #cccccc;
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

.page-register__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-register__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-register__video-play-button {
  font-size: 4em;
  color: #E3B505;
  border: 4px solid #E3B505;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(10, 36, 99, 0.8);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-register__video-overlay:hover .page-register__video-play-button {
  transform: scale(1.1);
  background-color: rgba(10, 36, 99, 1);
}

/* Form Section */
.page-register__form-section {
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-register__form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 17, 23, 0.85); /* Dark overlay */
  z-index: -1;
}

.page-register__form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #1a1a2e; /* Darker background for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

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

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

.page-register__input-with-button {
  display: flex;
  gap: 10px;
}

.page-register__input-with-button .page-register__form-input {
  flex-grow: 1;
}

.page-register__get-code-button {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  text-align: center;
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.page-register__form-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #E3B505;
}

.page-register__text-link {
  color: #E3B505;
  text-decoration: none;
}

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

.page-register__submit-button {
  width: 100%;
  margin-top: 20px;
  font-size: 1.2em;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 20px;
  background-color: #0A2463;
  color: #ffffff;
}

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

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

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

.page-register__benefit-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

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

.page-register__benefit-text {
  font-size: 1em;
  color: #cccccc;
}

/* Detailed Steps Section */
.page-register__steps-section {
  padding: 80px 20px;
  background-color: #0d1117;
  color: #ffffff;
}

.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-register__step-card {
  background-color: #1a1a2e;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #E3B505;
}

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

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

.page-register__step-text {
  font-size: 0.95em;
  color: #cccccc;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 20px;
  background-color: #0A2463;
  color: #ffffff;
}

.page-register__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-register__promo-card {
  background-color: #1a1a2e;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__promo-title {
  font-size: 1.6em;
  color: #E3B505;
  margin-bottom: 15px;
}

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

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

.page-register__security-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-register__security-item {
  background-color: #1a1a2e;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

.page-register__security-text {
  font-size: 0.95em;
  color: #cccccc;
}

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

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #0A2463; /* Main brand color for question */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: #1c4a96; /* Slightly lighter blue on hover */
}

.page-register__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #E3B505;
  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;
  background-color: #1a1a2e;
  color: #cccccc;
  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 value */
  padding: 20px;
}

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

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

/* Copyright */
.page-register__copyright {
  text-align: center;
  padding: 30px 20px;
  background-color: #0A2463;
  color: #cccccc;
  font-size: 0.9em;
}

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

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

  .page-register__hero-section {
    padding: var(--header-offset, 120px) 15px 60px;
    min-height: 500px;
  }

  .page-register__hero-content {
    padding: 30px;
  }

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

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

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

  .page-register__input-with-button {
    flex-direction: column;
  }

  .page-register__get-code-button {
    width: 100%;
  }

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

  .page-register__section-description {
    font-size: 0.95em;
  }

  .page-register__video-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 60px 15px;
  }

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

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

  .page-register__form-container,
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__promo-cards-grid,
  .page-register__security-content,
  .page-register__faq-list {
    padding-left: 0;
    padding-right: 0;
  }

  .page-register__form-group {
    padding: 0 5px;
  }

  .page-register__input-with-button .page-register__form-input,
  .page-register__get-code-button {
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-register__copyright {
    padding: 20px 15px;
  }

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

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

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all img elements within .page-register respect min-width 200px or max-width 100% */
  .page-register img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__hero-section {
    min-height: 400px;
  }
}