/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.page-register__section-subtitle {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__link {
  color: #FFFF00;
  text-decoration: underline;
}

.page-register__link:hover {
  color: #C30808;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

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

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

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

.page-register__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-register__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

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

.page-register__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #C30808;
}

.page-register__btn-submit {
  background-color: #C30808;
  color: #FFFF00;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-submit:hover {
  background-color: #e02020;
}

.page-register__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-register__btn-text-link {
  color: #FFFF00;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-register__btn-text-link:hover {
  color: #C30808;
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color for dark section */
  color: #ffffff;
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFFFFF;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-register__form-input:focus {
  border-color: #FFFF00;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 0, 0.5);
}

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

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

.page-register__captcha-image {
  border-radius: 5px;
  display: block; /* Ensure image behaves as a block element */
  min-width: 200px; /* Minimum size requirement */
  min-height: 80px; /* Minimum size requirement */
  max-width: 200px;
  height: 80px;
  object-fit: cover;
}

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

.page-register__form-checkbox input[type="checkbox"] {
  margin-top: 5px;
  margin-right: 10px;
  flex-shrink: 0;
}

.page-register__checkbox-label {
  color: #f0f0f0;
  font-size: 0.95em;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background for contrast */
  color: #333333;
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-subtitle {
  color: #333333;
}

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

.page-register__benefit-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-register__benefit-icon {
  width: 100%; /* Occupy full card width */
  height: auto;
  max-height: 250px; /* Limit height for better presentation */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__benefit-description {
  font-size: 1em;
  color: #555555;
}

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

.page-register__guide-list {
  list-style: none;
  counter-reset: guide-step;
  padding: 0;
  margin-top: 40px;
}

.page-register__guide-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
}

.page-register__guide-item::before {
  content: counter(guide-step);
  counter-increment: guide-step;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #FFFF00;
  color: #017439;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-register__guide-step-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-register__guide-description {
  color: #f0f0f0;
  margin-bottom: 10px;
}

.page-register__sub-list {
  list-style: disc;
  margin-left: 30px;
  color: #f0f0f0;
}

.page-register__guide-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-subtitle {
  color: #333333;
}

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

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

.page-register__security-heading {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__security-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-register__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-register__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

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

.page-register__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  margin: 0;
  color: #FFFFFF;
  font-size: 1.2em;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* CTA Bottom Section */
.page-register__cta-bottom-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
  text-align: center;
}

.page-register__cta-bottom-section .page-register__section-title,
.page-register__cta-bottom-section .page-register__section-subtitle {
  color: #333333;
}

.page-register__cta-note {
  font-size: 1em;
  color: #555555;
  margin-top: 20px;
}

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

  .page-register__hero-description {
    font-size: 1.1em;
  }

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

  .page-register__section-subtitle {
    font-size: 1em;
  }

  .page-register__security-content {
    flex-direction: column;
  }

  .page-register__security-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__hero-title {
    font-size: 2.2em;
  }

  .page-register__hero-description {
    font-size: 1em;
  }

  .page-register__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-submit,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    max-width: 100% !important;
    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__hero-actions,
  .page-register__cta-bottom-section .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-register__benefit-card {
    padding: 25px;
  }

  .page-register__guide-item {
    padding-left: 50px;
  }

  .page-register__guide-item::before {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }

  .page-register__guide-step-title {
    font-size: 1.5em;
  }

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-register__faq-answer {
    padding: 0 20px;
  }

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 20px;
  }

  /* General image responsiveness for content area */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure image containers do not cause overflow */
  .page-register__form-section .page-register__container,
  .page-register__benefits-section .page-register__container,
  .page-register__guide-section .page-register__container,
  .page-register__security-section .page-register__container,
  .page-register__faq-section .page-register__container,
  .page-register__cta-bottom-section .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-register__registration-form {
    padding: 25px;
  }

  .page-register__captcha-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-register__captcha-image {
    width: 100% !important;
    max-width: 200px !important; /* Maintain aspect ratio or specific width if needed */
    height: auto !important;
  }

  .page-register__captcha-input {
    width: 100% !important;
  }

  .page-register__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-section {
    height: 400px;
  }

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

  .page-register__hero-description {
    font-size: 0.9em;
  }

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

  .page-register__section-subtitle {
    font-size: 0.9em;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-submit {
    font-size: 1em;
    padding: 12px 20px;
  }

  .page-register__guide-step-title {
    font-size: 1.3em;
  }

  .page-register__security-heading {
    font-size: 1.5em;
  }
}