/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #ffc107; /* Accent color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-register__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

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

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

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

.page-register__hero-cta {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Primary Button Style */
.page-register__btn-primary {
  background-color: #ffc107; /* Accent color for primary action */
  color: #0d1117; /* Dark text for light background */
  border: none;
}

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

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

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

.page-register__benefit-card {
  background-color: rgba(0, 123, 255, 0.1); /* Semi-transparent primary color */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.page-register__benefit-card:hover {
  transform: translateY(-10px);
  background-color: rgba(0, 123, 255, 0.2);
}

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

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

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

/* Guide Section */
.page-register__guide-section {
  padding: 80px 0;
  background-color: #1a1e24; /* Slightly lighter dark background */
}

.page-register__guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

.page-register__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background-color: #007bff;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

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

.page-register__step-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 700px;
  margin-bottom: 20px;
}

.page-register__step-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-register__cta-container {
  text-align: center;
  margin-top: 60px;
}

/* Why Choose Section */
.page-register__why-choose-section {
  padding: 80px 0;
  background-color: #0d1117;
}

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

.page-register__why-choose-item {
  background-color: rgba(255, 193, 7, 0.1); /* Semi-transparent accent color */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

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

.page-register__why-choose-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-register__faq-title {
  font-size: 1.2em;
  color: #ffc107;
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffc107;
  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 25px;
  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: 15px 25px;
}

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

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
  background-color: #007bff; /* Primary brand color */
  text-align: center;
}

.page-register__final-cta {
  margin-top: 40px;
}

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

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-register__hero-section {
    min-height: 450px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-register__hero-title {
    font-size: 2.2em;
  }
  
  .page-register__hero-description {
    font-size: 1em;
  }
  
  .page-register__hero-cta {
    padding: 12px 30px;
    font-size: 1em;
  }

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

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

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

  .page-register__benefit-card,
  .page-register__why-choose-item {
    padding: 20px;
  }

  .page-register__step-title {
    font-size: 1.5em;
  }

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

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

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

  /* Responsive image, video, button rules */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container,
  .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; /* Ensure no overflow */
  }

  .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 {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__hero-description {
    font-size: 0.9em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__step-title {
    font-size: 1.3em;
  }
  .page-register__benefit-title {
    font-size: 1.3em;
  }
  .page-register__why-choose-title {
    font-size: 1.4em;
  }
}