/* style/register.css */
.page-register {
  color: #333333;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-register__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-register__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 20px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  z-index: 1;
}

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

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

.page-register__cta-button {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-register__cta-button:hover {
  background-color: #0056b3;
}

.page-register__cta-button--secondary {
  background-color: #28a745;
}

.page-register__cta-button--secondary:hover {
  background-color: #1e7e34;
}

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

.page-register__section-wrapper {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__section--dark .page-register__section-wrapper {
  background-color: #007bff;
  color: #ffffff;
}

.page-register__section--dark .page-register__section-title,
.page-register__section--dark .page-register__text-block,
.page-register__section--dark .page-register__step-title,
.page-register__section--dark .page-register__step-description {
  color: #ffffff;
}

.page-register__section--grey .page-register__section-wrapper {
  background-color: #f8f9fa;
}

.page-register__section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-register__section--dark .page-register__section-title {
  color: #ffffff;
}

.page-register__text-block {
  font-size: 1.1em;
  margin-bottom: 25px;
  text-align: justify;
}

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

.page-register__benefit-card {
  background-color: #f0f8ff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
}

.page-register__benefit-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

.page-register__registration-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #28a745;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  position: relative;
  color: #ffffff;
}

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

.page-register__step-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-register__step-description {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-register__rules-list {
  list-style: disc;
  margin-left: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-register__rule-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  line-height: 1.8;
}

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

.page-register__faq-list {
  margin-top: 30px;
  margin-bottom: 30px;
}

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

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

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

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

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

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

.page-register__security-section .page-register__section-wrapper {
  background-color: #007bff;
  color: #ffffff;
}

.page-register__security-section .page-register__section-title {
  color: #ffffff;
}

.page-register__security-section .page-register__text-block {
  color: #f0f0f0;
}

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

.page-register__feature-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-register__feature-icon {
  width: 200px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-register__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__cta-final .page-register__section-wrapper {
  text-align: center;
}

.page-register__login-prompt {
  margin-top: 25px;
  font-size: 1.1em;
}

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

.page-register__login-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header on mobile */
  }
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-register__content-area {
    padding: 40px 15px;
  }
  .page-register__section-wrapper {
    padding: 25px;
  }
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-register__text-block,
  .page-register__rule-item,
  .page-register__faq-answer p {
    font-size: 0.95em;
  }
  .page-register__benefit-icon, .page-register__feature-icon {
    width: 150px;
    height: 100px;
  }
  .page-register__benefit-title, .page-register__feature-title {
    font-size: 1.3em;
  }
  .page-register__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-register__faq-toggle {
    font-size: 1.3em;
  }

  /* Critical: Prevent content overflow for images on mobile */
  .page-register img {
    max-width: 100%;
    height: auto;
  }
  .page-register__hero-image {
    width: 100%; /* Ensure hero image scales correctly */
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__hero-description {
    font-size: 0.9em;
  }
  .page-register__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__benefit-card,
  .page-register__feature-card {
    padding: 20px;
  }
  .page-register__benefit-icon, .page-register__feature-icon {
    width: 120px;
    height: 80px;
  }
  .page-register__step-item {
    padding: 20px;
  }
  .page-register__step-item::before {
    left: 5px;
    top: -10px;
    font-size: 0.8em;
  }
  .page-register__step-title {
    font-size: 1.4em;
  }
  .page-register__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-register__faq-toggle {
    font-size: 1.2em;
  }
}