/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text is light */
  background-color: transparent; /* Main content background is transparent, relying on body bg */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Brand color gradient */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

.page-register__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-register__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__btn-primary:hover {
  background-color: #d16b06;
}

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle background image */
}

/* Steps Section */
.page-register__steps-section {
  padding: 80px 20px;
  background-color: #0a0a0a; /* Dark background, as body is dark */
  color: #ffffff;
  text-align: center;
}

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

.page-register__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  opacity: 0.8;
}

.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark for contrast */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-register__step-card:hover {
  transform: translateY(-10px);
}

.page-register__step-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

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

.page-register__step-description {
  font-size: 1em;
  opacity: 0.7;
}

.page-register__cta-bottom {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* For mobile responsiveness */
}

.page-register__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #26A9E0;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  border: 2px solid #26A9E0;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Slightly darker than steps section */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-intro {
  z-index: 1;
  position: relative;
}

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 1;
}

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: background-color 0.3s ease;
}

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

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

.page-register__benefit-description {
  font-size: 0.95em;
  opacity: 0.7;
}

.page-register__benefits-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: auto;
  object-fit: cover;
  opacity: 0.05; /* Very subtle background image */
  z-index: 0;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

/* Security Section */
.page-register__security-section {
  padding: 80px 20px;
  background-color: #0a0a0a;
  color: #ffffff;
  text-align: center;
}

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* For mobile responsiveness */
}

.page-register__security-text {
  flex: 1;
  text-align: left;
  min-width: 300px; /* Ensure text block doesn't get too narrow */
}

.page-register__security-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-register__security-list li {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2326A9E0'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  opacity: 0.9;
}

.page-register__security-list li strong {
  color: #26A9E0;
}

.page-register__security-image {
  flex: 1;
  max-width: 500px;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
}

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-register__faq-item summary {
  list-style: none; /* Hide default triangle */
}
.page-register__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default triangle for webkit */
}

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

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #ffffff;
  opacity: 0.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-register__faq-item[open] .page-register__faq-answer {
  max-height: 500px; /* Arbitrary large value for smooth transition */
  padding-top: 10px;
}

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

.page-register__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Final CTA Section */
.page-register__cta-final {
  padding: 80px 20px;
  background-color: #0a0a0a;
  color: #ffffff;
  text-align: center;
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 50px;
  margin: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 3em;
  }
  .page-register__description {
    font-size: 1.2em;
  }
  .page-register__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-register__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

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

  /* Fixed header offset for mobile */
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__main-title {
    font-size: 2.5em;
  }
  .page-register__description {
    font-size: 1em;
  }

  .page-register__hero-section,
  .page-register__steps-section,
  .page-register__benefits-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final {
    padding: 60px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__hero-content {
    padding: 0;
  }

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

  .page-register__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-register__security-image {
    max-width: 100%;
    order: -1;
  }

  .page-register__cta-bottom,
  .page-register__cta-final {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-large,
  .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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Ensure images and videos are responsive (video specific rules for general safety, though no video in this page) */
.page-register img,
.page-register video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register__video-section,
.page-register__video-container,
.page-register__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}