/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #000 (dark), so use light text */
  background-color: transparent; /* Inherit from body or shared.css */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  text-align: center;
  padding: 100px 20px; 
  background: linear-gradient(135deg, #017439, #005f2e); /* Brand green gradient */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom Register/Login font color */
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom Register color */
  color: #ffffff; /* Changed from #FFFF00 to ensure WCAG AA contrast on #C30808 background */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

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

/* Section common styles */
.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom font color for titles */
}

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

/* Introduction Section */
.page-register__introduction-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-register__intro-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-register__intro-image {
    flex: 1;
    min-width: 400px; /* Minimum size requirement */
    min-height: 300px; /* Minimum size requirement */
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__intro-text {
    flex: 1;
}

.page-register__intro-subtitle {
    font-size: 1.8em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-register__intro-text p {
    margin-bottom: 15px;
    color: #cccccc;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Darker background for section */
  color: #ffffff;
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff; /* Light text on dark card */
}

.page-register__benefit-card:hover {
  transform: translateY(-10px);
}

.page-register__benefit-icon {
  width: 100%; /* Ensure images take full width of card */
  height: auto;
  max-height: 250px; /* Limit height to prevent overly long images */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  display: block;
}

.page-register__benefit-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom font color */
}

.page-register__benefit-text {
  font-size: 1em;
  color: #cccccc;
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Light background for section */
  color: #ffffff;
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-register__form-group {
  margin-bottom: 20px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffffff;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: #cccccc;
}

.page-register__form-input:focus {
  outline: none;
  border-color: #FFFF00;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

.page-register__form-hint {
  font-size: 0.9em;
  color: #aaaaaa;
  margin-top: 5px;
  display: block;
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 25px;
}

.page-register__form-checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #017439; /* Checkbox color */
}

.page-register__terms-link,
.page-register__login-link {
  color: #FFFF00; /* Custom font color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-register__terms-link:hover,
.page-register__login-link:hover {
  text-decoration: underline;
}

.page-register__btn-submit {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Custom Register color */
  color: #ffffff; /* Changed from #FFFF00 to ensure WCAG AA contrast on #C30808 background */
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 30px;
  transition: background-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-register__btn-submit:hover {
  background-color: #a00606;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 1em;
  color: #ffffff;
}

/* Video Section */
.page-register__video-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Darker background for section */
  color: #ffffff;
}

.page-register__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

.page-register__video-wrapper .page-register__video,
.page-register__video-wrapper .page-register__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-register__video {
  min-width: 200px;
  min-height: 200px;
}

.page-register__video-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
  color: #cccccc;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Light background for section */
  color: #ffffff;
}

.page-register__faq-list {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 40px;
}