/* style/register.css */

/* Base styles for the page */
.page-register {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Assuming body background is white/light */
  line-height: 1.6;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom */
  background-color: #26A9E0; /* Brand color background for hero */
  color: #FFFFFF; /* White text on brand color background */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for hero image */
  margin-bottom: 30px; /* Space between image and content */
}

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

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

.page-register__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

/* Call to Action Buttons */
.page-register__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%; /* Ensure button fits container */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-register__btn-primary {
  background-color: #EA7C07; /* Login/Register custom color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

.page-register__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Brand color */
  border: 2px solid #26A9E0;
}

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

/* General Section Styling */
.page-register__section {
  padding: 60px 20px;
  margin-bottom: 20px;
  background-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__section-description,
.page-register__dark-section .page-register__step-title,
.page-register__dark-section .page-register__step-description,
.page-register__dark-section .page-register__step-number {
  color: #FFFFFF;
}

.page-register__dark-section .page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-register__dark-section .page-register__cta-button.page-register__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #FFFFFF;
}

.page-register__dark-section .page-register__cta-button.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
}

.page-register__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #26A9E0; /* Brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
}

.page-register__section-description {
  text-align: center;
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #555555;
}

.page-register__dark-section .page-register__section-description {
  color: #f0f0f0;
}

/* Content Blocks */
.page-register__content-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-register__content-block--reverse {
  flex-direction: row-reverse;
}

.page-register__text-content,
.page-register__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-register__text-content h3 {
  font-size: 1.8rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-register__dark-section .page-register__text-content h3 {
  color: #FFFFFF;
}

.page-register__text-content p,
.page-register__text-content ul {
  font-size: 1rem;
  color: #333333;
  margin-bottom: 15px;
}

.page-register__dark-section .page-register__text-content p,
.page-register__dark-section .page-register__text-content ul,
.page-register__dark-section .page-register__text-content li {
  color: #f0f0f0;
}

.page-register__text-content ul {
  list-style: disc;
  padding-left: 20px;
}

.page-register__text-content li {
  margin-bottom: 8px;
}

.page-register__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Registration Steps */
.page-register__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__step-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

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

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

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

.page-register__faq-item {
  background-color: #f8f8f8;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #26A9E0; /* Brand color for FAQ question */
  color: #FFFFFF;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

.page-register__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

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

.page-register__faq-answer p {
  padding-top: 20px;
  padding-bottom: 20px;
  margin: 0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 20px;
  padding-bottom: 20px;
}

/* For <details> tag based FAQ */
.page-register__faq-item summary {
  list-style: none;
}
.page-register__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Final CTA Section */
.page-register__final-cta {
  text-align: center;
  background-color: #f0f8ff;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-register__hero-section {
    padding: 10px 15px 40px;
  }
  .page-register__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-register__section {
    padding: 40px 15px;
  }
  .page-register__section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }
  .page-register__content-block {
    flex-direction: column;
  }
  .page-register__content-block--reverse {
    flex-direction: column; /* Stacks normally on mobile */
  }
  .page-register__text-content,
  .page-register__image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Global responsiveness for images, videos, buttons */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image/Video/Button containers */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper,
  .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;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Specific button styles for mobile */
  .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 {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-register__hero-section {
    padding: 10px 15px 30px;
  }
  .page-register__hero-description {
    font-size: 1rem;
  }
  .page-register__section {
    padding: 30px 15px;
  }
  .page-register__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-register__text-content h3 {
    font-size: 1.5rem;
  }
  .page-register__step-number {
    font-size: 2rem;
  }
  .page-register__step-title {
    font-size: 1.2rem;
  }
  .page-register__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-register__faq-answer p {
    padding: 15px 0;
  }
}