/* style/register.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không thêm vào đây để tránh trùng lặp */

/* General page styling */
.page-register {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Custom Text Main */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-register__text-block {
  font-size: 1.1em;
  color: #A7D9B8; /* Custom Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  border-radius: 10px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-register__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
}

.page-register__main-title {
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  /* Use clamp for responsive font size without fixed large values */
  font-size: clamp(2.2em, 4vw, 3.5em); 
}

.page-register__description {
  font-size: 1.2em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Gradient */
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-register__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Form Guidance Section */
.page-register__form-guidance-section {
  background-color: #11271B; /* Custom Card BG for dark section */
  padding: 80px 0;
}

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

.page-register__step-card {
  background-color: #08160F; /* Custom Background */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom Border */
}

.page-register__step-card:hover {
  transform: translateY(-5px);
}

.page-register__step-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-register__step-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__step-description {
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 1em;
}

.page-register__cta-button--centered {
  display: block;
  margin: 50px auto 0;
  max-width: 350px;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #08160F; /* Custom Background */
}

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

.page-register__benefit-card {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom Border */
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-register__benefit-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__benefit-description {
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 0.95em;
}

/* FAQ Section */
.page-register__faq-section {
  background-color: #11271B; /* Custom Card BG for dark section */
  padding: 80px 0;
}

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

.page-register__faq-item {
  background-color: #08160F; /* Custom Background */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-register__faq-item:hover {
  background-color: #11271B; /* Custom Card BG */
}

.page-register__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
  color: #F2FFF6; /* Custom Text Main */
  font-weight: bold;
  font-size: 1.1em;
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-register__faq-qtext {
  flex-grow: 1;
  color: #F2FFF6; /* Custom Text Main */
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* A lighter green for the toggle */
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 1em;
}

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

.page-register__cta-button--large {
  padding: 18px 50px;
  font-size: 1.2em;
  margin-bottom: 20px;
}

.page-register__text-link-wrapper {
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 1.1em;
}

.page-register__text-link {
  color: #22C768; /* Custom Auxiliary Color */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__text-link:hover {
  color: #57E38D; /* Custom Glow */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-register__section-title {
    font-size: 2em;
  }

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

  .page-register__hero-section,
  .page-register__form-guidance-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 40px 0;
  }

  .page-register__hero-image-wrapper {
    margin-bottom: 20px;
  }

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

  .page-register__step-card,
  .page-register__benefit-card,
  .page-register__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__hero-image-wrapper,
  .page-register__step-card,
  .page-register__benefit-card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Mobile button responsiveness */
  .page-register__cta-button,
  .page-register__cta-button--large {
    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-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .page-register__cta-button--centered {
    max-width: 100% !important;
    width: 100% !important;
  }
}

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

  .page-register__cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }

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

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