/* style/register.css */

/* Base Styles & Typography */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-register__section-title {
  font-size: 2.5rem;
  color: #FFD700; /* Accent color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-intro {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
}

.page-register__btn-primary {
  background-color: #FFD700; /* Accent color */
  color: #0A2463; /* Main color for text */
  border: 2px solid #FFD700;
}

.page-register__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

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

.page-register__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-register__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Section Backgrounds */
.page-register__dark-bg {
  background-color: #0A2463;
  color: #ffffff;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
}

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

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-register__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.page-register__hero-title {
  font-size: 3.5rem;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-register__benefit-card:hover {
  transform: translateY(-10px);
}

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

.page-register__benefit-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-register__benefit-description {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Registration Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #0A2463;
}

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

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  position: relative;
  padding-top: 70px; /* Space for step number */
}

.page-register__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FFD700;
  color: #0A2463;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-register__step-title {
  font-size: 1.4rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-register__step-description {
  font-size: 0.95rem;
  color: #f0f0f0;
}

.page-register__process-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Important Notes Section */
.page-register__important-notes-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-register__notes-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-register__note-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-register__note-title {
  font-size: 1.4rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-register__note-description {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-register__note-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: #0A2463;
}

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

.page-register__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

.page-register__feature-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-register__feature-description {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-register__security-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-register__promo-title {
  font-size: 1.4rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-register__promo-description {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Troubleshoot Section */
.page-register__troubleshoot-section {
  padding: 80px 0;
  background-color: #0A2463;
}

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

.page-register__issue-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

.page-register__issue-title {
  font-size: 1.4rem;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-register__issue-description {
  font-size: 1rem;
  color: #f0f0f0;
}

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

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-question {
  background-color: #0A2463;
  color: #FFD700;
}

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  font-size: 1rem;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 25px 25px;
}

.page-register__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-register__cta-section {
  padding: 80px 0;
  background-color: #0A2463;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3rem;
  }
  .page-register__hero-description {
    font-size: 1.1rem;
  }
  .page-register__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }
  .page-register__hero-title {
    font-size: 2.2rem;
  }
  .page-register__hero-description {
    font-size: 1rem;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__section-title {
    font-size: 1.8rem;
  }
  .page-register__section-intro {
    font-size: 1rem;
  }
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__notes-list,
  .page-register__security-features,
  .page-register__promo-grid,
  .page-register__troubleshoot-grid {
    grid-template-columns: 1fr;
  }
  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__note-item,
  .page-register__feature-item,
  .page-register__promo-card,
  .page-register__issue-card,
  .page-register__faq-item,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__promo-image {
    height: auto !important; /* Adjust height for mobile */
  }
  .page-register__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 10px 20px 20px 20px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 20px 20px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8rem;
  }
  .page-register__hero-description {
    font-size: 0.9rem;
  }
  .page-register__section-title {
    font-size: 1.5rem;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
  }
}