/* style/register.css */
.page-register {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is from shared.css */
}

/* Fixed header spacing */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

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

/* Hero Section */
.page-register__hero-section {
  background: linear-gradient(135deg, #26A9E0, #1a7fb0); /* Brand blue gradient */
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-register__hero-section .page-register__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-register__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-register__main-heading {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-register__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  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;
  min-width: 180px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-register__btn-secondary:hover {
  background: #f0f0f0;
  color: #1a7fb0;
  border-color: #f0f0f0;
}

.page-register__hero-image {
  max-width: 800px;
  width: 100%;
  margin-top: 40px;
  z-index: 1;
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Form Section */
.page-register__form-section {
  background: #ffffff;
  padding: 80px 0;
  color: #333333; /* Dark text for light background */
  text-align: center;
}

.page-register__section-heading {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-register__captcha-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-register__captcha-input {
  flex-grow: 1;
}

.page-register__captcha-image {
  border: 1px solid #cccccc;
  border-radius: 6px;
  width: 200px; /* Fixed width for captcha image */
  height: 80px; /* Fixed height for captcha image */
  object-fit: cover;
  min-width: 200px; /* Ensure it meets min size requirement for desktop */
  min-height: 80px;
}

.page-register__terms-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.page-register__terms-checkbox input {
  width: auto;
  margin: 0;
}

.page-register__terms-checkbox label {
  font-weight: normal;
  color: #555555;
}

.page-register__terms-checkbox a {
  color: #26A9E0;
  text-decoration: none;
}

.page-register__terms-checkbox a:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  background: #26A9E0;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 30px;
}

.page-register__submit-button:hover {
  background: #1a7fb0;
}

/* Benefits Section */
.page-register__benefits-section {
  background: #000000; /* Dark background from shared, ensures contrast */
  padding: 80px 0;
  text-align: center;
  color: #ffffff; /* Light text for dark background */
}

.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white for card background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-register__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 200px; /* Max size for icon-like image */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-register__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for title */
}

.page-register__benefit-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* How-To Section */
.page-register__how-to-section {
  background: #ffffff;
  padding: 80px 0;
  text-align: center;
  color: #333333;
}

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

.page-register__step-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-register__step-card:hover {
  transform: translateY(-5px);
}

.page-register__step-number {
  background: #26A9E0;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid #ffffff;
}

.page-register__step-title {
  font-size: 1.4em;
  margin-top: 30px; /* Adjust for number overlap */
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__step-text {
  font-size: 1em;
  color: #555555;
}

.page-register__step-image {
  width: 100%;
  max-width: 300px; /* Limit image width in step cards */
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-register__text-block {
  margin-top: 60px;
  padding: 30px;
  background: #f0f8ff; /* Light blue background for text block */
  border-radius: 12px;
  color: #333333;
}

.page-register__text-block p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-register__text-block a {
  color: #EA7C07; /* Login color for text links */
  text-decoration: none;
  font-weight: bold;
}

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

/* Promotions Section */
.page-register__promotions-section {
  background: #26A9E0; /* Brand blue background */
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

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

.page-register__promo-card {
  background: rgba(0, 0, 0, 0.2); /* Darker background for contrast */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__promo-card:hover {
  transform: translateY(-5px);
}

.page-register__promo-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__promo-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Responsible Gaming Section */
.page-register__responsible-gaming-section {
  background: #f0f0f0; /* Light background */
  padding: 80px 0;
  text-align: center;
  color: #333333;
}

.page-register__responsible-gaming-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 30px auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-register__center-text {
  text-align: center;
}

/* FAQ Section */
.page-register__faq-section {
  background: #000000; /* Dark background from shared */
  padding: 80px 0;
  color: #ffffff;
  text-align: center;
}

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

.page-register__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff; /* Light text for FAQ items */
}

.page-register__faq-item summary {
  list-style: none; /* Hide default marker for details tag */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15); /* Slightly darker for summary */
  color: #ffffff;
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-register__faq-question {
  flex-grow: 1;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0; /* Brand color for toggle icon */
}

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

.page-register__faq-answer p {
  margin-bottom: 10px;
}

.page-register__faq-answer a {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
}

.page-register__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__main-heading {
    font-size: 2.8em;
  }
  .page-register__section-heading {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-register__main-heading {
    font-size: 2.2em;
  }
  .page-register__description {
    font-size: 1em;
  }
  .page-register__section-heading {
    font-size: 1.8em;
  }
  .page-register__section-intro {
    font-size: 0.95em;
  }
  .page-register__hero-section .page-register__container {
    flex-direction: column;
    text-align: center;
  }
  .page-register__hero-image {
    order: -1; /* Move image above text on mobile */
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-register__hero-image,
  .page-register__benefit-icon,
  .page-register__step-image,
  .page-register__responsible-gaming-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Allow height to adjust */
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  /* Specific override for captcha image fixed size */
  .page-register__captcha-image {
    width: 120px !important; /* Smaller fixed width for mobile */
    height: 50px !important; /* Smaller fixed height for mobile */
    object-fit: cover;
    min-width: unset !important;
    min-height: unset !important;
  }
  .page-register__captcha-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-register__captcha-input {
    width: 100%;
  }

  /* Buttons responsive */
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__submit-button,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Content area padding */
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__how-to-section,
  .page-register__promotions-section,
  .page-register__responsible-gaming-section,
  .page-register__faq-section {
    padding: 40px 0;
  }
  .page-register__registration-form {
    padding: 25px;
  }
  .page-register__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-register__faq-answer {
    padding: 0 20px 15px;
  }
  .page-register__step-number {
    top: -20px;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
  .page-register__step-title {
    margin-top: 25px;
  }
  .page-register__text-block {
    padding: 20px;
  }

  /* Ensure content containers also adapt */
  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__how-to-section,
  .page-register__promotions-section,
  .page-register__responsible-gaming-section,
  .page-register__faq-section,
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__promo-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-register__main-heading {
    font-size: 1.8em;
  }
  .page-register__section-heading {
    font-size: 1.5em;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-register__form-input {
    padding: 10px 12px;
  }
  .page-register__submit-button {
    font-size: 1.1em;
  }
}

/* Color contrast enforcement */
.page-register__dark-section {
  color: #ffffff;
}
.page-register__light-bg {
  color: #333333;
}
.page-register__dark-section .page-register__main-heading,
.page-register__dark-section .page-register__section-heading,
.page-register__dark-section .page-register__benefit-title,
.page-register__dark-section .page-register__promo-title,
.page-register__dark-section .page-register__faq-question .page-register__faq-qtext {
  color: #ffffff; /* Ensure headings are white on dark backgrounds */
}
.page-register__dark-section .page-register__description,
.page-register__dark-section .page-register__section-intro,
.page-register__dark-section .page-register__benefit-text,
.page-register__dark-section .page-register__promo-text,
.page-register__dark-section .page-register__faq-answer p {
  color: #f0f0f0; /* Slightly off-white for body text on dark background */
}
.page-register__light-bg .page-register__section-heading,
.page-register__light-bg .page-register__step-title {
  color: #26A9E0; /* Brand color for headings on light backgrounds */
}
.page-register__light-bg .page-register__section-intro,
.page-register__light-bg .page-register__step-text,
.page-register__light-bg .page-register__form-label,
.page-register__light-bg .page-register__terms-checkbox label,
.page-register__light-bg .page-register__text-block p {
  color: #333333; /* Dark text for body on light backgrounds */
}
.page-register__light-bg .page-register__text-block a {
  color: #EA7C07; /* Login color for links on light background */
}
.page-register__faq-toggle {
  color: #26A9E0; /* Brand color for toggle icon */
}