/* style/register.css */

/* Base Styles */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Ensures clear contrast with text */
}

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

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

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

.page-register__btn-primary {
  display: inline-block;
  background: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.page-register__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #26A9E0;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
  text-align: center;
}

.page-register__btn-secondary:hover {
  background-color: #f0f8ff;
  border-color: #1a8cc4;
  transform: translateY(-2px);
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 80px 0 40px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  text-align: center;
  overflow: hidden;
  background: #26A9E0; /* Brand color as background */
  color: #ffffff; /* White text for dark background */
}

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

.page-register__hero-description {
  font-size: 1.25em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-register__hero-image-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

.page-register__benefit-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-register__benefit-icon {
  width: 100%; /* Ensure large images for cards */
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* How-to-Register Section */
.page-register__how-to-register-section {
  padding: 80px 0;
  background: #ffffff;
}

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

.page-register__step-item {
  text-align: center;
  padding: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  transition: box-shadow 0.3s ease;
  background: #fdfdfd;
}

.page-register__step-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-register__step-title {
  font-size: 1.3em;
  color: #333333;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__step-description {
  font-size: 0.95em;
  color: #555555;
}

/* Video Section */
.page-register__video-section {
  padding: 80px 0;
  background: #f0f8ff;
  text-align: center;
}

.page-register__video-wrapper {
  max-width: 800px;
  margin: 40px auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

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

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

.page-register__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background: #fdfdfd;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: #e9f7ff;
  color: #26A9E0;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: #26A9E0;
}

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

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg); /* +/- transition is handled by JS textContent */
}

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

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

/* CTA Section */
.page-register__cta-section {
  padding: 80px 0;
  background: #26A9E0; /* Brand color as background */
  color: #ffffff;
  text-align: center;
}

.page-register__cta-section .page-register__section-title,
.page-register__cta-section .page-register__section-intro {
  color: #ffffff;
}

.page-register__cta-section .page-register__btn-primary {
  margin-right: 20px;
}

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

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

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

  /* Fixed header spacing for mobile, if shared doesn't provide */
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 30px;
  }

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

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

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

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

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

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

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__hero-image-wrapper,
  .page-register__benefits-section,
  .page-register__how-to-register-section,
  .page-register__video-section,
  .page-register__faq-section,
  .page-register__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsive */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* Buttons responsive */
  .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;
    margin-right: 0 !important; /* Remove margin for stacking */
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }

  .page-register__cta-section .page-register__btn-primary,
  .page-register__cta-section .page-register__btn-secondary {
    margin-bottom: 15px !important;
  }

  .page-register__cta-section .page-register__btn-primary:last-child,
  .page-register__cta-section .page-register__btn-secondary:last-child {
    margin-bottom: 0 !important;
  }

  .page-register__cta-section > .page-register__container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-register__faq-question {
    padding: 15px 20px;
  }

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

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 20px;
  }

  .page-register__faq-title {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__hero-description {
    font-size: 0.95em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__btn-primary, .page-register__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9em;
  }
}