/* style/register.css */

/* Custom Color Variables */
:root {
  --page-register-background: #08160F;
  --page-register-card-bg: #11271B;
  --page-register-text-main: #F2FFF6;
  --page-register-text-secondary: #A7D9B8;
  --page-register-border: #2E7A4E;
  --page-register-glow: #57E38D;
  --page-register-gold: #F2C14E;
  --page-register-divider: #1E3A2A;
  --page-register-deep-green: #0A4B2C;
  --page-register-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-register-primary-color: #11A84E; /* Main color */
  --page-register-secondary-color: #22C768; /* Auxiliary color */
}

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

/* Typography */
.page-register h1,
.page-register h2,
.page-register h3,
.page-register h4,
.page-register h5,
.page-register h6 {
  color: var(--page-register-text-main);
  margin-bottom: 1em;
  font-weight: bold;
}

.page-register h1 {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register h2 {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  text-align: center;
  margin-bottom: 1.5em;
  color: var(--page-register-gold); /* Use gold for section titles for emphasis */
}

.page-register h3 {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  color: var(--page-register-text-main);
}

.page-register p {
  margin-bottom: 1em;
  color: var(--page-register-text-secondary);
}

.page-register strong {
  color: var(--page-register-text-main);
}

.page-register__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  color: var(--page-register-text-secondary);
}

.page-register__list li {
  margin-bottom: 0.5em;
}

/* Layout containers */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image then text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: var(--page-register-background);
}

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

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

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

.page-register__main-title {
  margin-bottom: 20px;
  color: var(--page-register-gold);
}

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

/* CTA Buttons */
.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
  overflow: hidden; /* Prevent overflow */
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Include padding in width calculation */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't exceed container width */
  width: auto; /* Default width */
  text-align: center;
}

.page-register__btn-primary {
  background: var(--page-register-btn-gradient);
  color: var(--page-register-text-main); /* White text for dark button */
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
  background: var(--page-register-card-bg); /* Darker background for secondary */
  color: var(--page-register-primary-color); /* Primary color text for contrast */
  border: 2px solid var(--page-register-primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-register__btn-secondary:hover {
  background: var(--page-register-primary-color);
  color: var(--page-register-text-main);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Section specific styles */
.page-register__introduction-section,
.page-register__steps-section,
.page-register__important-notes-section,
.page-register__promotions-section,
.page-register__faq-section,
.page-register__cta-final-section {
  padding: 60px 0;
}

.page-register__dark-section {
  background-color: var(--page-register-card-bg); /* Use card background for darker sections */
  color: var(--page-register-text-main);
}

.page-register__section-title {
  margin-bottom: 20px;
  color: var(--page-register-gold);
}

.page-register__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--page-register-text-secondary);
}

/* Steps Section */
.page-register__steps-section {
  background-color: var(--page-register-background);
}

.page-register__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--page-register-card-bg);
  border: 1px solid var(--page-register-border);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-image {
  width: 100%;
  max-width: 600px; /* Limit step image width */
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
  color: var(--page-register-text-main);
  margin-bottom: 15px;
}

/* Promotions Section */
.page-register__promotions-section {
  background-color: var(--page-register-background);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-register__promotion-card {
  background-color: var(--page-register-card-bg);
  border: 1px solid var(--page-register-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__promotion-image {
  width: 100%;
  max-width: 400px; /* Limit promotion image width */
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__promotion-title {
  color: var(--page-register-text-main);
  margin-bottom: 15px;
}

.page-register__promotion-card .page-register__btn-primary {
  margin-top: auto; /* Push button to bottom */
  width: 100%; /* Full width button in card */
}

/* FAQ Section */
.page-register__faq-section {
  background-color: var(--page-register-card-bg);
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  color: var(--page-register-text-main);
  cursor: pointer;
  background-color: var(--page-register-deep-green); /* Darker green for question */
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

.page-register__faq-question:hover {
  background-color: var(--page-register-primary-color);
}

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

.page-register__faq-qtext {
  flex-grow: 1;
  color: var(--page-register-text-main);
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-register-text-main);
}

.page-register__faq-answer {
  padding: 20px 25px;
  color: var(--page-register-text-secondary);
  background-color: var(--page-register-background);
  border-top: 1px solid var(--page-register-divider);
}

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


/* Images and Video responsiveness (Global rules for .page-register) */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register video,
.page-register__video {
  max-width: 100%;
  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;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__container {
    padding: 0 15px; /* Smaller padding on mobile */
  }

  .page-register h1 {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for mobile */
  }

  .page-register h2 {
    font-size: clamp(1.6em, 6vw, 2em); /* Adjust H2 for mobile */
  }

  /* Force responsive images and videos on mobile */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }

  .page-register__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }
  
  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important; /* Full width buttons on mobile */
    max-width: 100% !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__step-card,
  .page-register__promotion-card,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
  }

  .page-register__promotions-section .page-register__container {
    grid-template-columns: 1fr; /* Single column for promotions on mobile */
  }
}