/* Jumper number search — r7 */
.jumper-search {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2px 6px;
}

.jumper-search-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.jumper-search-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.jumper-search-prefix {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd600;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.jumper-search-placeholder {
  position: absolute;
  left: 16px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  pointer-events: none;
}

.jumper-search-input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 16px 0 36px;
  border: 1.5px solid rgba(255, 214, 0, 0.45);
  border-radius: 999px;
  background: #191919;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jumper-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.jumper-search-input:focus {
  border-color: #ffd600;
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.16);
}

.jumper-search-button {
  height: 44px;
  min-width: 72px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #ffd600;
  color: #111;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  animation: jumperFindBeat 1.8s ease-in-out infinite;
  transition: background 0.2s ease, transform 0.2s ease;
}

@keyframes jumperFindBeat {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 214, 0, 0.38);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 8px rgba(255, 214, 0, 0);
  }
}

.jumper-search-button:hover {
  background: #ffe033;
  animation: none;
  opacity: 1;
}

.jumper-search-button:active {
  animation: none;
  opacity: 1;
  transform: scale(0.97);
}

.jumper-search-button:focus-visible {
  animation: none;
  opacity: 1;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.jumper-search-status {
  min-height: 16px;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.jumper-search-status--success {
  color: #ffd600;
  font-weight: 600;
}

.jumper-search-status--error {
  color: #ff9d9d;
  font-weight: 600;
}

.jumper-search-hit {
  outline: 3px solid #ffd600 !important;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(255, 214, 0, 0.2),
    0 0 34px rgba(255, 214, 0, 0.45) !important;
  animation: jumperSearchPulse 1s ease-in-out 3;
}

@keyframes jumperSearchPulse {
  0%,
  100% {
    outline-color: #ffd600;
  }
  50% {
    outline-color: #fff;
  }
}

/* Keep the hamburger aligned with the logo row now that search sits below it. */
.jumper-search-nav-toggle {
  top: 36px;
}

/* Offset the fixed header: logo row + search + status line. */
.hero-search-offset {
  padding-top: 150px;
}

.hero-search-tools {
  top: 150px;
}

#regular-jumpers,
#combo-slides,
#jumbo-jumpers,
#waterslides,
#double-water-slides,
#white-jumper,
#extras {
  scroll-margin-top: 150px;
}

@media (min-width: 640px) {
  .jumper-search-nav-toggle {
    top: 40px;
  }

  .hero-search-offset {
    padding-top: 158px;
  }

  .hero-search-tools {
    top: 158px;
  }

  #regular-jumpers,
  #combo-slides,
  #jumbo-jumpers,
  #waterslides,
  #double-water-slides,
  #white-jumper,
  #extras {
    scroll-margin-top: 158px;
  }
}

@media (min-width: 768px) {
  .hero-search-offset {
    padding-top: 194px;
  }

  .hero-search-tools {
    top: 194px;
  }

  #regular-jumpers,
  #combo-slides,
  #jumbo-jumpers,
  #waterslides,
  #double-water-slides,
  #white-jumper,
  #extras {
    scroll-margin-top: 194px;
  }
}

@media (max-width: 400px) {
  .jumper-search-placeholder {
    font-size: 11px;
    line-height: 1.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jumper-search-input,
  .jumper-search-button {
    transition: none;
  }

  .jumper-search-button {
    animation: none;
  }

  .jumper-search-hit {
    animation: none;
  }
}
