/* style/register.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark-card: rgba(0, 0, 0, 0.6);
  --border-color: #e0e0e0;
}

.page-register {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for the page content, assuming a dark background from shared.css */
  line-height: 1.6;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  padding-bottom: 60px;
}

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-register__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--text-light);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.page-register__form-wrapper {
  background: rgba(0, 0, 0, 0.85); /* Slightly darker for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid var(--primary-color);
}

.page-register__form-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.page-register__form-intro-text {
  font-size: 0.95em;
  color: #ccc;
  margin-bottom: 30px;
}

.page-register__form-group {
  margin-bottom: 20px;
  text-align: left;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-light);
  font-weight: bold;
  font-size: 0.95em;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #555;
  border-radius: 5px;
  background: #222;
  color: var(--text-light);
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
  outline: none;
}

.page-register__form-hint {
  display: block;
  font-size: 0.8em;
  color: #aaa;
  margin-top: 5px;
}

.page-register__captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-register__captcha-input {
  flex-grow: 1;
}

.page-register__captcha-image {
  border: 1px solid #555;
  border-radius: 5px;
  width: 120px; /* Adjusted for better fit */
  height: 40px; /* Adjusted for better fit */
  object-fit: cover;
}

.page-register__refresh-captcha-button {
  background: var(--secondary-color);
  color: var(--text-light);
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.page-register__refresh-captcha-button:hover {
  background: #a00000;
}

.page-register__form-agreement {
  display: flex;
  align-items: flex-start;
  margin-top: 25px;
  margin-bottom: 30px;
}

.page-register__form-checkbox {
  margin-right: 10px;
  min-width: 18px;
  min-height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.page-register__form-agreement .page-register__form-label {
  margin-bottom: 0;
  font-weight: normal;
  font-size: 0.9em;
  line-height: 1.4;
}

.page-register__form-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__form-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: var(--text-dark);
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-register__submit-button:hover {
  background: #e0c000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-register__login-prompt {
  margin-top: 25px;
  font-size: 0.9em;
  color: #ccc;
}

.page-register__login-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-register__login-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* General Section Styles */
.page-register__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.page-register__section-description {
  font-size: 1.1em;
  color: #ccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

/* How-to-Register Section */
.page-register__how-to-register-section {
  background: #1a1a1a;
  padding: 80px 0;
  color: var(--text-light);
  border-top: 1px solid #333;
}

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

.page-register__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-register__step-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-register__step-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-register__step-text {
  font-size: 1em;
  color: #ccc;
}

/* Benefits Section */
.page-register__benefits-section {
  background: #0d0d0d;
  padding: 80px 0;
  color: var(--text-light);
  border-top: 1px solid #333;
}

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

.page-register__benefit-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

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

.page-register__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-register__benefit-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-register__benefit-text {
  font-size: 0.95em;
  color: #ccc;
}

.page-register__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-register__cta-button:hover {
  background: #e0c000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-register__cta-button--large {
  font-size: 1.3em;
  padding: 18px 50px;
}

.page-register__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.page-register__cta-button--secondary:hover {
  background: #a00000;
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

/* Exclusive Bonus Section */
.page-register__exclusive-bonus-section {
  background: #1a1a1a;
  padding: 80px 0;
  color: var(--text-light);
  border-top: 1px solid #333;
}

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

.page-register__bonus-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-register__bonus-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.12);
}

.page-register__bonus-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-register__bonus-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-register__bonus-text {
  font-size: 0.95em;
  color: #ccc;
}

/* FAQ Section */
.page-register__faq-section {
  background: #0d0d0d;
  padding: 80px 0;
  color: var(--text-light);
  border-top: 1px solid #333;
}

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

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-register__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary-color);
  line-height: 1.5;
  pointer-events: none; /* Prevents h3 from interfering with click event */
}

.page-register__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevents icon from interfering with click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Change to minus sign visually */
  color: var(--secondary-color);
}

.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;
  opacity: 0;
  color: #ccc;
  font-size: 0.95em;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 8px 8px;
}

/* Trust Section */
.page-register__trust-section {
  background: #1a1a1a;
  padding: 80px 0;
  color: var(--text-light);
  border-top: 1px solid #333;
}

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

.page-register__trust-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(139, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-register__trust-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.page-register__trust-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-register__trust-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-register__trust-text {
  font-size: 0.95em;
  color: #ccc;
}

/* Final Join Section */
.page-register__join-section {
  background: var(--secondary-color);
  padding: 80px 0;
  color: var(--text-light);
  text-align: center;
  border-top: 1px solid var(--primary-color);
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__join-section--final {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a00000 100%);
  padding: 100px 0;
}

.page-register__join-section .page-register__section-title {
  color: var(--primary-color);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-register__join-section .page-register__section-description {
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  margin-bottom: 50px;
}

.page-register__cta-button--hero {
  background: var(--primary-color);
  color: var(--text-dark);
  padding: 20px 60px;
  font-size: 1.5em;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.page-register__cta-button--hero:hover {
  background: #e0c000;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.7);
}

.page-register__final-cta-text {
  margin-top: 40px;
  font-size: 1.1em;
  color: var(--text-light);
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.8em;
  }

  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__hero-section {
    min-height: 600px;
    padding-bottom: 40px;
  }

  .page-register__form-wrapper {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-register__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-register__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-register__form-title {
    font-size: 1.8em;
  }

  .page-register__form-wrapper {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__form-input,
  .page-register__submit-button,
  .page-register__refresh-captcha-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__captcha-container {
    flex-direction: column;
    align-items: stretch;
  }

  .page-register__captcha-image {
    width: 100px; /* Adjusted for mobile */
    height: 35px; /* Adjusted for mobile */
    margin: 10px auto;
  }

  .page-register__refresh-captcha-button {
    margin-top: 10px;
  }

  .page-register__form-agreement {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-register__form-checkbox {
    margin-bottom: 10px;
  }

  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 10px;
  }
}