/* style/register.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #007bff; /* A slightly darker blue for hover/active states if needed */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-color-light: #ffffff;
  --background-color-dark: #1a1a1a; /* Using a dark background for contrast sections */
  --border-color: #e0e0e0;
  --form-input-bg: #f5f5f5;
  --form-input-border: #cccccc;
  --button-login-color: #EA7C07; /* Specific color for login as per instructions */
}

.page-register {
  color: var(--text-color-dark); /* Default text color for light body background */
  background-color: var(--background-color-light); /* Default light background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-register__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__section-intro {
  color: var(--text-color-light);
}

.page-register__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-register__link:hover {
  text-decoration: underline;
}

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color), var(--background-color-light));
  overflow: hidden; /* Ensure no overflow */
}

.page-register__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-register__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 1000px; /* Constrain hero image width */
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-register__hero-title {
  font-size: 48px;
  color: var(--text-color-light);
  margin-bottom: 20px;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-register__hero-description {
  font-size: 20px;
  color: var(--text-color-light);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-register__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--button-login-color); /* Using specific login color for CTA */
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 22px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__cta-button:hover {
  background: #ea8d27; /* Slightly darker orange */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* --- Registration Form Section --- */
.page-register__form-section {
  padding: 80px 0;
  background-color: var(--background-color-light);
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: var(--background-color-light);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.page-register__form-group {
  margin-bottom: 25px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color-dark);
}

.page-register__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--form-input-border);
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  background-color: var(--form-input-bg);
  color: var(--text-color-dark);
}

.page-register__form-input::placeholder {
  color: #888888;
}

.page-register__form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
}

.page-register__form-hint {
  font-size: 13px;
  color: #777777;
  margin-top: 5px;
  display: block;
}

.page-register__form-group--captcha {
  margin-bottom: 30px;
}

.page-register__captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-register__form-input--captcha {
  flex-grow: 1;
}

.page-register__captcha-image {
  width: 150px;
  height: 50px;
  border: 1px solid var(--form-input-border);
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  max-width: 100%; /* Image responsive */
  height: auto;
  display: block;
  margin-left: auto; /* Center image if it's the only item */
  margin-right: auto;
}

.page-register__captcha-refresh-button {
  padding: 10px 15px;
  background-color: #6c757d;
  color: var(--text-color-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__captcha-refresh-button:hover {
  background-color: #5a6268;
}

.page-register__form-checkbox {
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.page-register__checkbox-input {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.page-register__checkbox-label {
  font-size: 15px;
  color: var(--text-color-dark);
}

.page-register__submit-button {
  width: 100%;
  padding: 18px;
  background: var(--primary-color);
  color: var(--text-color-light);
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__submit-button:hover {
  background: #208bc0;
  transform: translateY(-2px);
}

.page-register__login-link {
  text-align: center;
  margin-top: 25px;
  font-size: 16px;
  color: var(--text-color-dark);
}

/* --- Benefits Section --- */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark section background */
  color: var(--text-color-light);
}

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

.page-register__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

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

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%; /* Image responsive */
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__benefit-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-color-light);
}

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

/* --- Why Choose Us Section --- */
.page-register__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--background-color-light);
}

.page-register__why-choose-us-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-register__why-choose-us-text {
  flex: 2;
  min-width: 300px;
}

.page-register__why-choose-us-subtitle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-register__why-choose-us-text p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #555555;
}

.page-register__why-choose-us-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-register__why-choose-us-image img {
  width: 100%;
  height: auto;
  max-width: 100%; /* Image responsive */
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* --- FAQ Section --- */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #f9f9f9; /* Light background for FAQ */
}

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

/* FAQ容器样式 */
.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background-color: var(--background-color-light);
}

/* FAQ默认状态 - 答案隐藏 */
.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 25px; /* Adjust padding for desktop */
  opacity: 0;
  color: #555555;
  font-size: 16px;
  line-height: 1.7;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important and a large value */
  padding: 25px !important; /* Adjust padding for desktop */
  opacity: 1;
  background: #f0f8ff; /* Lighter background for expanded answer */
  border-radius: 0 0 10px 10px;
}