/**
 * Hybrid CAPTCHA Module - Styles
 *
 * Include in forms that use CAPTCHA:
 *   <link rel="stylesheet" href="captcha/assets/captcha.css">
 */

/* Honeypot fields - completely hidden */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Inline CAPTCHA container */
.captcha-inline {
  margin-top: 20px;
  padding: 20px;
  border: 2px solid #ffc107;
  border-radius: 8px;
  background: #fffbf0;
  max-width: 400px;
}

.captcha-message {
  margin-bottom: 15px;
  color: #856404;
  font-weight: 600;
  font-size: 14px;
}

.captcha-image-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.captcha-image-wrapper img {
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.captcha-image-wrapper #captcha-refresh {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 16px;
}

.captcha-image-wrapper #captcha-refresh:hover {
  background: #f0f0f0;
}

.captcha-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-input-wrapper input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
}

.captcha-input-wrapper input:focus {
  outline: none;
  border-color: #ffc107;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.captcha-input-wrapper #captcha-verify {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}

.captcha-input-wrapper #captcha-verify:hover {
  background: #218838;
}

.captcha-error {
  margin-top: 10px;
  color: #dc3545;
  font-size: 14px;
  font-weight: 500;
}

/* Shake animation for invalid input */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
