/* style/register.css */

/* Custom Color Variables */
:root {
  --page-register-primary-color: #11A84E;
  --page-register-secondary-color: #22C768;
  --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-register-card-bg: #11271B;
  --page-register-background: #08160F; /* Body background from shared.css is #08160F, so page content should have light text */
  --page-register-text-main: #F2FFF6;
  --page-register-text-secondary: #A7D9B8;
  --page-register-border-color: #2E7A4E;
  --page-register-glow-color: #57E38D;
  --page-register-gold-color: #F2C14E;
  --page-register-divider-color: #1E3A2A;
  --page-register-deep-green-color: #0A4B2C;
}

/* Base styles for the register page content */
.page-register {
  background-color: var(--page-register-background); /* Ensure consistent background, though body handles it */
  color: var(--page-register-text-main); /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Section general styles */
.page-register section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-register__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H2 */
  color: var(--page-register-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-register__description,
.page-register p {
  font-size: 1.1em;
  color: var(--page-register-text-secondary);
  margin-bottom: 20px;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 10px 20px 60px; /* Small top padding */
  overflow: hidden; /* Prevent content overflow */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image wrapper to content width */
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-register__hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-register__hero-content {
  width: 100%;
  max-width: 900px;
  position: relative; /* Ensure content is above any potential background effect */
  z-index: 2;
}

.page-register__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 */
  color: var(--page-register-gold-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--page-register-button-gradient);
  color: var(--page-register-text-main);
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-register__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-register__cta-button--small {
  padding: 12px 25px;
  font-size: 1.1em;
}

.page-register__cta-button--large {
  padding: 18px 35px;
  font-size: 1.3em;
}

/* Registration Guide Section */
.page-register__registration-guide {
  background-color: var(--page-register-deep-green-color);
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-register__guide-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-register__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-register__step-item {
  background-color: var(--page-register-card-bg);
  border: 1px solid var(--page-register-border-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-register__step-title {
  font-size: 1.5em;
  color: var(--page-register-gold-color);
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-register__step-item p {
  color: var(--page-register-text-secondary);
  margin-bottom: 0;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
}

.page-register__important-notes {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--page-register-primary-color);
  padding: 25px;
  margin-top: 40px;
  border-radius: 8px;
}

.page-register__notes-title {
  font-size: 1.4em;
  color: var(--page-register-primary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-register__important-notes ul {
  list-style: disc;
  padding-left: 25px;
  color: var(--page-register-text-secondary);
}

.page-register__important-notes li {
  margin-bottom: 10px;
}

/* Benefits Section */
.page-register__benefits-section {
  background-color: var(--page-register-background);
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-register__benefit-card {
  background-color: var(--page-register-card-bg);
  border: 1px solid var(--page-register-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__benefit-icon {
  width: 100%; /* Card images must be large */
  max-width: 250px; /* Example max width for card image, adjust as needed */
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__benefit-title {
  font-size: 1.4em;
  color: var(--page-register-gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-register__benefit-description {
  color: var(--page-register-text-secondary);
  font-size: 1em;
  margin-bottom: 0;
}

/* Troubleshooting Section */
.page-register__troubleshooting-section {
  background-color: var(--page-register-deep-green-color);
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.page-register__troubleshooting-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-register__issue-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-register__issue-item {
  background-color: var(--page-register-card-bg);
  border: 1px solid var(--page-register-border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.page-register__issue-title {
  font-size: 1.3em;
  color: var(--page-register-gold-color);
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-register__issue-item p {
  color: var(--page-register-text-secondary);
  font-size: 1em;
  margin-bottom: 0;
}

.page-register__support-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto 30px;
  border-radius: 10px;
  object-fit: cover;
}

/* FAQ Section */
.page-register__faq-section {
  background-color: var(--page-register-background);
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-register__faq-item {
  background-color: var(--page-register-card-bg);
  border: 1px solid var(--page-register-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  color: var(--page-register-text-main);
  cursor: pointer;
  background-color: rgba(17, 168, 78, 0.1); /* Slightly lighter background for summary */
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.page-register__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2);
}

.page-register__faq-item[open] .page-register__faq-question {
  background-color: var(--page-register-primary-color);
  color: var(--page-register-text-main);
}

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

.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); /* Change '+' to 'x' or similar for open state */
}

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

.page-register__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  color: var(--page-register-text-secondary);
  background-color: var(--page-register-card-bg);
}

/* Conclusion Section */
.page-register__conclusion-section {
  background-color: var(--page-register-deep-green-color);
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.page-register__conclusion-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-register__conclusion-content p {
  color: var(--page-register-text-secondary);
  margin-bottom: 20px;
}

.page-register__responsible-gaming-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto 30px;
  border-radius: 10px;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register section {
    padding: 40px 15px;
  }

  .page-register__hero-section {
    padding: 10px 15px 40px;
  }
  
  .page-register__section-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
    margin-bottom: 30px;
  }

  .page-register__main-title {
    font-size: clamp(2.2em, 6vw, 3em);
  }

  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }

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

@media (max-width: 768px) {
  /* Mobile 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;
  }
  
  /* All containers with images/videos/buttons */
  .page-register__hero-section,
  .page-register__registration-guide,
  .page-register__benefits-section,
  .page-register__troubleshooting-section,
  .page-register__faq-section,
  .page-register__conclusion-section,
  .page-register__hero-image-wrapper,
  .page-register__guide-content,
  .page-register__benefits-grid,
  .page-register__benefit-card,
  .page-register__troubleshooting-content,
  .page-register__issue-item,
  .page-register__faq-list,
  .page-register__faq-item,
  .page-register__conclusion-content,
  .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; /* Ensure no horizontal scroll */
  }

  /* Specific padding adjustments for mobile */
  .page-register__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-register__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-register__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-register section {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-register__cta-button {
    width: 100% !important;
    margin-bottom: 15px; /* Add space between stacked buttons */
  }
  
  .page-register__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
  
  .page-register__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 10px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__cta-button {
    font-size: 1em;
    padding: 10px 20px;
  }
  .page-register__hero-image-wrapper {
    margin-bottom: 20px;
  }
}