/* style/register.css */

/* --- General Styles --- */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-register__card {
  background: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* --- Buttons --- */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-register__btn-login {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-register__btn-login:hover {
  background-color: #c96706;
  border-color: #c96706;
}

.page-register__mt-20 { margin-top: 20px; }
.page-register__mt-40 { margin-top: 40px; }

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: #26A9E0; /* Brand color for dark background */
  color: #ffffff;
}

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

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-register__hero-content {
  position: relative; /* Not absolute to avoid overlapping */
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-register__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Why Join Section --- */
.page-register__why-join-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333;
}

.page-register__why-join-section .page-register__section-title {
  color: #26A9E0;
}

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

.page-register__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

/* --- How To Section --- */
.page-register__how-to-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
}

.page-register__how-to-section .page-register__section-title {
  color: #ffffff;
}

.page-register__how-to-section .page-register__section-description {
  color: #f0f0f0;
}

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

.page-register__step-item {
  text-align: center;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.page-register__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: #ffffff;
  background-color: #EA7C07; /* Orange accent */
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

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

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

.page-register__image-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.page-register__process-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* --- Promotions Section --- */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

.page-register__promotions-section .page-register__section-title {
  color: #26A9E0;
}

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

.page-register__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-register__promo-text {
  font-size: 1em;
  margin-bottom: 20px;
}

/* --- Security Section --- */
.page-register__security-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
}

.page-register__security-section .page-register__section-title {
  color: #ffffff;
}

.page-register__security-section .page-register__section-description {
  color: #f0f0f0;
}

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-register__security-text {
  flex: 1;
}

.page-register__security-subtitle {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-register__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-register__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-register__faq-section .page-register__section-title {
  color: #26A9E0;
}

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

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

.page-register__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-item summary:hover {
  background-color: #f0f0f0;
}

.page-register__faq-question {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-register__faq-qtext {
  color: #26A9E0;
}

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

.page-register__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #555555;
}

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

.page-register__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* --- Final CTA Section --- */
.page-register__final-cta-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-register__final-cta-section .page-register__section-title {
  color: #ffffff;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-register__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-register__security-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-section {
    padding-bottom: 40px;
  }

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

  .page-register__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-register__description {
    font-size: 1em;
  }

  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__how-to-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__final-cta-section,
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper { /* Added video related containers for safety */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Videos responsive (no videos on this page, but for general safety) */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video container padding for mobile */
  .page-register__video-section {
    padding-top: 10px !important; /* Small top padding */
  }

  /* Multiple buttons in mobile */
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__promo-grid {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .page-register__security-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-register__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-register__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-register__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
}

/* Contrast Fixes */
.page-register__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

/* Ensure content area images are not too small in CSS */
.page-register__process-image,
.page-register__promo-image,
.page-register__security-image {
    min-width: 200px;
    min-height: 200px;
}