/* style/register.css */

/* Custom Colors */
:root {
  --g7win-primary-color: #11A84E;
  --g7win-secondary-color: #22C768;
  --g7win-bg-card: #11271B;
  --g7win-bg-main: #08160F;
  --g7win-text-main: #F2FFF6;
  --g7win-text-secondary: #A7D9B8;
  --g7win-border: #2E7A4E;
  --g7win-glow: #57E38D;
  --g7win-gold: #F2C14E;
  --g7win-divider: #1E3A2A;
  --g7win-deep-green: #0A4B2C;
  --g7win-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-register {
  font-family: 'Arial', sans-serif;
  color: var(--g7win-text-main); /* Default text color for the page, assuming dark body bg */
  background-color: var(--g7win-bg-main); /* Fallback/explicit for main content area if not inherited */
}

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

.page-register__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: bold;
  color: var(--g7win-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__section-description {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--g7win-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Buttons */
.page-register__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure button responsiveness */
}

.page-register__btn--primary {
  background: var(--g7win-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn--secondary {
  background-color: transparent;
  color: var(--g7win-primary-color);
  border: 2px solid var(--g7win-primary-color);
}

.page-register__btn--secondary:hover {
  background-color: var(--g7win-primary-color);
  color: #ffffff;
}

.page-register__btn--text {
  background-color: transparent;
  color: var(--g7win-text-secondary);
  border: none;
  text-decoration: underline;
  padding: 8px 15px;
  font-size: 16px;
}

.page-register__btn--text:hover {
  color: var(--g7win-primary-color);
}

.page-register__btn--large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Card Styles */
.page-register__card--dark {
  background-color: var(--g7win-bg-card);
  color: var(--g7win-text-main);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for better text contrast */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-register__hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #ffffff; /* Explicitly white for hero title */
}

.page-register__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 40px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

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

.page-register__benefit-card {
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.page-register__benefit-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--g7win-primary-color);
  margin-bottom: 10px;
}

.page-register__benefit-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--g7win-text-secondary);
}

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: var(--g7win-bg-main);
}

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

.page-register__step-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background: var(--g7win-btn-gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-register__step-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--g7win-text-secondary);
  margin-bottom: 20px;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-height: 200px; /* Minimum size for content images */
}

.page-register__cta-wrapper {
  text-align: center;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: var(--g7win-bg-card); /* Using card background for form section */
}

.page-register__registration-form {
  max-width: 600px;
  margin: 40px auto 0 auto;
  padding: 30px;
  border-radius: 12px;
  background-color: var(--g7win-bg-main); /* Slightly darker background for form inside section */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--g7win-border);
  border-radius: 6px;
  background-color: var(--g7win-deep-green);
  color: var(--g7win-text-main);
  font-size: 16px;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: var(--g7win-text-secondary);
  opacity: 0.7;
}

.page-register__form-input:focus {
  border-color: var(--g7win-primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 168, 78, 0.3);
}

.page-register__form-group--checkbox {
  display: flex;
  align-items: flex-start;
  margin-top: 30px;
}

.page-register__form-checkbox {
  margin-right: 10px;
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--g7win-primary-color);
}

.page-register__registration-form .page-register__btn--primary {
  width: 100%;
  margin-top: 30px;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: var(--g7win-bg-main);
}

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

.page-register__promotion-card {
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  height: 100%;
  box-sizing: border-box;
}

.page-register__promotion-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__promotion-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--g7win-primary-color);
  margin-bottom: 10px;
}

.page-register__promotion-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--g7win-text-secondary);
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: var(--g7win-bg-card);
}

.page-register__security-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-register__security-image {
  flex: 1 1 400px;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-height: 200px;
}

.page-register__security-list {
  flex: 1 1 400px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-register__security-item {
  background-color: var(--g7win-deep-green);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 5px solid var(--g7win-primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__security-item-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--g7win-text-main);
  margin-bottom: 10px;
}

.page-register__security-item-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--g7win-text-secondary);
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: var(--g7win-bg-main);
}

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

.page-register__faq-item {
  background-color: var(--g7win-bg-card);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--g7win-text-main);
  cursor: pointer;
  background-color: var(--g7win-deep-green);
  border-bottom: 1px solid var(--g7win-divider);
  list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: normal;
  color: var(--g7win-primary-color);
  transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--g7win-text-secondary);
  background-color: var(--g7win-bg-card);
}

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

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
  background-color: var(--g7win-bg-card);
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: clamp(32px, 4.5vw, 56px);
  }
  .page-register__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
  .page-register__security-content {
    flex-direction: column;
  }
  .page-register__security-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 60px 15px;
    min-height: 450px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-register__hero-title {
    font-size: clamp(28px, 6vw, 48px);
  }
  .page-register__hero-description {
    font-size: clamp(15px, 3vw, 18px);
    margin-bottom: 30px;
  }
  .page-register__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }
  .page-register__section-description {
    font-size: clamp(15px, 2.5vw, 16px);
    margin-bottom: 30px;
  }
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__form-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 50px 0;
  }
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-register__benefit-card,
  .page-register__promotion-card {
    padding: 20px;
  }
  .page-register__step-title {
    font-size: 20px;
  }
  .page-register__step-text {
    font-size: 15px;
  }
  .page-register__registration-form {
    padding: 20px;
  }
  .page-register__form-label,
  .page-register__form-input {
    font-size: 15px;
  }
  .page-register__form-group--checkbox {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-register__form-checkbox {
    margin-bottom: 10px;
  }
  .page-register__security-image {
    max-width: 100%;
  }
  .page-register__security-item-title {
    font-size: 18px;
  }
  .page-register__security-item-text {
    font-size: 15px;
  }
  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-register__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }
  .page-register__btn--large {
    padding: 15px 30px;
    font-size: 18px;
  }
  /* Mobile specific image/video/button rules */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__hero-image-wrapper,
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__form-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final-section,
  .page-register__hero-image,
  .page-register__benefit-icon,
  .page-register__step-image,
  .page-register__promotion-image,
  .page-register__security-image,
  .page-register__faq-item,
  .page-register__faq-question,
  .page-register__registration-form,
  .page-register__form-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* For containers to prevent overflow */
  }
  .page-register__btn {
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-register__security-content {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-section {
    min-height: 350px;
  }
  .page-register__hero-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-register__hero-description {
    font-size: clamp(14px, 3.5vw, 16px);
  }
  .page-register__btn {
    font-size: 16px;
    padding: 12px 20px;
  }
  .page-register__btn--large {
    font-size: 17px;
    padding: 14px 25px;
  }
  .page-register__step-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  .page-register__step-title {
    font-size: 18px;
  }
  .page-register__faq-question {
    font-size: 15px;
  }
  .page-register__faq-answer {
    font-size: 14px;
  }
}