/* style/register.css */

/* Base styles for the page, adapting to body background */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  /* Body background is #0a0a0a (dark), so main text color should be light */
  color: #ffffff; 
  background-color: #0a0a0a; /* Ensure the main content area has a consistent dark background */
}

/* Ensure images are responsive by default */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below image */
}

/* Ensure videos are responsive by default */
.page-register video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Section styling */
.page-register__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.2;
}

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

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Stack image and content */
  align-items: center;
  padding: 10px 0 60px 0; /* body handles padding-top, only small top padding for this section */
  background-color: #0a0a0a; /* Dark background for hero */
}

.page-register__hero-image {
  width: 100%;
  max-width: 1920px; /* Request size */
  height: auto;
  object-fit: cover;
  margin-bottom: 40px; /* Space between image and content */
}

.page-register__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  color: #ffffff; /* Light text for dark background */
  order: 2; /* Content below image */
}

.page-register__main-title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  /* No fixed font-size for H1, relying on clamp if needed, otherwise browser default */
  color: #ffffff;
}

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

/* --- CTA Buttons --- */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  box-sizing: border-box;
}

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

.page-register__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

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

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-register__btn-large {
  padding: 18px 35px;
  font-size: 1.1rem;
}

/* --- Benefits Section --- */
.page-register__benefits-section,
.page-register__promotions-section,
.page-register__faq-section {
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
  padding: 80px 20px;
  text-align: center;
}

.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: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-register__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for titles */
}

.page-register__card-description {
  font-size: 1rem;
  color: #555555;
}

/* --- How-to-Register Section --- */
.page-register__how-to-register-section,
.page-register__security-section,
.page-register__call-to-action {
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff; /* Light text for dark background */
  padding: 80px 20px;
}

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

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px; /* Ensure cards have similar height */
  justify-content: center;
}

.page-register__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #26A9E0; /* Brand color for step numbers */
  margin-bottom: 15px;
  display: block;
}

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

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

.page-register__promotion-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.page-register__promotion-card .page-register__card-title {
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-register__promotion-card .page-register__card-description {
  color: #555555;
  font-size: 0.95rem;
  flex-grow: 1;
}

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

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

/* --- Security Section --- */
.page-register__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.page-register__security-image {
  flex: 1 1 40%;
  min-width: 300px;
  border-radius: 10px;
  object-fit: cover;
}

.page-register__security-text {
  flex: 1 1 50%;
  color: #ffffff;
}

.page-register__security-text p {
  margin-bottom: 20px;
}

.page-register__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-register__security-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2326A9E0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-register__list-highlight {
  color: #26A9E0; /* Brand color for highlights */
}

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

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

.page-register__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #333333; /* Dark text for light background */
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Hide default marker */
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-register__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #555555;
  background-color: #ffffff;
}

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

.page-register__call-to-action .page-register__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-register__call-to-action .page-register__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-register__call-to-action .page-register__cta-button {
  margin: 10px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 0 30px;
  }
  .page-register__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-register__security-image {
    order: 1;
  }
  .page-register__security-text {
    order: 2;
  }
  .page-register__security-list {
    text-align: left; /* Keep list left-aligned */
  }
}

@media (max-width: 768px) {
  /* Global image and video responsive fix */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__how-to-register-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__call-to-action {
    padding: 40px 15px !important; /* Adjust padding for mobile */
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .page-register__hero-image {
    margin-bottom: 20px;
  }

  .page-register__hero-content {
    padding: 0 15px;
  }

  .page-register__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust H1 size for smaller screens */
  }

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

  .page-register__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    margin: 10px 0 !important; /* Stack buttons vertically */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-register__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__promotions-list {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 20px;
  }

  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__promotion-card {
    padding: 25px;
  }

  .page-register__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 20px;
  }

  .page-register__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-register__security-image {
    min-width: unset; /* Reset min-width for mobile */
  }

  .page-register__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-register__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}

/* Ensure all containers holding images/videos/buttons are responsive */
.page-register__hero-section,
.page-register__benefits-section,
.page-register__benefits-grid,
.page-register__benefit-card,
.page-register__how-to-register-section,
.page-register__steps-grid,
.page-register__step-card,
.page-register__promotions-section,
.page-register__promotions-list,
.page-register__promotion-card,
.page-register__security-section,
.page-register__security-content,
.page-register__security-image,
.page-register__security-text,
.page-register__faq-section,
.page-register__faq-list,
.page-register__faq-item,
.page-register__call-to-action,
.page-register__cta-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Color contrast fixes for light background sections */
.page-register__benefits-section,
.page-register__promotions-section,
.page-register__faq-section {
  color: #333333; /* Dark text for light background */
}

.page-register__benefits-section .page-register__section-title,
.page-register__promotions-section .page-register__section-title,
.page-register__faq-section .page-register__section-title {
  color: #26A9E0; /* Brand color for titles on light background */
}

.page-register__benefits-section .page-register__section-description,
.page-register__promotions-section .page-register__section-description,
.page-register__faq-section .page-register__section-description {
  color: #555555;
}

.page-register__faq-item summary {
  color: #333333;
}
.page-register__faq-answer {
  color: #555555;
}