/* style/register.css */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from shared, but set explicitly for clarity */
}

.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-register__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-register__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffc107; /* Highlight with auxiliary color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-register__intro-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-register__btn-primary {
  background-color: #ffc107;
  color: #1a1a2e;
  border: 2px solid #ffc107;
}

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

.page-register__btn-secondary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-register__btn-secondary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-3px);
}

.page-register__dark-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-register__benefits-section {
  padding: 80px 20px;
  text-align: center;
}

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffc107;
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: #f0f0f0;
}

.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: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

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

.page-register__benefit-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-register__how-to-section {
  background-color: #0f0f1c;
  padding: 80px 20px;
  text-align: center;
}

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

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-register__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffc107;
  color: #1a1a2e;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-register__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-register__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #007bff;
}

.page-register__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-register__form-section {
  padding: 80px 20px;
  text-align: center;
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
  color: #ffc107;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #007bff;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-register__form-input:focus {
  outline: none;
  border-color: #ffc107;
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

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

.page-register__form-checkbox {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  accent-color: #007bff;
}

.page-register__form-link {
  color: #007bff;
  text-decoration: none;
}

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

.page-register__form-section .page-register__cta-button {
  width: 100%;
  margin-top: 30px;
}

.page-register__video-section {
  background-color: #0f0f1c;
  padding: 80px 20px;
  text-align: center;
}

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

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

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

.page-register__promotions-section {
  background-color: #1a1a2e;
  padding: 80px 20px;
  text-align: center;
}

.page-register__promotions-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: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-register__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-register__promo-title a {
  color: #ffc107;
  text-decoration: none;
}

.page-register__promo-title a:hover {
  text-decoration: underline;
  color: #e0a800;
}

.page-register__promo-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-register__promo-card .page-register__btn-secondary {
  margin-top: auto;
  align-self: flex-start;
}

.page-register__faq-section {
  padding: 80px 20px;
  text-align: center;
}

.page-register__faq-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #007bff;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #ffc107;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

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

.page-register__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.page-register__cta-final-section {
  background: linear-gradient(135deg, #0056b3, #007bff);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-register__cta-final-content {
  max-width: 900px;
  z-index: 1;
  color: #ffffff;
}

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

.page-register__cta-final-section .page-register__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-register__cta-final-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-register__cta-final-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

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

@media (max-width: 768px) {
  .page-register__main-title {
    font-size: 2.5em;
  }
  .page-register__intro-text,
  .page-register__section-description {
    font-size: 1em;
  }
  .page-register__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-register__benefit-card,
  .page-register__step-item,
  .page-register__promo-card {
    padding: 25px;
  }
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__how-to-section,
  .page-register__form-section,
  .page-register__video-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 40px 15px;
  }
  
  /* Mobile responsive for images */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile responsive for videos */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-register__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header offset on mobile */
  }

  /* Mobile responsive for buttons */
  .page-register__cta-button,
  .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__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
  }
  .page-register__form-input {
    font-size: 0.9em;
  }
  .page-register__form-label {
    font-size: 1em;
  }
  .page-register__faq-question h3 {
    font-size: 1em;
  }
  .page-register__faq-question {
    padding: 15px;
  }
  .page-register__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 2em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__cta-button {
    font-size: 0.9em;
    padding: 10px 20px;
  }
}