/* style/register.css */

/* Variable definitions for colors */
:root {
  --main-color: #F2C14E;
  --secondary-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg-color: #111111;
  --background-color: #0A0A0A; /* From body, used for sections */
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

/* General styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Default text color for the page */
  background-color: var(--background-color); /* Should be #0A0A0A from shared body */
}

.page-register__container {
  width: 100%; /* Ensure full width on desktop too, within max-width */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-register__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--main-color); /* #F2C14E */
  line-height: 1.2;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding-bottom: 60px; /* Space below content */
  background-color: var(--background-color); /* #0A0A0A */
  padding-top: 10px; /* Small top padding for first section */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px; /* Space between image and content */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-register__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  color: var(--text-main-color); /* #FFF6D6 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__description {
  font-size: 1.2em;
  color: var(--text-main-color); /* #FFF6D6 */
  margin-bottom: 30px;
  line-height: 1.6;
}

/* CTA Button - General Style */
a.page-register__cta-button, button.page-register__submit-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
}

a.page-register__cta-button:hover, button.page-register__submit-button:hover {
  transform: translateY(-2px);
}

a.page-register__cta-button:active, button.page-register__submit-button:active {
  transform: translateY(0);
}

.page-register__cta-button.page-register__btn-primary {
  background: var(--button-gradient); /* linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%) */
  color: #0A0A0A; /* Dark text on bright button */
  border: none;
}

.page-register__cta-button.page-register__btn-primary:hover {
  filter: brightness(1.1);
}

.page-register__cta-button.page-register__btn-secondary {
  background: transparent;
  color: var(--main-color); /* #F2C14E */
  border: 2px solid var(--main-color); /* #F2C14E */
}

.page-register__cta-button.page-register__btn-secondary:hover {
  background: var(--main-color); /* #F2C14E */
  color: #0A0A0A;
}

/* Dark Section */
.page-register__dark-section {
  background-color: var(--background-color); /* #0A0A0A */
  color: var(--text-main-color); /* #FFF6D6 */
  padding: 80px 0;
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
}

.page-register__form-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-register__form-image .page-register__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__registration-form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: var(--card-bg-color); /* #111111 */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color); /* #3A2A12 */
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-main-color); /* #FFF6D6 */
  font-size: 0.95em;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color); /* #3A2A12 */
  border-radius: 6px;
  background-color: #0A0A0A;
  color: var(--text-main-color); /* #FFF6D6 */
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-register__form-input::placeholder {
  color: rgba(255, 246, 214, 0.6); /* Lighter placeholder text */
}

.page-register__form-input:focus {
  border-color: var(--glow-color); /* #FFD36B */
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 211, 107, 0.3);
}

.page-register__captcha-image {
  position: absolute;
  right: 1px;
  top: 38px; /* Adjust based on label height and input padding */
  width: 120px; /* Fixed width for captcha placeholder */
  height: 40px; /* Fixed height for captcha placeholder */
  background-color: #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF6D6;
  font-size: 0.8em;
  overflow: hidden; /* Hide any overflow from image placeholder */
}

.page-register__form-group .page-register__form-input:has(~ .page-register__captcha-image) {
  padding-right: 135px; /* Adjust padding for input with captcha to prevent overlap */
}

.page-register__captcha-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-register__form-checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--main-color); /* Highlight checkbox with brand color */
}

.page-register__inline-link {
  color: var(--glow-color); /* #FFD36B */
  text-decoration: none;
  font-weight: bold;
}

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

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  background: var(--button-gradient); /* linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%) */
  color: #0A0A0A; /* Dark text on bright button */
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-register__submit-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-register__already-member {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: var(--text-main-color); /* #FFF6D6 */
}

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

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

.page-register__benefit-card.page-register__card {
  background-color: var(--card-bg-color); /* #111111 */
  border: 1px solid var(--border-color); /* #3A2A12 */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color); /* #FFF6D6 */
}

.page-register__benefit-card.page-register__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-register__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-register__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--main-color); /* #F2C14E */
  margin-bottom: 15px;
}

.page-register__card-text {
  font-size: 1em;
  color: var(--text-main-color); /* #FFF6D6 */
  line-height: 1.6;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
}

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

.page-register__faq-item.page-register__card {
  background-color: var(--card-bg-color); /* #111111 */
  border: 1px solid var(--border-color); /* #3A2A12 */
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  color: var(--text-main-color); /* #FFF6D6 */
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--main-color); /* #F2C14E */
  cursor: pointer;
  background-color: #1a1a1a; /* Slightly lighter than card bg */
  border-bottom: 1px solid transparent; /* default */
  transition: background-color 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-question {
  border-bottom-color: var(--border-color); /* #3A2A12 */
}

.page-register__faq-question:hover {
  background-color: #222;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow-color); /* #FFD36B */
  margin-left: 15px;
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color); /* #FFF6D6 */
}

.page-register__faq-answer p {
  margin-top: 15px;
}

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

  .page-register__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-register__section-title {
    font-size: 2em;
  }
}