/* style/register.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-register {
  background-color: var(--color-background); /* Dark background as per custom color */
  color: var(--color-text-main); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some bottom padding */
}

.page-register h1,
.page-register h2,
.page-register h3,
.page-register h4 {
  color: var(--color-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-register h1 {
  font-weight: bold; /* No fixed font-size, use font-weight for emphasis */
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-register h2 {
  font-size: 2.5em; /* Example, ensure not too large for mobile */
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-register h3 {
  font-size: 1.8em;
  margin-top: 25px;
}

.page-register p {
  margin-bottom: 1em;
  color: var(--color-text-secondary); /* Use secondary text color for paragraphs */
}

.page-register a {
  color: var(--color-glow); /* Links use glow color */
  text-decoration: none;
}

.page-register a:hover {
  text-decoration: underline;
}

.page-register ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  color: var(--color-text-secondary);
}

.page-register ul li {
  margin-bottom: 0.5em;
}

/* Container for main content width */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px 60px;
  background-color: var(--color-deep-green); /* Example background, can be image */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  overflow: hidden;
}

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

.page-register__hero-content {
  max-width: 800px;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}

.page-register__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Buttons */
.page-register__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: var(--color-button-gradient);
  color: var(--color-text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: var(--color-glow);
  border: 2px solid var(--color-glow);
}

.page-register__btn-secondary:hover {
  background-color: var(--color-glow);
  color: var(--color-background);
  transform: translateY(-2px);
}

/* Content Sections */
.page-register__section {
  padding: 40px 0;
  border-bottom: 1px solid var(--color-divider);
}

.page-register__section:last-of-type {
  border-bottom: none;
}

.page-register__section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2em;
  color: var(--color-text-main);
}

.page-register__image-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.page-register__image-content-wrapper .page-register__image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-register__text-block {
  flex: 1;
  color: var(--color-text-secondary);
}

/* FAQ Section */
.page-register__faq-section {
  background-color: var(--color-card-bg);
  padding: 60px 0;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.page-register__faq-item {
  margin-bottom: 15px;
  background-color: var(--color-background);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.page-register__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--color-text-main);
  list-style: none;
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-register__faq-question {
  flex-grow: 1;
  padding-right: 15px;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--color-glow);
}

.page-register__faq-answer {
  padding: 0 20px 20px;
  color: var(--color-text-secondary);
  font-size: 0.95em;
}

/* Responsive Images & Containers (General) */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register__section,
.page-register__card,
.page-register__container,
.page-register__image-content-wrapper,
.page-register__cta-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Dark section for contrast */
.page-register__dark-section {
  background-color: var(--color-deep-green);
  color: var(--color-text-main);
}

/* Mobile Responsiveness */
@media (min-width: 769px) {
  .page-register__image-content-wrapper.page-register__image-content-wrapper--reverse {
    flex-direction: row-reverse;
  }
  .page-register__image-content-wrapper:not(.page-register__image-content-wrapper--reverse) {
    flex-direction: row;
  }
  .page-register__text-block {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-register h1 {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-register h2 {
    font-size: 1.8em;
  }

  .page-register h3 {
    font-size: 1.4em;
  }

  .page-register__hero-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Responsive image rules for all images */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Responsive container rules for all content containers */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__image-content-wrapper,
  .page-register__hero-image-wrapper,
  .page-register__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-register__faq-item summary,
  .page-register__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__faq-section {
    padding-left: 0;
    padding-right: 0;
  }
}