/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-register__dark-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-register__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-register__card-title, .page-register__step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-register__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-register__hero-section .page-register__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-register__hero-content {
  max-width: 800px;
  z-index: 1;
}

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

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

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

.page-register__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-register__btn-primary:hover {
  background-color: #1e87c0;
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-register__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 800px;
  margin-top: 40px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
}

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-register__benefit-card {
  background-color: #0a0a0a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-register__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
}

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

.page-register__step-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-description {
  color: #f0f0f0;
}

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

.page-register__bottom-cta {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
}

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-register__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-register__security-text {
  flex: 1;
  color: #f0f0f0;
}

.page-register__security-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

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

.page-register__faq-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

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

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-register__final-cta-content {
  background-color: #0a0a0a;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__final-cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-register__final-cta-button {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }

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

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

  .page-register__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-register__security-image {
    max-width: 80%;
  }
}

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

  .page-register__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }

  .page-register__hero-title {
    font-size: 2.5em;
  }

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

  .page-register__hero-cta, .page-register__hero-login {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__hero-content .page-register__hero-cta, 
  .page-register__hero-content .page-register__hero-login {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-section .page-register__container {
    padding: 0 15px;
  }

  .page-register__hero-image-wrapper {
    padding: 0 15px;
  }

  .page-register__benefits-section, .page-register__steps-section, .page-register__security-section, .page-register__faq-section, .page-register__final-cta-section {
    padding: 40px 0;
  }

  .page-register__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__benefits-grid, .page-register__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-register__benefit-icon {
    max-width: 150px;
  }

  .page-register__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-register__final-cta-content {
    padding: 30px 15px;
  }

  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section, .page-register__card, .page-register__container, .page-register__hero-image-wrapper, .page-register__security-image, .page-register__hero-section .page-register__container, .page-register__final-cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

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

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

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }

  .page-register__cta-button, .page-register__btn-primary, .page-register__btn-secondary, .page-register a[class*="button"], .page-register a[class*="btn"] {
    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-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__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}