/* style/register.css */
/* 
 * Body background is var(--black-color) from shared.css,
 * which implies a dark background. Therefore, default text color
 * for .page-register should be light (#ffffff) to ensure contrast.
 */
.page-register {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Main content background will be handled by sections */
}

/* Hero Section - Dark background */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #0d0d0d; /* Dark background for hero, consistent with var(--black-color) */
  text-align: center;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px; /* Space between image and text */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Min size for all images */
}

.page-register__hero-content {
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* H1 font size with clamp */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for H1 for emphasis */
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-register__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 180px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-register__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* General Section Styles */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-register__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0; /* Brand color for section titles */
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Light Background Section */
.page-register__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on light background */
}

.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__section-description,
.page-register__light-bg .page-register__card-title,
.page-register__light-bg .page-register__card-text {
  color: #333333;
}

.page-register__light-bg .page-register__btn-link {
  color: #26A9E0;
}

/* Dark Background Section */
.page-register__dark-section {
  background-color: #0d0d0d; /* Consistent with var(--black-color) */
  color: #ffffff; /* Light text on dark background */
}

.page-register__dark-section .page-register__section-title {
  color: #26A9E0; /* Brand color for titles on dark bg */
}

.page-register__dark-section .page-register__card-title,
.page-register__dark-section .page-register__card-text {
  color: #ffffff;
}

/* Card Styles */
.page-register__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark bg */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-register__light-bg .page-register__card {
  background-color: #f8f8f8; /* Light gray for cards on light bg */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-register__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-register__card-text {
  font-size: 1em;
  flex-grow: 1;
}

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

/* How to Register Section */
.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__step-item {
  align-items: center;
  text-align: center;
}

.page-register__step-number {
  font-size: 3em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-register__step-process-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px;
}

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

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

.page-register__promotion-card {
  text-align: center;
  align-items: center;
}

.page-register__promotions-overview-image {
  width: 100%;
  height: auto;
  max-width: 1200px;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px;
}

.page-register__btn-link {
  display: inline-block;
  margin-top: 20px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-register__btn-link:hover {
  text-decoration: underline;
  color: #1e87c0;
}

/* About MCW888 Section */
.page-register__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__support-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter transparent white on dark bg */
  border-radius: 10px;
  padding: 20px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff; /* Light text for FAQ items */
}

.page-register__light-bg .page-register__faq-item {
  background-color: #f0f0f0; /* Light gray for FAQ items on light bg */
  color: #333333;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  padding: 10px 0;
  color: #26A9E0; /* Brand color for FAQ questions */
}

.page-register__light-bg .page-register__faq-question {
  color: #333333; /* Dark text for FAQ questions on light bg */
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1;
  margin-left: 15px;
}

.page-register__faq-answer {
  padding-top: 15px;
  font-size: 1em;
  line-height: 1.6;
  color: #ffffff; /* Light text for FAQ answers */
}

.page-register__light-bg .page-register__faq-answer {
  color: #333333; /* Dark text for FAQ answers on light bg */
}

/* Hide default details marker */
.page-register__faq-item summary {
  list-style: none;
}
.page-register__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Call to Action Section */
.page-register__call-to-action {
  text-align: center;
  padding: 80px 20px;
  background-color: #0d0d0d; /* Dark background */
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__hero-section {
    padding: 40px 20px;
    padding-top: 10px;
  }
}

@media (max-width: 768px) {
  /* Global responsive styles for images, videos, buttons */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px !important; /* Ensure images are not too small */
  }
  
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper,
  .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;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-register__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }
  
  .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;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  .page-register__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-register__main-title {
    font-size: 2em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__hero-section,
  .page-register__call-to-action {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-register__container {
    padding: 30px 15px;
  }
  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__promotions-grid,
  .page-register__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__card {
    padding: 20px;
  }
  .page-register__faq-question {
    font-size: 1.1em;
  }
}

/* Ensure no filter is used on images */
.page-register img {
  filter: none !important;
}