/* style/register.css */

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

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

.page-register__section {
  padding: 60px 0;
  text-align: center;
}

.page-register__dark-bg {
  background-color: #0a0a0a; /* Ensure consistency with body background */
  color: #ffffff;
}

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

.page-register__section-title {
  font-size: 3em;
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

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

.page-register__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)); /* Dark overlay for text readability */
  z-index: 1;
}

.page-register__hero-section .page-register__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
}

.page-register__hero-title {
  font-size: 3.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-register__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

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

.page-register__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

/* Why Register Section */
.page-register__why-register-section {
  background-color: #0a0a0a;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-register__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__feature-icon {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-register__feature-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-register__feature-description {
  font-size: 1em;
  color: #f0f0f0;
  text-align: left;
}

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

.page-register__steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 50px;
  position: relative;
}

.page-register__steps-wrapper::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: rgba(38, 169, 224, 0.3);
  transform: translateX(-50%);
}

.page-register__step-item {
  position: relative;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  max-width: 600px;
  margin: 0 auto;
}

.page-register__step-item:nth-child(odd) {
  margin-right: auto;
  left: -200px; /* Offset for visual timeline effect */
}

.page-register__step-item:nth-child(even) {
  margin-left: auto;
  right: -200px; /* Offset for visual timeline effect */
}

.page-register__step-number {
  width: 50px;
  height: 50px;
  background-color: #26A9E0;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  border: 4px solid #0a0a0a; /* Match body background */
}

.page-register__step-item:nth-child(odd) .page-register__step-number {
  left: calc(100% + 20px);
}

.page-register__step-item:nth-child(even) .page-register__step-number {
  right: calc(100% + 20px);
  left: auto;
}

.page-register__step-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

.page-register__steps-image {
  margin-top: 60px;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Important Notes Section */
.page-register__important-notes-section {
  background-color: #0a0a0a;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-register__note-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-register__note-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

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

.page-register__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

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

.page-register__faq-item[open] .page-register__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  margin-left: 20px;
  color: #26A9E0;
}

.page-register__faq-answer {
  padding: 20px 30px;
  font-size: 1em;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-register__faq-item[open] .page-register__faq-answer {
  max-height: 500px; /* Adjust as needed */
  transition: max-height 0.5s ease-in;
}

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

.page-register__faq-image {
  margin-top: 60px;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.2em;
  }
  .page-register__section-title {
    font-size: 2.5em;
  }
  .page-register__step-item:nth-child(odd),
  .page-register__step-item:nth-child(even) {
    left: 0;
    right: 0;
    margin: 0 auto;
  }
  .page-register__steps-wrapper::before {
    left: 50%;
  }
  .page-register__step-item:nth-child(odd) .page-register__step-number,
  .page-register__step-item:nth-child(even) .page-register__step-number {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    margin: 0 auto 20px;
  }
}

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

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

  .page-register__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

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

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-register__feature-card,
  .page-register__note-item,
  .page-register__faq-item {
    padding: 20px;
  }

  .page-register__feature-title,
  .page-register__note-title {
    font-size: 1.5em;
  }

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

  /* Image responsive rules */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__steps-wrapper,
  .page-register__faq-list,
  .page-register__cta-buttons {
    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 .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__steps-wrapper::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .page-register__step-item:nth-child(odd),
  .page-register__step-item:nth-child(even) {
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 100%;
  }
  .page-register__step-item .page-register__step-number {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    margin: 0 auto 20px;
    border: 4px solid #0a0a0a; /* Match body background */
  }
}

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