/* style/register.css */

/* Base styles for the page */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Default to column for mobile first */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #C91F17; /* Main color */
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-register__hero-content {
  max-width: 800px;
  margin-bottom: 30px; /* Space between text and image */
  z-index: 1; /* Ensure text is above image if any overlap */
}

.page-register__main-title {
  font-size: clamp(2rem, 5vw, 3rem); /* min, preferred, max */
  font-weight: bold;
  color: #FFD86A; /* Gold-like color for emphasis */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.2em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-top: 30px; /* Space between text and image */
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-register__section-title {
  font-size: 2.2em;
  color: #FFD86A; /* Gold for titles */
  text-align: center;
  margin-bottom: 25px;
  margin-top: 60px;
  line-height: 1.3;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-register__section-description {
  font-size: 1.1em;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Content Area */
.page-register__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #B71C1C; /* Background */
}

/* Benefit Cards */
.page-register__benefits-section {
  padding: 60px 20px;
  background-color: #7A0E0E; /* Deep Red */
  text-align: center;
}

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

.page-register__benefit-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  color: #FFF5E1;
}

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

.page-register__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px; /* Example max width, still larger than 200px */
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforcing min size */
  min-height: 200px; /* Enforcing min size */
}

.page-register__card-title {
  font-size: 1.5em;
  color: #FFD86A; /* Gold */
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-register__benefit-card p {
  font-size: 1em;
  color: #FFF5E1; /* Text Main */
}

/* Step-by-Step Section */
.page-register__step-by-step-section {
  padding: 60px 20px;
  background-color: #B71C1C; /* Background */
}

.page-register__step-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
}

.page-register__step-title {
  font-size: 1.8em;
  color: #FFD86A; /* Gold */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-register__step-card p {
  font-size: 1.1em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 25px;
}

.page-register__step-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforcing min size */
  min-height: 200px; /* Enforcing min size */
}

/* Verification and Security Sections */
.page-register__verification-section,
.page-register__security-section {
  padding: 60px 20px;
  background-color: #7A0E0E; /* Deep Red */
}

.page-register__verification-section:nth-of-type(even),
.page-register__security-section:nth-of-type(even) {
  background-color: #B71C1C; /* Alternate background for readability */
}

.page-register__verification-list,
.page-register__security-list {
  max-width: 900px;
  margin: 0 auto 40px auto;
  list-style: none;
  padding: 0;
}

.page-register__verification-list li,
.page-register__security-list li {
  background-color: #D32F2F; /* Card BG */
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  font-size: 1.1em;
  color: #FFF5E1; /* Text Main */
  position: relative;
  padding-left: 45px;
}

.page-register__verification-list li::before,
.page-register__security-list li::before {
  content: '✓';
  color: #FFD86A; /* Gold checkmark */
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
}

.page-register__verification-image,
.page-register__security-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforcing min size */
  min-height: 200px; /* Enforcing min size */
}

/* Responsible Gaming Section */
.page-register__responsible-gaming-section {
  padding: 60px 20px;
  background-color: #B71C1C; /* Background */
  text-align: center;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 20px;
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-register__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  color: #FFF5E1;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD86A; /* Gold */
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become an 'x' or 'minus' */
}

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1em;
  color: #FFF5E1; /* Text Main */
  line-height: 1.5;
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 60px 20px;
  background-color: #C91F17; /* Main color */
  text-align: center;
}

/* Buttons */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box; /* For responsive buttons */
  white-space: normal; /* For responsive buttons */
  word-wrap: break-word; /* For responsive buttons */
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: none;
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #FFE082 0%, #FBC02D 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFD86A; /* Gold text */
  border: 2px solid #FFD86A; /* Gold border */
}

.page-register__btn-secondary:hover {
  background-color: #FFD86A;
  color: #7A0E0E;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-register__hero-section {
    flex-direction: row; /* Desktop: row layout */
    text-align: left;
    padding: 80px 40px;
  }

  .page-register__hero-content {
    margin-right: 40px;
    margin-bottom: 0;
    flex: 1; /* Take up available space */
  }

  .page-register__hero-image-wrapper {
    flex: 1;
    margin-top: 0;
    justify-content: flex-end;
  }

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

  .page-register__benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-register__step-card {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
  }

  .page-register__step-card:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image/text direction */
  }

  .page-register__step-card .page-register__step-image {
    flex-shrink: 0;
    width: 40%;
    margin: 0;
  }

  .page-register__step-card div {
    flex: 1;
  }

  .page-register__verification-list li::before,
  .page-register__security-list li::before {
    font-size: 1.5em;
    left: 20px;
  }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    padding: 0 15px;
  }

  .page-register__hero-description,
  .page-register__section-description {
    padding: 0 15px;
  }

  .page-register__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

  .page-register__benefits-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-register__benefit-card {
    padding: 20px;
  }

  .page-register__step-card {
    padding: 25px;
    margin: 0 15px 25px 15px;
  }

  .page-register__step-title {
    font-size: 1.5em;
  }

  .page-register__verification-list,
  .page-register__security-list,
  .page-register__faq-list {
    padding: 0 15px;
  }

  .page-register__verification-list li,
  .page-register__security-list li {
    padding: 15px 15px 15px 40px;
    font-size: 1em;
  }

  .page-register__verification-list li::before,
  .page-register__security-list li::before {
    left: 10px;
    font-size: 1.1em;
  }

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-register__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 1em;
  }

  /* Mandatory responsive styles for images, videos, and buttons */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-register__hero-image-wrapper,
  .page-register__benefits-section,
  .page-register__step-by-step-section,
  .page-register__verification-section,
  .page-register__security-section,
  .page-register__responsible-gaming-section,
  .page-register__faq-section,
  .page-register__cta-final-section,
  .page-register__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for sections that might not have it */
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__step-by-step-section,
  .page-register__verification-section,
  .page-register__security-section,
  .page-register__responsible-gaming-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Buttons */
  .page-register__cta-button,
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .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 !important;
    padding-right: 15px !important;
  }
  
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-register__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Video section specific (if any, although this page doesn't have a video) */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-register__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }
}