/* Section 3 — extended reCAPTCHA challenge */
.section-captcha {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-captcha.hidden {
  display: none !important;
}

.section-captcha:not(.hidden) {
  display: flex;
}

.section-captcha.is-slide-exit {
  animation: slide-out-right 0.45s cubic-bezier(0.45, 0, 0.75, 0.2) forwards;
  pointer-events: none;
}

.section-captcha.is-slide-enter {
  animation: slide-in-left 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.section-captcha-inner {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-captcha-title {
  margin: 0 0 6px;
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-align: center;
}

.section-captcha-progress {
  margin: 0 0 16px;
  font-family: "Roboto", sans-serif;
  font-size: 0.8rem;
  color: #5f6368;
}

#s5-recaptcha-widget .recaptcha-checkbox-label {
  white-space: normal;
  max-width: 168px;
  min-height: 20px;
  transition: opacity 0.15s ease;
}

#s5-recaptcha-widget.is-typing .recaptcha-checkbox-label {
  opacity: 0.85;
}

.captcha-challenge-next {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  padding: 12px 22px;
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: #4285f4;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.15s ease,
    box-shadow 0.2s ease;
}

.captcha-challenge-next.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.captcha-challenge-next.is-ready {
  background: #0d904f;
  box-shadow: 0 3px 10px rgba(13, 144, 79, 0.45);
  animation: captcha-next-pulse 1.2s ease-in-out infinite;
}

.captcha-challenge-next.is-near:not(.is-ready) {
  background: #3367d6;
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.5);
}

@keyframes captcha-next-pulse {
  0%,
  100% {
    box-shadow: 0 3px 10px rgba(13, 144, 79, 0.35);
  }
  50% {
    box-shadow: 0 4px 16px rgba(13, 144, 79, 0.65);
  }
}

.captcha-challenge-next.hidden {
  display: none !important;
}

.captcha-challenge-next.is-always-on {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Lose overlay */
.lose-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 20, 24, 0.92);
  color: #fff;
  text-align: center;
}

.lose-screen.hidden {
  display: none !important;
}

.lose-title {
  margin: 0 0 12px;
  font-family: "Roboto", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ea4335;
}

.lose-message {
  margin: 0 0 24px;
  max-width: 320px;
  font-size: 1rem;
  line-height: 1.5;
  color: #e8eaed;
}

.lose-retry {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: #4285f4;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.lose-retry:hover {
  background: #5a95f5;
}
