/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f8f9fa; /* Light text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#0a0a0a) */
}

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

.page-register__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Primary brand color */
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #e0e0e0;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.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.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.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.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-register__btn-primary {
  background-color: #EA7C07; /* Login/Register color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-register__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #26A9E0; /* Primary brand color */
}

.page-register__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Why Register Section */
.page-register__why-register-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

.page-register__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light for dark background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-register__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
  width: 100%; /* Ensure it scales correctly */
  height: auto;
}

.page-register__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__feature-text {
  font-size: 1rem;
  color: #cccccc;
}

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

.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.05);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.page-register__step-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-register__step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1;
}

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

.page-register__step-text {
  font-size: 0.95rem;
  color: #cccccc;
}

.page-register__note-box {
  background-color: rgba(38, 169, 224, 0.1); /* Light blue tint */
  padding: 30px;
  border-radius: 12px;
  margin-top: 60px;
  border: 1px solid #26A9E0;
}

.page-register__note-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  text-align: center;
}

.page-register__note-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  color: #e0e0e0;
}

.page-register__note-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-register__note-list li::before {
  content: '•';
  color: #EA7C07; /* Orange bullet */
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

.page-register__benefit-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-register__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
  width: 100%; /* Ensure it scales correctly */
  height: auto;
}

.page-register__benefit-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__benefit-text {
  font-size: 1rem;
  color: #cccccc;
}

.page-register__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: rgba(38, 169, 224, 0.15); /* Primary brand color tint */
  border-radius: 12px;
  border: 1px solid #26A9E0;
}

.page-register__cta-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #ffffff;
}

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

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-register__faq-question::-webkit-details-marker {
  display: none;
}

.page-register__faq-question::marker {
  display: none;
}

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

.page-register__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
  line-height: 1;
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #cccccc;
}

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

  .page-register__section-title {
    font-size: 2.2rem;
  }

  .page-register__hero-description {
    font-size: 1.1rem;
  }
}

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

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

  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-register__main-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 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-register__why-register-section,
  .page-register__guide-section,
  .page-register__benefits-section,
  .page-register__faq-section {
    padding: 50px 0;
  }

  .page-register__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

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

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

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

  .page-register__feature-title,
  .page-register__benefit-title {
    font-size: 1.3rem;
  }

  .page-register__note-box {
    padding: 25px;
    margin-top: 40px;
  }

  .page-register__note-title {
    font-size: 1.4rem;
  }

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

  .page-register__faq-toggle {
    font-size: 1.5rem;
  }

  .page-register__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Force responsive images */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__hero-image-wrapper,
  .page-register__container,
  .page-register__cta-buttons,
  .page-register__note-box,
  .page-register__cta-bottom,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure padding for containers on mobile */
  .page-register__why-register-section .page-register__container,
  .page-register__guide-section .page-register__container,
  .page-register__benefits-section .page-register__container,
  .page-register__faq-section .page-register__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Color Contrast Fixes (Intelligent application) */
.page-register__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff; /* Explicitly light text on dark background */
}

.page-register__light-bg {
  background-color: #1a1a1a;
  color: #ffffff; /* Explicitly light text on slightly lighter dark background */
}

/* Ensure all general text is light on the dark body background */
.page-register p,
.page-register li,
.page-register h1,
.page-register h2,
.page-register h3,
.page-register h4,
.page-register a {
  color: inherit; /* Inherit from parent, which is set to light */
}

.page-register__main-title,
.page-register__hero-description {
  color: #ffffff; /* Ensure hero text is white */
}

.page-register__section-title,
.page-register__feature-title,
.page-register__step-title,
.page-register__benefit-title,
.page-register__note-title {
  color: #26A9E0; /* Primary brand color for titles */
}

.page-register__faq-question {
  color: #ffffff; /* FAQ question text */
}

.page-register__faq-answer p {
  color: #cccccc; /* FAQ answer text */
}

.page-register__btn-primary {
  background-color: #EA7C07;
  color: #ffffff; /* White text on orange button */
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand color text on transparent/dark background */
  border-color: #26A9E0;
}

.page-register__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Specific overrides for contrast safety */
.page-register__feature-text, .page-register__step-text, .page-register__benefit-text, .page-register__note-list li {
  color: #cccccc; /* Ensure readability */
}

.page-register__feature-icon, .page-register__benefit-icon {
  min-width: 200px;
  min-height: 200px;
  width: auto;
  height: auto;
  max-width: 100%;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}