/* style/register.css */
.page-register {
  color: #333333; /* Default text color for light background */
}

.page-register__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero section */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #000000; /* Dark background for hero content */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4; /* Slightly dim the image for text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  color: #FFFFFF; /* Light text color for dark hero background */
}

.page-register__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

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

.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-register__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-register__button--primary {
  background-color: #FCBC45; /* Login color for primary CTA */
  color: #000000; /* Dark text for yellow button */
}

.page-register__button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-register__button--secondary {
  background-color: #FFFFFF; /* Register color for secondary CTA */
  color: #000000; /* Dark text for white button */
  border: 2px solid #FCBC45;
}

.page-register__button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

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

.page-register__info-section,
.page-register__steps-section,
.page-register__conditions-section,
.page-register__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

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

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

.page-register__feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: #f8f8f8;
  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-icon {
  width: 200px; /* Enforce minimum size for content images */
  height: 150px; /* Example height for aspect ratio, will be object-fit */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-register__feature-text {
  font-size: 1em;
  line-height: 1.5;
  color: #666666;
}

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

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

.page-register__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  background-color: #FCBC45; /* Accent color */
  color: #000000; /* Dark text for accent background */
  font-size: 1.5em;
  font-weight: bold;
  margin-right: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-register__step-content {
  flex-grow: 1;
}

.page-register__step-title {
  font-size: 1.4em;
  margin-bottom: 8px;
  color: #000000;
}

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

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

.page-register__conditions-list {
  list-style: disc;
  margin: 40px auto;
  max-width: 800px;
  padding-left: 25px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #333333;
}

.page-register__condition-item {
  margin-bottom: 15px;
}

.page-register__link-text {
  display: block;
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  color: #FCBC45; /* Accent color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-register__link-text:hover {
  text-decoration: underline;
}

.page-register__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question::marker { /* Hide default marker for details summary */
  display: none;
}

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

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

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

/* Floating buttons */
.page-register__floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-register__floating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 50px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: #000000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.page-register__floating-button:hover {
  transform: translateY(-3px);
}

.page-register__floating-button--register {
  background-color: #FFFFFF; /* Register color */
}

.page-register__floating-button--register:hover {
  background-color: #f0f0f0;
}

.page-register__floating-button--login {
  background-color: #FCBC45; /* Login color */
}

.page-register__floating-button--login:hover {
  background-color: #e0a53b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px);
  }

  .page-register__main-title {
    font-size: 2.2em;
  }

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

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__button {
    width: 80%;
    margin: 0 auto;
  }

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

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

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

  .page-register__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-register__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

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

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

  .page-register__floating-buttons {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }

  .page-register__floating-button {
    width: 100px;
    height: 45px;
    font-size: 1em;
  }

  /* Ensure images in content area are responsive and not smaller than 200px */
  .page-register img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
  }

  .page-register__feature-icon {
    width: 200px;
    height: auto;
  }
}

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

  .page-register__button {
    font-size: 1em;
    padding: 12px 25px;
  }

  .page-register__floating-buttons {
    flex-direction: row; /* Horizontal for very small screens */
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    justify-content: space-around;
  }

  .page-register__floating-button {
    flex: 1;
    width: unset;
  }
}