/* style/register.css */
.page-register {
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

/* Hero Section */
.page-register__hero-section {
  background-color: #0056B3; /* Primary color background */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-register__hero-container {
  max-width: 800px;
}

.page-register__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700; /* Secondary color for title */
  font-weight: bold;
}

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

.page-register__hero-button,
.page-register__cta-button,
.page-register__faq-cta-button {
  display: inline-block;
  background-color: #FFD700; /* Secondary color for buttons */
  color: #0056B3; /* Primary color for button text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__hero-button:hover,
.page-register__cta-button:hover,
.page-register__faq-cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-2px);
}

.page-register__hero-image-wrapper {
  max-width: 100%; /* Ensures image wrapper doesn't cause overflow */
  margin-top: 30px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

/* General Section Styling */
.page-register__value-section,
.page-register__steps-section,
.page-register__conditions-section,
.page-register__faq-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-register__value-section {
  background-color: #ffffff;
}

.page-register__section-title {
  font-size: 2.2em;
  color: #0056B3;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Features (Value Section) */
.page-register__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-register__feature-item {
  background-color: #f0f8ff; /* Light blue background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-register__feature-item:hover {
  transform: translateY(-5px);
}

.page-register__feature-title {
  font-size: 1.4em;
  color: #0056B3;
  margin-bottom: 15px;
}

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

/* Steps Section */
.page-register__steps-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-register__steps-list-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-register__steps-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-register__steps-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min-width */
  min-height: 200px; /* Enforce min-height */
}

.page-register__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
}

.page-register__step-number {
  counter-increment: step-counter;
  width: 40px;
  height: 40px;
  background-color: #FFD700; /* Secondary color */
  color: #0056B3; /* Primary color */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  flex-shrink: 0;
}

.page-register__step-title {
  font-size: 1.3em;
  color: #0056B3;
  margin-top: 5px;
  margin-bottom: 5px;
}

.page-register__step-description {
  color: #555555;
  font-size: 1em;
}

/* Conditions Section */
.page-register__conditions-section {
  background-color: #f0f8ff; /* Light blue background */
}

.page-register__conditions-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-register__condition-item {
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid #0056B3;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 1.05em;
  color: #333333;
}

.page-register__condition-item strong {
  color: #0056B3;
}

.page-register__link {
  color: #0056B3;
  text-decoration: underline;
}

.page-register__link:hover {
  color: #004085;
}

.page-register__learn-more-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background-color: #0056B3;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-register__learn-more-button:hover {
  background-color: #004085;
}

/* FAQ Section */
.page-register__faq-section {
  background-color: #ffffff;
}

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

.page-register__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-register__faq-item[open] {
  background-color: #e6f0fa; /* Lighter blue when open */
  border-color: #0056B3;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #0056B3;
  cursor: pointer;
  background-color: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700; /* Secondary color for toggle */
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become an X or minus */
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .page-register {
    padding-top: var(--header-offset-mobile, 80px); /* Adjust for mobile header offset */
  }

  .page-register__hero-section {
    padding: 60px 20px;
    flex-direction: column;
    gap: 30px;
  }

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

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

  .page-register__features {
    grid-template-columns: 1fr;
  }

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

  .page-register__steps-image-wrapper {
    order: -1; /* Image above steps on mobile */
  }

  .page-register__steps-image,
  .page-register__hero-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  /* Ensure all images within .page-register are responsive and don't overflow */
  .page-register img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }

  .page-register__hero-button,
  .page-register__cta-button,
.page-register__faq-cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-register__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

/* Ensure no image filter properties are used */
.page-register img {
  filter: none; /* Explicitly ensure no filters */
}