/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #121212; /* Inherited from shared.css body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-register__dark-section {
  background-color: #0A2E4A;
  color: #ffffff;
}

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFC107;
  text-align: center;
  margin-bottom: 20px;
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Hero Section */
.page-register__hero-section {
  background: linear-gradient(135deg, #0A2E4A, #121212);
  padding: 80px 0;
  padding-top: 0; /* Already handled by page-register padding-top */
}

.page-register__hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 40px 20px;
}

.page-register__hero-content {
  flex: 1;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  max-width: 600px;
}

.page-register__hero-title {
  font-size: 42px;
  font-weight: bold;
  color: #FFC107;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__hero-bg-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

/* Form Styles */
.page-register__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-register__form-group {
  display: flex;
  flex-direction: column;
}

.page-register__form-label {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-register__form-input {
  padding: 12px 15px;
  border: 1px solid #FFC107;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-register__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-register__form-input:focus {
  border-color: #0A2E4A;
  background-color: rgba(255, 255, 255, 0.2);
}

.page-register__form-group--captcha {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

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

.page-register__captcha-button {
  padding: 12px 18px;
  background-color: #0A2E4A;
  color: #FFC107;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-register__captcha-button:hover {
  background-color: #FFC107;
  color: #0A2E4A;
}

.page-register__terms {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #f0f0f0;
}

.page-register__terms a {
  color: #FFC107;
  text-decoration: none;
}

.page-register__terms a:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  padding: 15px 25px;
  background-color: #FFC107;
  color: #0A2E4A;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-register__login-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-register__login-prompt a {
  color: #FFC107;
  text-decoration: none;
  font-weight: bold;
}

.page-register__login-prompt a:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 20px;
}

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

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

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

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

.page-register__benefit-title {
  font-size: 24px;
  color: #FFC107;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__benefit-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Steps Section */
.page-register__steps-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
}

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

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__step-number {
  font-size: 48px;
  font-weight: bold;
  color: #FFC107;
  margin-bottom: 15px;
}

.page-register__step-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-register__cta-container {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-register__btn-primary {
  background-color: #FFC107;
  color: #0A2E4A;
  border: 2px solid #FFC107;
}

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

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

.page-register__btn-secondary:hover {
  background-color: #FFC107;
  color: #0A2E4A;
  transform: translateY(-2px);
}

/* Security Section */
.page-register__security-section {
  padding: 60px 20px;
}

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

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

.page-register__security-text p {
  margin-bottom: 20px;
  font-size: 17px;
  color: #f0f0f0;
}

.page-register__security-text a {
  color: #FFC107;
  text-decoration: none;
  font-weight: bold;
}

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

.page-register__text-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #FFC107;
  color: #0A2E4A;
  border-radius: 8px;
  font-weight: bold;
}

.page-register__text-link:hover {
  background-color: #e0b000;
}

.page-register__security-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__security-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
}

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

.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__promo-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-register__promo-title {
  font-size: 22px;
  color: #FFC107;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-register__promo-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0A2E4A;
  color: #FFC107;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__promo-button:hover {
  background-color: #FFC107;
  color: #0A2E4A;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 20px;
}

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

.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.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  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: #0A2E4A;
  border: 1px solid rgba(255, 255, 255, 0.1);
  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: #1a3e5a;
  border-color: #FFC107;
}

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

.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: #ffffff;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFC107;
  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: #ffffff;
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 36px;
  }
  .page-register__hero-description {
    font-size: 16px;
  }
  .page-register__hero-container {
    gap: 30px;
  }
  .page-register__section-title {
    font-size: 30px;
  }
  .page-register__section-description {
    font-size: 16px;
  }
  .page-register__security-content {
    flex-direction: column;
  }
  .page-register__security-image img {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-register__container {
    padding: 30px 15px;
  }
  .page-register__hero-section {
    padding: 40px 0;
  }
  .page-register__hero-container {
    flex-direction: column;
    padding: 20px 15px;
  }
  .page-register__hero-content {
    padding: 20px;
    max-width: 100%;
  }
  .page-register__hero-title {
    font-size: 28px;
    text-align: center;
  }
  .page-register__hero-description {
    font-size: 15px;
    text-align: center;
  }
  .page-register__hero-bg-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .page-register__form-group--captcha {
    flex-direction: column;
    gap: 10px;
  }
  .page-register__captcha-button {
    width: 100%;
  }
  .page-register__submit-button {
    font-size: 18px;
    padding: 12px 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__promotions-section,
  .page-register__faq-section {
    padding: 40px 15px;
  }
  .page-register__section-title {
    font-size: 24px;
  }
  .page-register__section-description {
    font-size: 15px;
  }
  .page-register__benefit-card,
  .page-register__step-item,
  .page-register__promo-card {
    padding: 20px;
  }
  .page-register__benefit-icon,
  .page-register__security-image img,
  .page-register__promo-card img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-register__step-number {
    font-size: 36px;
  }
  .page-register__step-title,
  .page-register__benefit-title,
  .page-register__promo-title {
    font-size: 20px;
  }
  .page-register__cta-container {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__security-content {
    flex-direction: column;
  }
  .page-register__security-text p {
    font-size: 16px;
  }
  .page-register__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-register__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    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;
  }
}