/* style/register.css */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text color for dark body background */
  background-color: #121212; /* Matches body background from shared.css */
}

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

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Assuming shared.css doesn't set body padding-top */
  padding-bottom: 60px;
  overflow: hidden;
  background: linear-gradient(135deg, #1A2E47, #0A1C30);
}

.page-register__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-register__hero-image {
  flex: 1;
  min-width: 500px;
  max-width: 700px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-register__hero-content {
  flex: 1;
  min-width: 400px;
  text-align: left;
  padding-right: 20px;
}

.page-register__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-register__intro-text {
  font-size: 20px;
  color: #e0e0e0;
  margin-bottom: 30px;
}

.page-register__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A2E47;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  margin-right: 15px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-register__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-register__cta-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: none;
}

.page-register__cta-button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-3px);
}

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

.page-register__dark-section {
  background-color: #1A2E47;
  color: #ffffff;
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.page-register__benefit-card img {
  width: 100%;
  
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-register__benefit-card p {
  font-size: 16px;
  color: #e0e0e0;
}

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

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

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-register__step-icon {
  width: 60px;
  height: 60px;
  background-color: #FFD700;
  color: #1A2E47;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 25px auto;
}

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

.page-register__step-item p {
  font-size: 16px;
  color: #e0e0e0;
}

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

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

/* Bonus Section */
.page-register__bonus-section {
  padding: 80px 0;
}

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

.page-register__bonus-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.page-register__bonus-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-register__bonus-card .page-register__card-title {
  font-size: 22px;
  margin: 20px 20px 10px 20px;
  color: #FFD700;
}

.page-register__bonus-card p {
  font-size: 16px;
  color: #e0e0e0;
  padding: 0 20px 20px 20px;
}

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

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

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

.page-register__security-text p {
  font-size: 18px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-register__security-text .page-register__text-link {
  display: block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.page-register__security-text .page-register__text-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-register__security-image {
  flex: 1;
  min-width: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__security-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

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

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.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: #e0e0e0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 5px;
  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.15);
  border-color: #FFD700;
}

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

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1A2E47;
}

.page-register__cta-button--final {
  margin-top: 30px;
  padding: 18px 50px;
  font-size: 24px;
  border-radius: 10px;
}

/* General Image styles */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

  .page-register__hero-image {
    order: 1;
    min-width: unset;
    max-width: 80%;
    margin-bottom: 30px;
  }

  .page-register__hero-content {
    order: 2;
    min-width: unset;
    padding-right: 0;
  }

  .page-register__main-title {
    font-size: 42px;
  }

  .page-register__cta-button {
    margin-right: 10px;
    margin-bottom: 10px;
  }

  .page-register__security-content {
    flex-direction: column;
  }

  .page-register__security-image {
    min-width: unset;
    max-width: 80%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-register__hero-image {
    max-width: 95%;
  }

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

  .page-register__intro-text {
    font-size: 17px;
  }

  .page-register__cta-button,
  .page-register__cta-button--secondary,
  .page-register__cta-button--large,
  .page-register__cta-button--final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 18px !important;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
  }

  .page-register__hero-content .page-register__cta-button:last-child {
    margin-bottom: 0 !important;
  }

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

  .page-register__benefit-card,
  .page-register__step-item,
  .page-register__bonus-card {
    padding: 20px;
  }

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

  .page-register__security-section {
    padding: 60px 0;
  }

  .page-register__security-image {
    min-width: unset;
    max-width: 95%;
  }

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

  .page-register__cta-final-section {
    padding: 60px 0;
  }
}

/* Global image responsive styles (excluding specific fixed-size elements) */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__bonus-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Override for specific elements if needed to prevent shrinking */
  /* Example: If a card image needs to be larger than the default 100% width, specify it here */
  .page-register__hero-image img {
    width: 100% !important;
  }
}