/* style/register.css */

/* Base Styles */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Ensure main content respects body background */
}

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

.page-register__section-title {
  font-size: 3em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for titles on dark background */
  font-weight: bold;
}

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

/* Color Contrast Helpers */
.page-register__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff; /* White text on dark green */
  padding: 80px 0;
}

.page-register__light-bg {
  background-color: #FFFFFF; /* White background for light sections */
  color: #333333; /* Dark text on white background */
  padding: 80px 0;
}

/* Hero Section */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('[GALLERY:bg:1920x1080:sunwin,register_hero_bg,abstract_geometric_pattern]') no-repeat center center/cover; /* Placeholder for a background image */
}

.page-register__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
}

.page-register__hero-title {
  font-size: 3.8em;
  color: #FFFF00; /* Register/Login font color */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-register__btn-register {
  display: inline-block;
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button font color */
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-register__hero-small-text {
  font-size: 0.9em;
  color: #ccc;
  margin-top: 20px;
}

.page-register__hero-image-wrapper {
  margin-top: 40px;
}

.page-register__hero-image {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* Benefits Section */
.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__benefit-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

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

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

/* Guide Section */
.page-register__guide-section {
  padding: 80px 0;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 60px;
  gap: 30px;
}

.page-register__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #FFFF00; /* Highlight step number */
  border: 3px solid #FFFF00;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: rgba(255,255,0,0.1);
}

.page-register__step-content {
  flex-grow: 1;
}

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

.page-register__step-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-register__step-image {
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-register__inline-link {
  color: #FFFF00; /* Inline link color on dark background */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__inline-link:hover {
  color: #fff;
}

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

/* Why Choose Section */
.page-register__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__feature-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-register__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

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

.page-register__feature-text {
  font-size: 1em;
  color: #555;
}

/* Security Section */
.page-register__security-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__security-item {
  background-color: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: #ffffff;
}

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

.page-register__security-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-register__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFFF00;
  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; /* Sufficient height for content */
  padding: 20px;
  padding-top: 0;
}

.page-register__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-register__cta-final-section {
  text-align: center;
  padding: 80px 0;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-register__btn-large {
  padding: 20px 45px;
  font-size: 1.5em;
}

.page-register__btn-download {
  display: inline-block;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__btn-download:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__section-title {
    font-size: 2.5em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__benefit-title, .page-register__feature-title, .page-register__security-title {
    font-size: 1.6em;
  }
  .page-register__step-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__why-choose-section,
  .page-register__security-section,
  .page-register__video-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 60px 0;
  }
  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__btn-register,
  .page-register__btn-download {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 1.2em;
    padding: 15px 25px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__step-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .page-register__step-number {
    margin-bottom: 20px;
  }
  .page-register__video-wrapper {
    margin-top: 30px;
  }
  /* Mobile image responsive optimization */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset; /* Allow smaller images on mobile if needed by design, but still > 200px */
    min-height: unset;
  }
  .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__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Reapply offset for mobile if needed */
  }
  /* Video responsive optimization */
  .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-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }
  .page-register__faq-answer {
    padding: 0 15px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__btn-register,
  .page-register__btn-download {
    font-size: 1.1em;
    padding: 12px 20px;
  }
  .page-register__benefit-title, .page-register__feature-title, .page-register__security-title {
    font-size: 1.4em;
  }
  .page-register__step-title {
    font-size: 1.8em;
  }
  .page-register__faq-title {
    font-size: 1.1em;
  }
}