/* Default: light surfaces (Contact Form, etc.) */
.slider-captcha {
  position: relative;
  margin: 12px 0 4px;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.slider-captcha__track {
  position: relative;
  height: 40px;
  border-radius: 4px;
  background: #e8eef6;
  border: 1px solid #b8c4d6;
  overflow: hidden;
}

.slider-captcha__fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: rgba(0, 75, 173, 0.28);
  transition: background 0.2s ease;
  pointer-events: none;
}

.slider-captcha__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 44px;
  font-size: 12px;
  line-height: 1.2;
  color: #4a5565;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slider-captcha__handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: #003f92;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.slider-captcha__handle:active {
  cursor: grabbing;
}

.slider-captcha__handle i {
  font-size: 16px;
  pointer-events: none;
}

.slider-captcha.is-verified .slider-captcha__track {
  border-color: rgba(46, 160, 67, 0.7);
  background: rgba(46, 160, 67, 0.18);
}

.slider-captcha.is-verified .slider-captcha__fill {
  width: 100% !important;
  background: rgba(46, 160, 67, 0.45);
}

.slider-captcha.is-verified .slider-captcha__label {
  color: #fff;
}

.slider-captcha.is-verified .slider-captcha__handle {
  background: #2ea043;
  color: #fff;
  cursor: default;
}

.slider-captcha.is-error .slider-captcha__track {
  border-color: rgba(220, 53, 69, 0.8);
  animation: slider-captcha-shake 0.35s ease;
}

@keyframes slider-captcha-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.module-form .slider-captcha-group {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 16px 0 12px;
  clear: both;
}

.module-form .slider-captcha-group .slider-captcha {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.module-form .slider-captcha-group .slider-captcha__track {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Dark surfaces (Newsletter in footer) */
.module-newsletter .slider-captcha__track,
#footer .slider-captcha__track {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.module-newsletter .slider-captcha__fill,
#footer .slider-captcha__fill {
  background: rgba(0, 63, 146, 0.55);
}

.module-newsletter .slider-captcha__label,
#footer .slider-captcha__label {
  color: rgba(255, 255, 255, 0.75);
}

.module-newsletter .slider-captcha__handle,
#footer .slider-captcha__handle {
  background: #fff;
  color: #003f92;
}

.module-newsletter .slider-captcha.is-verified .slider-captcha__label,
#footer .slider-captcha.is-verified .slider-captcha__label {
  color: #fff;
}

.module-newsletter .slider-captcha.is-verified .slider-captcha__handle,
#footer .slider-captcha.is-verified .slider-captcha__handle {
  background: #2ea043;
  color: #fff;
}
