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

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

.page-register__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
}

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-register__primary-button {
  display: inline-block;
  background-color: #007bff; /* Primary color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 200px; /* Ensure button is not too small */
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.page-register__primary-button:hover {
  background-color: #0056b3; /* Darker shade of primary color */
}

.page-register__secondary-button {
  display: inline-block;
  background-color: #28a745; /* Secondary color */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 180px;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.page-register__secondary-button:hover {
  background-color: #1e7e34; /* Darker shade of secondary color */
}

.page-register__section-title {
  font-size: 2.5em;
  color: #007bff; /* Primary color */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

.page-register__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-register__value-section, .page-register__steps-section, .page-register__conditions-section, .page-register__faq-section, .page-register__cta-final-section {
  padding: 60px 0;
}

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

.page-register__value-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-register__value-icon {
  width: 200px; /* Minimum size */
  height: 200px; /* Minimum size */
  margin-bottom: 20px;
  object-fit: contain;
}

.page-register__value-heading {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 15px;
}

.page-register__value-text {
  font-size: 1em;
  color: #666666;
}

.page-register__registration-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  counter-reset: step-counter;
}

.page-register__step-item {
  background-color: #f9f9f9;
  border-left: 5px solid #007bff;
  padding: 30px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-register__step-item::before {
  counter-increment: step-counter;
  content: "Step " counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: #007bff;
  color: #ffffff;
  padding: 5px 15px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
}

.page-register__step-image {
  width: 100%;
  height: 250px; /* Ensure images are not too small */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

.page-register__step-heading {
  font-size: 1.4em;
  color: #007bff;
  margin-bottom: 10px;
}

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

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

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

.page-register__condition-item {
  background-color: #ffffff;
  border-bottom: 1px dashed #e0e0e0;
  padding: 15px 0;
  font-size: 1.1em;
  color: #333333;
}

.page-register__condition-item:last-child {
  border-bottom: none;
}

.page-register__condition-item strong {
  color: #007bff;
}

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

.page-register__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question::-webkit-details-marker {
  display: none;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #007bff;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  padding: 15px 25px 20px 25px;
  border-top: 1px solid #e9e9e9;
  color: #555555;
  font-size: 1.05em;
}

.page-register__cta-final-section {
  text-align: center;
  background-color: #f0f8ff;
  padding: 80px 0;
  border-top: 1px solid #e0e0e0;
}

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

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

.page-register__small-text {
  margin-top: 20px;
  font-size: 0.95em;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-register__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-register__section-intro {
    font-size: 0.95em;
  }

  .page-register__value-grid, .page-register__registration-steps {
    grid-template-columns: 1fr;
  }

  .page-register__value-item, .page-register__step-item {
    padding: 20px;
  }

  .page-register__hero-section {
    min-height: 400px;
  }

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

  .page-register__primary-button, .page-register__secondary-button {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Ensure content images are responsive and don't overflow */
  .page-register img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size even on mobile */
    min-height: 200px;
  }

  .page-register__value-icon, .page-register__step-image {
    width: 100%;
    height: auto;
    max-width: 300px; /* Example max-width to prevent huge images on small screens */
    margin-left: auto;
    margin-right: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
  }
}

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

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

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

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