/* style/register.css */
/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main color for dark background */
  background-color: #0A0A0A; /* Background color */
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure some space at the bottom before footer */
}

/* Fixed header spacing - must be on the first content block */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop default, overridden by shared.css for mobile */
  background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main color gradient for hero background */
  padding-bottom: 50px;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-register__hero-content-wrapper {
  display: flex;
  flex-direction: column; /* Default to column for image on top, text below */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 30px;
}

.page-register__hero-image-container {
  width: 100%;
  max-width: 100%; /* Ensure it doesn't overflow */
  box-sizing: border-box;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-register__hero-text-content {
  text-align: center;
  color: #0A0A0A; /* Dark text for the light gradient background */
}

.page-register__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0A0A0A; /* Dark text for the light gradient background */
  margin-bottom: 15px;
  max-width: 100%; /* Ensure it doesn't overflow */
  font-size: clamp(2em, 5vw, 3.2em); /* Responsive font size for H1 */
}

.page-register__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #0A0A0A; /* Dark text for the light gradient background */
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A; /* Dark text for button */
  border: none;
  margin-right: 15px;
}

.page-register__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  background: transparent;
  color: #0A0A0A; /* Dark text for button */
  border: 2px solid #0A0A0A; /* Border in dark color for contrast */
}

.page-register__btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.page-register__section-title {
  text-align: center;
  margin-bottom: 20px;
  color: #FFF6D6; /* Text Main */
  font-weight: bold;
  font-size: clamp(1.8em, 4vw, 2.5em); /* Responsive font size for H2 */
}

.page-register__section-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6; /* Text Main */
}

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

.page-register__dark-section {
  background-color: #0A0A0A; /* Background color */
  color: #FFF6D6; /* Text Main */
  padding: 60px 0;
}

.page-register__card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6; /* Text Main */
}

.page-register__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-register__highlight-text {
  color: #F2C14E; /* Main color for emphasis */
  font-weight: bold;
}

/* Why Choose Section */
.page-register__why-choose-section {
  padding-top: 60px;
}

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

.page-register__feature-icon {
  width: 100px; /* Display size, AI will generate >=200px */
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 5px; /* Small border-radius for icons */
}

.page-register__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFD36B; /* Glow color for titles */
}

.page-register__feature-text {
  font-size: 0.95em;
  color: #FFF6D6; /* Text Main */
}

/* Steps Section */
.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

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

.page-register__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A; /* Dark text for number */
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFD36B; /* Glow color */
}

.page-register__step-text {
  font-size: 0.95em;
  color: #FFF6D6; /* Text Main */
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  margin-top: 30px;
}

/* Security Section */
.page-register__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.page-register__security-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  color: #FFF6D6; /* Text Main */
}

.page-register__security-icon {
  width: 80px; /* Display size, AI will generate >=200px */
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-register__security-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFD36B; /* Glow color */
}

.page-register__security-text {
  font-size: 0.95em;
  color: #FFF6D6; /* Text Main */
}

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

.page-register__bonus-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__bonus-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-register__bonus-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFD36B; /* Glow color */
}

.page-register__bonus-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: #FFF6D6; /* Text Main */
}

/* App Download Section */
.page-register__app-download-content {
  display: flex;
  flex-direction: column; /* Default to column */
  align-items: center;
  gap: 40px;
  text-align: center;
}

.page-register__app-info {
  max-width: 600px;
  color: #FFF6D6; /* Text Main */
}

.page-register__app-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  margin-bottom: 20px;
}

.page-register__app-note {
  font-size: 0.9em;
  color: #FFD36B; /* Glow color */
}

.page-register__app-image-container {
  width: 100%;
  max-width: 400px; /* Max width for the app image */
}

.page-register__app-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-register__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-register__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  overflow: hidden;
  color: #FFF6D6; /* Text Main */
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111; /* Card BG */
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #FFD36B; /* Glow color */
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  transition: transform 0.3s ease;
}

.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: #FFF6D6; /* Text Main */
  background-color: rgba(17, 17, 17, 0.8); /* Slightly lighter than card BG */
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  padding: 0;
  color: #FFF6D6; /* Text Main */
}

/* Final CTA Section */
.page-register__cta-section {
  padding-bottom: 80px;
}

.page-register__text-center {
  text-align: center;
}

.page-register__btn-large {
  padding: 15px 35px;
  font-size: 1.2em;
  margin-top: 20px;
  min-width: 250px; /* Give large button a min width */
}

.page-register__login-prompt {
  margin-top: 20px;
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
}

.page-register__text-link {
  color: #F2C14E; /* Main color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-register__text-link:hover {
  text-decoration: underline;
  color: #FFD36B; /* Glow color on hover */
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-register__hero-content-wrapper {
    flex-direction: row; /* Desktop: text and image side by side */
    text-align: left;
    gap: 50px;
  }

  .page-register__hero-image-container {
    flex: 1;
  }

  .page-register__hero-text-content {
    flex: 1;
    text-align: left;
  }

  .page-register__app-download-content {
    flex-direction: row; /* Desktop: app info and image side by side */
    text-align: left;
  }

  .page-register__app-info {
    flex: 1;
  }

  .page-register__app-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Align image to the right */
  }

  .page-register__main-title {
    font-size: clamp(2.5em, 4vw, 3.2em); /* Adjusted clamp for desktop H1 */
  }

  .page-register__section-title {
    font-size: clamp(2em, 3.5vw, 2.5em); /* Adjusted clamp for desktop H2 */
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: Ensure padding-top is applied */
  }

  .page-register__main-title {
    font-size: 2.2em;
    text-align: center;
  }

  .page-register__section-title {
    font-size: 1.8em;
  }

  .page-register__section-description {
    font-size: 1em;
  }

  .page-register__hero-content-wrapper,
  .page-register__app-download-content {
    flex-direction: column;
    text-align: center;
  }

  .page-register__app-image-container {
    justify-content: center; /* Center image on mobile */
  }

  .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;
    margin-right: 0 !important; /* Remove margin for stacked buttons */
  }

  .page-register__cta-buttons,
  .page-register__app-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-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .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;
  }
}