/* style/register.css */

/* Variables and Base */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --accent-color: #EA7C07; /* For login/register buttons */
  --text-dark: #333333;
  --text-light: #ffffff;
  --black-color: #000000;
  --border-color: #e0e0e0;
}

/* Page default styles - based on body background var(--dark-bg-1) */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for the page content */
  background-color: transparent; /* Inherit from body or specific sections */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Desktop and mobile offset */
  background-color: var(--black-color); /* Dark background for hero */
  overflow: hidden;
  color: var(--secondary-color); /* Ensure hero text is white */
}

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

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

.page-register__hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  background-size: cover;
  object-fit: cover; /* Ensures video covers the area without distortion */
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-register__hero-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.page-register__cta-button {
  display: inline-block;
  background-color: var(--accent-color); /* Login color for primary CTA */
  color: var(--secondary-color);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__cta-button:hover {
  background-color: #d16e00; /* Manual darken for accent-color */
}

/* General Section Styles */
.page-register__section {
  padding: 80px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section */
}

.page-register__section-subtitle {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: inherit;
}

.page-register__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-register__section ul,
.page-register__section ol {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
  text-align: left;
  color: inherit;
}

.page-register__section ul li,
.page-register__section ol li {
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
}

.page-register__section ul li::before {
  content: '✅';
  margin-right: 10px;
}

.page-register__section ol li {
  counter-increment: step-counter;
}

.page-register__section ol li::before {
  content: counter(step-counter) ".";
  font-weight: bold;
  margin-right: 10px;
  color: var(--primary-color);
}

.page-register__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size for all images */
  min-height: 200px;
}

/* Section Color Variants */
.page-register__section--dark {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-register__section--dark ul li,
.page-register__section--dark ol li {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for items in dark section */
  color: var(--text-light);
}

.page-register__section--light {
  background-color: var(--secondary-color); /* White background */
  color: var(--text-dark); /* Dark text */
}

.page-register__section--light ul li,
.page-register__section--light ol li {
  background-color: #f9f9f9; /* Slightly off-white for list items */
  color: var(--text-dark);
}

/* FAQ Section */
.page-register__faq-section {
  background-color: var(--secondary-color); /* Light background for FAQ */
  color: var(--text-dark);
}

.page-register__faq-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-register__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: #2094c9; /* Manual darken for primary-color */
}

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

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg); /* No rotation for '-' */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f9f9f9;
  color: var(--text-dark);
  font-size: 1em;
}

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

/* Bottom CTA */
.page-register__cta-bottom {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-register__cta-bottom .page-register__cta-button {
  background-color: var(--accent-color);
}

.page-register__cta-bottom .page-register__cta-button:hover {
  background-color: #d16e00;
}

.page-register__btn-secondary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.page-register__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

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

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 60vh;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__cta-button,
  .page-register__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-register__section {
    padding: 60px 15px;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-subtitle {
    font-size: 1.5em;
  }
  .page-register__section-text,
  .page-register__section ul li,
  .page-register__section ol li,
  .page-register__faq-question,
  .page-register__faq-answer {
    font-size: 0.95em;
  }

  /* Image responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsive */
  .page-register video,
  .page-register__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    position: relative !important; /* Override absolute positioning for responsiveness */
    transform: none !important; /* Remove transform */
    top: auto !important;
    left: auto !important;
  }
  /* Video container for overflow */
  .page-register__hero-section,
  .page-register__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    /* padding-left/right already on .page-register__hero-section */
  }
  .page-register__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsive */
  .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; /* Full width for buttons on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px !important; /* Stack buttons */
    padding-left: 15px;
    padding-right: 15px;
  }

  .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-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    display: flex; /* Ensure flex context for column direction */
  }

  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 0 20px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.6em;
  }
}