:root {
  --phdream-primary: #F2C14E;
  --phdream-secondary: #FFD36B;
  --phdream-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --phdream-card-bg: #111111;
  --phdream-background: #0A0A0A;
  --phdream-text-main: #FFF6D6;
  --phdream-border: #3A2A12;
  --phdream-glow: #FFD36B;
}

.page-register {
  color: var(--phdream-text-main); /* Dark body background #0A0A0A requires light text */
  background-color: var(--phdream-background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

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

.page-register__hero-content {
  max-width: 800px;
  z-index: 1; /* Ensure content is above any potential background layers */
  padding: 0 20px;
}

.page-register__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp for H1 font size */
  color: var(--phdream-secondary);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--phdream-text-main);
}

/* Section Titles & Descriptions */
.page-register__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--phdream-secondary);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.3;
}

.page-register__section-description {
  font-size: 1em;
  color: var(--phdream-text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-register__btn-primary {
  background: var(--phdream-button-gradient);
  color: #ffffff; /* White text for contrast on dark/gradient button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-register__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

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

.page-register__btn-secondary:hover {
  background: var(--phdream-secondary);
  color: var(--phdream-background);
}

.page-register__text-link {
  color: var(--phdream-secondary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__text-link:hover {
  color: var(--phdream-primary);
}

/* Form Section */
.page-register__form-section {
  padding: 60px 0;
  background-color: var(--phdream-card-bg); /* Use card background for form section */
  color: var(--phdream-text-main);
}

.page-register__registration-form {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: #1a1a1a; /* Slightly lighter dark for form background */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--phdream-border);
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--phdream-border);
  border-radius: 5px;
  background-color: #222222;
  color: var(--phdream-text-main);
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: #888888;
}

.page-register__form-input:focus {
  outline: none;
  border-color: var(--phdream-secondary);
  box-shadow: 0 0 0 2px rgba(255, 211, 107, 0.3);
}

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

.page-register__form-checkbox input[type="checkbox"] {
  margin-right: 10px;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--phdream-secondary);
  border-radius: 4px;
  background-color: #222222;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.page-register__form-checkbox input[type="checkbox"]:checked {
  background-color: var(--phdream-secondary);
  border-color: var(--phdream-secondary);
}

.page-register__form-checkbox input[type="checkbox"]:checked::before {
  content: '✓';
  display: block;
  color: #0A0A0A; /* Dark checkmark on yellow background */
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-register__btn-submit {
  width: 100%;
  margin-top: 20px;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: var(--phdream-text-main);
}

/* Advantages Section */
.page-register__advantages-section {
  padding: 60px 0;
  background-color: var(--phdream-background);
}

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

.page-register__advantage-card {
  background-color: var(--phdream-card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--phdream-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__advantage-icon {
  width: 100%; /* Ensure images are responsive within card */
  height: auto;
  max-width: 250px; /* Example max width for card images */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__advantage-title {
  font-size: 1.4em;
  color: var(--phdream-secondary);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__advantage-text {
  font-size: 0.95em;
  color: var(--phdream-text-main);
}

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

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

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
  background-color: var(--phdream-background);
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1a1a1a; /* Slightly lighter dark for question header */
  color: var(--phdream-secondary);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question h3 {
  margin: 0;
  font-size: 1em; /* Adjust h3 size within question */
  color: inherit;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--phdream-text-main); /* Toggle icon color */
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
  color: var(--phdream-secondary);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Initial padding */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--phdream-text-main);
  background-color: var(--phdream-card-bg);
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Use !important as required */
  padding: 20px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  font-size: 0.95em;
}

/* Info Section (for content length) */
.page-register__info-section {
  padding: 60px 0;
  background-color: var(--phdream-background);
}

.page-register__content-area p {
  margin-bottom: 1.5em;
  color: var(--phdream-text-main);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px;
  }

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

  .page-register__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-register__hero-description {
    font-size: 1em;
  }

  .page-register__section-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }

  .page-register__section-description {
    font-size: 0.95em;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    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__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__registration-form,
  .page-register__faq-item,
  .page-register__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__advantages-section,
  .page-register__form-section,
  .page-register__cta-section,
  .page-register__faq-section,
  .page-register__info-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-register__advantage-grid {
    grid-template-columns: 1fr;
  }

  .page-register__advantage-card {
    padding: 20px;
  }

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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