/* style/register.css */

/* Base styles for page-register */
.page-register {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #ffffff; /* Explicitly set for content area */
}

.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, 42px); /* Responsive font size for H2 */
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-register__section-title--light {
  color: #ffffff;
}

.page-register__section-description {
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__section-description--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden;
  text-align: center;
}

.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.6); /* Darken image slightly for text contrast */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-register__hero-title {
  font-size: clamp(36px, 5vw, 60px); /* H1 font size */
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  cursor: pointer;
}

.page-register__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin-right: 15px;
}

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

.page-register__btn-primary--full-width {
  width: 100%;
  margin-right: 0;
  margin-top: 20px;
}

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

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

/* Steps Section */
.page-register__steps-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-register__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  width: 100%; /* Ensure image takes full width of card */
}

.page-register__step-title {
  font-size: clamp(20px, 2.5vw, 24px);
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__step-text {
  font-size: 16px;
  color: #555555;
  text-align: left;
}

/* Registration Form */
.page-register__registration-form {
  width: 100%;
  margin-top: 20px;
  text-align: left;
}

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

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

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

.page-register__form-input--captcha {
  width: calc(100% - 100px); /* Adjust for captcha image if present */
}

.page-register__form-group--checkbox {
  display: flex;
  align-items: center;
}

.page-register__form-group--checkbox input[type="checkbox"] {
  margin-right: 10px;
}

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

.page-register__form-group--checkbox label a:hover {
  text-decoration: underline;
}

/* Why Section (Dark Background) */
.page-register__why-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Main brand color as dark background */
  color: #ffffff;
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on main color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__benefit-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  width: 100%;
}

.page-register__benefit-title {
  font-size: clamp(20px, 2.5vw, 24px);
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__benefit-text {
  font-size: 16px;
  color: #f0f0f0;
  text-align: left;
}

.page-register__benefit-text a {
  color: #ffffff;
  text-decoration: underline;
}

.page-register__benefit-text a:hover {
  color: #e0e0e0;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-register__security-text-block {
  flex: 1;
  min-width: 300px;
}

.page-register__security-subtitle {
  font-size: clamp(22px, 2.8vw, 28px);
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__security-paragraph {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

.page-register__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-register__security-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #f0f7fa; /* Light background for contrast */
}

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

.page-register__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-register__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none;
  outline: none;
}

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

.page-register__faq-item summary:hover {
  background-color: #f5f5f5;
}

.page-register__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
}

.page-register__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

/* CTA Section (Dark Background) */
.page-register__cta-section {
  padding: 80px 0;
  background: linear-gradient(90deg, #26A9E0, #1a8cc4); /* Gradient background */
  color: #ffffff;
  text-align: center;
}

.page-register__cta-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 15px;
  }

  .page-register__hero-title {
    font-size: clamp(30px, 4.5vw, 50px);
  }

  .page-register__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }

  .page-register__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
  }

  .page-register__security-content {
    flex-direction: column;
  }
}

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

  .page-register__container,
  .page-register__hero-content,
  .page-register__steps-grid,
  .page-register__benefits-grid,
  .page-register__security-content,
  .page-register__faq-list,
  .page-register__cta-content,
  .page-register__cta-buttons {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-register img,
  .page-register video,
  .page-register__hero-image,
  .page-register__step-image,
  .page-register__benefit-image,
  .page-register__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__hero-section,
  .page-register__steps-section,
  .page-register__why-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 40px 0 !important;
  }

  .page-register__hero-section {
    padding-top: 10px !important;
  }

  .page-register__hero-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .page-register__hero-description {
    font-size: clamp(15px, 4vw, 18px);
  }

  .page-register__section-title {
    font-size: clamp(22px, 6vw, 32px);
  }

  .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;
    margin-right: 0 !important; /* Remove margin for stacked buttons */
    margin-bottom: 15px;
  }

  .page-register__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }

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

  .page-register__registration-form {
    padding: 0;
  }

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

  .page-register__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }

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

@media (max-width: 480px) {
  .page-register__hero-section {
    min-height: 400px;
  }

  .page-register__hero-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-register__hero-description {
    font-size: clamp(14px, 3.5vw, 16px);
  }

  .page-register__section-title {
    font-size: clamp(20px, 5vw, 28px);
  }
}