/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

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

.page-register__top-section {
  padding-top: 10px;
  padding-bottom: 40px;
  text-align: center;
  background: #F5F7FA;
}

.page-register__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  color: #E53935;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-register__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn--primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-register__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-register__btn--secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-register__btn--secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-register__section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-register__section:nth-of-type(even) {
  background-color: #ffffff;
}

.page-register__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
}

.page-register__section-intro {
  font-size: 1.05em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #333333;
}

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

.page-register__info-card {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #E0E0E0; /* Border */
  color: #333333;
}

.page-register__info-card:hover {
  transform: translateY(-5px);
}

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

.page-register__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-register__card-text {
  font-size: 0.95em;
  line-height: 1.7;
  color: #333333;
}

.page-register__step-by-step {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 40px;
}

.page-register__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__step-item:nth-child(even) {
  flex-direction: column-reverse; /* Alternate image/text order */
}

.page-register__step-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 25px;
}

.page-register__figure {
  margin: 0;
  padding: 0;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #E0E0E0;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-register__figcaption {
  font-size: 1em;
  line-height: 1.6;
  padding: 20px;
  color: #333333;
  background: #ffffff;
  text-align: left;
}

.page-register__figcaption ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.page-register__figcaption li {
  margin-bottom: 5px;
}

.page-register__promo-box {
  background: #E53935;
  color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 8px 25px rgba(229, 57, 53, 0.6);
}

.page-register__promo-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-register__promo-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__btn--inverted {
  background: #ffffff;
  color: #E53935;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.page-register__btn--inverted:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-register__checklist {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-register__checklist-item {
  background: #ffffff; /* Card BG */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #E0E0E0; /* Border */
  color: #333333;
}

.page-register__checklist-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
}

.page-register__checklist-text {
  font-size: 0.95em;
  line-height: 1.7;
  color: #333333;
}

.page-register__warning-card {
  background: #E53935;
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 8px 25px rgba(229, 57, 53, 0.6);
}

.page-register__warning-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-register__warning-text {
  font-size: 1.05em;
  line-height: 1.7;
}

.page-register__faq-list {
  margin-top: 40px;
}

.page-register__faq-item {
  background: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-register__faq-question {
  font-size: 1.2em;
  font-weight: 600;
  color: #E53935;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 0;
}

.page-register__faq-question::after {
  content: '+';
  font-size: 1.5em;
  color: #E53935;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
  padding: 0 25px;
  color: #333333;
}

.page-register__faq-answer p {
  padding-bottom: 20px;
  margin-bottom: 0;
  font-size: 0.95em;
  line-height: 1.7;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px; /* Arbitrarily large value for smooth transition */
}

.page-register__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-register__final-cta {
  font-size: 1.2em;
  max-width: 900px;
  margin: 30px auto 40px auto;
  color: #333333;
  line-height: 1.8;
}

.page-register__text-link {
  color: #E53935;
  text-decoration: underline;
  font-weight: bold;
}

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

.page-register__cta-buttons--bottom {
  margin-top: 40px;
}

/* General image styling for content areas */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.4em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__promo-title {
    font-size: 1.8em;
  }
  .page-register__warning-title {
    font-size: 1.6em;
  }
  .page-register__grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* 1. Top Section (Title + CTA) */
  .page-register__top-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-register__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-register__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-register__description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-register__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single Column Long Text Container (Generic sections, cards, promo/warning boxes) */
  .page-register__section {
    padding: 40px 0;
  }
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-register__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-register__info-card,
  .page-register__checklist-item,
  .page-register__faq-item {
    padding: 20px;
  }
  .page-register__card-title,
  .page-register__checklist-title {
    font-size: 1.2em;
  }
  .page-register__card-text,
  .page-register__checklist-text {
    font-size: 0.9em;
  }
  .page-register__promo-box,
  .page-register__warning-card {
    padding: 30px 20px;
    margin-top: 40px;
  }
  .page-register__promo-title,
  .page-register__warning-title {
    font-size: 1.5em;
  }
  .page-register__promo-text,
  .page-register__warning-text {
    font-size: 1em;
  }

  /* 3. Generic Images and Figures */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__figure {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 8px;
  }
  .page-register__figcaption {
    padding: 15px;
    font-size: 0.9em;
  }
  .page-register__figcaption ul {
    padding-left: 15px;
  }

  /* 4. Buttons and Button Containers (already covered in top-section and generic .page-register__btn) */
  .page-register__cta-buttons--bottom {
    flex-direction: column;
    gap: 10px;
  }

  /* 5. Registration Tutorial and FAQ Block */
  .page-register__step-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .page-register__step-item:nth-child(even) {
    flex-direction: column; /* Revert alternating order for mobile */
  }
  .page-register__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-register__faq-question::after {
    right: 20px;
  }
  .page-register__faq-answer {
    padding: 0 20px;
  }
  .page-register__faq-answer p {
    font-size: 0.9em;
    padding-bottom: 15px;
  }
  .page-register__conclusion-section {
    padding-bottom: 50px;
  }
  .page-register__final-cta {
    font-size: 1.05em;
    margin: 20px auto 30px auto;
  }
}