/* style/register.css */

/* --- General Page Styles --- */
.page-register {
  padding-top: 120px; /* Adjust for fixed header */
  background: var(--dark-bg-1); /* Inherited from shared.css, assumed dark */
  color: #ffffff; /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-register__section {
  padding: 60px 20px;
  margin-bottom: 20px;
}

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

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-register__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  color: #f0f0f0; /* Slightly off-white for readability */
  text-align: justify;
}

.page-register__text-block--note {
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
}

/* --- Buttons --- */
.page-register__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  margin-top: 20px;
}

.page-register__button--primary {
  background: var(--primary-color); /* Red */
  color: #ffffff;
  border: 2px solid var(--primary-color);
}

.page-register__button--primary:hover {
  background: #ff3333;
  border-color: #ff3333;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-register__button--secondary {
  background: #ffffff;
  color: var(--primary-color); /* Red text on white */
  border: 2px solid var(--primary-color);
}

.page-register__button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-register__button--large {
  padding: 20px 40px;
  font-size: 22px;
  min-width: 250px;
}

/* --- Hero Banner Section --- */
.page-register__hero-banner {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #330000 100%); /* Darker red gradient */
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  overflow: hidden;
}

.page-register__hero-container {
  max-width: 600px;
  text-align: center;
  z-index: 1;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-register__hero-title {
  font-size: 48px;
  color: var(--secondary-color); /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
  text-align: center;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.3; /* Subtle background image */
  z-index: 0;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Intro Section --- */
.page-register__intro-section .page-register__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.page-register__intro-section .page-register__button {
  display: block;
  margin: 40px auto 0 auto;
}

/* --- Guide Section --- */
.page-register__guide-section {
  background: #1a1a1a; /* Slightly lighter dark background */
}

.page-register__guide-layout {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-register__guide-steps {
  flex: 1;
}

.page-register__step-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white card */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  border-left: 5px solid var(--primary-color); /* Red accent */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-register__step-title {
  font-size: 22px;
  color: var(--secondary-color); /* Gold */
  margin-bottom: 10px;
}

.page-register__step-description {
  font-size: 16px;
  color: #cccccc;
}

.page-register__guide-image {
  flex: 1;
  min-width: 400px; /* Ensure image has enough space */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

.page-register__benefit-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  background: var(--primary-color); /* Red background for icon */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-register__benefit-icon img {
  width: 60px; /* Icon size inside circle */
  height: 60px;
  object-fit: contain;
}

.page-register__benefit-title {
  font-size: 24px;
  color: var(--secondary-color); /* Gold */
  margin-bottom: 15px;
}

.page-register__benefit-description {
  font-size: 16px;
  color: #cccccc;
}

.page-register__benefits-section .page-register__button {
  display: block;
  margin: 40px auto 0 auto;
}

/* --- Promotion Section --- */
.page-register__promotion-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.page-register__promo-card {
  display: flex;
  gap: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
  margin-top: 40px;
}

.page-register__promo-content {
  flex: 2;
}

.page-register__promo-title {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

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

.page-register__promo-list {
  list-style: disc;
  margin-left: 20px;
  color: #cccccc;
  font-size: 16px;
  margin-bottom: 20px;
}

.page-register__promo-list li strong {
  color: var(--secondary-color);
}

.page-register__promo-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- Security & Support Section --- */
.page-register__security-support-section {
  background: #1a1a1a;
}

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

.page-register__info-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-register__info-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__info-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-register__info-description {
  font-size: 16px;
  color: #cccccc;
}

.page-register__security-support-section .page-register__button {
  display: block;
  margin: 40px auto 0 auto;
}

/* --- FAQ Section --- */
.page-register__faq-section {
  background: #0d0d0d;
}

.page-register__faq-list {
  margin-top: 40px;
}

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ item */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #cccccc;
  font-size: 16px;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Use !important and sufficient height */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08); /* Slightly darker background when open */
  border-radius: 0 0 5px 5px;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1); /* Lighter background for question bar */
  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: rgba(255, 255, 255, 0.15);
}

.page-register__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text for questions */
  pointer-events: none;
}

.page-register__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Gold color for toggle */
  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: 30px; /* Make toggle a bit bigger */
  height: 30px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: var(--primary-color); /* Red when active */
  transform: rotate(180deg); /* Rotate for minus sign */
}


/* --- CTA Section --- */
.page-register__cta-section {
  background: linear-gradient(90deg, var(--primary-color) 0%, #800000 100%); /* Red gradient */
  text-align: center;
  padding: 80px 20px;
}

.page-register__cta-content {
  max-width: 800px;
}

.page-register__cta-section .page-register__section-title {
  color: #ffffff; /* White title on red background */
  margin-bottom: 25px;
}

.page-register__cta-section .page-register__text-block {
  color: #f0f0f0;
  margin-bottom: 30px;
  font-size: 20px;
}

.page-register__cta-section .page-register__button {
  margin: 0 auto;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 40px;
  }
  .page-register__hero-description {
    font-size: 18px;
  }
  .page-register__section-title {
    font-size: 30px;
  }
  .page-register__text-block {
    font-size: 17px;
  }
}