/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  color: #000000; /* Dark text for light background */
  background-color: #FFFFFF; /* Page background color */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
}

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

.page-register__hero-container {
  position: relative;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  padding: 40px;
  border-radius: 8px;
  max-width: 800px;
  color: #FFFFFF;
}

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

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-register__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login color for CTA */
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-register__hero-button:hover {
  background-color: #e0a53b;
}

/* General Section Styling */
.page-register__value-section,
.page-register__steps-section,
.page-register__conditions-section,
.page-register__faq-section {
  padding: 60px 0;
}

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

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

.page-register__value-item {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-register__value-item img {
  width: 100%;
  max-width: 400px; /* Ensure image is not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-register__value-heading {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-register__value-text {
  font-size: 1em;
  line-height: 1.5;
}

.page-register__cta-button {
  display: block;
  width: fit-content;
  margin: 50px auto 0 auto;
  background-color: #FCBC45;
  color: #FFFFFF;
  padding: 15px 40px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-register__cta-button:hover {
  background-color: #e0a53b;
}

/* Steps Section */
.page-register__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.page-register__step-number {
  font-size: 2em;
  font-weight: bold;
  color: #FCBC45;
  margin-right: 20px;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FCBC45;
  border-radius: 50%;
}

.page-register__step-content {
  flex-grow: 1;
}

.page-register__step-heading {
  font-size: 1.4em;
  color: #000000;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-register__step-text {
  font-size: 1em;
  line-height: 1.5;
}

.page-register__process-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

/* Conditions Section */
.page-register__conditions-list {
  list-style: disc;
  margin: 40px auto;
  max-width: 800px;
  padding-left: 20px;
}

.page-register__condition-item {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
}

.page-register__link-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.95em;
  margin: 10px 10px 10px 0;
  transition: background-color 0.3s ease;
}

.page-register__link-button:hover {
  background-color: #333333;
}

/* FAQ Section */
.page-register__faq-list {
  max-width: 800px;
  margin: 40px auto;
}

.page-register__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

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

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

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

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

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
}

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

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px);
  }
  .page-register__hero-container {
    padding: 30px;
  }
  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-register__value-section,
  .page-register__steps-section,
  .page-register__conditions-section,
  .page-register__faq-section {
    padding: 40px 0;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-register__value-grid {
    grid-template-columns: 1fr;
  }
  .page-register__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-register__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-register__process-image,
  .page-register__value-item img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min size for content images */
    min-height: 200px;
  }
  /* Ensure all content images are responsive and don't overflow */
  .page-register img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__hero-container {
    padding: 20px;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__hero-button {
    width: 100%;
  }
  .page-register__link-button {
    display: block;
    margin: 10px auto;
    width: fit-content;
  }
  .page-register__cta-button {
    width: 100%;
  }
}