.captcha-field {
  margin: 4px 0 16px;
  text-align: left;
}

.captcha-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
}

.captcha-required {
  color: #d33a3a;
}

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

.captcha-question {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #f1ecdc;
  border: 1px dashed #c8b16f;
  color: #222;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  user-select: none;
  white-space: nowrap;
}

.captcha-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
}

.captcha-input:focus {
  outline: none;
  border-color: #c8b16f;
  box-shadow: 0 0 0 3px rgba(200, 177, 111, 0.2);
}

.captcha-refresh {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid #c8b16f;
  border-radius: 6px;
  background: transparent;
  color: #c8b16f;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.captcha-refresh:hover {
  background: #c8b16f;
  color: #222;
}

.captcha-error {
  margin-top: 5px;
  min-height: 14px;
  font-size: 0.78rem;
  color: #dc3545;
}

/* Dark popup form */
.captcha-field[data-theme="dark"] .captcha-label {
  color: #c8b16f;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.captcha-field[data-theme="dark"] .captcha-question {
  background: #333;
  color: #fff;
}

.captcha-field[data-theme="dark"] .captcha-input {
  background: #333;
  border-color: #454545;
  color: #fff;
}

.captcha-field[data-theme="dark"] .captcha-input::placeholder {
  color: #8a8a8a;
}

.captcha-field[data-theme="dark"] .captcha-error {
  color: #ff8a8a;
}

@media (max-width: 400px) {
  .captcha-question {
    min-width: 80px;
    padding: 10px;
  }
}
