/* style/register.css */

/* Base styles */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background 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: 3em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* 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;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background: linear-gradient(90deg, #FFD700, #FFA500);
  color: #4A148C; /* Dark purple text for gold button */
  border: 2px solid #FFD700;
}

.page-register__btn-primary:hover {
  background: linear-gradient(90deg, #FFA500, #FFD700);
  color: #333333;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

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

.page-register__btn-secondary:hover {
  background: #FFD700;
  color: #4A148C;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by 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: 1;
}

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

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

.page-register__hero-title {
  font-size: 3.8em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-register__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Why Register Section */
.page-register__why-section {
  background-color: #1a082b; /* Darker purple background */
  padding: 80px 0;
  text-align: center;
}

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

.page-register__why-item {
  background-color: #4A148C; /* Main brand color for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__why-item-title {
  color: #FFD700;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-register__why-item p {
  color: #f0f0f0;
  font-size: 1em;
}

.page-register__why-image-wrapper {
  background: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-register__why-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Registration Process Section */
.page-register__process-section {
  background-color: #0d001a; /* Even darker background */
  padding: 80px 0;
}

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

.page-register__process-step {
  background-color: #4A148C;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-register__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #FFD700;
  color: #4A148C;
  font-size: 2.5em;
  font-weight: bold;
  border-radius: 50%;
  margin: -60px auto 20px auto; /* Position above the card */
  border: 4px solid #330d4d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-register__step-title {
  color: #FFD700;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-register__process-step p {
  color: #f0f0f0;
  font-size: 1em;
}

.page-register__process-image-wrapper {
  grid-column: 1 / -1; /* Span full width */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.page-register__process-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Promotions Section */
.page-register__promo-section {
  background-color: #1a082b;
  padding: 80px 0;
}

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

.page-register__promo-card {
  background-color: #4A148C;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-register__promo-title {
  color: #FFD700;
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-register__promo-card p {
  color: #f0f0f0;
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-register__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-register__cta-bottom p {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-register__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  background-color: #4A148C;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

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

.page-register__faq-question:hover {
  background-color: #5d1a9e; /* Slightly lighter purple on hover */
}

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

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

.page-register__faq-answer p {
  padding-bottom: 20px;
  font-size: 1em;
}

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

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg); /* No rotation for minus sign */
}

/* Final CTA Section */
.page-register__cta-final-section {
  background-color: #1a082b;
  padding: 80px 0;
  text-align: center;
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
}

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

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

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

  .page-register__why-grid,
  .page-register__process-grid,
  .page-register__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-register__hero-section {
    height: 80vh;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

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

  .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-left: 15px;
    padding-right: 15px;
  }

  .page-register__cta-bottom,
  .page-register__cta-final-section .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__why-grid,
  .page-register__process-grid,
  .page-register__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__step-number {
    margin-top: -50px;
  }

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

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

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px;
    padding-top: 0;
  }

  /* Image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__hero-image,
  .page-register__why-image,
  .page-register__process-image,
  .page-register__promo-image {
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__hero-section,
  .page-register__why-section .page-register__container,
  .page-register__process-section .page-register__container,
  .page-register__promo-section .page-register__container,
  .page-register__faq-section .page-register__container,
  .page-register__cta-final-section .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__faq-answer p {
    padding-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }

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

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

  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
  }
}