/* style/register.css */
/* 
  Màu sắc tùy chỉnh:
  - Đăng ký: #C30808
  - Đăng nhập: #C30808
  - Nền: #FFFFFF (Cho các phần nội dung cụ thể, không phải body)
  - Đăng ký và Đăng nhập chữ: #FFFF00
*/

.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #121212 (dark), so text is light */
  background-color: transparent; /* Main content background will be managed by sections */
}

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #017439; /* Brand primary color for hero */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Make it a background image */
}

.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-register__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color for Register */
  border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand primary color */
  border: 2px solid #ffffff;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2b;
}

/* --- General Section Styles --- */
.page-register__why-join-section,
.page-register__benefits-section,
.page-register__cta-final-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background for sections */
  color: #ffffff; /* Light text on dark background */
}

.page-register__process-section,
.page-register__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly darker background for contrast */
  color: #ffffff;
}

.page-register__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

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

/* --- Features Grid --- */
.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);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

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

.page-register__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439; /* Brand primary color for titles */
}

.page-register__feature-description {
  font-size: 1em;
  color: #e0e0e0;
}

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

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-register__step-number {
  font-size: 1.2em;
  color: #C30808; /* Custom color for register */
  margin-bottom: 10px;
}

.page-register__step-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__step-description {
  font-size: 1em;
  color: #e0e0e0;
}

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

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

/* --- Benefits Section --- */
.page-register__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-register__benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  color: #ffffff;
}

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

.page-register__benefit-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: contain;
  min-width: 80px; /* Enforce min image size */
  min-height: 80px; /* Enforce min image size */
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
}

.page-register__benefit-content {
  flex-grow: 1;
}

.page-register__benefit-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439; /* Brand primary color for titles */
}

.page-register__benefit-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-register__benefit-description a {
  color: #FFFF00; /* Custom font color for links */
  text-decoration: underline;
}

.page-register__benefit-description a:hover {
  color: #ffd700;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-register__faq-q-text {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #C30808; /* Custom color for register */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
  color: #FFFF00; /* Custom font color for register */
}

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

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Important for JS to work */
  padding: 15px 25px 25px 25px;
}

.page-register__faq-a-text a {
  color: #FFFF00; /* Custom font color for links */
  text-decoration: underline;
}

.page-register__faq-a-text a:hover {
  color: #ffd700;
}

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

.page-register__btn-final-cta {
  margin-top: 30px;
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color for Register */
  border: 2px solid #C30808;
}

.page-register__btn-final-cta:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

.page-register__btn-final-contact {
  margin-top: 20px;
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #ffffff;
}

.page-register__btn-final-contact:hover {
  background-color: #f0f0f0;
  color: #005a2b;
}

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

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 450px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
  }

  .page-register__hero-title {
    font-size: 2.2em;
  }

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

  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-register__features-grid,
  .page-register__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-register__feature-image {
    height: 250px;
  }

  .page-register__benefit-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .page-register__benefit-icon {
    margin: 0 auto;
  }

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

  .page-register__faq-q-text {
    font-size: 1.1em;
  }

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

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

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__process-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-final-section,
  .page-register__cta-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;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for sections to avoid double padding from .page-register__container */
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__process-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
      padding-left: 0;
      padding-right: 0;
  }
  .page-register__hero-section .page-register__container,
  .page-register__why-join-section .page-register__container,
  .page-register__process-section .page-register__container,
  .page-register__benefits-section .page-register__container,
  .page-register__faq-section .page-register__container,
  .page-register__cta-final-section .page-register__container {
      padding-left: 15px;
      padding-right: 15px;
  }
}

/* Color contrast enforcement */
/* Body background is #121212, so main text color should be light */
.page-register h1, .page-register h2, .page-register h3, .page-register h4, .page-register p, .page-register li {
  color: #ffffff; /* Default light text */
}

/* Specific section backgrounds and text colors */
.page-register__dark-bg {
  background-color: #017439; /* Brand primary for dark background */
  color: #ffffff; /* Light text */
}

.page-register__feature-card,
.page-register__step-card,
.page-register__benefit-item,
.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark body */
  color: #ffffff;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom Register button color */
  color: #FFFF00; /* Custom Register button font color */
}

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand primary color for text on white button */
}

.page-register__step-number,
.page-register__faq-toggle {
  color: #C30808; /* Custom Register button color for accents */
}

.page-register__benefit-description a,
.page-register__faq-a-text a {
  color: #FFFF00; /* Custom font color for links */
}