/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Main color as background */
  color: #FFFFFF; /* White text on black background */
  position: relative;
  overflow: hidden;
}

.page-register__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

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

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #F0F0F0;
}

.page-register__hero-button {
  display: inline-block;
  padding: 15px 30px;
  margin: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-register__button--primary {
  background-color: #FCBC45; /* Login color for primary action */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-register__button--primary:hover {
  background-color: #e0a538;
  border-color: #e0a538;
}

.page-register__button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-register__button--secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background effect */
  filter: brightness(0.7); /* Darken for text readability */
}

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

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

.page-register__benefits-section,
.page-register__how-to-section,
.page-register__terms-section,
.page-register__faq-section,
.page-register__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.page-register__benefit-item {
  text-align: center;
  padding: 30px;
  background-color: #F8F8F8;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-register__benefit-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  object-fit: cover;
  border-radius: 10px;
}

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

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

.page-register__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FCBC45;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FCBC45;
  border-radius: 50%;
}

.page-register__step-title {
  font-size: 1.8em;
  color: #000000;
  margin-top: 0;
  margin-bottom: 10px;
}

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

.page-register__steps-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-register__steps-image {
  width: 800px;
  height: 450px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-register__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 30px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-register__button--text {
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
}

.page-register__button--text:hover {
  background-color: #000000;
  color: #FFFFFF;
}

.page-register__terms-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-register__terms-image {
  width: 600px;
  height: 450px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-register__terms-list {
  list-style: disc;
  padding-left: 25px;
  color: #555555;
  font-size: 1.05em;
}

.page-register__terms-list li {
  margin-bottom: 15px;
}

.page-register__terms-list strong {
  color: #000000;
}

.page-register__faq-container {
  margin-top: 40px;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  background-color: #FCBC45;
  color: #000000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.page-register__faq-question[open] {
  border-bottom: none;
}

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

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

.page-register__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #666666;
  background-color: #F8F8F8;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.page-register__faq-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-register__faq-image {
  width: 600px;
  height: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-register__cta-section {
  text-align: center;
  background-color: #000000; /* Main color as background */
  color: #FFFFFF;
  padding: 80px 20px;
  border-radius: 10px;
}

.page-register__cta-title {
  font-size: 2.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-register__cta-description {
  font-size: 1.2em;
  color: #F0F0F0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-register__cta-button {
  display: inline-block;
  padding: 18px 35px;
  margin: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.page-register__cta-button.page-register__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-register__cta-button.page-register__button--primary:hover {
  background-color: #e0a538;
  border-color: #e0a538;
}

.page-register__cta-button.page-register__button--secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-register__cta-button.page-register__button--secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-register__terms-content {
    flex-direction: column;
    text-align: center;
  }
  .page-register__terms-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-register {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-register__hero-section {
    padding: 40px 15px;
  }
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-intro {
    font-size: 0.95em;
  }
  .page-register__benefits-section,
  .page-register__how-to-section,
  .page-register__terms-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 30px 15px;
    margin: 40px auto;
  }
  .page-register__benefit-icon {
    width: 200px;
    height: 200px;
  }
  .page-register__steps-image,
  .page-register__terms-image,
  .page-register__faq-image {
    max-width: 100%;
    height: auto;
  }
  /* Enforce max-width for all images within .page-register on mobile */
  .page-register img {
    max-width: 100%;
    height: auto;
  }
  .page-register__steps-list {
    gap: 20px;
  }
  .page-register__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-register__step-number {
    margin-bottom: 10px;
  }
  .page-register__cta-title {
    font-size: 2em;
  }
  .page-register__cta-description {
    font-size: 1em;
  }
  .page-register__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.7em;
  }
  .page-register__hero-button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-register__step-title {
    font-size: 1.4em;
  }
  .page-register__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-register__faq-answer {
    padding: 15px;
  }
  .page-register__cta-title {
    font-size: 1.8em;
  }
  .page-register__cta-button {
    display: block;
    width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;
  }
}