/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

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

/* Top spacing for content due to fixed header */
.page-register__hero-register-section {
  padding-top: 120px; /* Adjust based on header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #1A202C 0%, #0d0d0d 100%); /* Dark background */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-register__hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-register__hero-title {
  font-size: 48px;
  font-weight: 700;
  color: #FFD700; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__highlight {
  color: #FFD700;
  font-weight: bold;
}

.page-register__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-register__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-register__btn--primary {
  background: #FFD700;
  color: #1A202C; /* Dark text on gold button for contrast */
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-register__btn--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-register__btn--secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-register__btn--secondary:hover {
  background: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-register__btn--large {
  padding: 18px 35px;
  font-size: 20px;
}

.page-register__hero-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center the image */
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background: #1A202C; /* Complementary dark background */
  color: #ffffff;
}

.page-register__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
}

.page-register__section-subtitle {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

.page-register__benefit-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-register__benefit-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)); /* Subtle glow for icons */
}

.page-register__benefit-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-register__benefit-description {
  font-size: 16px;
  color: #cccccc;
}

/* Guide Section */
.page-register__guide-section {
  padding: 80px 0;
  background: #0d0d0d; /* Even darker background */
  color: #ffffff;
}

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

.page-register__step-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__step-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.page-register__step-content {
  padding: 25px;
  flex-grow: 1;
}

.page-register__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-register__step-description {
  font-size: 16px;
  color: #cccccc;
}

.page-register__center-cta {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background: #1A202C;
  color: #ffffff;
}

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

/* FAQ container styles */
.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.15);
}

/* FAQ default state - answer hidden */
.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #cccccc;
  font-size: 16px;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 215, 0, 0.05); /* Lighter background for answer */
  border-radius: 0 0 8px 8px;
}

/* Question styles */
.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-register__faq-question:active {
  background: rgba(255, 255, 255, 0.15);
}

/* Question title style */
.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Plus to X for active */
}

/* Links within content */
.page-register p a, .page-register li a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register p a:hover, .page-register li a:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 42px;
  }

  .page-register__section-title {
    font-size: 32px;
  }

  .page-register__guide-steps {
    gap: 30px;
  }

  .page-register__step-image {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-register-section {
    padding-top: 100px; /* Adjust for mobile header height */
    padding-bottom: 40px;
    flex-direction: column; /* Stack content and image vertically */
  }

  .page-register__hero-content {
    order: 2; /* Content after image on mobile */
  }

  .page-register__hero-image-wrapper {
    order: 1; /* Image before content on mobile */
    margin-bottom: 30px;
  }

  .page-register__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-register__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-register__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-register__section-title {
    font-size: 28px;
  }

  .page-register__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-register__benefits-section, 
  .page-register__guide-section, 
  .page-register__faq-section {
    padding: 60px 0;
  }

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

  .page-register__benefit-icon {
    width: 80px;
    height: 80px;
  }

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

  .page-register__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

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

  .page-register__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-register__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
    color: #ffffff;
  }
  
  .page-register__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
    color: #FFD700;
  }
  
  .page-register__faq-answer {
    padding: 0 15px;
  }
  
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image responsive adaptation (MUST contain) */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__hero-register-section .page-register__container,
  .page-register__benefits-section .page-register__container,
  .page-register__guide-section .page-register__container,
  .page-register__faq-section .page-register__container,
  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}