/* style/register.css */

/* Base styles for the page content */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

/* Section titles and intros */
.page-register__section-title {
  font-size: 2.5em;
  color: #FFFF00; /* Custom color for titles, contrasting with dark bg */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-register__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.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: 1;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
}

.page-register__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for main title */
  font-weight: bold;
  line-height: 1.2;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom Register button color */
  color: #FFFF00; /* Custom Register button font color */
  border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
  background-color: #FFFFFF; /* Auxiliary color */
  color: #017439; /* Main brand color for text */
  border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2b;
  border-color: #005a2b;
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: #017439; /* Using brand main color for dark background */
  color: #ffffff;
}

.page-register__form-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.page-register__form-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__registration-form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for form background */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #005a2b;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  font-size: 1em;
}

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

.page-register__form-help {
  display: block;
  font-size: 0.85em;
  color: #cccccc;
  margin-top: 5px;
}

.page-register__form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.page-register__form-checkbox-input {
  margin-right: 10px;
}

.page-register__form-checkbox-label {
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-register__link {
  color: #FFFF00; /* Custom font color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__link:hover {
  color: #ffed8f;
}

.page-register__submit-btn {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Custom Register button color */
  color: #FFFF00; /* Custom Register button font color */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  text-decoration: none;
  display: block;
}

.page-register__submit-btn:hover {
  background-color: #ff3333;
}

.page-register__section-outro {
  text-align: center;
  margin-top: 40px;
  font-size: 1em;
  color: #f0f0f0;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-register__benefits-section .page-register__section-title {
  color: #017439; /* Brand color for title on light background */
}

.page-register__benefits-section .page-register__section-intro {
  color: #555555;
}

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

.page-register__benefit-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-register__benefit-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure images are responsive */
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__benefit-description {
  font-size: 1em;
  color: #555555;
}