/* style/register.css */

/* Base Styles for the Register Page */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #f8f8f8; /* Light background for the page */
}

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

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

.page-register__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__section-title--light {
  color: #FFFFFF; /* White color for titles on dark backgrounds */
}

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

.page-register__section-description--light {
  color: #f0f0f0; /* Light gray for descriptions on dark backgrounds */
}

/* Background Colors for Contrast */
.page-register__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for contrast */
  padding: 60px 0;
}

.page-register__dark-bg {
  background-color: #26A9E0; /* Primary brand color as dark background */
  color: #ffffff; /* White text for contrast */
  padding: 60px 0;
}

/* CTA Buttons */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login/CTA color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-register__cta-button:hover {
  background: #d46c06; /* Slightly darker on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
}

.page-register__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__btn-primary:hover {
  background: #1e87bb;
}

.page-register__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #26A9E0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-register__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f0f0f0; /* Light background for hero section */
}

.page-register__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-register__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-register__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-register__hero-description {
  font-size: 20px;
  color: #333333;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* Registration Form Section */
.page-register__form-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-register__form-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-register__form-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-register__form-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-register__registration-form {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-top: 30px;
}

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

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

.page-register__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.page-register__form-input:focus {
  border-color: #26A9E0;
  outline: none;
}

.page-register__form-hint {
  font-size: 14px;
  color: #666666;
  margin-top: 5px;
  display: block;
}

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

.page-register__form-agreement input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
}

.page-register__form-agreement a {
  color: #26A9E0;
  text-decoration: none;
}

.page-register__form-agreement a:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border-radius: 8px;
  margin-top: 20px;
  background: #EA7C07; /* Login/CTA color */
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-register__submit-button:hover {
  background: #d46c06;
  transform: translateY(-2px);
}

/* Why Choose Section */
.page-register__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__feature-item {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-register__feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
}

.page-register__feature-item img {
  width: 100%;
  
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-register__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-register__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Game Overview Section */
.page-register__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-register__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-register__game-title {
  font-size: 22px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-register__game-title a {
  color: #333333;
  text-decoration: none;
}

.page-register__game-title a:hover {
  color: #26A9E0;
}

.page-register__game-text {
  font-size: 15px;
  color: #666666;
  margin-bottom: 25px;
  padding: 0 20px;
}

.page-register__game-card .page-register__btn-secondary {
  margin-top: 15px;
  display: inline-block;
}

/* Payment & Security Section */
.page-register__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__info-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__info-item img {
  width: 100%;
  
  height: auto;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.page-register__info-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-register__info-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #f5f5f5;
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0; /* Primary color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: #555555;
  font-size: 16px;
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Primary brand color */
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-image img {
    border-radius: 8px;
  }
  .page-register__main-title {
    font-size: 40px;
  }
  .page-register__hero-description {
    font-size: 18px;
  }
  .page-register__section-title {
    font-size: 32px;
  }
  .page-register__section-description {
    font-size: 16px;
  }
  .page-register__game-card img {
    
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-register__hero-image img {
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .page-register__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-register__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-register__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__cta-button--large {
    padding: 15px 40px;
    font-size: 18px;
  }

  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-register__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-register__light-bg,
  .page-register__dark-bg {
    padding: 40px 0;
  }

  .page-register__form-layout {
    flex-direction: column;
    gap: 30px;
  }

  .page-register__registration-form {
    padding: 20px;
  }

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

  .page-register__form-label {
    font-size: 15px;
  }

  .page-register__form-input {
    font-size: 15px;
    padding: 10px;
  }

  .page-register__form-agreement label {
    font-size: 14px;
  }

  .page-register__submit-button {
    font-size: 16px;
    padding: 12px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__features-grid,
  .page-register__game-cards-grid,
  .page-register__info-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-register__feature-item,
  .page-register__info-item {
    padding: 25px;
    border-radius: 8px;
  }

  .page-register__feature-title,
  .page-register__info-title {
    font-size: 20px;
  }

  .page-register__feature-text,
  .page-register__info-text {
    font-size: 15px;
  }

  .page-register__game-card {
    padding-bottom: 20px;
    border-radius: 8px;
  }

  .page-register__game-card img {
    
    margin-bottom: 15px;
  }

  .page-register__game-title {
    font-size: 18px;
  }

  .page-register__game-text {
    font-size: 14px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    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;
  }

  .page-register__faq-list {
    margin-top: 30px;
  }

  details.page-register__faq-item summary.page-register__faq-question { padding: 15px; }
  .page-register__faq-qtext { font-size: 16px; }
  .page-register__faq-toggle { font-size: 24px; width: 25px; }
  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* Image responsive styles for mobile */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}