/* style/register.css */

/* Base styles for the register page, ensuring light text on dark body background */
.page-register {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  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: clamp(2em, 5vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-register__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0; /* Slightly off-white for body text on dark background */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body padding-top is handled by shared.css */
  text-align: center;
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

.page-register__main-title {
  font-size: clamp(2.5em, 6vw, 3.8em);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #26A9E0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-register__description {
  font-size: clamp(1.1em, 2.5vw, 1.4em);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-register__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-register__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1a7fb8;
  border-color: #1a7fb8;
}

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

.page-register__btn-huge {
  padding: 20px 40px;
  font-size: 1.3em;
  margin-top: 20px;
}

.page-register__text-link {
  color: #26A9E0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__text-link:hover {
  color: #1a7fb8;
}

/* Sections */
.page-register__benefits-section, .page-register__steps-section, .page-register__promotions-section, .page-register__security-section, .page-register__faq-section, .page-register__cta-final {
  padding: 80px 0;
}

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-register__light-bg .page-register__section-title {
  color: #26A9E0;
}

.page-register__light-bg .page-register__section-intro {
  color: #555555;
}

.page-register__dark-bg {
  background-color: #000000; /* Body background is black, this makes sections black */
  color: #ffffff;
}

.page-register__dark-bg .page-register__section-title {
  color: #26A9E0;
}

.page-register__dark-bg .page-register__section-intro {
  color: #f0f0f0;
}

/* Benefits Section */
.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: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

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

.page-register__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
}

.page-register__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__card-text {
  font-size: 1em;
  color: #555555;
}

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

.page-register__step-item {
  background: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-register__step-icon {
  background-color: #26A9E0;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: 700;
  margin: 0 auto 20px auto;
}

.page-register__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-register__step-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

.page-register__promo-card {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__promo-card .page-register__card-image {
  height: 250px;
  margin-bottom: 20px;
}

.page-register__promo-card .page-register__card-title {
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-register__promo-card .page-register__card-text {
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-register__promo-card .page-register__btn-secondary {
  margin-top: auto;
  width: fit-content;
  align-self: center;
}

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

/* Security Section */
.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: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-register__feature-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-register__feature-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #ffffff;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #26A9E0;
  border-bottom: 1px solid #eee;
  list-style: none; /* For details summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-register__faq-item[open] > .page-register__faq-question {
  border-bottom: 1px solid #ddd;
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #555555;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  content: '−';
}

.page-register__faq-answer {
  padding: 20px 25px;
  background-color: #f0f0f0;
  font-size: 1em;
  color: #555555;
}

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

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

/* Final CTA Section */
.page-register__cta-final {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 0 20px;
  }
}

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

  .page-register__section-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-register__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-register__hero-section {
    min-height: 450px;
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  /* Force responsive for all images */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive for all content containers */
  .page-register__section, 
  .page-register__card, 
  .page-register__container, 
  .page-register__benefits-grid, 
  .page-register__steps-list, 
  .page-register__promotions-grid, 
  .page-register__security-features, 
  .page-register__faq-list,
  .page-register__hero-content,
  .page-register__cta-container,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Force responsive for all buttons */
  .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-bottom: 10px; /* Add space between stacked buttons */
  }

  /* Button containers mobile adaptation */
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-register__benefit-card, .page-register__step-item, .page-register__promo-card, .page-register__feature-item {
    padding: 25px;
  }

  .page-register__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  .page-register__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: clamp(1.8em, 9vw, 2.5em);
  }

  .page-register__section-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

  .page-register__description {
    font-size: 1em;
  }

  .page-register__btn-primary, .page-register__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}