/* style/register.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-register {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Spacing for fixed header on desktop */
}

@media (max-width: 768px) {
  .page-register {
    padding-top: 100px; /* Spacing for fixed header on mobile */
  }
}

/* General container for content sections */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 30px 15px;
  }
}

/* Section backgrounds based on design style */
.page-register__dark-bg {
  background-color: var(--dark-bg-1); /* Assuming --dark-bg-1 is a dark color */
  color: #ffffff;
}

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

/* Hero Section */
.page-register__hero-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #FFD700, #1a1a1a);
  color: #ffffff;
}

.page-register__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-register__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.page-register__btn-primary {
  background-color: #FFD700;
  color: #1a1a1a;
  border: 2px solid #FFD700;
}

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

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

.page-register__btn-secondary:hover {
  background-color: #ffffff;
  color: #1a1a1a;
}

@media (max-width: 768px) {
  .page-register__hero-title {
    font-size: 32px;
  }
  .page-register__hero-description {
    font-size: 16px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    display: block;
    width: 80%;
    margin: 15px auto;
  }
}

/* Section Titles */
.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit; /* Inherit color from parent section */
}

@media (max-width: 768px) {
  .page-register__section-title {
    font-size: 28px;
  }
  .page-register__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
}

/* Card Styles */
.page-register__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text for light card background */
}

.page-register__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .page-register__card {
    padding: 20px;
  }
}

/* Advantages Section */
.page-register__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-register__advantage-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-register__advantage-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.page-register__advantage-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

@media (max-width: 768px) {
  .page-register__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__advantage-title {
    font-size: 20px;
  }
  .page-register__advantage-text {
    font-size: 15px;
  }
}

/* How-To-Register Section */
.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-register__step-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-register__step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1a1a1a; /* Dark text for light card background */
}

.page-register__step-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

.page-register__note-block {
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
  text-align: left;
}

.page-register__note-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-register__note-block ul {
  list-style: disc;
  margin-left: 20px;
  padding: 0;
}

.page-register__note-block li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.page-register__btn-center {
  display: block;
  margin: 40px auto 0 auto;
  width: fit-content;
}

@media (max-width: 768px) {
  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__step-title {
    font-size: 20px;
  }
  .page-register__step-text {
    font-size: 15px;
  }
  .page-register__note-block {
    padding: 20px;
  }
  .page-register__note-title {
    font-size: 20px;
  }
  .page-register__note-block li {
    font-size: 15px;
  }
}

/* VIP Section */
.page-register__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-register__content-flex--reverse {
  flex-direction: row-reverse;
}

.page-register__text-block {
  flex: 1;
}

.page-register__image-block {
  flex: 1;
  text-align: center;
}

.page-register__responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center image if flex item */
}

.page-register__sub-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit;
}

.page-register__vip-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-register__vip-section li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.6;
  position: relative;
  padding-left: 25px;
  color: inherit;
}

.page-register__vip-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFD700;
  font-weight: bold;
}

@media (max-width: 1024px) {
  .page-register__content-flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-register__content-flex--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-register__sub-title {
    font-size: 24px;
  }
  .page-register__vip-section li {
    font-size: 16px;
  }
  .page-register__content-flex {
    margin-bottom: 40px;
  }
}

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

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Ensure it expands fully */
  padding: 20px 15px !important;
  opacity: 1;
  background: #1a1a1a;
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #FFD700;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-register__faq-question:hover {
  background: #e6c200;
  border-color: #d0d0d0;
}

.page-register__faq-question:active {
  background: #d4b200;
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #1a1a1a;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #1a1a1a;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #1a1a1a;
}

@media (max-width: 768px) {
  .page-register__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-register__faq-question h3 {
    font-size: 15px;
    width: calc(100% - 40px);
  }
  .page-register__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-register__faq-answer {
    padding: 0 15px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }
}

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

.page-register__contact-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-register__contact-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.page-register__contact-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #555555;
}

.page-register__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .page-register__contact-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__contact-title {
    font-size: 20px;
  }
  .page-register__contact-text {
    font-size: 15px;
  }
}

/* Global image responsive styles */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile specific image and container adjustments */
@media (max-width: 768px) {
  .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__advantages-section,
  .page-register__how-to-register-section,
  .page-register__vip-section,
  .page-register__faq-section,
  .page-register__contact-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}