/* style/register.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #007bff;
  --border-color: #e0e0e0;
}

.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: #ffffff; /* Assuming default white body background */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Adjusted padding-top for fixed header */
  background: var(--bg-dark); /* Using primary color for hero background */
  color: var(--text-light);
  text-align: center;
  background-image: url('[GALLERY:bg:ax88 win,vietnam online betting,mobile betting,online entertainment,register page,hero background]');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-register__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
  z-index: 0;
}

.page-register__hero-section > .page-register__container {
  position: relative;
  z-index: 1;
}

.page-register__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color); /* Use secondary color for CTA */
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-register__cta-button:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
  font-weight: bold;
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--text-dark);
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark);
  font-size: 1em;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  outline: none;
}

.page-register__form-checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  font-size: 0.95em;
}

.page-register__form-checkbox {
  margin-right: 10px;
  flex-shrink: 0;
  margin-top: 4px;
}

.page-register__form-label-inline {
  color: var(--text-dark);
}

.page-register__form-label-inline .page-register__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-register__form-label-inline .page-register__text-link:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.page-register__submit-button:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}

.page-register__form-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-register__form-footer .page-register__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-register__form-footer .page-register__text-link:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-register__benefits-section .page-register__section-title {
  color: var(--secondary-color);
}

.page-register__benefits-section .page-register__section-description {
  color: #e0e0e0;
}

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

.page-register__benefit-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__benefit-icon {
  width: 120px; /* Min size 200x200px is for actual images, these are conceptual icons */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: brightness(1.1); /* Allowed for icons, not for changing main image color */
}

.page-register__card-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-register__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Guide Section */
.page-register__guide-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-register__step-item {
  text-align: center;
  padding: 30px;
  background: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.page-register__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-register__step-text {
  font-size: 1em;
  color: var(--text-dark);
}

.page-register__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-register__text-link:hover {
  text-decoration: underline;
}

/* Policy Section */
.page-register__policy-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-register__policy-section .page-register__section-title {
  color: var(--secondary-color);
}

.page-register__policy-section .page-register__section-description {
  color: #e0e0e0;
  margin-bottom: 30px;
}

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

.page-register__policy-item {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1em;
  line-height: 1.8;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__policy-item strong {
  color: var(--secondary-color);
}

.page-register__text-center {
  text-align: center;
  margin-top: 30px;
}

.page-register__text-center .page-register__text-link {
  color: var(--secondary-color);
}

.page-register__text-center .page-register__text-link:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__registration-form {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 100px 0 60px; /* Mobile padding-top for fixed header */
  }
  .page-register__main-title {
    font-size: 2em;
  }
  .page-register__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-register__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-register__form-section, .page-register__benefits-section, .page-register__guide-section, .page-register__policy-section {
    padding: 60px 0;
  }
  .page-register__registration-form {
    padding: 20px;
  }
  .page-register__form-group {
    margin-bottom: 20px;
  }
  .page-register__submit-button {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__benefits-grid, .page-register__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__benefit-icon {
    width: 100px;
    height: 100px;
  }
  .page-register__card-title {
    font-size: 1.4em;
  }
  .page-register__step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.8em;
  }
  .page-register__step-title {
    font-size: 1.2em;
  }
  .page-register__container {
    padding: 0 15px;
  }
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__benefit-icon {
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-register__hero-section .page-register__container,
  .page-register__form-section .page-register__container,
  .page-register__benefits-section .page-register__container,
  .page-register__guide-section .page-register__container,
  .page-register__policy-section .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}