/* style/register.css */

/* --- General Styles for .page-register --- */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: var(--secondary-color); /* #FFFFFF */
}

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

.page-register__section-title {
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* --- 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); /* Ensure space below fixed header */
  background: linear-gradient(135deg, #017439, #004d26); /* Darker green gradient */
  color: #ffffff; /* White text for dark background */
  overflow: hidden;
}

.page-register__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-register__hero-image-main {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
}

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

.page-register__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFF00; /* Special color for hero title */
}

.page-register__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-register__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Minimum width for buttons */
  text-align: center;
  box-sizing: border-box;
}

.page-register__btn-register {
  background: #C30808; /* Custom red for register */
  color: #FFFF00; /* Custom yellow for register text */
  border: 2px solid #C30808;
}

.page-register__btn-register:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-register__btn-login {
  background: #C30808; /* Custom red for login */
  color: #FFFF00; /* Custom yellow for login text */
  border: 2px solid #C30808;
}

.page-register__btn-login:hover {
  background: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Why Join Section --- */
.page-register__why-join-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* #FFFFFF */
  color: #333333;
}

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

.page-register__feature-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-register__feature-item img {
  width: 100%;
  height: auto;
  max-width: 250px; /* Constraint for feature image size */
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

.page-register__feature-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__feature-text {
  font-size: 16px;
  color: #555555;
}

/* --- Guide Section --- */
.page-register__guide-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-register__guide-section .page-register__section-title {
  color: #FFFF00; /* Yellow for title on green background */
}

.page-register__guide-section .page-register__section-intro {
  color: #f0f0f0;
}

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

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

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FFFF00; /* Yellow circle */
  color: #017439; /* Green number */
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

.page-register__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333333;
  font-size: 16px;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-register__form-input:focus {
  border-color: #017439;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
  outline: none;
}

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

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

.page-register__captcha-image {
  width: 200px; /* Original width from placeholder */
  height: 60px; /* Original height from placeholder */
  border-radius: 5px;
  border: 1px solid #cccccc;
  object-fit: contain;
}

.page-register__form-checkbox {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  font-size: 15px;
}

.page-register__form-checkbox input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  min-width: 18px; /* Ensure checkbox is not too small */
  min-height: 18px;
}

.page-register__terms-link {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}

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

.page-register__btn-submit {
  width: 100%;
  padding: 15px 20px;
  background: #C30808; /* Custom red for submit button */
  color: #FFFF00; /* Custom yellow for submit button text */
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  margin-top: 10px;
}

.page-register__btn-submit:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-register__login-link {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}

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

/* --- Bonuses Section --- */
.page-register__bonuses-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-register__bonuses-section .page-register__section-title {
  color: #FFFF00; /* Yellow for title on green background */
}

.page-register__bonuses-section .page-register__section-intro {
  color: #f0f0f0;
}

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

.page-register__bonus-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-register__bonus-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-register__bonus-title {
  font-size: 22px;
  color: #FFFF00; /* Yellow for bonus title */
  margin: 20px 15px 10px 15px;
  font-weight: 600;
}

.page-register__bonus-description {
  font-size: 16px;
  color: #f0f0f0;
  padding: 0 15px 20px 15px;
}

.page-register__cta-container {
  text-align: center;
  margin-top: 50px;
}

.page-register__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: #FFFF00; /* Yellow for primary button */
  color: #017439; /* Green text for primary button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #FFFF00;
  box-sizing: border-box;
}

.page-register__btn-primary:hover {
  background: #e0e000;
  border-color: #e0e000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Security Section --- */
.page-register__security-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* #FFFFFF */
  color: #333333;
}

.page-register__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-register__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-register__security-text {
  flex: 1;
  min-width: 300px;
}

.page-register__security-subtitle {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-register__security-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-register__security-link {
  display: inline-block;
  padding: 10px 20px;
  background: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #017439;
  box-sizing: border-box;
}

.page-register__security-link:hover {
  background: #004d26;
  border-color: #004d26;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- FAQ Section --- */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-register__faq-section .page-register__section-title {
  color: #FFFF00; /* Yellow for title on green background */
}

.page-register__faq-section .page-register__section-intro {
  color: #f0f0f0;
}

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

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

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

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

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFFF00; /* Yellow toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Plus to X for active */
  color: #ffffff;
}

.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;
  background: rgba(0, 0, 0, 0.1);
}