:root {
  --main-color: #11A84E;
  --secondary-color: #22C768;
  --button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-color: #08160F; /* This is the body background from shared.css */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* style/register.css */

/* --- General Styling for .page-register --- */
.page-register {
  color: var(--text-main); /* Light text for dark body background */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
  background-color: transparent; /* Body will handle the main background color */
}

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

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

.page-register__sub-section-title {
  font-size: clamp(22px, 3vw, 36px); /* Responsive font size for H3 */
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.3;
}

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

.page-register a {
  color: var(--glow); /* Use glow color for links */
  text-decoration: none;
}

.page-register a:hover {
  text-decoration: underline;
}

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
  background-color: var(--card-bg); /* Dark background for hero */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-register__hero-content {
  position: relative;
  z-index: 2; /* Above image */
  text-align: center;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-register__main-title {
  font-size: clamp(32px, 5vw, 60px); /* Responsive font size for H1 */
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__hero-image {
  position: relative; 
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-top: 30px; /* Space between text and content */
}

/* --- CTA Button Styling --- */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button); /* Custom button gradient */
  color: #ffffff; /* White text for button */
  font-size: 20px;
  font-weight: 700;
  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);
  max-width: 100%; /* Ensure button is responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

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

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

.page-register__cta-button--final {
    margin-top: 40px;
}

/* --- Info Section & Dark Section --- */
.page-register__info-section,
.page-register__security-verification-section,
.page-register__faq-section {
  background-color: var(--card-bg); /* Use Card BG for dark sections */
  padding: 60px 0;
}

.page-register__info-section p,
.page-register__security-verification-section p,
.page-register__faq-section p {
  color: var(--text-secondary);
}

.page-register__benefits-list,
.page-register__preparation-list,
.page-register__form-fields,
.page-register__important-notes-list,
.page-register__verification-list,
.page-register__security-list {
  list-style-type: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-register__benefits-item,
.page-register__preparation-item,
.page-register__form-fields li,
.page-register__important-note-item,
.page-register__verification-item,
.page-register__security-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for list items */
  border-left: 3px solid var(--glow);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--text-main);
}

.page-register__benefits-item strong,
.page-register__preparation-item strong,
.page-register__important-note-item strong,
.page-register__verification-item strong,
.page-register__security-item strong {
  color: var(--glow);
}

/* --- How-to Register Section --- */
.page-register__how-to-register-section {
  padding: 60px 0;
  background-color: var(--bg-color); /* Main background color */
  color: var(--text-secondary);
}

.page-register__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-register__grid-layout--reversed {
  grid-template-areas: "image text"; /* Reverse order for security section */
}

.page-register__grid-layout--reversed .page-register__image-wrapper {
  grid-area: image;
}

.page-register__grid-layout--reversed .page-register__text-block {
  grid-area: text;
}

.page-register__steps-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-register__step-item {
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-register__step-item strong {
  color: var(--glow);
}

.page-register__image-wrapper {
  text-align: center;
}

.page-register__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

/* --- Promotions Section --- */
.page-register__promotions-section {
  padding: 60px 0;
  background-color: var(--bg-color); /* Main background color */
  color: var(--text-secondary);
  text-align: center;
}

.page-register__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

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

.page-register__card {
  background-color: var(--card-bg); /* Card background color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.page-register__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-register__card-title {
  font-size: 24px;
  color: var(--text-main);
  padding: 20px;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-register__card-text {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 0 20px 20px;
  flex-grow: 1; /* Pushes button to bottom */
}

.page-register__card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 20px;
  background: var(--button);
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-register__card-button:hover {
  filter: brightness(1.1);
}

/* --- FAQ Section --- */
.page-register__faq-section {
  padding: 60px 0;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for summary */
  color: var(--text-main);
  list-style: none; /* Remove default marker for details/summary */
}

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

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

.page-register__faq-toggle {
  font-size: 24px;
  margin-left: 15px;
  color: var(--glow);
  transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or similar effect */
}

.page-register__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
}

/* --- Final CTA Section --- */
.page-register__cta-section {
  padding: 80px 0;
  background-color: var(--deep-green); /* A distinct green background */
  text-align: center;
  color: var(--text-main);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-register__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-register__grid-layout--reversed {
    grid-template-areas: none; /* Reset grid area for single column */
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-register__hero-content {
    padding: 15px;
  }

  .page-register__main-title {
    font-size: clamp(28px, 8vw, 40px); /* Adjust H1 for smaller screens */
  }

  .page-register__subtitle {
    font-size: clamp(16px, 4vw, 20px);
  }

  .page-register__section-title {
    font-size: clamp(24px, 7vw, 36px); /* Adjust H2 for smaller screens */
    margin-bottom: 30px;
  }

  .page-register__sub-section-title {
    font-size: clamp(20px, 6vw, 28px);
  }

  .page-register__cta-button {
    padding: 12px 20px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-register__cta-button--small,
  .page-register__cta-button--large,
  .page-register__cta-button--final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }

  .page-register__grid-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-register__promotion-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__card-image {
    height: 200px;
  }

  .page-register__card-title {
    font-size: 20px;
  }

  .page-register__card-text {
    font-size: 15px;
  }

  .page-register__card-button {
    width: calc(100% - 40px); /* Adjust for padding */
    font-size: 16px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Responsive images */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__info-section,
  .page-register__how-to-register-section,
  .page-register__security-verification-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Video section specific (if any, though not explicitly in outline, good to include) */
  .page-register__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Ensure button groups wrap */
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

/* Ensure no filter on images */
.page-register img {
  filter: none !important;
}