/* style/register.css */

/* Base styles for the page content, considering the dark body background */
.page-register {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px; /* Space between image and text */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__hero-content {
  width: 100%;
  max-width: 900px;
  text-align: center;
  z-index: 1; /* Ensure text is above any potential background layers */
}

.page-register__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.15rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-register__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
}

/* General Section Styling */
.page-register__section {
  padding: 80px 20px;
  background-color: #1a1a2e; /* Inherit from body or a slightly different dark tone */
  color: #ffffff;
}

.page-register__section:nth-of-type(even) {
  background-color: #1f1f3a; /* Slightly different background for alternating sections */
}

.page-register__dark-section {
  background-color: #26A9E0; /* Brand primary color as background */
  color: #ffffff; /* White text for brand color background */
}

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

.page-register__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-register__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #e0e0e0;
}

/* Feature Cards */
.page-register__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-register__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Ensure cards are same height */
}

.page-register__feature-icon {
  width: 100%; /* Ensure images take full width of card content area */
  max-width: 400px; /* Limit max width for smaller images */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-register__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 15px;
}

.page-register__feature-text {
  font-size: 1rem;
  color: #e0e0e0;
}

/* Registration Steps */
.page-register__registration-steps {
  background-color: #1a1a2e;
}

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

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-register__step-number {
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 15px;
}

.page-register__step-text {
  font-size: 1rem;
  color: #e0e0e0;
  flex-grow: 1; /* Push button to bottom */
  margin-bottom: 20px;
}

.page-register__step-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px; /* Space above image */
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* Common Issues / FAQ */
.page-register__common-issues {
  background-color: #1f1f3a;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.2); /* Lighter brand color for summary */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For <summary> */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* For <summary> */
}

.page-register__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-register__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #26A9E0; /* Brand color for toggle icon */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #e0e0e0;
  text-align: left;
}

.page-register__faq-answer p {
  margin: 0;
  color: #e0e0e0;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-step {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping by default */
  word-wrap: normal;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-register__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-register__btn-primary:hover {
  background-color: #1e87b6; /* Darker shade on hover */
  border-color: #1e87b6;
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
}

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

.page-register__btn-step {
  background-color: #EA7C07; /* Login color for step buttons */
  color: #ffffff;
  border: 2px solid #EA7C07;
  margin-top: auto; /* Push to bottom of flex container */
}

.page-register__btn-step:hover {
  background-color: #c76a07;
  border-color: #c76a07;
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-section {
    padding: 40px 15px;
  }

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

  .page-register__features-grid,
  .page-register__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-register__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual top spacing */
  }

  .page-register__hero-content {
    padding: 0 15px;
  }

  .page-register__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .page-register__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-step,
  .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; /* Allow text to wrap */
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
  }

  .page-register__section {
    padding: 40px 0; /* Remove horizontal padding, container handles it */
  }

  .page-register__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .page-register__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-register__container {
    padding: 0 15px; /* Apply padding to container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal overflow */
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Image containers responsive */
  .page-register__hero-image-wrapper,
  .page-register__feature-card,
  .page-register__step-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal overflow */
  }

  .page-register__feature-icon,
  .page-register__step-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important; /* Ensure they fill their container */
  }

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

  .page-register__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}