/* style/register.css */

/* Base styles for the page */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

.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: #E3B505; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-register__dark-bg {
  background-color: #0A2463;
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  padding: 80px 20px;
  box-sizing: border-box;
}

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

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

/* 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;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

.page-register__btn-secondary:hover {
  background-color: #E3B505;
  color: #0A2463;
}

/* Form Section */
.page-register__form-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

.page-register__form-wrapper {
  background-color: #0A2463;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
}

.page-register__form-decoration-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.1;
  border-radius: 10px;
}

.page-register__registration-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

.page-register__form-input {
  padding: 12px 15px;
  border: 1px solid #E3B505;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
}

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

.page-register__input-with-button {
  display: flex;
  gap: 10px;
}

.page-register__input-with-button .page-register__form-input {
  flex-grow: 1;
}

.page-register__form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.page-register__form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #E3B505;
}

.page-register__submit-button {
  width: 100%;
  margin-top: 20px;
}

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

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

.page-register__benefit-item {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

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

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

.page-register__benefits-image {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Security Section */
.page-register__security-section {
  padding: 60px 0;
  background-color: #0A2463;
}

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

.page-register__security-item {
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #ffffff;
  text-align: center;
}

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

.page-register__security-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__security-image {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  color: #333333;
}

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

.page-register__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #0A2463;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: #e9ecef;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  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-out, padding 0.3s ease-out;
  color: #555555;
}

.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;
}

/* Call to Action Section */
.page-register__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #0A2463;
}

/* Text Links */
.page-register__text-link {
  color: #E3B505;
  text-decoration: none;
  font-weight: bold;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
}

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

  .page-register__hero-section {
    height: auto;
    min-height: 400px;
    padding: 60px 15px;
  }

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

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

  .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: 12px 20px;
  }

  .page-register__input-with-button {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-register__benefit-item,
  .page-register__security-item,
  .page-register__faq-item {
    padding: 20px;
  }

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

  .page-register__section-intro {
    font-size: 0.95em;
  }

  .page-register__form-input {
    padding: 10px 12px;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__form-wrapper,
  .page-register__benefits-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__input-with-button .page-register__btn-secondary {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__hero-description {
    font-size: 0.9em;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    font-size: 1em;
    padding: 10px 15px;
  }
}

/* Ensure content area images are not too small */
.page-register__benefits-image, 
.page-register__security-image {
  min-width: 200px;
  min-height: 200px;
}

/* Image color filter restriction */
.page-register img {
  filter: none; /* Ensure no filter is applied to change image color */
}