/* style/register.css */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f5f5f5; /* Light background for the page content */
}

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

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #C91F17; /* Main brand color for titles */
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

/* 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: linear-gradient(180deg, #E53935 0%, #C91F17 100%); /* Brand color gradient background */
  color: #FFF5E1; /* Main text color for dark backgrounds */
}

.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: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-register__main-title {
  font-size: clamp(32px, 5vw, 48px); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: #FFF5E1;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #FFD86A;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red text for contrast on gold button */
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid #F2B544;
}

.page-register__cta-button:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border-color: #FFCC66;
}

/* Form Section */
.page-register__form-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for form */
  color: #333333;
}

.page-register__form {
  max-width: 600px;
  margin: 0 auto;
  background: #fdfdfd;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

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

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

.page-register__form-input {
  width: calc(100% - 22px); /* Adjust for padding and border */
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-register__form-input:focus {
  border-color: #C91F17;
  box-shadow: 0 0 0 3px rgba(201, 31, 23, 0.2);
  outline: none;
}

.page-register__form-captcha {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-register__form-captcha .page-register__form-input {
  flex: 1;
}

.page-register__captcha-image {
  border-radius: 6px;
  border: 1px solid #ddd;
  height: 60px; /* Fixed height for captcha */
  width: 200px; /* Fixed width for captcha */
  object-fit: contain;
}

.page-register__form-terms {
  display: flex;
  align-items: center;
  margin-top: 15px;
  margin-bottom: 30px;
  font-size: 15px;
}

.page-register__form-terms input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #C91F17;
}

.page-register__form-terms a {
  color: #C91F17;
  text-decoration: none;
  font-weight: 600;
}

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

.page-register__submit-button {
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: 2px solid #F2B544;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-register__submit-button:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: #FFCC66;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #555555;
}

.page-register__login-prompt a {
  color: #C91F17;
  text-decoration: none;
  font-weight: 600;
}

.page-register__login-prompt a:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 20px;
  background-color: #B71C1C; /* Dark red background */
  color: #FFF5E1; /* Main text color for dark backgrounds */
}

.page-register__benefits-section .page-register__section-title {
  color: #FFD86A;
}

.page-register__benefits-section .page-register__section-description {
  color: #FFD86A;
}

.page-register__text-main {
  color: #FFF5E1;
}

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

.page-register__benefit-card {
  background-color: #D32F2F; /* Card background color */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 2px solid #F2B544;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.page-register__benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px #FFCC66);
}

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

.page-register__benefit-text {
  font-size: 16px;
  color: #FFF5E1;
}

/* Security Section */
.page-register__security-section {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

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

.page-register__feature-item {
  background: #fdfdfd;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
}

.page-register__feature-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-register__feature-item p {
  font-size: 15px;
  color: #555555;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  color: #333333;
}

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 15px 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: #C91F17;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}
details[open] .page-register__faq-toggle {
  transform: rotate(45deg);
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 25px 25px;
  background: #fdfdfd;
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  color: #555555;
}

/* Common Responsive Styles */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register__form-input,
.page-register__cta-button,
.page-register__submit-button {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-register__section-title {
    font-size: 30px;
  }

  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-register__hero-image {
    margin-bottom: 20px;
  }

  .page-register__hero-content {
    padding: 0 15px;
  }

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

  .page-register__hero-description {
    font-size: clamp(15px, 2.2vw, 18px);
    margin-bottom: 25px;
  }

  .page-register__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-register__form-section, .page-register__benefits-section, .page-register__security-section, .page-register__faq-section {
    padding: 40px 15px;
  }

  .page-register__form {
    padding: 30px;
  }

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

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

  .page-register__submit-button {
    font-size: 18px;
  }

  .page-register__benefits-grid, .page-register__security-features {
    gap: 20px;
  }

  .page-register__benefit-card, .page-register__feature-item {
    padding: 25px;
  }

  .page-register__benefit-title {
    font-size: 20px;
  }

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

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

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

  .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;
  }

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

  .page-register__main-title {
    font-size: clamp(26px, 6vw, 36px);
  }

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

  .page-register__cta-button {
    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__form-captcha {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .page-register__captcha-image {
    width: 100%;
    height: auto; /* Allow auto height for responsiveness */
    max-width: 200px; /* Keep max width to avoid stretching too much */
    margin: 0 auto;
  }

  .page-register__benefits-grid, .page-register__security-features {
    grid-template-columns: 1fr;
  }

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

  .page-register__benefit-icon, .page-register__feature-icon {
    width: 60px;
    height: 60px;
  }

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

  .page-register__faq-qtext {
    font-size: 15px;
  }

  .page-register__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
  }

  .page-register__faq-item .page-register__faq-answer {
    padding: 0 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-image {
    margin-bottom: 15px;
  }

  .page-register__main-title {
    font-size: clamp(24px, 8vw, 32px);
  }

  .page-register__hero-description {
    font-size: clamp(14px, 4vw, 15px);
    margin-bottom: 20px;
  }

  .page-register__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }

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

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

  .page-register__form {
    padding: 20px;
  }

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

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

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

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

  .page-register__submit-button {
    font-size: 16px;
    padding: 12px 20px;
  }

  .page-register__login-prompt {
    font-size: 14px;
    margin-top: 20px;
  }

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

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

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

  .page-register__feature-item p {
    font-size: 14px;
  }

  .page-register__faq-qtext {
    font-size: 14px;
  }

  .page-register__faq-item .page-register__faq-answer {
    font-size: 14px;
  }
}