/* style/register.css */

:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

/* Base styles for the register page content */
.page-register {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Inherited from shared.css, but ensure consistency */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

.page-register__hero-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(0, 51, 102, 0.8) 100%);
  color: var(--text-light);
}

.page-register__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-register__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-register__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-register__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-register__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.page-register__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-register__form-section,
.page-register__benefits-section,
.page-register__steps-section,
.page-register__promotions-section,
.page-register__security-section,
.page-register__faq-section,
.page-register__final-cta-section {
  padding: 80px 20px;
  color: var(--text-light);
}

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-register__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: rgba(255, 255, 255, 0.8);
}

.page-register__form-container,
.page-register__benefits-container,
.page-register__steps-container,
.page-register__promotions-container,
.page-register__security-container,
.page-register__faq-container,
.page-register__final-cta-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Form Section */
.page-register__form-section {
  background-color: var(--primary-color);
  padding-bottom: 60px;
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.3);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-register__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-register__form-input:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.page-register__form-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary-color);
}

.page-register__terms-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-register__terms-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  background: var(--secondary-color);
  color: var(--primary-color);
  font-size: 20px;
  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, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-register__submit-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.page-register__benefits-section {
  background-color: var(--bg-dark);
}

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

.page-register__benefit-card {
  background: rgba(0, 51, 102, 0.6); /* Semi-transparent primary color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  background: rgba(0, 51, 102, 0.8);
}

.page-register__benefit-icon {
  width: 120px; /* Enforce minimum size */
  height: 120px; /* Enforce minimum size */
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-register__benefit-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

/* Steps Section */
.page-register__steps-section {
  background-color: var(--primary-color);
}

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

.page-register__step-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: var(--secondary-color);
  color: var(--primary-color);
  font-size: 32px;
  font-weight: bold;
  border-radius: 50%;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-register__step-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.page-register__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  display: block;
}

.page-register__note-text {
  font-size: 16px;
  text-align: center;
  margin-top: 50px;
  color: rgba(255, 255, 255, 0.9);
}

/* Promotions Section */
.page-register__promotions-section {
  background-color: var(--bg-dark);
}

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

.page-register__promotion-card {
  background: rgba(0, 51, 102, 0.6);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-register__promotion-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  display: block;
}

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

.page-register__promotion-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-register__promotion-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-register__promotion-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Security Section */
.page-register__security-section {
  background-color: var(--primary-color);
}

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

.page-register__security-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-register__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register__security-item-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-register__security-item-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

/* FAQ Section */
.page-register__faq-section {
  background-color: var(--bg-dark);
}

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

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(0, 51, 102, 0.6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-register__faq-question:hover {
  background: rgba(0, 51, 102, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--secondary-color);
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: var(--text-light);
  transform: rotate(180deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0 0 5px 5px;
}

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

.page-register__faq-cta {
  text-align: center;
  margin-top: 50px;
}

.page-register__faq-cta p {
  font-size: 18px;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
}

/* Final CTA Section */
.page-register__final-cta-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.8) 0%, var(--primary-color) 100%);
  color: var(--text-light);
  margin-bottom: 0;
}

.page-register__final-cta-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 42px;
  }
  .page-register__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-register {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
  }

  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 60px 15px;
  }

  .page-register__main-title {
    font-size: 36px;
  }

  .page-register__description {
    font-size: 16px;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

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

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

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

  .page-register__checkbox-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__promotions-grid,
  .page-register__security-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-register__benefit-icon,
  .page-register__security-icon {
    width: 90px;
    height: 90px;
  }

  .page-register__benefit-title,
  .page-register__promotion-title,
  .page-register__security-item-title {
    font-size: 20px;
  }

  .page-register__benefit-text,
  .page-register__promotion-text,
  .page-register__security-item-text,
  .page-register__step-text,
  .page-register__note-text {
    font-size: 15px;
  }

  .page-register__step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 28px;
  }

  .page-register__step-title {
    font-size: 22px;
  }

  .page-register__faq-question {
    padding: 15px;
  }

  .page-register__faq-question h3 {
    font-size: 16px;
  }

  .page-register__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }
  
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__hero-container,
  .page-register__form-container,
  .page-register__benefits-container,
  .page-register__steps-container,
  .page-register__promotions-container,
  .page-register__security-container,
  .page-register__faq-container,
  .page-register__final-cta-container,
  .page-register__registration-form,
  .page-register__cta-buttons,
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__promotions-grid,
  .page-register__security-content,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
}