/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Dark background from shared.css */
}

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #017439; /* Primary brand color for hero background */
  color: #ffffff;
  overflow: hidden;
  min-height: 500px;
}

.page-register__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-bottom: 30px;
}

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

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

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

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

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

.page-register__section-intro-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-register__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

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

.page-register__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for cards */
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-register__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__feature-title,
.page-register__step-title,
.page-register__note-title,
.page-register__faq-q-text {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

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

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

.page-register__notes-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-register__note-item {
  text-align: left;
}

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

.page-register__faq-item {
  margin-bottom: 15px;
  text-align: left;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__faq-q-text {
  margin: 0;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  color: #FFFF00;
  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, padding 0.3s ease;
  color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 15px 25px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

.page-register__cta-app {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  text-align: left;
  padding: 80px 20px;
  background-color: #017439; /* Primary brand color for CTA background */
  color: #ffffff;
  gap: 40px;
}

.page-register__cta-content {
  max-width: 600px;
}

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

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

.page-register__cta-image-wrapper {
  flex-shrink: 0;
}

.page-register__cta-app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__final-cta {
  text-align: center;
  padding: 80px 20px;
  background-color: #0a0a0a;
}

.page-register__final-cta-text {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__cta-app {
    flex-direction: column;
    text-align: center;
  }
  .page-register__cta-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 60px 15px;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__section {
    padding: 40px 15px;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-intro-text {
    font-size: 0.95em;
  }
  .page-register__features-grid, .page-register__steps-grid, .page-register__notes-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__card {
    padding: 20px;
  }
  .page-register__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-register__cta-app-image {
    max-width: 300px;
  }
  
  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons */
  .page-register__hero-section,
  .page-register__section,
  .page-register__card,
  .page-register__cta-app,
  .page-register__cta-buttons,
  .page-register__hero-image-wrapper,
  .page-register__cta-image-wrapper,
  .page-register__faq-question,
  .page-register__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Specific handling for buttons */
  .page-register__btn-primary,
  .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;
    margin-left: 0;
    margin-right: 0;
  }
  .page-register__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__faq-q-text {
    font-size: 1em;
  }
  .page-register__cta-title {
    font-size: 2em;
  }
}