.page-register {
  background-color: #08160F;
  color: #F2FFF6;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-register__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-register__card {
  background-color: #11271B;
  color: #F2FFF6;
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-register__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #F2C14E;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-register__section-description {
  font-size: clamp(16px, 2vw, 18px);
  color: #A7D9B8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-register__cta-button {
  display: block;
  width: fit-content;
  margin: 30px auto 0;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-register__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}

.page-register__cta-button--bottom {
  margin-top: 60px;
}

.page-register__cta-button--large {
  padding: 20px 40px;
  font-size: 20px;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-register__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Ensure content is above any potential background effect */
  z-index: 1;
}

.page-register__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-register__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Why Register Section */
.page-register__why-register {
  padding: 80px 20px;
}

.page-register__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-register__feature-item {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px #57E38D;
}

.page-register__feature-title {
  font-size: 24px;
  color: #F2C14E;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-register__feature-text {
  font-size: 16px;
  color: #A7D9B8;
}

/* Registration Steps Section */
.page-register__registration-steps {
  padding: 80px 20px;
}

.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-register__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-register__step-title {
  font-size: 22px;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-register__step-text {
  font-size: 16px;
  color: #A7D9B8;
}

/* Security Tips Section */
.page-register__security-tips {
  padding: 80px 20px;
}

.page-register__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-register__tip-item {
  text-align: center;
}

.page-register__tip-title {
  font-size: 20px;
  color: #F2FFF6;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-register__tip-text {
  font-size: 16px;
  color: #A7D9B8;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 20px;
}

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

.page-register__faq-item {
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6;
  background-color: #0A4B2C;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  user-select: none;
  list-style: none;
}

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

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

.page-register__faq-qtext {
  flex-grow: 1;
  color: #F2FFF6;
}

.page-register__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E;
}

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #A7D9B8;
  background-color: #11271B;
  border-top: 1px solid #2E7A4E;
  border-radius: 0 0 8px 8px;
}

.page-register__faq-answer p {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-register__final-cta {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-register__cta-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-register__final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__main-title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .page-register__hero-description {
    font-size: clamp(16px, 2.5vw, 18px);
  }

  .page-register__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .page-register__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-register__cta-button {
    font-size: 16px;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__cta-button--large {
    padding: 15px 30px;
    font-size: 18px;
  }

  .page-register__hero-image {
    height: 300px;
    border-radius: 10px;
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__why-register,
  .page-register__registration-steps,
  .page-register__security-tips,
  .page-register__faq-section,
  .page-register__final-cta {
    padding: 40px 15px;
  }

  .page-register__card {
    padding: 20px;
  }

  .page-register__step-image {
    max-width: 100%;
    width: 100%;
  }

  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__hero-image-wrapper,
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__faq-item,
  .page-register__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-register__hero-section {
    padding-top: 10px !important;
  }

  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-register__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }
}