/* 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: #000000; /* Assuming body background is black from shared.css */
}

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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  background-color: #0d0d0d; /* Slightly lighter dark background for hero */
  background-image: url('[GALLERY:hero_register:1920x1080:online betting,registration,welcome bonus,excitement]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.page-register__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-register__hero-section > .page-register__container {
  position: relative;
  z-index: 2;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

.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__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background for benefits */
  color: #333333; /* Dark text for light background */
}

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

.page-register__benefit-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #ffffff; /* White card background */
  color: #333333;
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

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

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

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

.page-register__step-item {
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white card */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-register__step-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
}

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

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: #f0f0f0; /* Light background */
  color: #333333;
}

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-register__security-text {
  flex: 1;
}

.page-register__security-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #555555;
}

.page-register__security-text ul {
  list-style: none;
  padding: 0;
}

.page-register__security-text li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  color: #555555;
}

.page-register__security-text li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-register__security-image {
  flex: 1;
  text-align: center;
}

.page-register__security-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* Video Tutorial Section */
.page-register__video-tutorial {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-register__video-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #cccccc;
}

.page-register__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  margin: 0 auto 30px;
  max-width: 960px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
}

.page-register__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-register__video-cta {
  margin-top: 20px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
  color: #333333;
}

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

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

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

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

.page-register__faq-toggle {
  font-size: 1.5em;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
}

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

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

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

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

.page-register__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__security-content {
    flex-direction: column;
  }
  .page-register__security-image {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary, .page-register__btn-secondary, .page-register__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-register__benefits-grid, .page-register__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__security-text li {
    padding-left: 25px;
  }
  .page-register__security-text li::before {
    left: 0;
  }
  .page-register__video-wrapper {
    padding-bottom: 75%; /* Adjust for mobile 4:3 or similar, or keep 16:9 */
    margin: 0 15px 30px;
  }
  .page-register__video-tutorial .page-register__section-title {
    padding: 0 15px;
  }
  .page-register__video-description {
    padding: 0 15px;
  }
  .page-register__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 0 20px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 20px;
  }
  /* Ensure all images are responsive and do not overflow */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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 horizontal scroll */
  }
  .page-register__hero-section .page-register__container {
    padding: 0;
  }
  .page-register__hero-description {
    padding: 0 15px;
  }
  .page-register__hero-cta {
    padding: 0 15px;
  }
  .page-register__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__btn-primary, .page-register__btn-secondary, .page-register__btn-large {
    font-size: 0.9em;
  }
  .page-register__faq-question h3 {
    font-size: 1em;
  }
}