/* style/register.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-register {
  background-color: transparent; /* Body background is #0a0a0a, so this section will inherit or be transparent */
  color: #ffffff; /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Header offset to prevent content being hidden by fixed header */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px); /* Applies desktop and mobile offset from shared.css */
  position: relative;
  overflow: hidden;
}

/* General section styling */
.page-register__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

/* Specific section background colors for contrast */
.page-register__section--dark {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for contrast */
}

.page-register__section--light {
  background-color: rgba(255, 255, 255, 0.1); /* Lighter dark background for contrast */
  color: #ffffff;
}

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
  font-weight: bold;
}

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

/* Image styles */
.page-register__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
  display: block; /* Ensure images behave as blocks for responsiveness */
  margin-left: auto;
  margin-right: auto;
}

/* Button styles */
.page-register__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
  max-width: 100%; /* For responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__button--primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-register__button--primary:hover {
  background-color: #1e87b8;
  border-color: #1e87b8;
}

.page-register__button--secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-register__button--secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* List styles */
.page-register__list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 30px auto;
}

.page-register__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-register__list-item::before {
  content: '✓';
  color: #26A9E0;
  font-weight: bold;
  margin-right: 15px;
  font-size: 1.2em;
}

/* FAQ styles */
.page-register__faq-section {
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  box-sizing: border-box;
}

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: #26A9E0;
}

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

/* Details tag specific styling for FAQ */
.page-register__faq-item details > summary {
  list-style: none; /* Remove default marker */
}
.page-register__faq-item details > summary::-webkit-details-marker {
  display: none; /* Hide for webkit browsers */
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__section {
    padding: 40px 15px;
  }

  .page-register__list-item {
    padding: 15px;
  }

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

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

  /* Mobile image adaptation */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video adaptation (if any) */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Mobile button adaptation */
  .page-register__button,
  .page-register__button--primary,
  .page-register__button--secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important; /* Adjust margin for full width */
  }
  
  .page-register__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General container padding for mobile */
  .page-register__section,
  .page-register__container,
  .page-register__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Header offset for mobile, handled by shared.css but ensuring here too if needed */
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

/* Specific color contrast rules for dark background */
.page-register__dark-bg {
  color: #ffffff;
  background: #26A9E0; /* Example, ensure contrast with text */
}

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

.page-register__medium-bg {
  color: #000000;
  background: #FFFFFF;
}

/* Ensure main content text is light on body's dark background */
.page-register p,
.page-register li,
.page-register span {
  color: #f0f0f0; /* Slightly off-white for readability */
}

.page-register h1,
.page-register h2,
.page-register h3,
.page-register h4,
.page-register h5,
.page-register h6 {
  color: #26A9E0; /* Brand color for headings */
}

/* Overriding specific colors from 'Other Colors' */
.page-register__login-button {
  background-color: #EA7C07; /* Login color */
  border-color: #EA7C07;
  color: #ffffff;
}
.page-register__login-button:hover {
  background-color: #c96706;
  border-color: #c96706;
}

/* Background color for the page-register main container itself to ensure light text */
.page-register {
  background-color: transparent; /* Inherit from body or shared.css */
  color: #ffffff; /* Default text color for the main section */
}

/* Emergency contrast fix (if needed, though design should prevent) */
.page-register__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-register__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}