/* Hero */
.playtester-hero {
  position: relative;
  background-image:
    linear-gradient(
      to bottom,
      rgba(75, 42, 128, 0.3) 0%,
      rgba(75, 42, 128, 0.6) 50%,
      rgba(0, 0, 0, 0.9) 80%,
      #000 100%
    ),
    url("assets/LibraryHero.png");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: no-repeat;
  padding: 0;
  padding-top: clamp(20rem, 30vw, 35rem);
  padding-bottom: 3rem;
  margin: 0;
  overflow: hidden;
  color: #fff;
}

.playtester-hero .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.playtester-hero .center { text-align: center; }
.playtester-hero .stack-md > * + * { margin-top: 2rem; }

.playtester-title {
  font-family: Futura, 'Trebuchet MS', Arial, sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 700;
  text-align: center;
  margin: 0 auto 1.5rem;
  line-height: 1.2;
  letter-spacing: .02em;
  text-shadow:
    0 4px 12px rgba(0, 0, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(167, 139, 250, 0.4);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem 3rem;
  display: inline-block;
}

/* subtitle styling */
.playtester-subhead {
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 500;
  color: #f9f9ff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(139, 92, 246, 0.4);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(139, 92, 246, 0.3);
  padding: 1.5rem 2.5rem;
  border-radius: 14px;
  line-height: 1.7;
  max-width: 36ch;
  display: inline-block;
}

/* application form background */
#application-form {
  background: linear-gradient(135deg, #1a0d2e 0%, #2e1a47 50%, #1a0d2e 100%);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  padding-top: 4rem;
}

/* form title */
#application-form .section-title {
  text-align: center;
  display: block;
  margin: 0 auto 2.5rem;
  font-family: Futura, 'Trebuchet MS', Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(139, 92, 246, 0.4);
  letter-spacing: 0.02em;
}

/* layout stuff */
.content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(92, 62, 160, 0.08) 100%);
  border: 3px solid rgba(139, 92, 246, 0.5);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
  box-shadow: 0 4px 16px rgba(92, 62, 160, 0.2);
  backdrop-filter: blur(10px);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 500;
}

.highlight-box strong {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* info section text */
.band .content-narrow p,
.band .content-narrow ul,
.band .content-narrow li {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.8;
  color: #f3f2fa;
}

.band .content-narrow h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  color: #FFD700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* form styles */
form { margin-top: 3rem; }

fieldset {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(92, 62, 160, 0.05) 100%);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  margin: 0 0 2.5rem 0;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* fancy left border */
fieldset::before {
  content: "";
  position: absolute;
  left: 0; 
  top: 0; 
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #8B5CF6 0%, #A78BFA 100%);
}

legend {
  font-family: Futura, 'Trebuchet MS', Arial, sans-serif;
  font-size: clamp(1.5rem, 2.2vw, 1.8rem);
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: .02em;
}

.form-group { 
  margin-bottom: 1.8rem; 
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--text);
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
}

.required { 
  color: #FFD700; 
  font-weight: 700; 
}

/* inputs and textareas */
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(26, 13, 46, 0.6);
  border: 2px solid rgba(139, 92, 246, 0.4);
  color: var(--text);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 200ms ease;
  backdrop-filter: blur(5px);
}

input:hover,
textarea:hover {
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(26, 13, 46, 0.8);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #A78BFA;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2), 0 4px 12px rgba(139, 92, 246, 0.3);
  background: rgba(26, 13, 46, 0.9);
}

textarea { 
  resize: vertical; 
  min-height: 120px; 
  line-height: 1.6; 
}

.form-help {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  font-style: italic;
}

/* checkbox styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(92, 62, 160, 0.03) 100%);
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  transition: all 200ms ease;
}

.checkbox-group:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(92, 62, 160, 0.06) 100%);
  border-color: rgba(139, 92, 246, 0.4);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  margin-right: 0.8rem;
  cursor: pointer;
  accent-color: #8B5CF6;
}

/* submit btn */
.form-submit { 
  text-align: center; 
  margin-top: 3rem; 
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
  color: var(--text);
  padding: 18px 48px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  transition: all 200ms ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
  cursor: pointer;
  letter-spacing: .02em;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, #9F7AEA 0%, #B794F4 100%);
}

.btn-primary:active { 
  transform: translateY(-1px); 
}

/* active nav */
nav a.active {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* terms section */
#terms {
  background: rgba(0, 0, 0, 0.4);
  border-top: 2px solid rgba(139, 92, 246, 0.3);
  padding-top: clamp(1rem, 3vw, 2rem);
  scroll-margin-top: 80px;
}

#terms h3 {
  color: #FFD700;
  font-size: clamp(1.3rem, 1.8vw, 1.5rem);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* mobile stuff */
@media (max-width: 768px) {
  .playtester-hero {
    padding-top: clamp(7.5rem, 20vw, 11rem);
    padding-bottom: 1.25rem;
    background-position: center 20%;
  }

  .playtester-hero .container { 
    padding: 0 1rem; 
  }

  .playtester-title {
    font-size: clamp(2rem, 7vw, 3rem);
    padding: 1.5rem 2rem;
    margin: 0 auto 1.5rem;
  }

  .playtester-subhead {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    padding: 1rem 1.5rem;
    margin: 0 auto;
  }

  .form-row { 
    grid-template-columns: 1fr; 
  }

  fieldset { 
    padding: 1.5rem; 
    margin-bottom: 2rem; 
  }

  legend { 
    font-size: clamp(1.3rem, 4.5vw, 1.6rem); 
  }
}

/* fix mobile overlap issue */
@media (max-width: 768px) {
  main .playtester-hero {
    padding-top: clamp(7.5rem, 20vw, 11rem) !important;
    padding-bottom: 1.25rem !important;
    background-position: center 20%;
  }
}

/* mobile menu hiding */
@media (max-width: 768px) {
  header.hidden nav {
    max-height: 0 !important;
    opacity: 0 !important;
    padding: 0 !important;
    transform: translateY(-6px);
    pointer-events: none;
  }
}