/* style/register.css */

/* Base styles for the page content, ensuring text color contrast with dark body background */
.page-register {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Section styling */
.page-register__section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

/* Dark background sections */
.page-register__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than body for differentiation, still dark */
  color: #ffffff;
}

/* Light background sections */
.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Hero Section */
.page-register__hero-section {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fallback for header offset */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: none !important; /* Ensure no filter */
  min-width: 200px;
  min-height: 200px;
}

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-register__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-register__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

/* Register Form */
.page-register__register-form-container {
  background: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 0 auto 20px auto;
  color: #333333; /* Dark text for light background */
  text-align: left;
}

.page-register__form-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
}

.page-register__form-group {
  margin-bottom: 20px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-register__form-input {
  width: calc(100% - 20px); /* Adjust for padding */
  padding: 12px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #f9f9f9;
}

.page-register__form-input::placeholder {
  color: #888;
}

.page-register__form-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.page-register__form-checkbox-input {
  margin-right: 10px;
  margin-top: 5px; /* Align checkbox with text */
  min-width: 20px; /* Ensure it's not too small */
  min-height: 20px;
}

.page-register__form-checkbox-label {
  font-size: 0.95em;
  color: #555555;
}

.page-register__form-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-register__form-link:hover {
  text-decoration: underline;
}

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

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

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

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

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

.page-register__register-button {
  width: 100%;
  margin-top: 10px;
}

.page-register__login-prompt {
  margin-top: 20px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__login-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-register__login-link:hover {
  text-decoration: underline;
}


/* General Section Titles and Descriptions */
.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.page-register__light-bg .page-register__section-title {
  color: #26A9E0;
  text-shadow: none;
}


.page-register__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}
.page-register__light-bg .page-register__section-description {
  color: #555555;
}


/* Why Register Section */
.page-register__why-register {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-register__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-register__feature-icon {
  width: 100%; /* Ensure image fills container */
  height: auto;
  max-height: 300px; /* Limit height */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Minimum size */
  min-height: 200px;
  filter: none !important; /* Ensure no filter */
}

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

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

/* How to Register Section */
.page-register__how-to-register {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-register__steps-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
  text-align: left;
}

.page-register__steps-content {
  flex: 1;
}

.page-register__steps-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__steps-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size */
  min-height: 200px;
  filter: none !important; /* Ensure no filter */
}

.page-register__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
}

.page-register__step-number {
  background-color: #26A9E0;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
}

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

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

/* Security Section */
.page-register__security {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: left;
}

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

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

.page-register__security-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size */
  min-height: 200px;
  filter: none !important; /* Ensure no filter */
}

.page-register__security-subtitle {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  margin-top: 30px;
}

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

.page-register__link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-register__link:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-register__promotions {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-register__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-register__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #ffffff;
}

.page-register__promotion-image {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Minimum size */
  min-height: 200px;
  filter: none !important; /* Ensure no filter */
}

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

.page-register__promotion-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

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

.page-register__large-button {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* FAQ Section */
.page-register__faq {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: left;
}

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

.page-register__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-heading {
  font-size: 1.1em;
  color: #333333;
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg); /* No rotation for minus sign */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 20px;
}

.page-register__faq-text {
  font-size: 0.95em;
  color: #555555;
  margin: 0;
}

.page-register__cta-support {
  margin-top: 40px;
  font-size: 1em;
  color: #555555;
  text-align: center;
}

/* Final CTA Section */
.page-register__final-cta {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-register__cta-wrapper {
  max-width: 900px;
}

.page-register__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 3em;
  }

  .page-register__section-title {
    font-size: 2em;
  }

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

  .page-register__register-form-container {
    padding: 30px;
  }

  .page-register__form-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  /* General Section Titles and Descriptions */
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-register__register-form-container {
    padding: 30px;
  }

  .page-register__form-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  /* General Section Titles and Descriptions */
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-register__how-to-register .page-register__steps-wrapper,
  .page-register__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-register__steps-content,
  .page-register__steps-image-wrapper,
  .page-register__security-text,
  .page-register__security-image-wrapper {
    width: 100%;
  }
  
  .page-register__steps-image,
  .page-register__security-image {
    max-width: 80%;
  }

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

@media (max-width: 768px) {
  /* Mobile padding for sections and containers */
  .page-register__section {
    padding: 40px 0;
  }

  .page-register__container {
    padding: 0 15px;
  }

  /* Hero Section */
  .page-register__hero-section {
    min-height: 80vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }

  .page-register__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-register__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-register__register-form-container {
    padding: 20px;
  }

  .page-register__form-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  /* General Section Titles and Descriptions */
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
}