/* style/register.css */

/* Custom Colors */
: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;
  --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: #0A4B2C;
}

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

.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;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--page-register-background);
  color: var(--page-register-text-main);
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit hero image height for better content visibility */
}

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

.page-register__main-title {
  font-weight: 700;
  color: var(--page-register-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
}

.page-register__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--page-register-text-secondary);
}

/* General Section Styles */
.page-register__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-register-gold-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

/* Buttons */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
}

.page-register__btn-primary {
  background: var(--page-register-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-register__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-register__btn-secondary {
  background: none;
  color: var(--page-register-gold-color);
  border: 2px solid var(--page-register-gold-color);
  box-shadow: none;
}

.page-register__btn-secondary:hover {
  background: var(--page-register-gold-color);
  color: var(--page-register-background);
  transform: translateY(-2px);
}

.page-register__cta-button--wide {
  width: 100%;
  max-width: 400px;
  margin: 40px auto 0 auto;
  display: block;
}

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

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-description {
  color: #333333;
  text-shadow: none;
}

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

.page-register__benefit-card {
  background-color: var(--page-register-card-bg);
  color: var(--page-register-text-main);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-register-border-color);
}

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

.page-register__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-register__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-register-gold-color);
}

.page-register__card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--page-register-text-secondary);
}

/* Steps Section */
.page-register__steps-section {
  background-color: var(--page-register-deep-green);
  color: var(--page-register-text-main);
  padding: 60px 0;
}

.page-register__steps-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-register__steps-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.page-register__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--page-register-gold-color);
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--page-register-gold-color);
  border-radius: 50%;
  background-color: var(--page-register-deep-green);
}

.page-register__step-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--page-register-text-main);
  margin-bottom: 10px;
}

.page-register__step-text {
  font-size: 1rem;
  color: var(--page-register-text-secondary);
}

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

.page-register__steps-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

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

.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-description {
  color: #333333;
  text-shadow: none;
}

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

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

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

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

.page-register__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Promotions Section */
.page-register__promotions-section {
  background-color: var(--page-register-background);
  color: var(--page-register-text-main);
  padding: 60px 0;
}

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

.page-register__promo-card {
  background-color: var(--page-register-card-bg);
  color: var(--page-register-text-main);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-register-border-color);
}

.page-register__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-register__faq-section {
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-register__faq-section .page-register__section-title,
.page-register__faq-section .page-register__section-description {
  color: #333333;
  text-shadow: none;
}

.page-register__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: 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.2rem;
  font-weight: 600;
  color: var(--page-register-primary-color);
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

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

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

.page-register__faq-item[open] .page-register__faq-question .page-register__faq-toggle {
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--page-register-primary-color);
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
}

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

/* Details element specific styles */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Final CTA Section */
.page-register__cta-final {
  background-color: var(--page-register-primary-color);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-register__cta-final .page-register__section-title {
  color: var(--page-register-gold-color);
}

.page-register__cta-final .page-register__section-description {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__steps-wrapper,
  .page-register__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-register__steps-image-container,
  .page-register__security-image-container {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-register__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-register__step-number {
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .page-register__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-register__hero-description {
    font-size: 1rem;
  }

  .page-register__section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .page-register__section-description,
  .page-register__card-text,
  .page-register__step-text,
  .page-register__security-text p,
  .page-register__faq-answer p {
    font-size: 0.95rem;
  }

  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-final {
    padding: 40px 0;
  }

  .page-register__container {
    padding: 0 15px;
  }

  /* Mobile responsive images */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__hero-image-wrapper,
  .page-register__steps-image-container,
  .page-register__security-image-container,
  .page-register__benefits-grid,
  .page-register__promo-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-register__benefit-card,
  .page-register__promo-card {
    padding: 20px;
  }

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

  /* Mobile responsive buttons */
  .page-register__cta-button,
  .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-button--wide {
    max-width: 100%;
  }

  /* Button containers */
  .page-register__hero-content,
  .page-register__security-text,
  .page-register__cta-final .page-register__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-register__faq-answer {
    padding: 0 20px 15px 20px;
  }

  .page-register__hero-section {
    padding-bottom: 40px;
  }
}