/* style/register.css */

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

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

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

.page-register__section-title,
.page-register__hero-title,
.page-register__cta-title {
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__section-title {
  font-size: clamp(28px, 4vw, 38px); /* H2, H3 */
  margin-top: 40px;
}

.page-register__hero-title {
  font-size: clamp(32px, 5vw, 48px); /* H1 - Use clamp for responsive font size */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__section-description,
.page-register__hero-description,
.page-register__cta-description {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 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, more bottom padding */
  overflow: hidden;
  min-height: 500px;
}

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  text-align: center;
}

.page-register__hero-cta {
  margin-top: 30px;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for dark button */
  border: none;
}

.page-register__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 15px var(--glow-color);
}

.page-register__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-register__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 10px var(--primary-color);
}

/* Cards */
.page-register__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

/* Why Register Section */
.page-register__why-register {
  padding: 60px 0;
  background-color: #0A1E15; /* Slightly lighter dark background */
}

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

.page-register__feature-card {
  text-align: center;
}

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

.page-register__feature-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-register__feature-text {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Guide Section */
.page-register__guide-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

.page-register__step-by-step-guide {
  margin-top: 50px;
}

.page-register__guide-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
}

.page-register__guide-item:last-child {
  margin-bottom: 0;
}

.page-register__guide-item--reverse {
  flex-direction: row-reverse;
}

.page-register__guide-text-content {
  flex: 1;
}

.page-register__guide-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-register__guide-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-register__guide-step-title {
  font-size: 26px;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-register__guide-step-description {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 60px 0;
  background-color: #0A1E15;
}

.page-register__promotions-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
  color: var(--text-secondary);
  font-size: 17px;
}

.page-register__promotions-list li {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

.page-register__promotions-list li:last-child {
  margin-bottom: 0;
}

.page-register__promotions-list li strong {
  color: var(--gold-color);
  margin-right: 10px;
}

.page-register__promotions-cta {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

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

.page-register__security-card {
  text-align: center;
}

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

.page-register__security-title {
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-register__security-text {
  font-size: 16px;
  color: var(--text-secondary);
}

.page-register__read-more-security {
  text-align: center;
  margin-top: 40px;
  font-size: 17px;
  color: var(--text-secondary);
}

.page-register__read-more-security a {
  color: var(--gold-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__read-more-security a:hover {
  color: var(--glow-color);
}

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

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

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

.page-register__faq-item:last-child {
  margin-bottom: 0;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: var(--text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for summary in Webkit */
}

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

.page-register__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--gold-color);
}

.page-register__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 16px;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-register__faq-item[open] .page-register__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
}

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

.page-register__cta-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-register__final-cta {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__guide-item {
    flex-direction: column;
    text-align: center;
  }

  .page-register__guide-item--reverse {
    flex-direction: column;
  }

  .page-register__guide-text-content,
  .page-register__guide-image-wrapper {
    flex: none;
    width: 100%;
  }

  .page-register__guide-image-wrapper {
    order: -1; /* Image above text for mobile on reversed items */
  }

  .page-register__guide-item--reverse .page-register__guide-image-wrapper {
    order: -1; /* Image above text for mobile on reversed items */
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px;
  }

  .page-register__hero-section,
  .page-register__why-register,
  .page-register__guide-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 40px 0;
  }

  /* Images responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__hero-image-wrapper,
  .page-register__guide-image-wrapper,
  .page-register__feature-icon,
  .page-register__security-icon,
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsiveness */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .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__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;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  .page-register__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-register__why-register,
  .page-register__promotions-section,
  .page-register__faq-section {
    background-color: #0A1E15 !important;
  }

  .page-register__guide-section,
  .page-register__security-section,
  .page-register__cta-section {
    background-color: var(--deep-green-color) !important;
  }

  .page-register__faq-item[open] .page-register__faq-answer {
    max-height: 1000px; /* Adjust for potentially longer content on mobile */
  }
}