/* ------------------------------------ *
 * Core Styles for Đăng ký Page
 * ------------------------------------ */

/* General Page Layout */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set to match body background */
}

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

.page-register__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 17px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #f0f8ff; /* Light background for content below image */
  text-align: center;
}

.page-register__hero-image {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
}

.page-register__hero-content {
  max-width: 900px;
  padding: 0 15px;
}

.page-register__main-title {
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
  text-align: center;
  /* clamp for responsive font size, but avoid excessive fixed sizes */
  font-size: clamp(28px, 4vw, 48px);
}

.page-register__hero-description {
  font-size: 18px;
  color: #444444;
  margin-bottom: 30px;
}

.page-register__cta-button {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__cta-button:hover {
  background-color: #d16b06;
  transform: translateY(-2px);
}

.page-register__cta-button--large {
  padding: 18px 35px;
  font-size: 20px;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-register__benefit-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

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

.page-register__benefit-card p {
  font-size: 16px;
  color: #555555;
}

.page-register__benefit-card p a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-register__benefit-card p a:hover {
  text-decoration: underline;
}

/* Guide Section */
.page-register__guide-section {
  padding: 60px 0;
  background-color: #eaf7ff; /* Medium light background */
}

.page-register__step-item {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  gap: 30px;
}

.page-register__step-item:last-of-type {
  margin-bottom: 0;
}

.page-register__step-item--reverse {
  flex-direction: row-reverse;
}

.page-register__step-content {
  flex: 1;
}

.page-register__step-title {
  font-size: 26px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-register__step-content p {
  font-size: 17px;
  color: #555555;
  margin-bottom: 10px;
}

.page-register__step-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #555555;
}

.page-register__step-list li {
  font-size: 16px;
  margin-bottom: 8px;
}

.page-register__step-list li strong {
  color: #333333;
}

.page-register__step-image-wrapper {
  flex: 1;
  min-width: 400px; /* Ensure image has enough space */
  text-align: center;
}

.page-register__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-register__tips {
  margin-top: 60px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.page-register__tips-title {
  font-size: 24px;
  font-weight: bold;
  color: #EA7C07;
  margin-bottom: 20px;
  text-align: center;
}

.page-register__tips-list {
  list-style-type: decimal;
  margin-left: 25px;
  color: #555555;
}

.page-register__tips-list li {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.page-register__tips-list li a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-register__tips-list li a:hover {
  text-decoration: underline;
}

/* App Section */
.page-register__app-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-register__app-section .page-register__section-title,
.page-register__app-section .page-register__section-description {
  color: #ffffff;
}

.page-register__app-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-register__app-subtitle {
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-register__app-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 30px;
}

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

.page-register__app-list li::before {
  content: '✔';
  color: #EA7C07;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-register__app-list li a {
  color: #f0f8ff;
  text-decoration: none;
  font-weight: bold;
}

.page-register__app-list li a:hover {
  text-decoration: underline;
}

.page-register__btn-primary {
  display: inline-block;
  background-color: #EA7C07;
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-register__app-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

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

/* Security Section */
.page-register__security-section {
  padding: 60px 0;
  background-color: #f0f8ff;
}

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

.page-register__security-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-register__item-title {
  font-size: 22px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-register__security-item p {
  font-size: 16px;
  color: #555555;
}

.page-register__security-item p a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-register__security-item p a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
  background-color: #eaf7ff; /* Medium light background */
}

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #f5f5f5;
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #fcfcfc;
  border-radius: 0 0 8px 8px;
  color: #555555;
  font-size: 16px;
}

/* CTA Bottom Section */
.page-register__cta-bottom-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-register__cta-bottom-section .page-register__section-title,
.page-register__cta-bottom-section .page-register__section-description {
  color: #ffffff;
}

/* ------------------------------------ *
 * Responsive Styles (Max-width 1024px)
 * ------------------------------------ */
@media (max-width: 1024px) {
  .page-register__hero-image {
    max-height: 500px;
  }

  .page-register__main-title {
    font-size: clamp(26px, 3.8vw, 42px);
  }

  .page-register__section-title {
    font-size: 28px;
  }

  .page-register__step-image-wrapper,
  .page-register__app-image-wrapper {
    min-width: 300px;
  }
}

/* ------------------------------------ *
 * Responsive Styles (Max-width 768px)
 * ------------------------------------ */
@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Top Section / Hero Section adjustments */
  .page-register__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 30px;
  }

  .page-register__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-register__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 10px;
  }

  .page-register__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* General Text / Titles */
  .page-register__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

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

  /* Buttons */
  .page-register__cta-button,
  .page-register__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  /* Benefits Section */
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__benefit-card {
    padding: 25px;
  }

  .page-register__card-title {
    font-size: 20px;
  }

  /* Guide Section */
  .page-register__step-item {
    flex-direction: column;
    margin-bottom: 40px;
    gap: 20px;
  }

  .page-register__step-item--reverse {
    flex-direction: column;
  }

  .page-register__step-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-register__step-title {
    font-size: 22px;
    text-align: center;
  }

  .page-register__step-content p,
  .page-register__step-list li {
    font-size: 15px;
  }

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

  .page-register__tips-title {
    font-size: 20px;
  }

  .page-register__tips-list {
    margin-left: 20px;
  }

  /* App Section */
  .page-register__app-content {
    flex-direction: column;
    gap: 30px;
  }

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

  .page-register__app-subtitle {
    font-size: 22px;
  }

  .page-register__app-list {
    text-align: left;
    padding-left: 0;
  }

  .page-register__app-list li {
    font-size: 15px;
    padding-left: 20px;
  }

  .page-register__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  /* Security Section */
  .page-register__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__security-item {
    padding: 25px;
  }

  .page-register__item-title {
    font-size: 20px;
  }

  /* FAQ Section */
  details.page-register__faq-item summary.page-register__faq-question { padding: 15px; }
  .page-register__faq-qtext { font-size: 16px; }
  .page-register__faq-toggle { font-size: 20px; width: 24px; height: 24px; margin-left: 10px; }
  details.page-register__faq-item .page-register__faq-answer { padding: 0 15px 15px; }

  /* All images must be responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__app-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}