/* style/register.css */
.page-register {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: var(--black-color, #0d0d0d); /* Fallback for body background */
  padding-bottom: 0; /* Ensure no extra padding at bottom */
}

.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #26A9E0; /* Brand primary color for hero background */
  color: #ffffff;
}

.page-register__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  height: auto;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  filter: none; /* Ensure no filter */
}

.page-register__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-register__hero-heading {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

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

.page-register__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login/Register specific color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* For mobile responsiveness */
}

.page-register__btn-primary:hover {
  background-color: #d46f06;
}

.page-register__btn-primary:active {
  transform: translateY(1px);
}

/* General Section Styling */
.page-register__section {
  padding: 60px 20px;
  text-align: center;
  color: #ffffff; /* Default for dark background sections */
}

.page-register__section--dark-bg {
  background-color: var(--black-color, #0d0d0d);
  color: #ffffff;
}

.page-register__section--light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-register__section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-register__section--dark-bg .page-register__section-heading {
  color: #26A9E0; /* Brand color on dark bg */
}

.page-register__section--light-bg .page-register__section-heading {
  color: #26A9E0; /* Brand color on light bg */
}

.page-register__section-description {
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.05rem;
  color: #f0f0f0;
}

.page-register__section--light-bg .page-register__section-description {
  color: #555555;
}

.page-register__section-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  filter: none; /* Ensure no filter */
}

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

.page-register__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-height: 200px; /* Ensure cards have some height */
}

.page-register__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-register__card-image {
  width: 100%; /* Card images should fill card width */
  min-width: 200px; /* Min size for all images */
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  filter: none; /* Ensure no filter */
}

.page-register__card-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__card-text {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-register__section--light-bg .page-register__card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-register__section--light-bg .page-register__card-heading {
  color: #26A9E0;
}

.page-register__section--light-bg .page-register__card-text {
  color: #555555;
}

.page-register__card ul {
  list-style: disc;
  margin-left: 20px;
  padding: 0;
  color: #f0f0f0;
}

.page-register__section--light-bg .page-register__card ul {
  color: #555555;
}

.page-register__card li {
  margin-bottom: 8px;
}

/* Registration Form Section */
.page-register__form-section {
  padding: 60px 20px;
  background-color: var(--black-color, #0d0d0d);
  color: #ffffff;
  text-align: center;
}

.page-register__form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
}

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

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

.page-register__form-input {
  width: calc(100% - 24px); /* Adjust for padding + border */
  padding: 12px 10px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #333;
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

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

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

.page-register__form-checkbox {
  margin-right: 10px;
  margin-top: 4px; /* Align checkbox better with text */
}

.page-register__form-terms {
  font-size: 0.9rem;
  color: #ccc;
}

.page-register__form-terms a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-register__login-link {
  display: block;
  margin-top: 20px;
  font-size: 1rem;
  color: #f0f0f0;
  text-align: center;
}

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

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

/* Terms & Conditions Section */
.page-register__terms-section {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-register__terms-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-register__terms-content p {
  margin-bottom: 15px;
  color: #555555;
}

.page-register__terms-content a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-register__terms-content a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 20px;
  background-color: var(--black-color, #0d0d0d);
  color: #ffffff;
  text-align: center;
}

.page-register__faq-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

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

.page-register__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.03);
  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-qtext {
  flex-grow: 1;
  color: #ffffff;
}

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

.page-register__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
}

/* Final CTA Section */
.page-register__cta-section {
  padding: 60px 20px;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  text-align: center;
}

.page-register__cta-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  filter: none; /* Ensure no filter */
}

.page-register__cta-heading {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-register__cta-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  color: #f0f0f0;
}

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

  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-register__hero-heading {
    font-size: 2rem;
  }

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

  .page-register__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-register__section,
  .page-register__form-section,
  .page-register__terms-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__section-heading {
    font-size: 1.8rem;
  }

  .page-register__section-description {
    font-size: 0.95rem;
  }

  .page-register__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__card {
    padding: 20px;
  }

  .page-register__card-heading {
    font-size: 1.3rem;
  }

  .page-register__form-container {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__form-input {
    width: calc(100% - 24px) !important; /* Adjust for padding + border */
  }

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

  .page-register__faq-answer {
    padding: 0 15px 15px 15px;
  }

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

  /* Buttons in groups */
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no filter on images globally */
.page-register img {
  filter: none;
}

/* Specific contrast fixes if needed, though designed for good contrast */
.page-register__section--light-bg p, .page-register__section--light-bg li {
  color: #333333; /* Ensure dark text on light background */
}

.page-register__section--dark-bg p, .page-register__section--dark-bg li {
  color: #f0f0f0; /* Ensure light text on dark background */
}