/* style/register.css */

/* Base Styles for page-register */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default white */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-register__section-title {
  font-size: 36px;
  color: #26A9E0; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 60px 20px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-register__hero-section.page-register__dark-bg {
  background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Gradient with brand color */
  color: #ffffff;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-register__main-heading {
  font-size: 52px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-register__sub-heading {
  font-size: 24px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-register__hero-cta {
  font-size: 20px;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Subtle effect, not changing color */
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
}

.page-register__form-wrapper {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-register__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-register__form-input {
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.page-register__form-input:focus {
  border-color: #26A9E0;
  outline: none;
}

.page-register__checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.page-register__form-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #26A9E0;
}

.page-register__checkbox-label {
  font-size: 15px;
  color: #555555;
}

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

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

.page-register__submit-btn {
  padding: 15px 25px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #555555;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
}

.page-register__benefits-section.page-register__dark-bg {
  background-color: #f5f5f5; /* Light gray background */
  color: #333333;
}

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

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

.page-register__benefit-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-register__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px; /* Limit max size for smaller cards */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* For proper centering */
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
  object-fit: cover;
}

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

.page-register__benefit-text {
  font-size: 16px;
  color: #555555;
}

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

.page-register__cta-section .page-register__section-title {
  color: #ffffff;
  margin-bottom: 15px;
}

.page-register__cta-section .page-register__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-register__cta-button {
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  min-width: 180px; /* Ensure buttons are not too small */
  text-align: center;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
}

.page-register__faq-section.page-register__dark-bg {
  background-color: #f5f5f5; /* Light gray background */
  color: #333333;
}

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

.page-register__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

.page-register__faq-qtext {
  flex-grow: 1;
}

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

.page-register__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-heading {
    font-size: 44px;
  }
  .page-register__sub-heading {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-register__container {
    padding: 0 15px !important; /* Add padding for mobile content */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-register__hero-section {
    min-height: 500px;
    padding: 40px 15px;
  }

  .page-register__main-heading {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-register__sub-heading {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-register__hero-cta,
  .page-register__submit-btn,
  .page-register__cta-button {
    font-size: 16px !important;
    padding: 12px 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  .page-register__form-wrapper {
    padding: 30px 20px;
  }

  .page-register__benefits-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

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

  .page-register__hero-image-wrapper,
  .page-register__benefit-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* FAQ */
  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-register__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__main-heading {
    font-size: 28px;
  }
  .page-register__sub-heading {
    font-size: 16px;
  }
  .page-register__section-title {
    font-size: 24px;
  }
}

/* Color contrast fixes (if needed, but design should ensure) */
.page-register__dark-bg {
  color: #ffffff; /* Deep blue background, white text */
}

.page-register__light-bg {
  color: #333333; /* Light background, dark text */
}

/* Login button color */
.page-register__login-prompt .page-register__text-link {
  color: #EA7C07; /* Login specific color */
}